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•7mo 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•7mo 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•7mo 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.

Cosmic Blast May Be First-Ever Superkilonova Observed

https://www.scientificamerican.com/article/strange-cosmic-blast-may-be-first-ever-superkilonova-o...
1•akshay326•19s ago•0 comments

The Race for College Admission

https://www.peachykeenan.com/p/the-race-for-college
1•bilsbie•51s ago•0 comments

A Time of Technical Deflation

https://www.danshapiro.com/blog/2025/12/this-is-a-time-of-technical-deflation/
1•danshapiro•1m ago•0 comments

Native NVMe in Windows Server 2025: Ushering in a New Era of Storage Performance

https://techcommunity.microsoft.com/blog/windowsservernewsandbestpractices/announcing-native-nvme...
1•ksec•3m ago•0 comments

Venezuela's Navy Begins Escorting Ships as U.S. Threatens Blockade

https://www.nytimes.com/live/2025/12/17/us/trump-news
2•belter•5m ago•0 comments

Real-time fleet data, trip logging, and analytics for Tesla robotaxis

https://www.teslarobotaxitracker.com/
1•hnburnsy•5m ago•0 comments

Gut Bacteria from Amphibians and Reptiles Achieve Complete Tumor Elimination

https://www.jaist.ac.jp/english/whatsnew/press/2025/12/17-1.html
3•Xunxi•7m ago•0 comments

As reefs vanish, assisted coral fertilization offers hope in Dominican Republic

https://apnews.com/article/coral-reef-restoration-fertilization-climate-environment-dominican-329...
2•petethomas•9m ago•0 comments

Google Search now hides the number of results by default (2024)

https://9to5google.com/2024/05/07/google-search-hides-number-of-results/
1•bariumbitmap•9m ago•0 comments

Open Game Eval: an eval for agentic Lua game development in Roblox

https://github.com/Roblox/open-game-eval
2•kartayyar•11m ago•0 comments

Coinbase announces stock trading and new Kalshi-based prediction markets

https://fortune.com/2025/12/17/coinbase-announces-stock-trading-and-new-kalshi-based-prediction-m...
1•Olshansky•15m ago•0 comments

America's Work-from-Home Capitals Are in a Sorry State

https://www.economist.com/graphic-detail/2025/11/27/americas-work-from-home-capitals-are-in-a-sor...
4•karakoram•18m ago•1 comments

Warmer ocean currents significantly destabilize ice sheets,driving their retreat

https://phys.org/news/2025-12-warmer-ocean-currents-significantly-destabilize.html
1•bikenaga•19m ago•1 comments

OpenGameEval: Eval Framework to Benchmark Agentic AI Assistants

https://corp.roblox.com/newsroom/2025/12/opengameeval-benchmark-agentic-ai-assistants-roblox-studio
3•moneil971•24m ago•1 comments

Gemini 3 Flash

https://simonwillison.net/2025/Dec/17/gemini-3-flash/
2•slig•26m ago•2 comments

American Academy of Pediatrics loses HHS funding after criticizing RFK Jr.

https://www.washingtonpost.com/health/2025/12/17/aap-hhs-funding-rfk/
41•voxadam•27m ago•7 comments

Young People's Mental Health Is Improving. Tech Alarmists Take Note

https://reason.com/2025/12/15/young-peoples-mental-health-is-improving-tech-alarmists-take-note/
1•pseudolus•28m ago•1 comments

The Cybernetic Teammate: A Field Experiment on Generative AI Reshaping Teamwork

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5188231
1•_____k•33m ago•0 comments

What Happens to a Startup When Venture Capitalists Replace the Founder

https://hbr.org/2018/02/research-what-happens-to-a-startup-when-venture-capitalists-replace-the-f...
1•tylerdane•33m ago•0 comments

On Leadership: Dialing Your Translucency

https://jeremyjenkins.me/blog/on-leadership-dialing-your-translucency/
1•mooreds•37m ago•0 comments

Cheap and easy ways to stock your emergency go bag

https://text.npr.org/nx-s1-5320173
1•mooreds•37m ago•0 comments

The New Wealth of Nations

https://foreignpolicy.com/2025/12/03/instrumental-capital-sovereign-wealth-funds-gulf/
1•mooreds•38m ago•0 comments

Show HN: Prompt-refiner – Lightweight optimization for LLM inputs and RAG

https://github.com/JacobHuang91/prompt-refiner
1•xinghaohuang•38m ago•0 comments

Show HN: I built a Resume Compiler because the ATS rejected my PDF

https://www.resumefy.pro/
1•lpipe•41m ago•1 comments

A Man Who Wanted to Believe in Life on Mars

https://newrepublic.com/article/202815/martians-book-review-man-believe-life-mars
1•Petiver•43m ago•0 comments

Valid Polish: Polish is the language of the Digerati

https://validpolish.com/
7•kyyt•44m ago•1 comments

OpenSUSE vs. Manjaro: Which Powerhouse Linux Distro Is Best?

https://www.zdnet.com/article/opensuse-versus-manjaro-linux-distros-compared-new-experienced-users/
1•TheWiggles•44m ago•2 comments

Laptop Linux: A (perhaps too deep) Dive into a Kernel Oddity

https://rohan.ga/blog/laptop_brightness/
1•ocean_moist•45m ago•0 comments

Mosquitoes capture ecosystems in their blood meals

https://news.ufl.edu/2025/12/mosquito-feeding/
1•geox•45m ago•0 comments

NOAA deploys new generation of AI-driven global weather models

https://www.noaa.gov/news-release/noaa-deploys-new-generation-of-ai-driven-global-weather-models
4•hnburnsy•46m ago•0 comments