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.

Build your own vulnerability harness

https://blog.cloudflare.com/build-your-own-vulnerability-harness/
1•ianrahman•52s ago•0 comments

Django in TypeScript. Thanks Fable

https://github.com/bryanhoulton/tango
2•m0hit•5m ago•0 comments

OpenAI discontinues standalone browser ChatGPT Atlas in favor of new ChatGPT app

https://help.openai.com/en/articles/20001275-chatgpt-work-and-codex
1•thoughtpeddler•8m ago•0 comments

Star Just Ate a Planet, and It's Not Done Yet

https://www.nytimes.com/2026/07/09/science/space/planetary-engulfment-hungry-star.html
1•wglb•9m ago•0 comments

Why Do Some Soccer Players Cut the Heels Off Their Cleats?

https://www.wired.com/story/why-do-some-soccer-players-cut-the-heels-off-their-cleats/
1•littlexsparkee•13m ago•0 comments

Unveiling the Mysteries of Chimichurri: The Ultimate Guide to a Culinary Delight

https://churrascos.com/unveiling-the-mysteries-of-chimichurri/
1•Cider9986•13m ago•0 comments

Fidji Simo Leaves OpenAI

https://twitter.com/fidjissimo/status/2075353170927304861
2•doppp•15m ago•0 comments

Ask HN: Thoughts on AI in Personal Finance?

1•foxtrot8672•17m ago•1 comments

Show HN: Selvedge – long-term memory for AI-coded codebases

https://selvedge.sh/
1•masondelan•18m ago•0 comments

Russia bans diesel exports after Ukrainian attacks, straining global market

https://www.cnn.com/2026/07/09/business/russia-diesel-ban-ukrainian-strikes-intl
1•breve•25m ago•0 comments

What Happens When the Public Record Shrinks

https://www.theatlantic.com/newsletters/2026/07/trump-administration-public-record-data-holes/687...
1•paulpauper•26m ago•0 comments

Childhood and Education #20: Phones and Screens

https://thezvi.substack.com/p/childhood-and-education-20-phones
1•paulpauper•28m ago•0 comments

AI #176 Part 1: Doing It Live

https://thezvi.substack.com/p/ai-176-part-1-doing-it-live
1•paulpauper•29m ago•0 comments

Show HN: Fortress – Give your agents unlimited access to the web

7•armanluthra_•32m ago•1 comments

Ambient Website Background Clouds

https://github.com/paradise-runner/background-clouds
1•dividedcomet•39m ago•0 comments

I Made a JavaScript Obfuscater

https://potassiumv1.netlify.app/
1•ImOnHere•42m ago•0 comments

Command and Conquer: Red Alert Mac/Android/iOS ported using Codex

https://github.com/dk8827/ra-port
1•bananaboy•44m ago•1 comments

UST is bringing Claude to physical AI

https://www.anthropic.com/news/ust-claude
1•surprisetalk•44m ago•0 comments

China's giant Gobi solar plant runs after dark on salt, not batteries

https://electrek.co/2026/07/09/china-hami-solar-molten-salt-storage/
1•Bender•45m ago•0 comments

LibreOffice 26.8 Beta Released for Improving This Free Software Office Suite

https://www.phoronix.com/news/LibreOffice-26.8-Beta-1
3•Bender•45m ago•1 comments

Linux Prepares for New USB-C Security Feature on Lenovo ThinkPads

https://www.phoronix.com/news/ThinkPad-USB-C-Restricted-Mode
2•Bender•46m ago•0 comments

Phone on Feminism

https://conversationalist.org/2019/09/13/feminism-explains-our-toxic-relationships-with-our-smart...
5•cratermoon•46m ago•2 comments

Karl Sims – Liquid Selves (1992)

https://www.karlsims.com/liquid-selves.html
1•connorboyle•48m ago•0 comments

Focus

https://boz.com/articles/focus
3•iacguy•49m ago•0 comments

Building an AI legal companion for domestic and sexual violence survivors

https://apps.apple.com/us/app/lea-by-legali-ai/id6759547127?see-all=reviews&platform=iphone
1•irawati_puteri•56m ago•1 comments

Volkswagen to Slash Half Its Models as Sales Fall

https://www.nytimes.com/2026/07/09/business/volkswagen-china-sales.html
3•bookofjoe•57m ago•2 comments

Stack Rankings: A Comprehensive Guide

https://www.thehumancapitalhub.com/articles/stacked-rankings-a-comprehensive-guide
1•akkartik•1h ago•0 comments

Can A.I. Keep a Parent Alive?

https://www.newyorker.com/news/as-told-to/can-ai-keep-a-parent-alive
1•petethomas•1h ago•0 comments

Study: "Mommy, do you love your phone more than me?"

https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2026.1766665/full
2•hbcondo714•1h ago•0 comments

Show HN: I built a free app for New Yorkers to save money on groceries

https://sbnyc.app/
9•eli_yumnik•1h ago•4 comments