frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Space race: Why Portugal is reaching for the stars

https://www.dw.com/en/space-race-why-portugal-is-reaching-for-the-stars/a-77303795
1•JoeDaDude•45s ago•0 comments

Ask HN: Are multifocal lenses important for older people who don't drive?

1•amichail•2m ago•0 comments

AI is making it very easy for the government to spy on you

https://www.nbcnews.com/tech/security/ai-making-easy-government-spy-lawmakers-are-worried-rcna341499
1•1vuio0pswjnm7•2m ago•0 comments

Equibles – Open-source, self-hosted mini Bloomberg Terminal for AI agents

https://github.com/daniel3303/Equibles
1•daniel3303•3m ago•0 comments

Déjà View: Looping Transformers for Multi-View 3D Reconstruction

https://research.nvidia.com/labs/dvl/projects/dvlt/
1•theschwa•4m ago•0 comments

AI is crushing a generation of startups built before ChatGPT

https://www.cnbc.com/2026/06/01/ai-startup-valuations-pre-chatgpt.html
1•judahmeek•4m ago•0 comments

A New Chapter for Contentful: Scaling Our Vision with Salesforce

https://www.contentful.com/blog/a-new-chapter-for-contentful/
1•ipmb•5m ago•0 comments

Meteor Explodes over Massachusetts

https://www.nbcboston.com/news/local/meteor-explodes-over-massachusetts-what-we-know-and-where-it...
1•1970-01-01•7m ago•0 comments

Resident group's objections to bar licences 'destroying Soho's reputation'

https://www.theguardian.com/uk-news/2026/may/30/bar-restaurant-licence-challenges-destroying-soho...
1•mellosouls•9m ago•0 comments

Remote work, not AI, has sidelined recent college graduates, research finds

https://text.npr.org/nx-s1-5843076
2•hi41•11m ago•1 comments

Rebuilding isitchristmas.com with Claude's dynamic workflows (and 484 agents)

https://benjaminste.in/isitchristmas/
1•benstein•11m ago•1 comments

Surf exposed webcams like TV channels

https://alec.is/posts/building-omegle-for-exposed-webcams/
1•arm32•12m ago•0 comments

NBD-VRAM Provides Swap Space on Your Nvidia GeForce GPUs

https://www.phoronix.com/news/NVIDIA-NBD-VRAM
1•Bender•12m ago•0 comments

Niri Is Not for Me

https://arijan.dev/posts/niri-not-for-me/
1•arijanj•12m ago•0 comments

Linux 7.2 Proceeding to Deprecate Af_alg Due to "Massive Attack Surface"

https://www.phoronix.com/news/Linux-AF-ALG-Deprecation
2•Bender•13m ago•1 comments

Intel Preparing WiFi 8 "UHR" Support for Their Iwlwifi Linux Driver

https://www.phoronix.com/news/Intel-IWL-WiFi-UHR-Linux-7.2
1•Bender•13m ago•0 comments

Bringing Goodnotes to the Web with Swift and WebAssembly

https://swift.org/blog/bringing-goodnotes-to-web-with-swift/
1•frizlab•14m ago•0 comments

Remote Work Leaves Younger Workers Sidelined

https://libertystreeteconomics.newyorkfed.org/2026/06/remote-work-leaves-younger-workers-sidelined/
1•orthogonal_cube•14m ago•0 comments

Concord, an Alternative

https://github.com/ryttps94jq-gif/concord-cognitive-engine
1•dutchtropez•14m ago•1 comments

Running local RAG AI on MacBook neos

https://securethink.co.uk/
1•hubsy•14m ago•0 comments

You Don't Love Systemd Timers Enough

https://blog.tjll.net/you-dont-love-systemd-timers-enough/
1•birdculture•14m ago•0 comments

Stanley Cup Final Starts Tomorrow – VGK vs. Car

https://bet-props.com/
1•Julle•15m ago•0 comments

Wise investigated for half a billion in suspicious transactions

https://www.thebureauinvestigates.com/stories/2026-06-01/money-transfer-giant-wise-investigated-f...
1•dgellow•15m ago•0 comments

How to Talk to Your Coworkers

https://idiallo.com/blog/how-to-talk-to-your-coworkers
1•foxfired•18m ago•0 comments

Show HN: Soft Body Jiggle Physics

https://github.com/xloveee/jiggle-physics
1•vesperance•18m ago•0 comments

We Are Living in Pinocchio's World

https://om.co/2026/05/25/we-are-living-in-pinocchios-world/
3•mattas•19m ago•0 comments

Garry Tan: Stop building Foxconn factories for your agents

https://twitter.com/garrytan/status/2061454423034110372
3•Umofomia•19m ago•0 comments

Anthropic Opus 4.8 is new SOTA on ARC-AGI-3, Score: 1.5%, –$10K

https://xcancel.com/arcprize/status/2061512025638121516
2•szatkus•19m ago•0 comments

Microsoft's Postgres VS Code extension now available for Cursor

https://techcommunity.microsoft.com/blog/adforpostgresql/your-postgresql-workflow-just-found-its-...
2•aquilaFiera•20m ago•0 comments

Computex 2026: Intel Launches Crescent Island GPU with Up to 480GB VRAM

https://www.neowin.net/news/computex-2026-intel-launches-crescent-island-gpu-with-up-to-480gb-vram/
1•theanonymousone•21m ago•1 comments