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

What Is Authorship When Machines Can Write?

https://thereader.mitpress.mit.edu/what-is-authorship-when-machines-can-write/
1•pseudolus•2m ago•0 comments

Louisiana congressional primaries suspended after Supreme Court ruling

https://www.pbs.org/newshour/politics/louisiana-congressional-primaries-suspended-after-supreme-c...
2•Bender•2m ago•0 comments

Autonomous payments between Agents using L402? [video]

https://www.youtube.com/watch?v=33KZQJS1-Vw
1•gabrielpmares•4m ago•1 comments

Is a Sovereign Single‑File Node OS (Uni‑B) a Viable Architecture?

https://planned-tan-ktnij0otlq.edgeone.app/
1•UnrealizedTech•6m ago•0 comments

Beijing bans drone sales even as rest of world buys Chinese drones

https://arstechnica.com/gadgets/2026/04/beijing-bans-drone-sales-even-as-rest-of-world-buys-chine...
1•Mindless2112•8m ago•0 comments

German energy tech startup becomes Europe's latest unicorn following €50M raise

https://impactloop.com/article/cmblu-becomes-europe-s-latest-energy-tech-unicorn-following-50m-ra...
1•doener•9m ago•0 comments

Mini Shai-Hulud in Intercom Package Spreads to Packagist Using Composer Plugin

https://semgrep.dev/blog/2026/malicious-intercom-php-package-spreads-mini-shai-hulud-attack-to-pa...
1•j12y•10m ago•0 comments

Ask HN: Any dashboards give realtime average AI chatbot response time?

1•MrCoffee7•14m ago•0 comments

Utah's New Law Targeting VPNs Goes into Effect Next Week

https://www.eff.org/deeplinks/2026/04/utahs-new-law-regulating-vpns-goes-effect-next-week
4•iamnothere•15m ago•1 comments

Simple and Correct Snapshot Isolation

https://remy.wang/blog/si.html
1•remywang•18m ago•0 comments

LLM Quantization

https://huggingface.co/docs/transformers/main_classes/quantization
1•Anon84•18m ago•0 comments

Finding Zero Days with any model?

https://www.provos.org/p/finding-zero-days-with-any-model/
1•dnw•24m ago•0 comments

Show HN: Gemini free tier is all you need

https://juanpabloaj.com/2026/04/30/gemini-free-tier-is-all-you-need/
1•juanpabloaj•27m ago•0 comments

We scanned 100 Smithery MCP servers, 22 flagged, here's what we found

3•chaksaray•28m ago•2 comments

The tortoise and the hare live on

https://unsung.aresluna.org/the-tortoise-and-the-hare-live-on/
2•CharlesW•30m ago•0 comments

U.S. gender ratios by metro, ages 20-34

https://getdatingphotos.com/gender-ratios
1•nsokolsky•31m ago•1 comments

US cyber team hasn't been activated yet to protect midterm elections

https://www.cnn.com/2026/04/30/politics/cyber-team-midterm-elections-foreign-meddling
2•dabinat•33m ago•0 comments

Morphing UI with Motion (and why most implementations feel wrong)

https://raminmousavi.dev/blog/animation-morphing-with-motion
1•ramin2nt2•34m ago•0 comments

Bash Is Not Enough: Why Large-Scale CI Needs an Orchestrator

https://www.iankduncan.com/engineering/2026-02-06-bash-is-not-enough/
1•birdculture•34m ago•0 comments

Chinese Courts Rule Companies Cannot Fire Workers Simply to Replace Them with AI

https://www.caixinglobal.com/2026-04-30/chinese-courts-rule-companies-cannot-fire-workers-simply-...
3•yesbut•35m ago•0 comments

Show HN: Fauxcquired Podcast about Eli Lilly

https://open.spotify.com/episode/2jQhCJBOVMXrfpSoC1c9ou
1•nbaronia•36m ago•0 comments

Mvm

https://marc.vertes.org/announcing-mvm/
1•mvertes•37m ago•0 comments

JuliaHub Raises $65M Series B

https://juliahub.com/blog/juliahub-raises-65m-series-b-launches-dyad-3.0
2•postflopclarity•38m ago•0 comments

"Security problems are just bugs" (2017)

https://lkml.org/lkml/2017/11/17/767
1•guiambros•38m ago•1 comments

Good news for New Mexico. Meta withdrawal on the horizon

https://www.engadget.com/2161607/meta-says-it-may-withdraw-its-apps-from-new-mexico-if-judge-agre...
4•wilburx3•40m ago•1 comments

Flakes, the Best Practices of Vibe DevOps

https://blog.fernvenue.com/archives/flakes-as-art/
1•fernvenue•40m ago•0 comments

Public Libraries Scrap Late Fines to Alleviate Inequity (2019)

https://www.kuow.org/stories/we-wanted-our-patrons-back-public-libraries-scrap-late-fines-to-alle...
1•thunderbong•41m ago•0 comments

The Spectrum of Agentic Coding [video]

https://vimeo.com/1187957189
1•ykdojo•42m ago•0 comments

Show HN: Booksearch – fast TUI search for book collections

https://github.com/rahimnathwani/booksearch
1•rahimnathwani•45m ago•0 comments

Apple Q2 2026 earnings report

https://www.cnbc.com/2026/04/30/apple-aapl-q2-2026-earnings-report.html
2•kristianp•47m ago•0 comments