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.

Re: [PATCH] OOM_pardon, a.k.a. don't kill my xlock

https://lwn.net/Articles/104185/
1•luu•1m ago•0 comments

Fork My Code, Please (2014)

https://www.skeeve.com/fork-my-code.html
1•Tomte•1m ago•0 comments

Millennials spend $252 on an average date, BMO finds

https://www.cnbc.com/2026/05/23/date-flation-average-millennial-date-costs-252.html
1•mooreds•3m ago•0 comments

Key Chemistry Question Answered, No Quantum Computer Required

https://www.quantamagazine.org/key-chemistry-question-answered-no-quantum-computer-required-20260...
1•anujbans•7m ago•0 comments

"Save Our Bacon" provision substantial setback for animal rights

https://www.nytimes.com/2026/05/30/opinion/pigs-farm-bill-meat-industry.html
1•marojejian•13m ago•1 comments

Written language as the shared substrate between literate brains and LLMs

https://systemicengineering.substack.com/p/what-i-am-made-of
1•wolf4earth•16m ago•0 comments

Sandboxes and Worktrees: My Secure Agentic AI Setup

https://mikemcquaid.com/sandboxed-agent-worktrees-my-coding-and-ai-setup-in-2026/
2•CoffeeOnWrite•20m ago•0 comments

I created a facet search over music composition

https://monictheory.com
1•midi_finder•21m ago•0 comments

Meta legal action forces Meta whistleblower to stay silent at Hay book festival

https://www.theguardian.com/technology/2026/may/31/meta-legal-action-forces-facebook-whistleblowe...
3•craighay1•24m ago•0 comments

National Science Foundation Suspends New Research Grants to Top Universities

https://www.nature.com/articles/d41586-026-01667-6a
1•karakoram•25m ago•1 comments

DOS Running in a PDF

https://crabby605.github.io/DOSPDF/out/DOS-in-a.pdf
4•zachlatta•26m ago•2 comments

"AI is as big a deal as the internet or mobile–and only as big." Benedict Evans [video]

https://www.youtube.com/watch?v=BD3vLtWhT5A
1•nilen•31m ago•1 comments

The SpaceX IPO is great for Elon Musk and terrible for you

https://www.theverge.com/ai-artificial-intelligence/940001/elon-musk-spacex-ipo-ai
5•_tk_•31m ago•0 comments

Git-courer – A complete, JSON-first Git layer for LLM agents

https://github.com/Alejandro-M-P/git-courer
1•blakok14•32m ago•0 comments

Noroboto and the PDF that lied twice

https://www.legalquants.com/blog/noroboto-and-the-pdf-that-lied-twice
1•AlexiosvdSK•32m ago•0 comments

Don't manage your AWS ECS deployments with IaC

https://newsletter.masterpoint.io/p/deploying-your-apps-into-ecs
1•mooreds•33m ago•0 comments

United flight to Spain returns to Newark after Bluetooth security concern

https://www.aerotime.aero/articles/united-flight-newark-bluetooth-security-concern
1•SVI•34m ago•0 comments

Quantized

https://nicoadamo.com/quantized/
2•spectralseq•35m ago•1 comments

Sergey Brin told Google staff that working 60 hours a week is the 'sweet spot'

https://fortune.com/article/sergey-brin-60-hour-work-week-ai-rto/
22•randycupertino•37m ago•22 comments

A practical guide for llms.txt so agents can read your site

https://docsalot.dev/blog/what-is-llms-txt
1•fazkan•37m ago•0 comments

GrillKit – Self-hosted AI trainer for technical interviews with voice

https://github.com/GrillKit/grillkit
1•vitchenkokir•38m ago•0 comments

Check Startup Names for Availability

https://nameclaim.xyz
2•chaghighat•41m ago•1 comments

Learn SQL Once, Use It for 30 Years

https://fagnerbrack.com/learn-sql-once-use-it-for-30-years-9aceb0bdee03
3•karakoram•43m ago•0 comments

Show HN: NowServingTO – Zero-DB restaurant directory using city open data

https://nowservingto.com/
1•Joshua_Opolko•43m ago•0 comments

DDS Vibe Academy – 49 free AI coding classes (12 new masterclasses this week)

https://ddsboston.com/pages/dds-vibe-academy
2•robert_dds•44m ago•0 comments

Story Points: Explicit, Honest, Predictable. Already In Use.

https://bastrich.tech/story-points/
1•karakoram•44m ago•0 comments

They call it stupid hot for a reason: Heat muddles animal brains

https://arstechnica.com/science/2026/05/they-call-it-stupid-hot-for-a-reason-heat-muddles-animal-...
1•Qadriq•44m ago•1 comments

I built a free cross platform music/podcast/audiobook sharing app iOS/Android

https://mtshare.net
1•macsmax•49m ago•1 comments

AI guardrails stripped from Meta and Google models in minutes

https://www.ft.com/content/5630ed79-a263-41ed-9a1a-321617ae310e
1•bookofjoe•50m ago•1 comments

Disagreeing with Google, Postgres, Future Problems – Mike Stonebraker

https://www.youtube.com/watch?v=YPObBOwIrHk
2•tux1968•50m ago•0 comments