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.

Lanzaboote – NixOS Secure Boot

https://x86.lol/generic/2022/11/26/lanzaboote.html
1•evilmonkey19•3m ago•1 comments

IceStream on Object Store

https://github.com/jordepic/icestream
1•jordepic•7m ago•1 comments

Bun ported to Rust in 6 days

https://xunroll.com/thread/2053047748191232310
5•qprofyeh•11m ago•0 comments

Optimize for change not application performance

https://www.echooff.dev/blog/developer-experience-is-a-performance-feature
2•lo1tuma•14m ago•1 comments

Why age assurance laws matter for developers

https://github.blog/news-insights/policy-news-and-insights/why-age-assurance-laws-matter-for-deve...
2•pavel_lishin•15m ago•0 comments

Redstone – a faster PortfoliosLab with a one-click portfolio optimizer

https://redstonemarkets.com/
1•mihaitrincav•17m ago•1 comments

Turkey unveils new missile, AI touts as able to hit US mainland

https://www.ft.com/content/d2136091-9fd2-4923-b168-50539e5b27ab
2•JumpCrisscross•18m ago•0 comments

Money is renewable, time isn't

https://get168.app/blog/money-is-renewable-time-isnt
1•dudcks97•18m ago•0 comments

Heuristic Learning

https://trinkle23897.github.io/learning-beyond-gradients/
1•xiaoniu•25m ago•0 comments

Meta's Embrace of A.I. Is Making Its Employees Miserable

https://www.nytimes.com/2026/05/08/technology/meta-ai-employees-miserable.html
4•JumpCrisscross•25m ago•0 comments

Ask HN: Is there evidence that LLMs can extrapolate to new ideas?

1•mikpanko•25m ago•0 comments

Strategic advice from LLM's is "trendslop", say researchers

https://hbr.org/2026/03/researchers-asked-llms-for-strategic-advice-they-got-trendslop-in-return
2•marojejian•26m ago•1 comments

Maybe I'm the Alien [video]

https://www.youtube.com/watch?v=y894m7joEBc
1•hank808•28m ago•0 comments

Speeding Up Zsh

https://arkoinad.com/posts/zsh_speedup.html
1•Brajeshwar•28m ago•0 comments

Trying to Become a Better Programmer by Writing a PHP Interpreter in C++

https://github.com/GiuseppePuleri/jimphp/blob/main/README.md
1•pulerigiuseppe•28m ago•1 comments

The UAP report so far

https://marginalrevolution.com/marginalrevolution/2026/05/the-uap-report-so-far.html
2•paulpauper•30m ago•1 comments

Software Ate My Homework

https://www.theatlantic.com/ideas/2026/05/canvas-hack-campus-fragility/687115/
2•paulpauper•30m ago•0 comments

Jon Rubinstein: Former Apple Hardware Chief on Saving Apple, iMac, iPod, iPhone [video]

https://www.youtube.com/watch?v=PvFMT58lgvk
2•tosh•31m ago•0 comments

Loops and Routines Without Claude

https://ingresslabs.net/blog/spec-driven-development-loops
1•akrylov•31m ago•0 comments

Admit It, That Protein Shake Is Basically Soylent

https://www.theatlantic.com/health/2026/05/soylent-protein-shake/687120/
3•paulpauper•32m ago•1 comments

Cloudflare Pages is down in Spain

https://www.cloudflarestatus.com
2•mariopt•32m ago•1 comments

Getting LLMs Drunk to Find Remote Linux Kernel OOB Writes (and More)

https://heyitsas.im/posts/drinking-llms/
1•hnpufflib•34m ago•0 comments

Mass Gen expands virtual care for 30k patients with no primary care clinicians

https://www.bostonglobe.com/2026/05/09/business/mass-general-brigham-primary/
1•bookofjoe•35m ago•1 comments

Long short-term memory (1997) [pdf]

https://www.bioinf.jku.at/publications/older/2604.pdf
1•andsoitis•36m ago•0 comments

Where will UX design be in 5 years? 5 Predictions (2017)

https://designlab.com/blog/where-ux-design-5-years-predictions
1•downbad_•38m ago•1 comments

I learned something about GPUs today

https://foon.uk/blackshift-sand-bug/
1•birdculture•38m ago•0 comments

Peter Naur – Programming as Theory Building (1985) [pdf]

https://pages.cs.wisc.edu/~remzi/Naur.pdf
2•s4i•39m ago•0 comments

Chicago undergraduate mathematics bibliography (1999)

https://www.ocf.berkeley.edu/~abhishek/chicmath.htm
2•Tomte•42m ago•0 comments

Firefox vs. Chromium security in 2022, how true is it still today?

https://madaidans-insecurities.github.io/firefox-chromium.html
1•wyoh•43m ago•1 comments

GM to pay $12.75M to settle California driver privacy probe

https://www.reuters.com/sustainability/boards-policy-regulation/gm-pay-1275-million-settle-califo...
2•1vuio0pswjnm7•43m ago•0 comments