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.

Too many meetings? Try this

https://www.leadinginproduct.com/p/how-to-have-fewer-meetings
1•benkan•3m ago•0 comments

USAF Esports Team Wins the 2026 Armed Forces Esports Championship

https://armedforcessports.defense.gov/Media/News-Stories/Article-View/Article/4470862/us-air-forc...
1•nxobject•4m ago•0 comments

BYD Seal 08 debuts with Blade Battery 2.0: 1,000km range, 5-min charging, 684hp

https://electrek.co/2026/04/27/byd-seal-08-blade-battery-2-1000km-range-beijing-auto-show/
2•breve•4m ago•0 comments

CATL says sodium batteries are mainstream-ready, signs 60 GWh deal

https://electrek.co/2026/04/27/catl-sodium-ion-battery-60gwh-energy-storage-deal/
1•breve•6m ago•0 comments

AgentCheck – Pytest for AI Agents

https://pypi.org/project/pygent-test/
2•ash_ai•9m ago•0 comments

GTFOBins

https://gtfobins.org/
3•StefanBatory•9m ago•0 comments

The next step beyond Lovable–where the AI doesn't just build the UI

https://www.extern.co.za/
1•Luncedo•9m ago•1 comments

IMDB introduces mandatory account: User reviews only readable after login

https://basic-tutorials.com/news/imdb-introduces-mandatory-account-user-reviews-only-readable-aft...
2•tokyobreakfast•10m ago•0 comments

Show HN: Modern alternative to Google Dictionary, AI-powered and context-aware

https://chromewebstore.google.com/detail/quickdef-–-ai-dictionary/ioepkncpchchdiookgpkckafhfjcehke
1•hanifrev•13m ago•0 comments

Show HN: Gate – AI workers handle dev tickets in a visual workspace

https://soliddark.net/gate
1•SolidDark•16m ago•0 comments

Cryptography Challenges KalmarCTF 2026

https://blog.zksecurity.xyz/posts/kalmar2026/
3•ahpuh•19m ago•0 comments

Curryvim, the new Neovim distro, that does not try to be VSCode

https://github.com/SyntaxError2505/curryvim
1•SyntaxError2505•30m ago•0 comments

Our response to the April 2026 incident

https://lovable.dev/blog/our-response-to-the-april-2026-incident
1•filleokus•40m ago•0 comments

Barbara Liskov: Data Abstraction, Dijkstra, Distributed Systems

https://www.developing.dev/p/turing-award-winner-data-abstraction
1•signa11•42m ago•0 comments

Show HN: Netflix for Internet Pirates

https://plank.lsreeder.com/
1•lsreeder01•42m ago•1 comments

Building an In-House Lovable

https://engineering.merciyanis.com/blog/going-ai-native-how-we-handed-our-backlog-to-agents
1•axi0m•44m ago•0 comments

Pompeii archaeologists use AI to reconstruct man killed in volcano's eruption

https://www.npr.org/2026/04/28/g-s1-118986/pompeii-archaeologists-use-ai-to-reconstruct-man-kille...
1•razorbeamz•51m ago•0 comments

Show HN: Nat-zero – Scale-to-zero NAT instances for AWS (Terraform module)

https://machine.dev/blog/nat-zero-scale-to-zero-nat-instances/
1•leonardosul•55m ago•1 comments

Porting a Scratch-Built 500M LLM Training Pipeline to ROCm on Strix Halo

https://github.com/epscylonb/1386.ai.rocm
1•thomasfromcdnjs•57m ago•0 comments

Wire: Secure Messenger from Berlin

https://wire.com/en/
2•cl3misch•58m ago•0 comments

Show HN: A narrative walk through AI history, paper by paper (1936–2025)

https://github.com/hgus107/A-Long-Walk-of-AI
1•hgus107•1h ago•0 comments

Vibe Coding Will Break Your Company

https://www.forbes.com/sites/jasonwingard/2026/04/23/vibe-coding-will-break-your-company/
43•sminchev•1h ago•23 comments

Requests for Startups

https://www.ycombinator.com/rfs
2•taubek•1h ago•0 comments

Xiaomi open-sources MiMo-V2.5: 311B A15B 1M-context omnimodal model

https://huggingface.co/XiaomiMiMo/MiMo-V2.5
2•gainsurier•1h ago•0 comments

For the average price of a car in the US, you could buy 4 new Chinese EVs

https://english.kyodonews.net/articles/-/75029
10•anigbrowl•1h ago•1 comments

Show HN: Discuss CLI – No more reviewing agent plans in the terminal

https://github.com/codesoda/discuss-cli/
1•codesoda•1h ago•1 comments

What Claude Shannon Knew in 1950 That We're Pretending Is New

https://www.thecontentwrangler.com/p/what-claude-shannon-knew-in-1950
5•eigenBasis•1h ago•0 comments

Billionaire tax proposal in California on track to qualify for ballot

https://www.boston25news.com/news/national/billionaire-tax/CB6SLQIFI42VDPRJQ37OBMS4TY/
4•1vuio0pswjnm7•1h ago•1 comments

Nvidia's Reaches New Record at Nearly $5.3T Value

https://www.forbes.com/sites/antoniopequenoiv/2026/04/27/nvidia-sets-new-record-with-nearly-53-tr...
2•mgh2•1h ago•1 comments

Ideavalu – AI generates startup ideas based on your esperience

https://www.ideavalu.com
1•Sottasan•1h ago•1 comments