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.

In-app submit test (deleting)

1•hntesting890•2m ago•0 comments

We solved SQLite's single-writer limitation

https://marcobambini.substack.com/p/we-solved-sqlites-single-writer-limitation
1•luispa•4m ago•0 comments

Ask HN: Are there things more important than 'humanity', such as empathy?

1•dfps•7m ago•0 comments

Israel isn't stopping at Gaza [video]

https://www.youtube.com/watch?v=GTL5trfjrdc
2•dataflow•11m ago•0 comments

Delta's CEO on Skipping Starlink, Premium-Travel Rush and High Fuel Prices

https://www.wsj.com/business/airlines/deltas-ceo-on-skipping-starlink-premium-travel-rush-and-hig...
1•gmays•11m ago•0 comments

Test post please ignore (will be deleted)

1•hntesting890•12m ago•1 comments

Put a price on breakthroughs

https://alexwang.ai/posts/put-a-price-on-breakthroughs/
1•ketothekingdom•22m ago•0 comments

Firefox's chief on why he hopes a redesign will help win users from Chrome

https://arstechnica.com/gadgets/2026/09/mozillas-head-of-firefox-talks-product-priorities-ai-skep...
1•cisc•33m ago•2 comments

Show HN: Create beautiful screenshots/ recordings to share your work

https://chromewebstore.google.com/detail/screens-beautiful-screens/fcnblpibmdpipbdfomiicdaadjmidakc
1•sss007r•36m ago•0 comments

Teenage Engineering will stop making synths to focus on whatever it feels like

https://www.engadget.com/2280912/teenage-engineering-will-stop-making-synths-to-focus-on-whatever...
1•blltprfmnk•39m ago•2 comments

Antigravity Excel Engine – Dual-Core Excel Automation for AI Agents

https://github.com/FranciscoGrandon/antigravity-excel-engine
1•fgrandon•46m ago•0 comments

Next.js 16.4

https://nextjs.org/blog/next-16-4
2•jhuleatt•46m ago•0 comments

Trump Calls on AI to Speed Up Science–While Continuing to Defund It

https://www.motherjones.com/politics/2026/10/trump-calls-on-ai-to-speed-up-science-while-continui...
4•computerliker•55m ago•0 comments

Language models play chess, everything is recorded

https://chessmark.merope.dev
1•emersonrsantos•55m ago•0 comments

Show HN: Spin Cycle – Tetris in a Washing Machine

https://verywacky.games/
1•forgatmachine•56m ago•2 comments

CA voter information guide [pdf]

https://vig.cdn.sos.ca.gov/2026/general/pdf/complete-vig.pdf
1•bbondo•59m ago•1 comments

NVFP4 vs. MXFP4 Decode Benchmark

https://cezarcocu.com/blog/nvfp4-vs-mxfp4-decode-bench/
1•ggamecrazy•1h ago•0 comments

Ask HN: Are LLMs Solving Math?

1•sean_pedersen•1h ago•0 comments

Decade-old RAM is making a comeback

https://www.theverge.com/games/1009140/ram-shortage-intel-amd-ddr4-comeback
3•1potato•1h ago•0 comments

Anthropic AI Model Goes Rogue, Submits Fake Unsolved Murder Tip

https://www.wsj.com/us-news/anthropic-ai-model-goes-rogue-submits-fake-unsolved-murder-tip-b0566f54
3•pseudolus•1h ago•2 comments

I own you but I don't trust you

https://axegon.com/#blog/i-own-you-but-i-dont-trust-you.md
1•extr0pian•1h ago•0 comments

Substrate Independence

https://www.edge.org/response-detail/27126
3•sans_souse•1h ago•0 comments

Stride – 25 minutes a day to make progress on your career

https://www.withstride.app/
1•LoganHoang•1h ago•0 comments

We Can Harden C

https://cybersect.substack.com/p/we-can-harden-c
1•otoburb•1h ago•1 comments

The Atari 800XL [2027 Hybrid Gaming Console]

https://atari.com/pages/800xl
1•radley•1h ago•0 comments

Show HN: Faplex – like `Claude agents` but all machines and harnesses

https://github.com/kkrausse/faplex
4•kkrausse•1h ago•3 comments

1.7B-year-old fossils reveal a crucial clue to the rise of complex life

https://www.sciencedaily.com/releases/2026/09/260925005447.htm
6•docmechanic•1h ago•0 comments

Should I Hire a Dev or Can I Vibecode This?

https://vibecodeornot.pixlw.com/
4•altmanaltman•1h ago•3 comments

GlobalFoundries announces 7nm class FD-SOI process

https://gf.com/news-and-events/news/gf-unveils-roadmap-to-deliver-worlds-most-advanced-platform-f...
1•osnium123•2h ago•0 comments

How to connect any AI assistant to governed enterprise data with MCP

https://wesdias.medium.com/how-to-connect-any-ai-assistant-to-governed-enterprise-data-with-mcp-0...
2•wesleydias•2h ago•0 comments