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.

Harness engineering for coding agent users

https://martinfowler.com/articles/harness-engineering.html
1•pramodbiligiri•2m ago•0 comments

Russian mathematician wanted on terrorism charges detained in Armenia

https://caliber.az/en/post/russian-mathematician-wanted-on-terrorism-charges-detained-in-armenia
1•spzx•2m ago•1 comments

Shepherd's Dog: A Game by the Most Dangerous AI Model

https://koenvangilst.nl/lab/claude-fable-shepherds-dog
2•vnglst•10m ago•0 comments

Show HN: FinMind AI – Like Bloomberg Terminal Meets ChatGPT

https://finmindai-moneyverse.vercel.app/
1•heroboy•11m ago•0 comments

Ask HN: What features do you miss in Google Docs for desktop?

1•mci•14m ago•1 comments

Too many people are shockingly bad at prioritisation

https://economist.com/business/2026/06/11/too-many-people-are-shockingly-bad-at-prioritisation
1•andsoitis•19m ago•0 comments

Mise System Packages

https://mise.jdx.dev/system-packages/
4•crbelaus•21m ago•0 comments

The Touch of God

http://bryanhu.com/blog/posts/the-touch-of-god/
1•thatxliner•29m ago•0 comments

How Musk's tactics left investors clamoring for SpaceX stock and ignoring risks

https://www.reuters.com/legal/transactional/how-musks-tactics-left-investors-clamoring-spacex-sto...
3•1vuio0pswjnm7•34m ago•0 comments

Active AUR malicious packages incident

https://archlinux.org/news/active-aur-malicious-packages-incident/
3•wanderer2323•36m ago•0 comments

Even "illegible" Mythos reasoning traces seem pretty legible

https://www.lesswrong.com/posts/wCSEpT3dTGz4N86Wi/even-illegible-mythos-reasoning-traces-seem-pre...
2•kqr•37m ago•0 comments

Iraq Goes Solar [video]

https://www.youtube.com/shorts/3GpGs5OWJfU
1•thelastgallon•38m ago•0 comments

There is a shadow hanging over this Fable thing

https://12gramsofcarbon.com/p/tech-things-there-is-a-massive-shadow
6•theahura•38m ago•0 comments

Small investors scrambled to buy SpaceX, despite belief valuation 'stupid'

https://www.cnbc.com/2026/06/12/small-investors-scrambled-to-get-in-on-the-spacex-ipo-even-as-som...
2•1vuio0pswjnm7•45m ago•0 comments

Kimi K2.7 Code

https://platform.kimi.ai/docs/guide/kimi-k2-7-code-quickstart
2•cmogni1•47m ago•0 comments

Why news.Y Combinator.com UI designed looking like designed by 5 year kid

https://news.ycombinator.com/
1•productify999•47m ago•2 comments

The world’s first trillionaire is a killer

https://www.theverge.com/tech/949259/the-worlds-first-trillionaire-is-a-killer
6•tastyface•48m ago•1 comments

3D Mercator Earth Map That acts as Live Intelligence platform for shipping

https://github.com/jamalrfordii-arch/Vanguard-Map
1•Lawyer24•55m ago•0 comments

Running an AI-native engineering org

https://claude.com/blog/running-an-ai-native-engineering-org
1•gmays•57m ago•0 comments

How Much SpaceX Are You About to Own?

https://www.nytimes.com/2026/06/12/upshot/spacex-stock-ipo.html
1•1vuio0pswjnm7•1h ago•0 comments

AI Will Steal Your Motivation If You Let It

https://www.bloomberg.com/opinion/articles/2026-06-12/ai-threatens-worker-motivation-unless-leade...
1•imichael•1h ago•0 comments

Realistic Superintelligence

1•onlypostonce•1h ago•4 comments

On CPU Physics and CPU Cycles

https://6it.dev/blog/on-cpu-physics-and-cpu-cycles-80730
17•signa11•1h ago•0 comments

Making the Invisible Visible

https://biohub.org/blog/laser-phase-plate-cryo-em-making-invisible-visible/
1•selimonder•1h ago•0 comments

Ask HN: What do you think about US Government's Geographic Ban on Fable?

2•akashwadhwani35•1h ago•1 comments

How a Linguist Helped Me Understand C

https://jjrgn.substack.com/p/how-a-linguist-helped-me-understand
3•3rly•1h ago•0 comments

Animation Vocabulary

https://animations.dev/vocabulary
2•vinhnx•1h ago•1 comments

El Niño and the Iran war may spark hunger crisis for more than 100M

https://www.washingtonpost.com/climate-environment/2026/06/12/why-iran-war-powerful-el-nio-could-...
2•MilnerRoute•1h ago•0 comments

Dave Eggers doesn't need a smartphone, the internet or your Flock camera

https://www.sfgate.com/sf-culture/article/dave-eggers-profile-22291491.php
8•mikhael•1h ago•0 comments

Fable 5 is gone from model lists

https://www.anthropic.com
2•Robelk1•1h ago•4 comments