frontpage.
newsnewestaskshowjobs

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.

The Data Systems Group (DSG) at MIT

https://dsg.csail.mit.edu/projects/
1•stmw•1m ago•0 comments

Proton Drive CLI: Use Drive from Your Terminal

https://proton.me/blog/proton-drive-cli
2•Cider9986•4m ago•0 comments

Free Recoll for Windows

https://github.com/alarmz/recoll
1•ankitg12•12m ago•0 comments

Organized violence 1989–2025, and violent political protests

https://academic.oup.com/jpr/advance-article/doi/10.1093/jopres/xjag046/8703754
2•joveian•15m ago•0 comments

Why Excess Regulation?

https://www.overcomingbias.com/p/why-excess-regulation
1•paulpauper•19m ago•1 comments

PrepPush – Chrome extension turning HackerRank Accepted into GitHub study guide

https://chromewebstore.google.com/detail/preppush/lkbbmepdmkokiapildnhkimcgnofokdd
1•banikt•19m ago•0 comments

Three Labs with a Plan and a Memorandum

https://thezvi.substack.com/p/three-labs-with-a-plan-and-a-memorandum
1•paulpauper•19m ago•0 comments

America, 1898-1914, overview, part 3

https://arnoldkling.substack.com/p/america-1898-1914-overview-part-3
1•paulpauper•19m ago•0 comments

What We Learned Hiring 33 Engineers in Two Weeks

https://www.digitalocean.com/blog/ai-native-engineering-interview
2•RyeCombinator•19m ago•1 comments

When do you guys think Zig will release 1.0?

1•J_Monclare•23m ago•0 comments

The Wild West

https://www.lynalden.com/june-2026-newsletter/
1•jameslk•25m ago•0 comments

Show HN: Claude Code Context Analyzer

https://github.com/manavgup/context-analyzer
1•manavg76•25m ago•0 comments

Lessons We Learned Building a RAG Assistant Without a Separate Vector Database

https://blog.devgenius.io/lessons-we-learned-building-a-rag-assistant-without-a-separate-vector-d...
2•HermitX•28m ago•0 comments

Salesforce lays off employees in a new round of cuts

https://www.businessinsider.com/salesforce-cuts-jobs-agentforce-2026-6
5•toomuchtodo•29m ago•1 comments

Fundamental of Running Agentic Loops

https://www.beontheloop.com/deck
1•shekharupadhaya•39m ago•3 comments

Show HN: Draft an all-time XI and simulate a World Cup run

https://www.perfectworldcup.com
1•ASquare•44m ago•0 comments

Connecticut Approves Plug-In Solar

https://cleantechnica.com/2026/05/30/connecticut-approves-plug-in-solar-its-so-exciting/
2•toomuchtodo•45m ago•1 comments

Canadians told to "Exercise a high degree of caution in Germany"

https://travel.gc.ca/destinations/germany
3•theanonymousone•47m ago•0 comments

Offline streaming speech recognition on iOS with Nvidia Nemotron 3.5 and Core ML

https://github.com/lbj96347/nemotron-3.5-asr-ios
1•lbj96347•57m ago•0 comments

Microsoft's AI chief says superintelligence is near, but won't take your job

https://www.theverge.com/podcast/944138/microsoft-ai-ceo-mustafa-suleyman-superintelligence-agi-o...
2•gnabgib•58m ago•0 comments

Microsoft AI boss no longer believes that AI will replace human workers

https://www.neowin.net/news/microsoft-ai-boss-no-longer-believes-that-ai-will-replace-human-workers/
1•bundie•1h ago•1 comments

Getting Started with OpenAI Models on Amazon Bedrock

https://developers.openai.com/cookbook/examples/partners/aws/openai_models_with_amazon_bedrock
1•gmays•1h ago•0 comments

Initial impressions of Claude Fable 5

https://simonwillison.net/2026/Jun/9/claude-fable-5/
2•mfiguiere•1h ago•1 comments

What Happens If We Break Time

https://www.youtube.com/watch?v=8T4tW67hpJY
2•Asheed•1h ago•0 comments

Fund the tools that keep the internet free

https://internetfreedom.torproject.org/
4•Cider9986•1h ago•0 comments

Grok Build

https://docs.x.ai/build/overview
2•binyu•1h ago•1 comments

Vibe coding my way to a healthy family: Introducing Gamow Labs

https://www.ddmckinnon.com/2026/06/09/vibe-coding-my-way-to-a-healthy-family-introducing-gamow-labs/
3•dmckinno•1h ago•2 comments

Show HN: This Week in Obsidian – Obsidian Newsletter Published Every Tuesday

https://thisweekinobsidian.substack.com/p/this-week-in-obsidian-25
2•boundless88•1h ago•0 comments

Who Owns the Loop?

https://cardeo.substack.com/p/who-owns-the-loop
2•cardeo•1h ago•1 comments

The Evolution of 'More Like This'

https://manticoresearch.com/blog/the-evolution-of-more-like-this/
4•snikolaev•1h ago•0 comments