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.

Speeding up end-to-end inference with self-improving agents

https://asari.ai/blog/inference-optimization
1•The-Ludwig•48s ago•0 comments

Alarm at NHS patient records being put under control of US private equity firm

https://www.theguardian.com/society/2026/jul/27/nhs-patients-records-us-private-equity-firm-optum...
1•bookofjoe•1m ago•0 comments

Strings Don't Vibrate the Way You Think [video]

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

Show HN: Mirrors – Improve AI agents with staging environments

https://www.runmirrors.com/
1•idyeetya•3m ago•0 comments

A Dark-Money Campaign Is Paying Influencers to Frame Chinese AI as a Threat

https://www.wired.com/story/super-pac-backed-by-openai-and-palantir-is-paying-tiktok-influencers-...
1•eth0up•3m ago•0 comments

What We Think the 2026 Gartner Hype Cycle Gets Right About GraphQL

https://www.apollographql.com/blog/what-we-think-the-2026-gartner-hype-cycle-gets-right-about-gra...
1•jdauriemma•3m ago•0 comments

Doom for Commodore 64 Progress

https://x.com/Kweepa
1•amichail•4m ago•0 comments

The motion-sickness cure hidden in iPhone settings

https://www.bbc.com/future/article/20260728-dancing-dots-the-motion-sickness-cure-hidden-in-your-...
2•saikatsg•5m ago•0 comments

Anthropic Doesn't Want Open Weight Models Banned. Just All That Makes Them Good

https://www.techdirt.com/2026/07/29/anthropic-says-its-against-a-ban-on-open-weight-models-it-jus...
1•cdrnsf•5m ago•0 comments

The Growing Threat of Docusign Phishing Attacks

https://www.darktrace.com/blog/the-growing-threat-of-docusign-phishing-attacks
1•saikatsg•5m ago•0 comments

How to Not Die by a Thousand Cuts. Or, How to Think About Software Quality

https://www.evalapply.org/posts/how-to-not-die-by-a-thousand-cuts/index.html
2•adityaathalye•6m ago•0 comments

GNU Hyperbole Implicit Buttons: Build Your Hyperverse

https://www.chiply.dev/post-hyperbole-implicit-buttons
1•linggen•7m ago•0 comments

Stop building RAG systems without doing evals

https://www.minimumviablefounder.com/p/ai-evals-arent-just-for-big-tech
1•hackfather•7m ago•0 comments

A field day for Gleam's language server – Gleam v1.18.0 release

https://gleam.run/news/a-field-day-for-gleams-language-server/
1•linggen•7m ago•0 comments

About half of Americans support all-day school cellphone bans

https://www.pewresearch.org/short-reads/2026/07/29/more-americans-now-support-than-oppose-all-day...
2•theanonymousone•8m ago•1 comments

Deep dive into Git's wire protocol

https://scottchacon.com/2026/07/29/git-wire-protocol-v2/
1•schacon•9m ago•0 comments

Porting Linux to the Dec Alpha: Infrastructure (1995)

https://www.linuxjournal.com/article/1044
1•jandeboevrie•10m ago•0 comments

Fixing bugs in Event Sourcing is hard, for real?

https://www.architecture-weekly.com/p/fixing-bugs-in-event-sourcing-is
2•theanonymousone•13m ago•0 comments

Anubis.dog

https://anubis.dog
1•awides•14m ago•1 comments

Opus 5 on Vending-Bench: Once Again the Best Capitalist, Once Again Misaligned

https://andonlabs.com/blog/opus-5-vending-bench
1•axbac•16m ago•0 comments

"Cloudflare OS" demo (00:55:34) – internal tool inside Cloudflare

https://customer-eq7kiuol0tk9chox.cloudflarestream.com/2608891704d21cfbd509b2b4f68f41fc/watch?
1•wenbin•17m ago•0 comments

AntGroup releases Ling 3.0 Flash MoE model

https://twitter.com/AntLingAGI/status/2080351022028095681
3•potus_kushner•17m ago•0 comments

Axiom Foundation launches to publish law as open, verifiable code

https://axiom.org
2•axbac•18m ago•0 comments

Opening Keynote by Chinese President Xi Jinping at 2026 World AI Conference

https://english.www.gov.cn/news/202607/17/content_WS6a5a1172c6d00ca5f9a0c46b.html
3•mooreds•18m ago•0 comments

Ads-STE100: Simplified Technical English

https://en.wikipedia.org/wiki/Simplified_Technical_English
8•handfuloflight•18m ago•1 comments

Microspeak: Double-Click and Drill Down

https://devblogs.microsoft.com/oldnewthing/20260714-00/?p=112532
1•ibobev•19m ago•0 comments

Florida's Fix for Insurance Crisis Puts More Risk on Homeowners

https://www.bloomberg.com/news/features/2026-07-29/florida-s-fix-for-property-insurance-crisis-pu...
1•toomuchtodo•19m ago•1 comments

Turning a Dumb AC Unit Smart (Without Losing My Security Deposit)

https://prilik.com/blog/post/automating-ac-nyc/
2•austinallegro•19m ago•0 comments

Why has the display control panel pointer truncation bug gone unfixed for long?

https://devblogs.microsoft.com/oldnewthing/20260717-00/?p=112541
1•ibobev•19m ago•0 comments

The Evolution of Astronaut Food [video]

https://www.youtube.com/watch?v=9WHfNcAF0Cw
1•gmays•20m ago•0 comments