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.

Targeted marine cloud brightening weakens subsequent El Niño

https://www.science.org/doi/10.1126/sciadv.adx3012
1•musha68k•1m ago•0 comments

PDC 1996 Keynote with Bill Gates

https://learn.microsoft.com/en-us/shows/pdc-1996/pdc-1996-keynote-bill-gates
1•abixb•5m ago•1 comments

Show HN: Upscaled screenshots of specific DOM elements

https://addons.mozilla.org/en-US/firefox/addon/beermusic/
1•madprops•9m ago•0 comments

Show HN: Grow your SaaS visibility with AI-powered discovery

https://saaslyra.com
1•wowinter15•11m ago•0 comments

Music Speed Changer Web App

https://app.musicspeedchanger.com/
1•EvansFunTime•15m ago•0 comments

Government sponsored study on alcohol doesn't stand up to scrutiny: Nassim Taleb

https://nntaleb.substack.com/p/have-another-drink
3•scoofy•17m ago•0 comments

ProofRun – a local verification receipt for AI coding agents

https://github.com/yebiguo/ProofRun
1•yebiguo•18m ago•0 comments

ShieldFont: Bludgeoning AI Scrapers That Disrespect Robots.txt

https://hackaday.com/2026/08/14/shieldfont-bludgeoning-ai-scrapers-that-disrespect-robots-txt/
1•lxm•30m ago•0 comments

Men are turning to penis fillers despite the risks

https://www.bbc.com/news/articles/c626d3xqd83o
1•1659447091•37m ago•0 comments

Draftera – one workspace for personal and business documents

https://landing.draftera.ai/
1•Otiniel•37m ago•0 comments

ETFs tracking NHL team performance

https://www.sec.gov/Archives/edgar/data/1884021/000121390026090260/ea0302107-01_485apos.htm
1•LostMyLogin•37m ago•0 comments

South Korea proposes talks to officially end war with North

https://www.bbc.com/news/articles/c8en2z9jp2xo
3•thunderbong•53m ago•1 comments

RIS

https://github.com/santosardr/riskernel
1•r2ob•59m ago•1 comments

Axiotron Modbook

https://en.wikipedia.org/wiki/Modbook
1•RattlesnakeJake•1h ago•0 comments

Ask HN: How would you market this service?

1•dmzxnico•1h ago•0 comments

Data Center Fornicator [video]

https://www.youtube.com/watch?v=rkbcuajiPJA
1•yomismoaqui•1h ago•0 comments

Zapping Rocks Unlocks Stimulated Geologic Hydrogen

https://spectrum.ieee.org/stimulated-geologic-hydrogen
4•adm4•1h ago•0 comments

Show HN: Widen, a native Postgres GUI using Apple's on-device LLM

https://github.com/betocmn/widen
1•thedreammachine•1h ago•0 comments

Installing NixOS on my car: Part 1

https://surrealdev.com/rooting-the-cadillac-part-1-lay-of-the-land/
1•snipesyspecial•1h ago•0 comments

Has the hallucination problem in AI been solved?

1•spl757•1h ago•4 comments

Systemic Risks in the Managed PostgreSQL Industry: Extension Risks

https://mehmetince.net/part-1-6-systemic-risks-in-the-managed-postgresql-industry-extension-risks...
1•mkmk•1h ago•0 comments

Patterns and problems in emerging multi-agent systems

https://www.anthropic.com/research/multiagent-systems
3•maxutility•1h ago•1 comments

Fairly Ranking the Most Brilliant Birds

https://moultano.wordpress.com/2026/08/14/fairly-ranking-the-most-brilliant-birds/
2•karagenit•1h ago•0 comments

It's How You Ask: Gender-Associated Linguistic Bias in LLMs

https://arxiv.org/abs/2608.13328
18•sbulaev•1h ago•8 comments

US Space Force gives Rocket Lab $397M to build threat-tracking 'Flatellites'

https://www.space.com/space-exploration/satellites/us-space-force-gives-rocket-lab-usd397-million...
6•walrus01•1h ago•0 comments

A Workaphile's Apology

https://moalquraishi.wordpress.com/2026/08/10/a-workaphiles-apology/
2•superfx•1h ago•1 comments

Dario Amodei on Concentration of Power

https://xcancel.com/DarioAmodei/status/2088758816376807762
2•yurivish•1h ago•0 comments

Snail OS – Custom Firmware for the Xteink X4

https://snailos.org
2•alibosworth•1h ago•1 comments

Omarchy Quattro by DHH Released [video]

https://www.youtube.com/watch?v=F7fe9pa8OeE
2•ayatollah•1h ago•0 comments

Why Your Summer Wardrobe Should Include UV Protection, Linen Clothing

https://www.bloomberg.com/news/features/2026-08-14/why-your-summer-wardrobe-should-include-uv-pro...
3•petethomas•2h ago•1 comments