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.

Removing binder.c

https://lwn.net/Articles/1102982/
1•signa11•3m ago•0 comments

More Suicides at Spy, Cyber Agencies Scrutinized by Congress

https://www.bloomberg.com/news/articles/2026-11-10/more-suicides-at-spy-cyber-agencies-scrutinize...
1•_tk_•11m ago•0 comments

Show HN: Learnmap, learn programming in a playful way

https://learnmap.sh
1•erikpau•15m ago•0 comments

GameShark, cheat devices, and PlayStation runtime function patching

https://generalreasoning.com/blog/2026/11/19/gameshark-patching.html
1•skimdesk•15m ago•0 comments

Dragons and Serpents in Sussex

http://www.sussexarch.org.uk/saaf/dragon.html
1•zeristor•18m ago•0 comments

Maestri – Infinite canvas for orchestrating agents

https://www.themaestri.app/en
1•surrTurr•18m ago•0 comments

Trump vows to prevent US companies from building data centres abroad

https://www.cnbc.com/2026/11/20/trump-data-centers-ai-companies-tax.html
1•niemandhier•19m ago•0 comments

Notion – A New Shape for Work

https://www.notion.com/a-new-shape-for-work
1•simianwords•21m ago•0 comments

Proof of the Riemann Hypothesis [01/01/2026]

https://robertedwardgrant.com/proof-of-the-riemann-hypothesis-a-geometric-constraint-on-prime-flu...
1•fred_the_chair•23m ago•0 comments

Gemini training on chats opt-out is finally here

https://support.google.com/gemini/answer/13594961?hl=en
2•adinafxv•24m ago•1 comments

What's the difference between an integer and a pointer?

https://blog.regehr.org/archives/1621
1•germanrabbit•24m ago•0 comments

Why Are Universal Sockets Dangerous?

https://oeelectrics.co.uk/universal-sockets-a-dangerous-convenience/
1•nomilk•27m ago•0 comments

Google rolls out new search homepage with AI chat history and no search button

https://arstechnica.com/ai/2026/11/googles-latest-search-page-redesign-drops-the-search-button-ad...
2•Brajeshwar•34m ago•0 comments

Jensen Huang in 2009: The Charlie Rose Interview [video]

https://www.youtube.com/watch?v=g28jKBvhN9k
2•jonbaer•34m ago•1 comments

RCE in Gnupg

https://lists.gnupg.org/pipermail/gnupg-announce/2026q4/000517.html
2•gdgghhhhh•40m ago•0 comments

Exascale fusion simulation team named finalist for 2026 Gordon Bell Prize

https://www.alcf.anl.gov/news/exascale-fusion-simulation-team-named-finalist-2026-gordon-bell-prize
2•rbanffy•41m ago•0 comments

Álvaro Herrera: Squeezing tables with Postgres 19

https://www.enterprisedb.com/blog/squeezing-tables-postgres-19
4•bashhq_r•43m ago•0 comments

Show HN: RMRFBench – How often AI agents wreck a server when asked to rm a file

https://www.rmrfbench.com/
1•eadz•45m ago•1 comments

Moving from VMware Fusion on macOS 27

https://scaleninja.com/blog/vmware-fusion-macos-27/
2•onzr•47m ago•0 comments

What is a team in the age of AI?

https://velocitycurve.substack.com/p/what-is-a-team-in-the-age-of-ai
1•GertLH•50m ago•0 comments

Show HN: App Store and Google Play in-app event images from store listings

https://appeventor.com/
1•indest•51m ago•0 comments

Our organizations are being DDoSed from the inside

https://karrisaarinen.com/posts/our-organizations-are-being-ddosed-from-the-inside/
1•jpswade•52m ago•0 comments

Beyls: Wrapping up LLVM's relicensing effort

https://lwn.net/Articles/1108818/
4•omegaSigma95•55m ago•0 comments

Marketing teams will be on GitHub within a year

https://aiforcontentmarketing.ai/github-for-marketers/
2•pakostina•56m ago•0 comments

We get less hydrogen and neon usage than Opus 5.5 on $20 plans

https://www.reddit.com/r/google_antigravity/comments/1y1ep0k/we_get_less_hydrogen_and_neon_usage_...
2•vikas-sharma•56m ago•0 comments

Debugging story: The case of the flaky Dynamo export tests (2023)

https://dev-discuss.pytorch.org/t/debugging-story-the-case-of-the-flaky-dynamo-export-tests/1124
1•dverlaeckt80•1h ago•0 comments

Show HN: Dotfactory – dotfiles for your Claude Code sessions

https://github.com/gesposito/dotfactory
2•tilt•1h ago•0 comments

Watching as a giant star swallowed its neighbor and exploded

https://arstechnica.com/science/2026/11/astronomers-watched-a-star-spiral-to-its-death-inside-a-g...
4•Brajeshwar•1h ago•2 comments

Map of AlpöGE's Lean proof of the Riemann hypothesis

https://zenodo.org/records/24410057
1•senno•1h ago•0 comments

Nordic Ren-Gas' project becoming largest e-methane facility

https://ren-gas.com/news/nordic-ren-gas-tampere-project-becomes-worlds-largest-e-methane-facility...
2•iljah•1h ago•0 comments