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.

Copyright Office Rejected My Attempt to Copyright a Tweet

https://www.techdirt.com/2014/08/04/copyright-office-rejected-my-attempt-to-copyright-tweet/
1•danhite•33s ago•0 comments

Ember: 365-day audited record of AI models vs. Polymarket, scored by Brier

https://emberfyi.com/
1•emberfyi•1m ago•0 comments

AI video editing is blowing my mind

https://aivideoediting.io/
1•pekingzcc•6m ago•0 comments

Architect of the UK Online Safety Act Calls for Its Complete Repeal

https://prestonbyrne.com/2026/05/19/architect-of-the-uk-online-safety-act-calls-for-its-complete-...
1•iamnothere•6m ago•0 comments

Rendezvous: A serverless, Zoom-like video conferencing web app

https://github.com/predatorray/rendezvous
1•zetaplusae•13m ago•0 comments

Generalization Dynamics of LM Pre-Training

https://jiaxin-wen.github.io/blog/generalization-dynamics
1•gmays•14m ago•0 comments

Iteration

https://blog.viktomas.com/posts/iteration/
1•luca-sctr•15m ago•0 comments

GPU telemetry anomaly: 146W idle draw on A100 (white paper)

https://github.com/mikebains41-debug/ai-gpu-energy-optimizer-/blob/main/WHITEPAPER.md
1•mikebains•19m ago•0 comments

Who Wins the Future: Chips vs. Frontier LLMs

https://medium.com/@vektormemory/who-wins-the-future-chips-vs-frontier-llms-1e8e0ca42641
1•vektormemory•21m ago•0 comments

The Richest Cat in the World

https://www.theatlantic.com/magazine/2026/06/karl-lagerfeld-cat-heir-choupette/686940/
1•gmays•22m ago•0 comments

Energy Efficiency

https://ai-gpu-brain-v3.onrender.com/metrics
2•mikebains•23m ago•0 comments

Anthropic hires OpenAI cofounder Andrej Karpathy

https://www.cnbc.com/2026/05/19/anthropic-hires-openai-cofounder-andrej-karpathy-former-tesla-ai-...
1•doppp•25m ago•1 comments

CVE-2025-54518

https://nvd.nist.gov/vuln/detail/cve-2025-54518
1•losfair•27m ago•0 comments

Key, in sight [Creative uses of keyboard shortcuts and macros]

https://aresluna.org/key-in-sight/
1•anotherevan•31m ago•1 comments

Show HN: Building a Programming Language for Myself

https://blog.aawadia.dev/2026/05/19/teak-lang/
1•asadawadia•33m ago•0 comments

20 Year old pgcrypto CVE reported

https://thebuild.com/blog/2026/05/15/two-decades-two-rces-what-pgcrypto-has-been-doing-since-2005/
1•sameers•34m ago•1 comments

Coding is solved? Software is not

https://arcplane.ai/journal/software-is-not-solved
2•splash123•34m ago•0 comments

Greg Hyman, Co-Creator of Tickle Me Elmo, Dies at 78

https://www.nytimes.com/2026/05/19/business/greg-hyman-dead.html
1•bookofjoe•39m ago•1 comments

Google Scholar names its most influential papers for 2025

https://www.nature.com/nature-index/news/google-scholar-reveals-most-influential-research-papers-...
1•teleforce•39m ago•0 comments

Japan is gripped by mass allergies. A 1950s project is to blame

https://www.bbc.com/future/article/20260515-the-1950s-blunder-which-causes-mass-hay-fever-in-japan
2•ranit•41m ago•0 comments

Ask HN: Should I learn to code in 2026?

3•vrinda13•42m ago•1 comments

Thioacetone (Wiki)

https://en.wikipedia.org/wiki/Thioacetone
1•sans_souse•45m ago•0 comments

XINF MCP Server

https://xinf.dev/mcp
2•ZeroTerabytes•49m ago•2 comments

Canonical launches Ubuntu Core 26

https://canonical.com/blog/canonical-launches-ubuntu-core-26
2•LopRabbit•49m ago•0 comments

Ben Welsh made an index of all FiveThirtyEight articles on the Internet Archive

https://fivethirtyeightindex.com/
2•ChocMontePy•50m ago•1 comments

'We don't see a robot as a threat: simply another form of presence in the world'

https://english.elpais.com/science-tech/2026-05-16/takeshi-yoro-anatomist-in-japan-we-dont-see-a-...
1•Geekette•52m ago•0 comments

Sci/acc: what happens to science after super-intelligence?

https://willzeng.com/shared/sciacc.html
1•wzeng•54m ago•1 comments

Ubuntu Core 26 targets IoT, offers up to 15 years of security maintenance

https://www.cnx-software.com/2026/05/19/ubuntu-core-26-targets-iot-devices-and-embedded-systems-o...
2•0in•58m ago•0 comments

On Guard! The Story of SAGE [IBM, 1956]

https://www.youtube.com/watch?v=lFGco9ZsFGE
1•doctaj•1h ago•1 comments

Optimize_anything: A Universal API for Optimizing Any Text Parameter

https://arxiv.org/abs/2605.19633
4•LakshyAAAgrawal•1h ago•1 comments