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.

Vulnerability Reports are not Special Anymore

https://words.filippo.io/vuln-reports/
2•goranmoomin•3m ago•0 comments

FAA awards software and AI contract as part of air traffic control modernization

https://www.nextgov.com/acquisition/2026/06/faa-awards-software-and-ai-contract-part-air-traffic-...
1•WaitWaitWha•7m ago•0 comments

House passes bill to lower housing costs, sending it to Trump's desk

https://www.nbcnews.com/politics/congress/house-passes-sweeping-bill-lower-housing-costs-sending-...
1•toomuchtodo•7m ago•3 comments

AI systems out-persuade expert humans

https://arxiv.org/abs/2606.16475
1•marojejian•9m ago•1 comments

Russia forces universities to teach drone warfare from September 2026

https://mezha.net/eng/bukvy/c3b94111_russia_forces_universities/
1•gnabgib•10m ago•0 comments

Reinforcement learning towards broadly and persistently beneficial models

https://alignment.openai.com/beneficial-rl/
1•vesteny77•14m ago•0 comments

The Secret Life of Circuits by Michal Zalewski (lcamtuf)

https://nostarch.com/secret-life-of-circuits
1•Curiositry•14m ago•0 comments

Russian Warship RIP – Tracking Losses

https://russianwarship.rip/en
2•sans_souse•15m ago•0 comments

Talk to Your Plant

https://github.com/openai/planttalk
2•bakigul•16m ago•0 comments

Let's say you're hungry for a sandwich

https://beige.party/@Lana/116795397010653803
2•colinprince•16m ago•0 comments

ClaudeMeter – macOS menu bar app to track Claude usage and limits

https://github.com/yotake/claude-meter
2•chibeeMan•17m ago•0 comments

Show HN: Freestyle – Wispr Flow Alternative that respects privacy

https://github.com/freestyle-voice/freestyle
1•matteo8p•18m ago•0 comments

This Word Does Not Exist

https://www.thisworddoesnotexist.com/
2•SpyCoder77•18m ago•0 comments

AI stock slump raises the question are investors taking profits or very nervous

https://apnews.com/article/tech-stocks-ai-investments-8a0ff4c95d5cae6f65c6e2ba03047058
1•1vuio0pswjnm7•18m ago•0 comments

Extreme Heat conference cancelled due to extreme heat warning

https://www.lse.ac.uk/granthaminstitute/events/extreme-heat-improving-governance-and-strengthenin...
3•rendx•19m ago•0 comments

SpaceX Falls for Third Day, Erases $600B in Market Value

https://www.bloomberg.com/news/articles/2026-06-22/spacex-shares-poised-to-slide-again-as-us-mark...
1•1vuio0pswjnm7•20m ago•0 comments

Pilbara's North Pole Dome the oldest known asteroid crater

https://www.abc.net.au/news/2026-06-24/worlds-oldest-asteroid-crater-pilbara-confirmed/106818546
1•Gaishan•21m ago•0 comments

Generosity Is Potency

https://wastebook.substack.com/welcome
2•Curiositry•22m ago•0 comments

Postman launches passport for securing API secret access

https://blog.postman.com/postman-passport-secure-api-access-for-the-agentic-era/
1•paidsandserape•22m ago•0 comments

Building a Western gallium supply chain beyond China's reach

https://wpintelligence.washingtonpost.com/topics/energy-climate/2026/06/17/gallium-gamble-buildin...
1•bookofjoe•24m ago•1 comments

Advanced Nintendo Entertainment System (ANES) – NES Modded to Use 2 PPUs

https://github.com/decrazyo/anes
1•zdw•24m ago•0 comments

Just.witter – a voice feed. no text, no photos, no video, just voices

https://justwitter.com/
1•whatis1215•25m ago•0 comments

The Real-Time Rat Tracking Map

https://googlemapsmania.blogspot.com/2026/06/the-real-time-rat-tracking-map.html
1•gnabgib•26m ago•0 comments

Real Men Run as Root

https://www.garyshood.com/root/
2•helterskelter•28m ago•2 comments

Heap buffer overflow in WolfSSL SNI and ECH code

https://www.wiz.io/vulnerability-database/cve/cve-2026-5503
1•1vuio0pswjnm7•29m ago•0 comments

Lifting E-Graphs: A Function Isn't a Constant

https://arxiv.org/abs/2606.22734
1•matt_d•30m ago•0 comments

Apache Pulsar 5.0.0-M1: A Preview of the Next Major Release

https://pulsar.apache.org/release-notes/versioned/pulsar-5.0.0-M1/
1•matteomerli•32m ago•0 comments

Skills don't have a quality problem. They have a distribution problem

https://skillrepo.dev/blog/skills-distribution-problem
1•atxpace•34m ago•0 comments

How to Give a Technical Presentation (2005)

https://homes.cs.washington.edu/~mernst/advice/giving-talk.html
1•simojo•36m ago•0 comments

Measuring tech debt in tokens instead of engineering hours

https://heysoup.co/notes-tech-debt-token-function
1•heysoup•37m ago•0 comments