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.

The newest entrant in the military's launch competition isn't a launch company

https://arstechnica.com/space/2026/07/the-newest-entrant-in-the-militarys-launch-competition-isnt...
1•rbanffy•45s ago•0 comments

Seedream 5.0 Pro: ByteDance's Push Toward Controllable Image Generation

https://seedream-5.io/
1•KissSheep•49s ago•0 comments

Elroy Air to Go Public

https://elroyair.com/company/news/press-releases/elroy-air-to-go-public/
1•simonebrunozzi•3m ago•0 comments

Intelligent MFA Should Challenge Risk, Not Loyal Customers

https://fusionauth.io/blog/intelligent-mfa
1•mooreds•5m ago•0 comments

Show HN: Qodo: AI Code Review

https://marketplace.visualstudio.com/items?itemName=Codium.codium
1•aanthonymax•6m ago•0 comments

Show HN: GaziDuino – Web Arduino IDE with WebUSB/Web Serial Flashing

https://github.com/Gazi-AI/GaziDuino
1•gaziai•6m ago•0 comments

Memory for Browser Agents

https://browser-memory.com
1•gaston_francois•9m ago•0 comments

Show HN: The AI assistant for Ableton Live – Create, produce, and mix

https://vixsound.com
1•not_wowinter13•9m ago•0 comments

KillPretty Magazine Graffiti Art

https://www.flickr.com/photos/125908460@N08/
1•toomuchtodo•10m ago•1 comments

Degeneracy Is a Symptom

https://henryfudgeofficial.substack.com/p/degeneracy-is-a-symptom
2•doener•11m ago•0 comments

Repeated Deployments Across Three Cloud Providers Found the Same EU West Issue

https://webbynode.com/articles/three-independent-cloud-providers-repeatedly-exhibited-the-same-eu...
1•gsgreen•12m ago•0 comments

Show HN: Decypher-env, an RL Env for breaking AES encryption

https://github.com/juansebastianl/decypher-env
1•juansebastianl•12m ago•0 comments

Have people stopped trusting science? The data tell a surprising story

https://www.nature.com/articles/d41586-026-01977-9
2•PaulHoule•12m ago•0 comments

Dune Part Three Trailer

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

EThOS

https://ethos.bl.uk/
2•lokimedes•13m ago•0 comments

New York to ban smart glasses from all courthouses

https://www.syracuse.com/crime/2026/07/new-york-to-ban-smart-glasses-from-all-courthouses.html
2•ortusdux•13m ago•1 comments

We built and secured support agent with Vercel's eve framework

https://infisical.com/blog/eve-support-agent-zero-credentials
1•FinnLobsien•14m ago•0 comments

Getting Started with Anchor Positioning

https://www.joshwcomeau.com/css/anchor-positioning/
1•vinhnx•15m ago•0 comments

Show HN: The OWASP Top: Which Risks Can Be Automated?

https://onscanner.com/blog/owasp-top-10-for-automated-scanning
2•byteoptimizer•15m ago•0 comments

Auditory and spontaneous movement responses to music over first postnatal year

https://elifesciences.org/articles/107088
2•bookofjoe•15m ago•0 comments

Everyone gets faster. Not everyone gets more valuable

https://justinedwards.me/writing/everyone-gets-faster/
1•jedwardsdev•16m ago•1 comments

Show HN: Ring Holders Club

https://www.ringholders.club
3•pipnonsense•17m ago•0 comments

Apache Kafka Performance

https://jack-vanlightly.com/blog/2026/7/7/apache-kafka-performance-1-lingerms
1•vinhnx•19m ago•0 comments

Browser-Memory

https://github.com/browser-memory/bmem
3•browser-memory•19m ago•0 comments

Australian Councils vote for polluter-pays climate compensation fund

https://reneweconomy.com.au/its-costing-us-so-much-councils-vote-for-polluter-pays-climate-compen...
1•DamonHD•19m ago•0 comments

Farage left fighting a trash can as the UK populist's election gamble backfires

https://www.cnn.com/2026/07/09/uk/nigel-farage-special-election-bin-face-intl
3•mellosouls•20m ago•0 comments

Digital euro enters final round of EU negotiations

https://www.euronews.com/business/2026/07/09/digital-euro-enters-final-round-of-eu-negotiations
3•omblivion•21m ago•0 comments

Blog

https://danielmiessler.com/blog
2•Mr_Blank•21m ago•0 comments

Show HN: Where Were We

https://wherewerewe.app/
2•zkiihne•23m ago•0 comments

Pair of 'super-puff' planets are lighter than candy floss

https://www.nature.com/articles/d41586-026-02114-2
2•Brajeshwar•25m ago•0 comments