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.

Elon Musk boosted false USAID conspiracy theories to shut down global aid

https://www.nbcnews.com/politics/doge/elon-musk-boosted-false-usaid-conspiracy-theories-global-ai...
1•tastyface•1m ago•0 comments

Associative learning turns DEET from aversive to appetitive in Aedes aegypti

https://journals.biologists.com/jeb/article/229/10/jeb251935/371741/Associative-learning-switches...
1•croes•2m ago•0 comments

EU wants crisis powers to seize control of chip supplies

https://www.ft.com/content/9d7d6204-4fc7-4f1d-af05-473c3649efcd
1•merksittich•2m ago•0 comments

Create the Space: They're waiting to show up

https://opensourceonpurpose.substack.com/p/create-the-space
1•taubek•2m ago•0 comments

Nobody talks about the AI bubble anymore

1•xchip•2m ago•0 comments

gRPC Studio, open sourced web UI for managing gRPC

https://medium.com/@pranavpsawant/building-a-reflection-based-grpc-explorer-with-streaming-and-au...
1•pranavpsawant•3m ago•0 comments

Demo: Fold your coding sessions into LLM weights

https://app.scalarlmforge.com/blog/introducing-orbital
1•gdiamos•7m ago•0 comments

How Online Sleuthing Helped Catch the ‘Google Insider’ on Polymarket

https://www.wsj.com/finance/currencies/how-online-sleuthing-helped-catch-the-google-polymarket-tr...
3•thm•8m ago•1 comments

Did Google's AI agents build an operating system for $916?

https://www.normaltech.ai/p/did-googles-ai-agents-really-build
1•wslh•9m ago•0 comments

Lossless data compression software benchmarks / comparisons

https://web.archive.org/web/20230106191700/https://www.maximumcompression.com/
1•wolpoli•9m ago•0 comments

Various LLM Smells

https://shvbsle.in/various-llm-smells/
1•speckx•11m ago•0 comments

The Art of Telling a Lie

https://www.rnz.co.nz/life/lifestyle/the-art-of-telling-a-lie
4•billybuckwheat•13m ago•0 comments

Robot Design Toolkit

https://robots.edges.ideo.com/
1•svnh•14m ago•0 comments

Is AI Going to Destroy Our Lives or Not?

https://kyla.substack.com/p/is-ai-going-to-destroy-our-lives
1•bsgada•15m ago•0 comments

PR: Remove Remote Attestation from British Columbia ID App

https://github.com/bcgov/bc-wallet-mobile/pull/3928
1•nstbayless•17m ago•0 comments

Show HN: Minicart – Run your store by chatting with AI

https://minicart.com/
1•chrisab•17m ago•0 comments

AutoScientists: Self-Organizing Agent Teams for Experimentation

https://arxiv.org/abs/2605.28655
2•Anon84•17m ago•0 comments

Coding agent can read your .env file

https://bitwarden.com/blog/secure-ai-agent-access-with-secrets-manager/
1•nkko•19m ago•0 comments

Europe told to cool its datacenter boom before water and power run short

https://www.theregister.com/on-prem/2026/05/28/europe-told-to-cool-its-datacenter-boom-before-wat...
1•lschueller•19m ago•0 comments

Biobased magnetic sensors printed from iron and cellulose

https://techxplore.com/news/2026-05-biobased-magnetic-sensors-iron-cellulose.html
1•lschueller•20m ago•0 comments

K-Meleon CCF: tiny Gecko engine browser reborn with agent built-in

https://kmeleonccf.com
1•coolwulf•20m ago•1 comments

The Current Crisis: What's Happening to Science in America

https://www.science.org/content/blog-post/current-crisis-what-s-happening-science-america
2•etiam•21m ago•0 comments

Gnome 2.20 but its Web Components

https://bennypowers.dev/posts/gnome-2-web/
1•maxloh•21m ago•0 comments

FAA requires mishap investigation before resumption of Starship launches

https://spaceflightnow.com/2026/05/27/faa-requires-spacex-led-mishap-investigation-before-resumpt...
3•rbanffy•21m ago•0 comments

Preserved Fish

https://en.wikipedia.org/wiki/Preserved_Fish
2•philip1209•24m ago•0 comments

US Military personnel are reportedly being targeted using location data

https://www.reuters.com/business/media-telecom/pentagon-says-us-military-personnel-are-reportedly...
4•geox•25m ago•5 comments

Canopy Guard – Free audit tool: 47 signals across SEO, AEO, GEO

https://www.thecanopyguard.com/
2•adammcclarin•26m ago•0 comments

Cloudflare's data platform and the AI agent on top of it

https://blog.cloudflare.com/our-unified-data-platform/
2•jgrahamc•27m ago•0 comments

SIE: Unified Inference Engine for Embeddings, Reranking, and Extraction

https://github.com/superlinked/sie
2•modinfo•27m ago•0 comments

Project Lightwell: Securing the open source supply chain

https://www.redhat.com/en/lightwell
3•my2c•29m ago•0 comments