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.

300mg of morning caffeine didn't improve mood or cognitive measures in males

https://www.mdpi.com/2072-6643/18/17/2771
1•giuliomagnifico•2m ago•0 comments

PrepIQ – AI kitchen intelligence for Hospitality prep planning

https://prepiq.net
1•HilqiaKM•3m ago•0 comments

Show HN: It's always been about size contests

https://epenis.lol/
1•MajorBaguette•3m ago•0 comments

Remove Hardcoded Subtitles. Keep Videos Clean

https://subtitleremover.com/
1•horanv•4m ago•0 comments

I don't worry about cost of AI models and you shouldn't too

https://davletd.medium.com/cost-of-ai-models-is-not-what-you-shoud-be-worried-about-e6439498bae7
2•davletdz•11m ago•0 comments

The Dutch are filling gas wells with cement

https://www.siliconcontinent.com/p/the-dutch-are-filling-gas-wells-with
2•Gijs4g•14m ago•0 comments

Troubleshooting and Preventing Task Deadlocks in Apache DolphinScheduler

https://medium.com/https://medium.com/@ApacheDolphinScheduler/when-workflows-get-stuck-troublesho...
1•DSOfficial•16m ago•1 comments

Show HN: I built an agent-first productivity bridge for all your agents

https://www.taskshell.app/
1•Frederick_22xAI•17m ago•0 comments

Show HN: TCP vs. UDP speed test – real transports, no simulation

https://tcp-vs-udp.com/
1•ilyassanida•19m ago•0 comments

Simon Weckert creates Digital Camouflage shirt to avoid AI video surveillance

https://www.dezeen.com/2026/08/25/digital-camouflage-shirt-ai-video-surveillance-simon-weckert/
1•u1hcw9nx•20m ago•2 comments

Two German airport workers die of malaria after 'mosquito arrives on plane'

https://www.bbc.co.uk/news/articles/cz6zwgg9y8go
2•zeristor•20m ago•0 comments

X users are speculating that YC is funding and expanding "visa factories"

https://twitter.com/afpost/status/2092762104407204095
1•Tabular-Iceberg•22m ago•0 comments

New Twitter launches, says Musk's X gave up the name

https://arstechnica.com/tech-policy/2026/08/new-twitter-launches-says-musks-x-gave-up-the-name/
3•rajtilakjee•23m ago•0 comments

Ask HN: Why Rust?

1•luxshan_t•25m ago•0 comments

Ask HN: As a Software Dev, how do you hedge for a world where AI takes your job?

1•vcanhoto•26m ago•1 comments

SDETs Changing Tide

https://quashbugs.com/blog/state-of-test-maintenance
1•pr_khar•30m ago•0 comments

How to escape AI pilot purgatory

https://medium.com/quantumblack/escaping-ai-pilot-purgatory-from-poc-to-p-l-1216d30ec4d0
1•stichers•30m ago•0 comments

Adehun – Simplifying Legality

https://www.adehun.com
1•CodePapi_•32m ago•0 comments

Why OOP Exists

https://mathspp.com/blog/why-oop-exists
2•lumpa•33m ago•0 comments

MIT just called for an educational revolution

https://lernerpython.com/2026/08/26/mit-just-called-for-an-educational-revolution/
3•lumpa•34m ago•0 comments

West Point Climate Professor Says He Was Fired for Refusing to 'Defy Science'

https://www.nytimes.com/2026/08/26/us/politics/west-point-climate-professor-lawsuit.html
3•OutOfHere•35m ago•0 comments

Motorola's GrapheneOS phones will launch in 2027 priced higher than Pixels

https://arstechnica.com/gadgets/2026/08/motorolas-grapheneos-phones-will-launch-in-2027-priced-hi...
2•birdculture•35m ago•0 comments

Authors Together (A Book Apart)

https://authors-together.org/
2•bjhess•37m ago•0 comments

Orphanogenesis

https://www.gregegan.net/DIASPORA/01/Orphanogenesis.html
1•stickynotememo•40m ago•0 comments

Analyzing the Infrastructure Used by Cyberleek

https://alzze.xyz/posts/analyzing-the-infrastructure-used-by-cyberleek/
1•notracks•40m ago•0 comments

Proton Services Status – Global Outage

https://status.proton.me/incidents/kzklhrdg6hxp
1•ruuda•41m ago•1 comments

A philosopher's guide to thinking for yourself in an age built to think for you

https://twitter.com/UnfrozenCav3man/status/2092760038536585534
1•thunderbong•43m ago•0 comments

Tailscale's Tailcat

https://tailscale.com/tailcat
1•leonjza•44m ago•0 comments

Magic Chords – Web app for chord recognition and audio transcription

https://magic-chords.dev/
1•acscluster•44m ago•0 comments

Invasive green crabs bad for the environment, New Englanders eating more of them

https://apnews.com/article/green-crab-invasive-species-new-england-64f7f3ca55564ff87502ab5035af476c
2•petethomas•44m ago•0 comments