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.

North Korea built the best army of hackers

https://www.cnn.com/2026/11/29/asia/north-korea-hacking-capabilities-intl-hnk-dst
1•extasetoi12•32s ago•0 comments

Ask HN: Will Intel Succeeded?

1•roschdal•45s ago•0 comments

Starmind: Shooting the AI datacenter into space. Why?

https://neatread.net/starmind-shooting-the-ai-datacenter-into-space-why
1•piter691777•1m ago•0 comments

Australia's duty of care law lets platforms assess their own safety risks

https://ajaychavda.com/blog/australia-s-duty-of-care-law-lets-platforms-assess-their-own-safety-r...
1•romania1•3m ago•0 comments

Faceball – a try new things experiment

https://trynewthings.fail/experiments/faceball/
1•fjallstrom•8m ago•0 comments

The Death of TTPs – Autonomous Cyber Attacks in the Wild [video]

https://www.youtube.com/watch?v=7q7CSxntccw
1•_voidtrace•10m ago•0 comments

The Cognitive Art of Feynman Diagrams (eBook) – Edward R. Tufte

https://www.edwardtufte.com/book/the-cognitive-art-of-fyenman-diagrams-ebook/
1•icc97•12m ago•0 comments

Ten tracks from the game of my childhood

https://www.openstreetmap.org/user/darkonus/diary/409740
1•altilunium•14m ago•0 comments

The backlash over 'fake' assistance dogs

https://www.bbc.co.uk/news/articles/ck1l0e2rdyd1o
1•mellosouls•15m ago•0 comments

What the Top Roblox Games Put on Their Game Page (2026 Data Study)

https://rbxgfx.com/blog/roblox-top-games-thumbnails-study
1•visiohex•15m ago•0 comments

Ask HN: Has anyone noticed Gemini Neon being overly enthusiastic?

1•_voidtrace•17m ago•0 comments

Living in the Post LLM Era

https://k1024.org/posts/2026/2026-11-28-living-post-llm-era/
1•edward•17m ago•0 comments

Proposal: Highway Crossing Cleanup

https://wiki.openstreetmap.org/wiki/Proposal:Highway_crossing_cleanup
1•altilunium•19m ago•0 comments

Building my AI harness in 2026

https://vhaudiquet.fr/blog/building-my-ai-harness-2026/
1•vhaudiquet•19m ago•0 comments

The Super El Niño Just Exposed the US Nuclear Waste Problem [video]

https://www.youtube.com/watch?v=hJ1-BgIanB4
2•xbmcuser•36m ago•0 comments

Show HN: Local HN-Brief

https://github.com/5L-Labs/hn-brief
1•n7e_5l_labs•36m ago•0 comments

Mindfulness training brings out the worst in some employees

https://www.usf.edu/business/news/2026/11-16-mindfulness-training-brings-out-the-worst-in-some-em...
1•workpsychnotes•38m ago•0 comments

Can photons interfere? My favorite weird quantum experiment

https://skullsinthestars.com/2026/11/26/can-photons-interfere-my-favorite-weird-quantum-experiment/
1•sohkamyung•41m ago•0 comments

Show HN: A free browser-based banner and logo maker (no signup, no watermark)

https://sitetoolsbox.com/tool.php?slug=badge-maker
1•sitetoolsbox•42m ago•0 comments

Contra Scott on SURA

https://vitalik.eth.limo/general/2026/11/28/contra_scott_on_sura.html
2•reducesuffering•43m ago•0 comments

Show HN: Videotex-UI – a React UI kit inspired by the French Minitel

https://github.com/Gleaming0427/videotex-ui
2•Gleaming0427•45m ago•0 comments

Anthropic Denies Claude Sabotaged Code, Attributes Errors to 'Overcaution'

https://twitter.com/edwinarbus/status/2126507795642187855
3•k9294•46m ago•0 comments

GTA 6 is a tech demo and a playable ad for GTA 6 Online. Change my mind

2•DmitryO•47m ago•3 comments

Everything about my smart home and homelab setup

https://swiftrocks.com/everything-about-my-smart-home-and-homelab-setup
1•rockbruno•47m ago•0 comments

'Enormous fear': Scientist shares arrest by ICE despite pristine paper trail

https://www.science.org/content/article/enormous-fear-scientist-shares-arrest-ice-despite-pristin...
3•Alien1Being•51m ago•0 comments

Get a Cable Modem Go to Jail

http://telecom.csail.mit.edu/judy-sammel.html
1•romania1•55m ago•0 comments

Show HN: macOS Spotlight Replacement

https://github.com/kunkka19xx/look
2•kunkka19xx•1h ago•3 comments

Show HN: Built a Chess Coach

https://chessrx.live/
2•divyanshusingh•1h ago•1 comments

UltraMath – Pure-JS/WebGL2 graphing calculator with 8D Clifford algebra

1•Ultra-guy•1h ago•1 comments

OpenAI: iFood ran 25k coding agent tasks across 15k repo at $0.04 per run

https://openai.com/business/customer-stories/ifood/
1•StackMoth•1h ago•0 comments