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.

Hegel-Rust OSS bug-finding

https://github.com/DRMacIver/hegel-rust-oss-bug-finding
1•wwilson•4m ago•0 comments

Elastic Cloud (Public) Status – Replication bug causing slow recoveries

https://status.elastic.co/incidents/l6zgdnvvg41j
2•kyisaiah47•5m ago•0 comments

Book Review: The Tale of Genji

https://www.astralcodexten.com/p/your-book-review-the-tale-of-genji
2•paulpauper•8m ago•0 comments

Solving Chess

https://en.wikipedia.org/wiki/Solving_chess
1•nomilk•9m ago•0 comments

Tell HN: The Thoughts and Woes of a Full-Time Founder Part 2

1•lcampbellsoup•10m ago•0 comments

Ask HN: What is your biggest career regret?

2•eudamoniac•13m ago•0 comments

Noxe – P2P chat over Tor with no central server

https://github.com/Donzaaa/Noxe/releases/tag/v1.0.0
1•donzauker•21m ago•0 comments

Microsoft announces monthly hour usage limits for Xbox game pass

https://news.xbox.com/en-us/2026/09/03/xbox-cloud-gaming-changes/
2•walrus01•22m ago•0 comments

Burry Calls Palantir a Consulting Firm in Disguise, Warns of Valuation Collapse

https://www.foreignpolicyjournal.com/2026/09/04/michael-burry-calls-palantir-nasdaq-pltr-a-consul...
2•mgh2•23m ago•0 comments

Agent status in the SD Card slot

https://sidepulse.io/sidepulse.html
2•pkuhar•26m ago•1 comments

Uia-reader – read Windows UI content instead of screenshotting it

https://github.com/thomiasj/uia-reader
2•thomiasj•28m ago•0 comments

Nitter has more working instances than before the takedowns

https://codeberg.org/mv12star/shitter/wiki/Instances
4•Cider9986•28m ago•0 comments

Artificial Analysis Intelligence Index v4.2

https://artificialanalysis.ai/articles/artificial-analysis-intelligence-index-v4-2
6•nojs•28m ago•0 comments

Reversing MikroTik's Silent Patch: The RouterOS 7.23.4 Fix They Wouldn't Explain

https://npratley.net/reversing-mikrotiks-silent-patch-the-routeros-7-23-4-fix-they-wouldnt-explain/
2•ytch•29m ago•0 comments

Ask HN: Initial Thoughts on GPT-6 Astra?

3•zof3•30m ago•1 comments

GPT-6 Astra is now out to all Plus, Business, Pro, and Enterprise users

https://twitter.com/sama/status/2096008528834244741
3•tedsanders•35m ago•0 comments

The White House is making arcade games racist

https://www.theverge.com/policy/990520/trump-arcade-games-maga-copyright
8•OxO4•37m ago•2 comments

Show HN: Personal Context MCP

https://lanes.sh/showcase/personal-context-mcp
4•s-xyz•37m ago•0 comments

Show HN: Agent-to-agent payment. Your agents can pay each other

https://openspender.com/agent-to-agent
5•firatcan•38m ago•1 comments

GPT-6 Astra on Vercel AI Gateway

https://vercel.com/ai-gateway/models/gpt-6-astra
3•brbcoding•41m ago•0 comments

Show HN: Moadim.io – A scheduler for agents

https://moadim.io/
3•tupe12334•42m ago•0 comments

Why wait? Business grads buying firms to install themselves as CEO

https://www.bbc.com/news/articles/czxqpqrzq01o
4•BiraIgnacio•50m ago•0 comments

Portal by Spotify cut my Claude Code token usage by 90%

https://engineering.atspotify.com/2026/9/portal-by-spotify-cut-my-claude-code-token-usage-by-90
12•cebert•54m ago•1 comments

Ask HN: What's Going on with Web.archive.org

2•1vuio0pswjnm7•56m ago•0 comments

Apple's iPhone Event Early [video]

https://www.youtube.com/watch?v=4nC_YTAVmls
2•Cider9986•1h ago•0 comments

Build your own benchmark masterclass

https://www.youtube.com/watch?v=IUmomwsgRN0
2•rvialep•1h ago•0 comments

The Decade of Decline in Seattle Public Schools

https://www.educationprogress.org/p/the-decade-of-decline-in-seattle
4•barry-cotter•1h ago•1 comments

Fontra – The browser-based Font Editor

https://fontra.xyz
3•zahrevsky•1h ago•1 comments

The 33-Year-Old AI Hotshot Taking Silicon Valley Swagger Back to Beijing

https://www.wsj.com/tech/ai/moonshot-ai-yang-ceo-china-6f12ddbf
3•megacorp•1h ago•1 comments

Connecting every app to every other app

https://blog.val.town/connectors
4•Chidiebere229•1h ago•0 comments