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.

How Claude Code works in large codebases

https://claude.com/blog/how-claude-code-works-in-large-codebases-best-practices-and-where-to-start
2•shenli3514•6m ago•0 comments

The Two Sleeps

https://dylan.gr/1775146616
1•James72689•6m ago•0 comments

GitHub Copilot has released a preview of usage-based billing

https://old.reddit.com/r/GithubCopilot/comments/1tbb5bj/github_copilot_has_finally_released_a_pre...
1•jay_kyburz•7m ago•0 comments

Waymo recalls 1000s of driverless cars after some failed to avoid flooded roads

https://www.latimes.com/business/story/2026-05-14/waymo-recalls-thousands-of-its-driverless-cars-...
1•petethomas•18m ago•0 comments

Coldkey – Post-quantum age key generation and paper backup tool

https://github.com/pike00/coldkey
2•pike00•19m ago•0 comments

Latvian government collapses after Ukrainian drones strike oil facility

https://www.theglobeandmail.com/world/article-latvian-government-collapses-after-ukrainian-drones...
2•petethomas•25m ago•0 comments

Musk accused of 'selective amnesia,' Altman of lying as OpenAI trial nears end

https://www.reuters.com/sustainability/society-equity/elon-musks-court-battle-against-openai-ente...
4•jnord•25m ago•0 comments

Details of the Daring Airdrop at Tristan Da Cunha

https://www.tristandc.com/government/news-2026-05-11-airdrop.php
2•kspacewalk2•25m ago•0 comments

White-collar workers report growing feelings of 'AI brain fry'

https://www.ft.com/content/0ba3bd4f-cc3a-4cad-8a8e-76925da2a711
3•1vuio0pswjnm7•30m ago•0 comments

How Do VPNs Protect Your Privacy? VPN Overview

https://www.privacyguides.org/en/basics/vpn-overview/
3•Cider9986•32m ago•0 comments

Secrets at Rest: SOPS and Age for Docker Compose Homelabs

https://pikemd.com/blog/sops-age-docker-compose/
3•pike00•34m ago•0 comments

Self-destructing $2k Nvidia chips for distributed solar data ctrs in lampposts

https://www.techradar.com/pro/self-destructing-usd2-000-nvidia-chips-will-soon-power-tens-of-thou...
2•toss1•36m ago•0 comments

I ran forensics on closed models and discovered no one is using dense attention

https://blog.0xmmo.co/forensics/post.html
1•mmoustafa•40m ago•0 comments

Countdown to Apophis Close Approach–Cascading Hazards from Asteroid Impacts

https://pubs.usgs.gov/publication/fs20253028/full
1•rolph•40m ago•0 comments

Systematically Auditing AI Agent Benchmarks with BenchJack

https://arxiv.org/abs/2605.12673
1•matt_d•43m ago•0 comments

Show HN: Trailmaps.app – Mobile maps that match the trail

https://trailmaps.app/
1•c0nsumer•46m ago•2 comments

Musk's China trip during OpenAI trial prompts apology from his lawyer

https://www.cnbc.com/2026/05/14/musk-lawyer-trial-jury-china-trip-openai-altman.html
1•1vuio0pswjnm7•49m ago•0 comments

How to Fix "DMARC Quarantine/Reject Policy Not Enabled"

https://dmarcguard.io/blog/dmarc-policy-not-enabled-fix/
1•meysamazad•50m ago•0 comments

How do you tell who's thinking?

https://willhackett.com/borrowed-cognition/
1•meysamazad•50m ago•0 comments

Ingest – Capture Anything from Anywhere

https://edleeman.co.uk/posts/ingest-capture-anything-from-anywhere/
2•meysamazad•51m ago•0 comments

Cowboy files plans for up to 20k orbital data centers

https://spacenews.com/cowboy-files-plans-for-up-to-20000-orbital-data-centers/
2•defrost•52m ago•0 comments

Bay Area customers may face warnings, fees under Recology's new camera system

https://www.sfgate.com/local/article/recology-cameras-22259377.php
1•turtlegrids•53m ago•1 comments

Water on Earth

https://www.scientificamerican.com/article/its-a-water-full-world/
2•soupspaces•55m ago•0 comments

Big tech is sacrificing its cashflows to prop up the AI boom

https://www.economist.com/business/2026/05/13/big-tech-is-sacrificing-its-cashflows-to-prop-up-th...
3•1vuio0pswjnm7•55m ago•2 comments

Possible Samsung strike puts more pressure on memory pricing

https://www.theregister.com/systems/2026/05/15/possible-samsung-strike-puts-even-more-pressure-on...
1•jnord•58m ago•0 comments

Beyond Git: Coordinating humans, agents, and automation in a repo with a ledger

https://www.mentu.ai/blog/beyond-git
2•rashidae•59m ago•2 comments

Audit of Serai's Substrate Blockchain

https://serai.exchange/2026/04/15/serai-blockchain-audited.html
1•Cider9986•59m ago•0 comments

The secretive and lucrative world of orchid breeding

https://www.bbc.com/news/articles/cly039rr2mgo
1•y1n0•1h ago•0 comments

Spam Resistant Forges

https://blog.feld.me/posts/2026/05/spam-resistant-forges/
1•y1n0•1h ago•0 comments

Untangling Communication (2001) [pdf]

https://dhemery.com/pdf/untangling_communication.pdf
1•mooreds•1h ago•0 comments