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 Martian Ideology

https://www.nplusonemag.com/issue-52/reviews/the-martian-ideology/
1•arutar•2m ago•0 comments

Ask HN: Why are so many accomplished founders joining Anthropic?

1•guru3s•2m ago•1 comments

Altera returns to growth as AI, robotics fuel demand, CEO says

https://www.reuters.com/business/altera-returns-growth-ai-robotics-fuel-demand-ceo-says-2026-07-10/
1•adithyaharish•4m ago•0 comments

Why We're Dismantling the International Criminal Court

https://www.wsj.com/opinion/why-were-dismantling-the-icc-0af0a8a6
2•andsoitis•7m ago•1 comments

Turso v0.7.0

https://turso.tech/blog/turso-0.7.0
2•ms7892•10m ago•0 comments

Fake Government Loan Schemes: Warning Signs to Avoid Scams – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/fake-government-loan-schemes.aspx
1•saumyaraut11•13m ago•0 comments

Launched BattleShip on Chaaaaa.com

1•Kevintbt•15m ago•0 comments

Rip-CLI: Commandline interface of rip

https://github.com/Projekt-RIP/rip-cli
1•thunderbong•15m ago•0 comments

Copyright law is now the biggest battleground in Australia's AI boom

https://www.abc.net.au/news/2026-07-14/copyright-law-battleground-in-australia-ai-boom/106891890
1•ahonhn•16m ago•0 comments

Ask HN: Is rapid API still worth efforts in 2026?

1•mmakeev•17m ago•0 comments

Show HN: An Interactive Guide to Poker

https://poker.shivs.me
1•sxhivs•18m ago•0 comments

Show HN: Giving Claude Code and codex its voice using kokoro

https://github.com/softcane/aloud
1•pradeep1177•32m ago•0 comments

Anthropic runs like Wile E. Coyote into the brick wall of consciousness research

https://www.theintrinsicperspective.com/p/anthropic-runs-like-wile-e-coyote
2•RebelPotato•32m ago•0 comments

The Empire Strikes Back

https://scottsumner.substack.com/p/the-empire-strikes-back
1•paulpauper•34m ago•0 comments

A new kind of robot swims the seas and soars the skies

https://www.npr.org/2026/07/09/nx-s1-5885040/robot-flying-aerial-aquatic-mit-birds
1•paulpauper•34m ago•0 comments

Cat Is Being Nice? Think Again

https://www.nytimes.com/2026/07/10/science/cat-grooming-licking-research.html
1•paulpauper•35m ago•0 comments

Australia is offering free daytime electricity

https://lenergy.com.au/free-daytime-electricity-is-coming-heres-how-it-actually-works/
3•i2oc•36m ago•1 comments

TV Time is getting shut down. It's founder is building its replacement

https://www.neowin.net/news/tv-time-is-on-its-last-legs-its-founder-is-already-building-its-repla...
1•bundie•43m ago•0 comments

IronCurtain – A secure* runtime for autonomous AI agents

https://github.com/provos/ironcurtain
1•n0on3•45m ago•0 comments

Show HN: Codex Pet Web – put any Codex pet on any website

https://pets.caro.sh
1•kobi_kadosh•48m ago•0 comments

Hands-On with iOS and iPadOS 27, macOS 27 Golden Gate, and Siri AI

https://eshumarneedi.com/2026/07/13/handson-with-ios-and-ipados.html
1•mindracer•50m ago•0 comments

GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning

https://arxiv.org/abs/2507.19457
3•handfuloflight•54m ago•0 comments

Egypt and Turkey deny LGBTQ+ cruise access to port over immorality

https://www.jpost.com/international/article-902192
1•andsoitis•55m ago•0 comments

Locked Away

https://www.newyorker.com/magazine/2026/07/20/locked-away
3•petethomas•55m ago•0 comments

Built a Chrome extension to organize GitHub stars

https://chromewebstore.google.com/detail/stardeck/cegfcmcniionnghnglfehbdmelffbnan
1•nandanadileep29•58m ago•0 comments

Lawsuit: Man used Grok to make 7K sex images of stepdaughter, then shot himself

https://arstechnica.com/tech-policy/2026/07/lawsuit-grok-user-made-7k-child-sex-images-xai-only-r...
1•philips•1h ago•0 comments

Detection of a four-carbon sugar in interstellar space

https://www.nature.com/articles/s41550-026-02905-7
2•anyonecancode•1h ago•0 comments

US "Normalizing Unmanned Aircraft Systems Bvlos Operations" Rule Moves Closer

https://www.unmannedairspace.info/latest-news-and-information/us-normalizing-unmanned-aircraft-sy...
1•bryanrasmussen•1h ago•1 comments

Why is LinkedIn enumerating my browser extensions?

https://insertchaos.bearblog.dev/the-strange-case-of-an-attack-on-my-browser/
2•snorbleck•1h ago•0 comments

Ongoing changes to Android security patches due to AI vulnerability discovery

https://discuss.grapheneos.org/d/40286-ongoing-changes-to-android-security-patches-due-to-ai-vuln...
2•Cider9986•1h ago•0 comments