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.

The CEO of AWS on why Amazon is hiring 11,000 interns and junior employees

https://www.platformer.news/matt-garman-aws-ceo-interview-ai-jobs/
1•thm•37s ago•0 comments

Built an open-source cloud sandbox lab for students and Teachers

https://github.com/Derssa/Torollo
1•derssa•47s ago•0 comments

China says it has a right to target people overseas with new ethnic unity law

https://uk.news.yahoo.com/china-says-target-people-overseas-062038094.html
1•Teever•3m ago•0 comments

Qualcomm to Acquire Modular

https://investor.qualcomm.com/news-events/press-releases/news-details/2026/Qualcomm-to-Acquire-Mo...
1•timmyd•3m ago•0 comments

When work is a chat box, the desk becomes optional

https://www.natebrake.com/blog/aoe-web-dashboard-out-of-beta
1•river_otter•4m ago•0 comments

Americana Through the Eyes of World Cup Fans

https://www.forbes.com/sites/dawnthilmany/2026/06/21/americana-through-the-eyes-of-world-cup-fans/
1•mooreds•5m ago•0 comments

Cardiometabolic Health in Pregnancy

https://www.jacc.org/doi/10.1016/j.jacadv.2026.102804
1•brandonb•5m ago•0 comments

Show HN: CLI and MCP for model fusion via harnesses

https://github.com/KerryRitter/parley
1•kerryritter•8m ago•0 comments

Texas man sentenced to 30 years for transporting pamphlets

https://freedom.press/issues/texas-man-sentenced-to-30-years-for-transporting-pamphlets/
17•kevinwang•10m ago•2 comments

White House app auto-downloads to government phones, can't be uninstalled

https://www.wired.com/story/story/government-workers-cant-get-the-white-houses-app-off-their-phones/
1•pseudolus•10m ago•0 comments

Vercel Eve Starter

https://github.com/blazity/atlas-eve-starter
1•-jablonski•10m ago•0 comments

A Case for AI Taboos

https://nathanschneider.info/2026/06/a-case-for-ai-taboos/
1•ntnsndr•11m ago•0 comments

Extreme heat is muddling animals' brains–and even triggering aggression

https://www.scientificamerican.com/article/extreme-heat-is-muddling-animals-brains-and-even-trigg...
1•speckx•12m ago•0 comments

Show HN: inplan – plan with your coding agent in a shared Markdown doc

1•diane-cis•15m ago•0 comments

Ephemeral Perception: A Reference Architecture for On-Device AI Glasses

https://www.levinriegner.com/research/ephemeral-perception
1•ileider•16m ago•0 comments

Chinese supercomputer leapfrogs best US machines to be ranked fastest

https://www.theguardian.com/technology/2026/jun/24/china-supercomputer-world-fastest-top500-ranki...
1•pseudolus•16m ago•0 comments

Show HN: Sixwhyo – Your code reviewed by a six-year-old (and he's not wrong)

https://6yo.dev
1•hxii•17m ago•0 comments

Interview with Jim Goodnight, July 22, 1999

https://docsouth.unc.edu/sohp/I-0073/I-0073.html
1•thomasjb•17m ago•0 comments

Elevated error rate on Claude Opus 4.8

https://status.claude.com/incidents/8b0rggdfh1hv
4•lvncelot•17m ago•1 comments

France confirms first Ebola case in doctor returning from DR Congo mission

https://www.france24.com/en/france/20260624-france-confirms-first-ebola-case-in-doctor-returning-...
1•speckx•17m ago•0 comments

Show HN: Munin – OSS HubSpot alternative I built in a month with Claude Code

https://github.com/getmunin/munin
1•kman_85•17m ago•0 comments

Qualcomm Is Acquiring Modular

https://twitter.com/clattner_llvm/status/2069769232477192354
2•tosh•20m ago•0 comments

An Existential Guide To: Asking for Help

https://theshadowedarchive.substack.com/p/an-existential-guide-to-asking-for
1•jger15•21m ago•0 comments

How do you keep Web MIDI from crashing a 1983 synthesizer?

https://knob.monster/how-do-you-keep-web-midi-from-crashing-a-1983-synthesizer
1•halfradaition•21m ago•0 comments

I built a local AI deck music assistant on a Mac mini

https://github.com/wkswede/robot-deck-audio
1•wkswede•21m ago•0 comments

How Bod 26-04 Is Coming for Your Vulnerability Management Program

https://www.cybrsecmedia.com/federal-agency-or-not-how-bod-26-04-is-coming-for-your-vulnerability...
1•speckx•21m ago•0 comments

Project Setti

https://readme.dm/project-setti/
1•epaga•22m ago•0 comments

Stars light up largest and most detailed shot of Milky Way's centre

https://www.theguardian.com/science/2026/jun/24/stars-galactic-bulge-milky-way-euclid-telescope
1•sandebert•23m ago•0 comments

Walmart to Acquire Vibe.co to Expand Access to Connected TV Advertising

https://corporate.walmart.com/news/2026/06/23/walmart-to-acquire-vibe-co-to-expand-access-to-conn...
1•cstever•24m ago•0 comments

System design rules I always come back to

https://www.thetrueengineer.com/p/10-system-design-rules-i-always-come
5•andrewstetsenko•25m ago•0 comments