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.

Apple's New Upgrade Program Is a Trap

https://www.theatlantic.com/technology/2026/07/apple-lease-upgrade-program/688106/
1•littlexsparkee•3m ago•0 comments

China's "artificial sun" project achieves new engineering milestone

https://en.people.cn/n3/2026/0629/c90000-20472114.html
1•yogthos•3m ago•0 comments

Web, iOS and Android from Same Codebase with Dowe Lang

https://dowe.dev
1•victorriba•4m ago•0 comments

We Are Losing the Ability to Discover What We Didn't Know to Ask

https://www.nytimes.com/2026/07/08/opinion/ai-google-gemini-search-questions.html
1•monkeydust•4m ago•1 comments

Trump's Career Mirrors Godzilla in Political Study

https://www.chosun.com/english/industry-en/2026/07/30/QFS6NTDIXNCPFKHAPPXHWUMROE/
1•DemiGuru•5m ago•0 comments

That's Not What I Meant by 'Using AI'

https://mudlej.com/articles/ai-development-approaches/
1•jhartikainen•7m ago•0 comments

Tim Cook's Final Earnings Call as Apple CEO

https://www.macrumors.com/2026/07/30/tim-cook-final-earnings-call-as-apple-ceo/
1•tosh•9m ago•0 comments

Spacecraft Fly

https://www.howspacecraftfly.com/
1•ColinWright•9m ago•0 comments

Erasure to Reach AGI

https://twitter.com/i/status/2082827517338005700
2•iamronaldo•9m ago•0 comments

Advancing the price-performance frontier with GPT‑5.6

https://openai.com/index/advancing-the-price-performance-frontier-with-gpt-5-6/
8•tedsanders•10m ago•0 comments

The Joy of Obsidian

https://www.jackbodine.com/blog/the-joy-of-obsidian/
1•speckx•11m ago•0 comments

Which programming languages offer built-in tools for modernizing your code?

https://seroter.com/2026/07/30/which-programming-languages-offer-built-in-tools-for-modernizing-y...
2•richards•11m ago•0 comments

AI policies that don't suck

1•reilly3000•13m ago•0 comments

Dana Scott – Geometry Without Points (2014) [video]

https://www.youtube.com/watch?v=sDGnE8eja5o
1•measurablefunc•13m ago•0 comments

Saturation: How Your Software Will Fail at Scale – Lorin Hochstein [video]

https://www.youtube.com/watch?v=PHYCRubnmSM
1•wofo•15m ago•0 comments

AMD Lucebox Beats Nvidia DGX Spark by 3.63x on DeepSeek V4 Flash

https://www.lucebox.com/blog/deepseek-v4-asymmetric-parallelism
2•GreenGames•16m ago•0 comments

Ask HN: Is the GitHub pancake menu now a pancake emoji?

11•sac2171•17m ago•4 comments

U.S. Sees Iran as Likely Behind Cyberattack on Minnesota Water Systems

https://www.nytimes.com/2026/07/30/us/politics/minnesota-water-cyberattack-iran.html
4•aaronharnly•17m ago•0 comments

Chicago's New Bike Lanes Spark a Rebellion from Businesses

https://www.wsj.com/us-news/chicagos-new-bike-lanes-spark-a-rebellion-from-businesses-fbf67cdf
2•JumpCrisscross•17m ago•0 comments

IBM says quantum computers are getting harder to verify. That's progress

https://thenewstack.io/ibm-quantum-advantage-verification/
2•Brajeshwar•18m ago•0 comments

LLM Routers Have Become a Service Category of Their Own

https://techstrong.ai/articles/llm-routers-have-become-a-service-category-of-their-own/
3•CrankyBear•18m ago•0 comments

Read This Before You Buy That TV Streaming Stick

https://krebsonsecurity.com/2026/07/read-this-before-you-buy-that-tv-streaming-stick/
21•speckx•21m ago•2 comments

Ask HN: Do you see a Pancake in the top left menu at Github.com?

11•MatMercer•22m ago•10 comments

Show HN: Agentic – Run Claude Code on different models with routing and budgets

https://github.com/MaorBril/agentic
1•maorbril•22m ago•0 comments

The Download: tricking LLMs, and reviving geothermal plants

https://www.technologyreview.com/2026/07/30/1140936/the-download-tricking-llms-reviving-geothermal/
2•joozio•24m ago•0 comments

Mission to Save Falling NASA Space Telescope Suffers Setback

https://www.nytimes.com/2026/07/30/science/nasa-swift-link-rescue-mishap.html
1•jacquesm•24m ago•0 comments

X.com Money

https://money.x.com/en
1•surprisetalk•24m ago•1 comments

Why Are These Whales Floating Upside-Down? Moms Need a Break from Feeding Babies

https://www.smithsonianmag.com/smart-news/why-are-these-whales-floating-upside-down-they-might-ju...
1•ulrischa•24m ago•0 comments

I asked Claude to reimplement Apple's LZRAVEN codec in C, conformance-tested

https://github.com/anat0m1a/liblzraven
2•anat0m1a•25m ago•0 comments

Claude helps reduce our technical debt

https://ninkovic.dev/blog/2026/how-claude-helps-reduce-our-technical-debt
1•ulrischa•26m ago•0 comments