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.

The Mathematics of Tetris (2011)

https://math.stackexchange.com/questions/80246/the-mathematics-of-tetris
1•downbad_•55s ago•1 comments

What Is WebAssembly? (2015)

https://medium.com/javascript-scene/what-is-webassembly-the-dawn-of-a-new-era-61256ec5a8f6
1•downbad_•2m ago•1 comments

I Let Claude Opus Write a Chrome Exploit

https://www.hacktron.ai/blog/i-let-claude-opus-to-write-me-a-chrome-exploit
1•svenfaw•4m ago•0 comments

Building agent skills: Intent, determinism, and stability

https://alexhans.github.io/posts/series/evals/building-agent-skills-incrementally.html
1•pramodbiligiri•4m ago•0 comments

The OSRS Botting Problem Is Architectural

https://nemo.foo/blog/osrs-botting-problem-is-architectural
1•nemofoo•5m ago•0 comments

Modern Games Look on CRT Monitors

https://www.youtube.com/watch?v=U3K_BmIxh_0
1•tiziano88•5m ago•0 comments

Gemini 3.1 Flash TTS

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-flash-tts/
1•langitbiru•5m ago•0 comments

Alpine.js X-Data: A Surprisingly Capable State Manager

https://www.budgetflow.cc/blog/alpine-js-x-data-a-surprisingly-capable-state-manager
1•mkrd•7m ago•0 comments

Security.ubuntu.com Is Down

https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQG-0Dp5D6IWR-Dw5...
1•whalesalad•11m ago•0 comments

Dynamicland

https://dynamicland.org/
1•cl3misch•11m ago•0 comments

AI slop has hit the science creators [video]

https://www.youtube.com/watch?v=xcq5XYkFJfY
1•szmarczak•12m ago•0 comments

Zero-Copy Pages in Rust: Or How I Learned to Stop Worrying and Love Lifetimes

https://redixhumayun.github.io/databases/2026/04/14/zero-copy-pages-in-rust.html
1•ingve•12m ago•0 comments

Private Equity Turns Your Favorite [YouTube] Channels into Slop [video]

https://www.youtube.com/watch?v=ZoibAbdQf58
1•burnt-resistor•17m ago•1 comments

Show HN: I made a weekly editorial on what HN was feeling and building

https://menggg.me/vibes/week-15
1•menggg•21m ago•0 comments

What Is Purisaki Berberine Patches and How It Supports Weight Loss? [pdf]

https://www.fd.ulisboa.pt/wp-content/uploads/formidable/2/PurisakiBerberinePatchesReal1-d3baj.pdf
1•JasperFarmer•22m ago•0 comments

Nvidia Ising – Open AI Models for Quantum Computing

https://www.nvidia.com/en-us/solutions/quantum-computing/ising/
1•fuglede_•22m ago•0 comments

Agent SLOs: Grounding autonomous agents in metrics that matter

https://blog.firetiger.com/agent-slos-grounding-autonomous-agents-in-metrics-that-matter/
2•matsur•24m ago•0 comments

Shouldn't we have an agent.lock file for AI coding agents?

https://srajangupta.substack.com/p/where-is-my-agentlock-file
1•srajan_gupta•25m ago•0 comments

DFlash: Block Diffusion for Flash Speculative Decoding

https://z-lab.ai/projects/dflash/
2•oldfuture•25m ago•0 comments

Teaching AI Agents to Speak Hardware

https://quadric.ai/blog/mcp-ai-coding-assistant
1•tkocmathla•26m ago•0 comments

Delete ChatGPT Atlas Spyware

1•niagznculiau•27m ago•0 comments

Nokia Automated Indoor Design and Validation

https://www.nokia.com/blog/revolutionizing-in-building-connectivity-design-nokia-automated-indoor...
1•salkahfi•27m ago•0 comments

Critical Atlantic current significantly more likely to collapse than thought

https://www.theguardian.com/environment/2026/apr/15/critical-atlantic-current-significantly-more-...
1•tempestn•29m ago•0 comments

Who Tried Hermes Agent?

https://github.com/aipoch/medical-research-skills
1•The_resa•32m ago•1 comments

Allbirds shoe company moving to AI infra is the top

https://www.theregister.com/2026/04/15/allbirds_ai_longislandicedtea_blockchain_lolol/
1•abdelhousni•38m ago•2 comments

Radical Pie: Professional Equation Editor for Windows 10/11

https://radicalpie.com/
1•teleforce•39m ago•0 comments

Ben Lerner's Big Feelings

https://www.vulture.com/article/ben-lerner-transcription-interview.html
1•prismatic•40m ago•0 comments

Cirrus CI is shutting down: upgrade to a scalable, AI-ready alternative

https://circleci.com/blog/cirrus-ci-alternative/
1•levlaz•41m ago•0 comments

Agtop: Btop but for Your Agents

https://github.com/ldegio/agtop
1•handfuloflight•41m ago•0 comments

Germany suspends military approval for long stays abroad for men under 45

https://www.bbc.com/news/articles/ckgx103wkl1o
2•timokoesters•43m ago•1 comments