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.

Forget Live Aid, Africa is only a broken continent in the minds of the West

https://www.theguardian.com/global-development/2026/oct/24/forget-the-live-aid-image-africa-is-on...
1•prmph•57s ago•0 comments

I built a livestream where you can control a $4k 7-DOF Robot [video]

https://www.youtube.com/watch?v=uSrAc9nv_do
1•adrianmed•1m ago•0 comments

Why Gen Z teens are in no rush to get their driver's licenses

https://www.nytimes.com/2026/10/24/style/drivers-license-gen-z-teens-learners-permit.html
1•scruple•2m ago•1 comments

Omni Magazine Archive 1978-1995

https://archive.org/details/omni-archive
1•bookofjoe•2m ago•0 comments

Relation as a Service

https://medium.com/@smoking2man/relation-as-a-service-generative-replicas-of-a-person-and-the-tra...
1•Aldus551•4m ago•0 comments

Where did my freed memory (not) go?

https://yapfast.com/blog/where-did-my-freed-memory-go/
1•theanonymousone•5m ago•0 comments

I Replaced 50 PHP Workers with One Go Process

https://sentinel.rootstuff.io/blog/laravel-edge-workers-to-go-probes
1•rootstuff•7m ago•0 comments

Italy's Generali cuts around 800 jobs in Germany

https://www.reuters.com/business/world-at-work/italys-generali-cuts-around-800-jobs-germany-2026-...
1•frank_clover•8m ago•0 comments

Don't Sleep on Single-Agent Systems

https://www.openhands.dev/blog/dont-sleep-on-single-agent-systems
1•pretext•8m ago•0 comments

Utmost Biggest Human Rights Violations Being Done by Sahara India

1•krishnakumarcha•9m ago•0 comments

VCF Southwest 2026, but Edited on Silicon Graphics for '90s TV [video]

https://www.youtube.com/watch?v=46wxttvq9qY
1•zdw•10m ago•0 comments

Google Humiliates Indian Developers with Google Play BillDesk Verification

https://www.reddit.com/r/india/comments/1x9xa3h/how_google_humiliates_indian_developers_with/
1•qart•11m ago•0 comments

A Political History of SF

http://www.catb.org/~esr/writings/sf-history.html
1•andsoitis•18m ago•0 comments

Batchplan: Plan batches of robot motions, use for execution or training data

https://github.com/natsuku-lab/batchplan
1•natsuku•19m ago•0 comments

The Utility of Mathematics

http://www.catb.org/~esr/writings/utility-of-math/
1•andsoitis•19m ago•0 comments

Ricuicui 0.5.7: notes, database and 3D

https://ricuicui.com/en/versions/0-5-7
1•wivivi•20m ago•0 comments

The Art of Unix Programming

http://www.catb.org/esr/writings/taoup/
1•andsoitis•21m ago•0 comments

Valve Steam Personal Calendar

https://store.steampowered.com/login/?redir=https%3A%2F%2Fstore.steampowered.com%2Fpersonalcalendar
2•HelloUsername•24m ago•1 comments

I turn up late to meetings to dodge small talk. Am I wrong?

https://www.nature.com/articles/d41586-026-02201-4
2•gnabgib•25m ago•0 comments

Fermi Poker

https://www.lesswrong.com/posts/JFYvJqMaLw9nhfrur/fermi-poker
2•danielfetz•26m ago•1 comments

Israeli soldiers raze neighbourhood in Hebron, driving families from homes

https://www.theguardian.com/world/2026/oct/24/israel-soldiers-raze-west-bank-neighbourhood-hebron...
14•hebelehubele•26m ago•2 comments

I Built a SaaS with AI. Two Months Later, I Have Zero Active Users

https://news.ycombinator.com/
1•iyurynts•26m ago•0 comments

Botchelor – a dating show where AI agents bring their own characters over MCP

https://botchelor.com/gate?from=%2Fagents
1•slixxz•27m ago•0 comments

I Built a SaaS with AI. Two Months Later, I Have Zero Active Users

https://medium.com/@ivan_43200/i-built-a-saas-with-ai-two-months-later-i-have-zero-active-users-1...
1•iyurynts•28m ago•0 comments

Efficiency of Estimators

https://jechevarria.com/blog/2026/10/24/estimator-efficiency/
1•j_echevarria•28m ago•0 comments

Key Claude Code Engineers Shihipar and Morris Leave Anthropic

https://x.com/i/trending/2113887405459546296
1•e12e•28m ago•0 comments

Is Chocolate Still Chocolate?

https://www.grubstreet.com/article/chocolate-hersheys-reeses-conspiracy.html
1•momentmaker•29m ago•0 comments

The Download: computing's next leap and permafrost's climate threat

https://www.technologyreview.com/2026/10/22/1147612/the-download-computing-next-leap-permafrost-c...
1•joozio•31m ago•0 comments

Firefox – Site Isolation (Fission) Goes Live on Android

https://connect.mozilla.org/t5/discussions/fission-goes-live-on-android-please-share-your-feedbac...
1•doodlesdev•31m ago•1 comments

Red-Teaming OpenAI's Internal Agent Monitoring Systems

https://metr.org/blog/2026-10-22-red-teaming-openai-agent-monitoring/
2•torsi0n•32m ago•0 comments