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•10mo 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•10mo 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•10mo 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.

Basecamp Becomes Agent Accessible

https://world.hey.com/dhh/basecamp-becomes-agent-accessible-3ae6b949
1•FigurativeVoid•46s ago•0 comments

Memory Crystal – persistent memory for AI agents (MIT)

https://github.com/memorycrystal/memorycrystal
1•memorycrystal•1m ago•0 comments

Truck hunting on the Ho Chi Minh trail

https://historynet.com/truck-hunting-ho-chi-minh-trail/
1•berkeleyjunk•3m ago•0 comments

Migrating Infrastructure Off Coolify

https://www.coryd.dev/posts/2026/migrating-infrastructure-off-coolify
1•cdrnsf•5m ago•0 comments

The telnyx packages on PyPI have been compromised

https://lwn.net/Articles/1065059/
4•amcclure•7m ago•0 comments

The many failures leading to the LiteLLM compromise

https://lwn.net/SubscriberLink/1064693/d00a7f49a30161da/
1•amcclure•8m ago•0 comments

Was the Iran War Caused by AI Psychosis?

https://houseofsaud.com/iran-war-ai-psychosis-sycophancy-rlhf/
2•decimalenough•8m ago•0 comments

Journaling for people who don't journal

https://maxgirkins.com/writings/email-to-self
1•mgirkins•8m ago•0 comments

A new TypeScript CSS parser with all modern features (nesting, scopes,)

https://github.com/node-projects/css-parser
1•jogibear9988•9m ago•0 comments

GM requires you to submit their opt-out form multiple times with name variations

https://gmcontactpreferences.com/opt-out-all.jsp
2•zephyreon•9m ago•2 comments

David Sacks Is No Longer the White House AI and Crypto Czar

https://www.theverge.com/policy/902140/david-sacks-out-ai-crypto-czar
1•kklisura•10m ago•0 comments

AI data centres can warm surrounding areas by up to 9.1°C

https://www.newscientist.com/article/2521256-ai-data-centres-can-warm-surrounding-areas-by-up-to-...
2•johnbarron•10m ago•0 comments

My Prodigal Brainchild

https://nealstephenson.substack.com/p/my-prodigal-brainchild
3•jethronethro•12m ago•0 comments

Colorado House passes bill to limit surveillance pricing and wage setting

https://coloradonewsline.com/briefs/surveillance-pricing-wage-setting/
1•jprs•13m ago•0 comments

'Using AI to manipulate the truth is not on'

https://www.bbc.com/news/articles/cly7v7ng9nno
4•devonnull•13m ago•0 comments

Inria Global Font

https://black-foundry.com/case-studies/inria-identity-font/
5•smartmic•14m ago•0 comments

Wax: Optimizing Data Center Applications with Stale Profile

https://github.com/ice-rlab/wax
1•matt_d•18m ago•0 comments

The SEO parasites buying, exploiting and ultimately killing online newsbrands

https://pressgazette.co.uk/news/the-seo-parasites-buying-exploiting-and-ultimately-killing-online...
1•thm•20m ago•1 comments

Improve Privacy by Running a DNS Server Without Forwarder

https://louwrentius.com/improve-privacy-by-running-a-dns-server-without-forwarder.html
1•louwrentius•20m ago•0 comments

I Built an Open-World Engine for the N64

https://www.youtube.com/watch?v=lXxmIw9axWw
2•gargan•21m ago•1 comments

Enter the Lebenswelt: AI and Our Life-World

https://deepsub.substack.com/p/enter-the-lebenswelt-ai-and-our-life
1•dsubburam•22m ago•0 comments

We built AvisYou.com – and why it helps small teams and solo devs

https://avisyou.com
1•avis-you•22m ago•0 comments

ISBN Visualization – Annas Archive

https://annas-archive.gd/isbn-visualization?
1•Cider9986•22m ago•0 comments

The New Billionaires of the A.I. Boom

https://www.nytimes.com/2025/12/29/technology/new-billionaires-ai-boom.html
1•paulpauper•26m ago•0 comments

Digging Out of the U.S. Housing Affordability Crisis

https://www.cbreim.com/insights/articles/digging-out-of-the-us-housing-affordability-crisis
1•paulpauper•26m ago•0 comments

The 'shadow realm' of the affordability crisis

https://www.cnn.com/2026/03/22/us/working-homeless-affordability-brian-goldstone
2•paulpauper•27m ago•1 comments

Dijkstra's Shortest-Path Algorithm: A visual exploration, following Sedgewick

https://joshmpollock.com/dijkstras-algorithm-article/
1•matt_d•27m ago•0 comments

A critical 9.8 CVSS (ZDI-CAN-30207) hits Telegram

https://twitter.com/the_yellow_fall/status/2037464498097803344
1•n4bz0r•35m ago•0 comments

Conservative Treatment for Endobronchial Blast Injury with Tracheal Rupture

https://onlinelibrary.wiley.com/doi/10.1002/ccr3.72363
1•rollulus•36m ago•1 comments

Imagine quitting bad habits with memes

https://apps.apple.com/us/app/quit-all-break-every-habit/id6760978934
1•apoorvdarshan•38m ago•1 comments