frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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•11mo 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.

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
1•hasheddan•1m ago•0 comments

A visual guide to Iran's coastline and strategic islands

https://interactive.aljazeera.com/aje/2026/iran-coastline-islands/
1•giuliomagnifico•2m ago•0 comments

Senators Tell Americans That VPN Use Might Subject Them to Domestic Surveillance

https://www.techdirt.com/2026/04/03/senators-ask-tulsi-gabbard-to-tell-americans-that-vpn-use-mig...
2•redeux•2m ago•0 comments

Components of a Coding Agent

https://magazine.sebastianraschka.com/p/components-of-a-coding-agent
2•MindGods•8m ago•0 comments

Putting Intelligence to Work

https://vivekkaushal.substack.com/p/putting-intelligence-to-work
2•kaushalvivek•9m ago•0 comments

Vitamin D deficiency can lead to autoimmune diseases (2024)

https://medicalxpress.com/news/2024-10-vitamin-d-deficiency-autoimmune-diseases.html
1•OutOfHere•9m ago•2 comments

Using Perfetto in ZJIT

https://railsatscale.com/2026-03-27-using-perfetto-in-zjit/
1•gbourne1•9m ago•0 comments

"The internet could go down if Brundage spent too much time on his exams"

https://www.wsj.com/tech/kimwolf-hack-residential-proxy-networks-a712ab59
2•hank1931•11m ago•0 comments

The New Twist Browser for Devs

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

Slap: Functional Concatenative Language with a Borrow Checker?

https://taylor.town/slap-000
1•birdculture•16m ago•0 comments

Show HN: Batty – Run a team of AI coding agents in tmux with test gating

https://github.com/battysh/batty
1•Zedmor•22m ago•0 comments

Awesome

https://archive.openrockets.com/Litha2024-main/
1•techcast•23m ago•0 comments

UK's leading AI research institute told to make 'significant' changes

https://www.theguardian.com/technology/2026/apr/03/uk-alan-turing-institute-ai-research-underperf...
2•Brajeshwar•24m ago•1 comments

Ask HN: How do you handle clients who don't pay on time?

2•Hustlr786•26m ago•2 comments

Show HN: A local GitHub-like code review tool to work with agents

https://github.com/wong2/diffx
1•wonderfuly•26m ago•0 comments

Show HN: Engram – Persistent Memory API with Drift Detection for AI Agents

https://engram.cipherbuilds.ai
1•Adam_cipher•28m ago•0 comments

Keet the P2P chat app for privacy

https://keet.io/
1•janandonly•28m ago•0 comments

AI Whiz Kids Dropped Out of College and Got Investors to Pay Their Bills

https://www.wsj.com/tech/ai/ai-college-dropouts-ecc665b7
3•cebert•32m ago•0 comments

Blur Blitz – a visual Wordle where AI scores how close your guess is

https://blurblitz.io/play?daily
1•Ainzz•33m ago•0 comments

Show HN: ECX a 'Jail-Fix' for RLHF Neutrality Loops in LLMs

https://zenodo.org/records/18712534
2•Weatherill•34m ago•0 comments

We security-graded 20K MCP servers – only 20% passed all 7 criteria

https://www.loaditout.ai/
3•loaditoutai•36m ago•0 comments

Scorecard for US Military aircraft over Iran

https://fallows.substack.com/p/your-scorecard-for-us-military-aircraft
1•xrd•38m ago•0 comments

Mystifying Auto-Brewery Syndrome Makes People Spontaneously Drunk

https://www.nytimes.com/2026/04/03/well/autobrewery-syndrome.html
3•bookofjoe•38m ago•1 comments

How to Survive OpenClaw on Codex

https://telegraphic.substack.com/p/how-to-survive-openclaw-on-codex
1•telegrahi•41m ago•1 comments

Astroturfing

https://en.wikipedia.org/wiki/Astroturfing
2•chistev•42m ago•1 comments

Show HN: Ownscribe – local meeting transcription, summarization and search

https://github.com/paberr/ownscribe
1•paberr•47m ago•0 comments

Show HN: Forking mods to add interactive mode

https://mil.ad/blog/2026/interactive-mods.html
1•playnext•51m ago•0 comments

Show HN: AdaShape-3D modeler for intuitive 3D printing parts / Windows 11

https://adashape.com
2•fsloth•51m ago•0 comments

Ex-Microsoft engineer blames Azure problems on talent exodus

https://www.theregister.com/2026/04/04/azure_talent_exodus/
2•beardyw•54m ago•0 comments

Acer and Asus shut down support website in wake of patent dispute ruling

https://www.tomshardware.com/pc-components/acer-and-asus-shut-down-support-for-pc-and-laptops-in-...
1•breve•59m ago•0 comments