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.

Maximising the Value of Ajinomoto

https://mms.businesswire.com/media/20260331226478/en/2761328/1/EN_Palliser_-_Ajinomoto_Value_Enha...
1•num42•19s ago•0 comments

ClawHub skills turn AI agents into a crypto swarm

https://www.theregister.com/2026/04/29/30_clawhub_skills_mine_crypto/
1•Bender•31s ago•0 comments

Ramping Figure 03 Production

https://www.figure.ai/news/ramping-figure-03-production
1•denysvitali•33s ago•0 comments

Superpower for Gemini – Chrome Extension

https://superpowerforai.com/Gemini/Home/
1•Kindly_Revenue•1m ago•0 comments

NASA Boss: Make Pluto a Planet Again

https://www.theregister.com/2026/04/29/nasa_boss_make_pluto_a_planet_again/
1•LorenDB•2m ago•0 comments

Is there any way to stop getting AI made video suggestions in YouTube?

2•tukunjil•4m ago•1 comments

Why Math's Final Axiom Proved So Controversial

https://www.quantamagazine.org/why-maths-final-axiom-proved-so-controversial-20260429/
1•Tomte•4m ago•0 comments

Cyberdeck Design Log #1

https://strangelyentangled.com/blog/cyberdeck-design-log1/
1•abnercoimbre•6m ago•0 comments

Canada Proposes Poet Mission to Hunt Earth-Sized Planets

https://www.universetoday.com/articles/canada-proposes-poet-mission-to-hunt-earth-sized-planets
1•rbanffy•6m ago•0 comments

Session-Surface Protocol v0.1: A draft spec for private surfaces in LUIs

https://www.curatedfuture.com/the-session-surface-protocol/
1•reyperalta•6m ago•0 comments

Show HN: Chrome extension shows Gmail/Workspace users which sites leak email

https://zaai.com/clean-autofill/
1•manuelgruber•7m ago•0 comments

Court Rules 2nd Amendment Covers Firearms Parts Good News Those Who Build Guns

https://cowboystatedaily.com/2026/04/28/court-rules-2nd-amendment-covers-firearms-parts-good-news...
5•Bender•7m ago•0 comments

Why TVs Are Getting Uncomfortably Bright, and Here's Why

https://www.cnet.com/tech/home-entertainment/tvs-are-getting-brighter-we-tested-them-but-why-is-t...
1•pseudolus•8m ago•0 comments

Show HN: TripBalls – plan road trips to away games (MLB, NFL, NBA, WC2026)

https://tripballs.now/
1•sanjosanjo•9m ago•0 comments

CPanel, WHM emergency update fixes critical auth bypass bug

https://www.bleepingcomputer.com/news/security/cpanel-whm-emergency-update-fixes-critical-auth-by...
1•cdrnsf•9m ago•0 comments

Communicating Our Research with Stakeholders to Achieve Alignment and Trust

https://blog.ptidej.net/ghost/#/editor/post/699bd9175e8d158bfbb87c42
1•Minette•9m ago•1 comments

DESI Completes Its Epic 3D Map, Hinting That Dark Energy Might Be Changing

https://www.universetoday.com/articles/desi-completes-its-epic-3d-map-hinting-that-dark-energy-mi...
1•rbanffy•9m ago•0 comments

Show HN: Ccmeter – local-first cost and cache dashboard for Claude Code

https://github.com/vnmoorthy/ccmeter
1•vnmoorthy•9m ago•0 comments

Tech is in turmoil–but the rest of corporate America isn't. One CEO knows why

https://fortune.com/2026/04/28/tech-layoffs-ai-disruption-corporate-america-doesnt-one-silicon-va...
1•CharlesW•9m ago•0 comments

You can now generate files in Gemini

https://blog.google/innovation-and-ai/products/gemini-app/generate-files-in-gemini/
2•xnx•10m ago•0 comments

The Voynich Manuscript

https://beinecke.library.yale.edu/collections/highlights/voynich-manuscript
1•dan-bailey•10m ago•0 comments

Attempt to repeal Colorado's right-to-repair law fails

https://www.wired.com/story/colorado-anti-repair-bill-is-dead/
3•Bender•12m ago•1 comments

Tailscale and Paperless-ngx: scan everything, expose nothing

https://tailscale.com/blog/paperless-ngx-local-ai-document-search
1•Brajeshwar•12m ago•0 comments

Show HN: A new benchmark for testing LLMs for deterministic outputs

https://interfaze.ai/blog/introducing-structured-output-benchmark
2•khurdula•14m ago•0 comments

SWE-Chat: Coding Agent Interactions from Real Users in the Wild

https://www.swe-chat.com/
1•derekcheng08•14m ago•1 comments

Spooky feelings in old houses may be caused by boiler sounds, study suggests

https://www.theguardian.com/science/2026/apr/27/spooky-feelings-in-old-houses-may-be-caused-by-bo...
1•bookofjoe•15m ago•1 comments

Friendly AI chatbots make more mistakes and tell people what they want to hear

https://www.oii.ox.ac.uk/news-events/friendly-ai-chatbots-make-more-mistakes-and-tell-people-what...
2•dijksterhuis•15m ago•1 comments

ElevenLabs launches ElevenMusic

https://elevenmusic.io
1•louisjoejordan•16m ago•0 comments

Quantum Hardening Bitcoin: Cryptographers init PQC engineering and review

https://lclhost.org/blog/post-quantum-cryptography-group/
1•DINKDINK•16m ago•0 comments

Sea Silk

https://en.wikipedia.org/wiki/Sea_silk
2•thunderbong•18m ago•0 comments