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.

I'm building a parallel internet, and it's called The Thinnernet

https://inavoyage.blogspot.com/2026/06/im-building-parallel-internet-and-its.html
1•initramfs•4m ago•0 comments

China's Unitree Will Dominate Global Robotics

https://newsletter.semianalysis.com/p/chinas-unitree-will-dominate-global
1•DEDLINE•5m ago•0 comments

The Hedgehog and the Fox-The Idea

https://thecuriouspolymath.substack.com/p/the-hedgehog-and-the-fox-the-idea
1•goles•6m ago•0 comments

A 40-Node 1U Cluster Gigabyte R1C7-K0A-AS1 – ServeTheHome

https://www.servethehome.com/a-40-node-1u-cluster-gigabyte-r1c7-k0a-as1/
1•rbanffy•6m ago•0 comments

Surveillance Is Not Safety: A statement on the UK's latest threat to privacy [pdf]

https://signal.org/blog/pdfs/2026-06-08-uk-surveillance-is-not-safety.pdf
1•g0xA52A2A•7m ago•0 comments

DebugDuck – A desktop rubber duck with local AI

https://github.com/CarlosVallejoRuiz/DebugDuck
1•CarlosVallejoR•7m ago•0 comments

GitMo – GitHub auto sync for all your projects

https://github.com/KyleBenzle/GitMo
1•WWIII_Historian•8m ago•0 comments

Apple WWDC 2026: The 7 biggest announcements

https://www.theverge.com/tech/945693/apple-wwdc-2026-biggest-announcements-ios-27
3•ms7892•11m ago•1 comments

Installing and Running FreeBSD on a Steam Deck

https://linhpham.org/blog/2025/installing-running-freebsd-on-steam-deck/
2•speckx•11m ago•0 comments

Miasma Worm Hits Microsoft Again

https://www.stepsecurity.io/blog/miasma-worm-hits-microsoft-again-azure-functions-action-and-72-o...
1•matttah•12m ago•0 comments

David Kriesel: Lies, damned lies and scans [video]

https://www.youtube.com/watch?v=c0O6UXrOZJo
1•pinkmuffinere•13m ago•0 comments

Claude Fable 5 by Anthropic, releasing tomorrow

4•cednore•13m ago•0 comments

OpenCode migrates file search to fff – rust based file search SDK

https://twitter.com/nexxeln/status/2064039757668303036
2•neogoose•14m ago•0 comments

Judge Strikes Down Trump's $100K H-1B Visa Fee

https://www.wsj.com/politics/policy/judge-strikes-down-trump-administrations-100-000-h-1b-visa-fe...
2•gjkood•15m ago•0 comments

Show HN: I Built an LLM Engine, That Test LLM on Boolean Logic

https://github.com/Shrivastava-Aditya/boolean-algebra-engine
1•shrvx•16m ago•0 comments

NASA's X-59 Aircraft Flies Supersonic for First Time

https://www.nasa.gov/aeronautics/x-59-first-supersonic-flight/
3•gnabgib•17m ago•0 comments

Indicator: Indicator Go delivers customizable strategies, backtesting framework

https://github.com/cinar/indicator
1•lsferreira42•17m ago•0 comments

Replay: Box2D

https://box2d.org/posts/2026/06/replay/
1•kg•19m ago•0 comments

AMule 3.0.0

https://github.com/amule-project/amule/releases/tag/3.0.0
1•asp1•20m ago•0 comments

SQL

https://remy.wang/cs143/notes/sql/sql.html
1•jasim•20m ago•0 comments

Small modular nuclear reactor reaches criticality in first test

https://arstechnica.com/science/2026/06/first-us-test-of-modular-reactor-reaches-criticality/
1•rbanffy•20m ago•1 comments

The Beginning of the End

https://www.downtownjoshbrown.com/p/the-beginning-of-the-end
2•mooreds•21m ago•0 comments

We launched an app where users earn credit-card points for saving, not spending

https://apps.apple.com/us/app/symphony-save-earn/id6758022445
1•James_berry•22m ago•0 comments

The Model Is No Longer the Bottleneck

https://www.k-dense.ai/blog/the-model-is-no-longer-the-bottleneck
2•amrrs•23m ago•0 comments

Passing DBs Through Continuations

https://remy.wang/blog/cps.html
1•jasim•25m ago•0 comments

Ask HN: Does consciousness itself require memory?

3•modinfo•26m ago•0 comments

Apple Child Safety

https://www.apple.com/child-safety/
2•narenst•27m ago•0 comments

Ask HN: Why won't you be replaced by AI?

4•atleastoptimal•28m ago•4 comments

Show HN: Guarden – Authorization for AI agent actions powered by OPA

https://github.com/las7/Guarden
1•sakuraiben•29m ago•0 comments

UK Gov't: Tech companies like Apple and Google have three months or else

https://twitter.com/ukhomeoffice/status/2063976128692273615
2•naturalmovement•30m ago•0 comments