frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Lidar threatens to rewrite everything we know about photography

https://www.digitalcameraworld.com/cameras/cmos-camera-sensors-will-become-obsolete-revolutionary...
1•leopoldj•3m ago•1 comments

React module for visualising server racks

https://react-networks-lib.rackout.net/racks
1•matt-p•3m ago•0 comments

Darknet Map

1•KAGEjin•4m ago•0 comments

Agent-to-agent discovery and real-time bidding marketplace

https://github.com/open-experiments/agent-exchange
1•parlakisik•6m ago•0 comments

Thermal Power and Climate Change

https://eartharxiv.org/repository/view/10865/
2•measurablefunc•8m ago•0 comments

Japan sees largest protest in support of pacifist constitution

https://www.theguardian.com/world/2026/may/04/japan-sees-largest-protest-in-support-of-pacifist-c...
2•robtherobber•8m ago•0 comments

Against Nicotine

https://kupajo.com/against-nicotine/
1•kolyder•8m ago•0 comments

ClaudeBleed: Claudes Browser Extension Allows Any Extension to Hijack It

https://layerxsecurity.com/blog/a-flaw-in-claudes-browser-extension-allows-any-extension-to-hijac...
1•_____k•9m ago•0 comments

Show HN: Slidemoji – A Daily Puzzle Game

https://slidemoji.com/
1•niknat•10m ago•0 comments

Perplexity's New Mac App Brings Personal Computer to Pro Users

https://www.macrumors.com/2026/05/07/perplexity-mac-app-personal-computer/
1•samsolomon•10m ago•0 comments

Ask HN: What's your favorite production-mistake-left-in record?

1•vinylcast•10m ago•0 comments

Ask HN: Would you use non-SaaS downloadable chatbot app?

1•adinhitlore•12m ago•2 comments

Small Claims Court with Clankers

https://disputron.ai/
2•mlhpdx•12m ago•0 comments

Cluster of lost cities in Ecuador that lasted 1k years mapped (2024)

https://thehill.com/homenews/ap/ap-science/ap-archeologists-map-lost-cities-in-ecuadorian-amazon-...
1•thunderbong•13m ago•0 comments

Native Instruments Acquired by InMusic

https://blog.native-instruments.com/an-announcement-from-nick-williams/
1•thm•13m ago•0 comments

Don't Get Too Comfortable

https://www.wsj.com/health/wellness/dont-get-too-comfortable-your-quality-of-life-depends-on-it-a...
1•sanj•14m ago•0 comments

Sony's PS5 sales plummet amid price rises and a memory crisis

https://www.theverge.com/news/926609/sonys-ps5-sales-plummet-memory-costs-price-hikes
2•Brajeshwar•16m ago•1 comments

The Ploopy Bean – External trackball with 4 buttons

https://ploopy.co/bean/
1•namanyayg•19m ago•0 comments

A recent experience with ChatGPT 5.5 Pro

https://gowers.wordpress.com/2026/05/08/a-recent-experience-with-chatgpt-5-5-pro/
1•ColinWright•19m ago•0 comments

Dante's Inferno modelled a planetary impact 500 years before modern science

https://www.egu.eu/news/1777/new-research-proposes-dantes-inferno-modelled-a-planetary-impact-500...
1•geox•20m ago•0 comments

5x perf increase on writes with FPW disabled in Postgres

https://www.databricks.com/blog/how-lakebase-architecture-delivers-5x-faster-postgres-writes
1•sp_from_db•20m ago•0 comments

Plus Codes

https://maps.google.com/pluscodes/
1•smartmic•20m ago•0 comments

iPhone Launch – Studio C (Comedy Sketch) [video]

https://www.youtube.com/watch?v=B7Ujn91mfAk
1•mrtimo•22m ago•0 comments

Show HN: AI Fluency Diagnostic

https://ai-pilled.com/
1•chrija•22m ago•0 comments

Show HN: Ocelot – A Game Boy and Game Boy Color Emulator in Haskell

1•habedi0•26m ago•0 comments

A new suite of modern tools coming for editing and publishing RFCs

https://www.ietf.org/blog/new-tools-coming-for-editing-and-publishing-rfcs/
1•cxr•26m ago•0 comments

Raven: Memory as a Set of Slots

https://goombalab.github.io/blog/2026/raven-part1/
1•cmogni1•26m ago•0 comments

Linear Diffs

https://linear.app/docs/diffs
2•bpierre•26m ago•0 comments

Show HN: Open Source FreeCAD dataset for CAD generation tasks

https://huggingface.co/datasets/gnucleus-ai/cad-gen-freecad
1•gNucleusAI•27m ago•0 comments

Mythos set off a cybersecurity 'hysteria.' Experts say threat was already here

https://www.cnbc.com/2026/05/08/anthropic-mythos-ai-cybersecurity-banks.html
4•pr337h4m•28m ago•0 comments