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

Building an eBPF/XDP L2 Direct Server Return Load Balancer from Scratch

https://labs.iximiuz.com/tutorials/xdp-dsr-layer2-lb-92b02f3e
1•valyala•3m ago•0 comments

Show HN: CouchDB Importer – A pragmatic CSV/JSON import tool

https://github.com/wanjus/couchdb-importer
1•wanjus•5m ago•0 comments

Schwarz-Christoffel Mapping

https://en.wikipedia.org/wiki/Schwarz%E2%80%93Christoffel_mapping
1•ogogmad•5m ago•0 comments

How to Preserve Your Writing for a Hundred Years

https://idiallo.com/blog/preserve-your-writing-for-a-hundred-years
1•leephillips•5m ago•0 comments

AI Full-Stack App and Website Builder with Fewer Hallucinations, Runs Locally

https://www.elaric.ai
2•Aman_Kalwar•8m ago•2 comments

Iran Protest Death Toll Could Top 30k, According to Local Health Officials

https://time.com/7357635/more-than-30000-killed-in-iran-say-senior-officials/
3•mhb•10m ago•0 comments

Lawsuit claims Meta can see WhatsApp chats in breach of privacy

https://finance.yahoo.com/news/lawsuit-claims-meta-see-whatsapp-013745124.html
2•phyzix5761•11m ago•0 comments

The IndieWeb and Small Web

https://christiano.dev/post/indieweb_smallweb/
1•todsacerdoti•12m ago•0 comments

What is the best way to train for a marathon?

https://www.economist.com/science-and-technology/2025/12/26/what-is-the-best-way-to-train-for-a-m...
1•rienbdj•14m ago•0 comments

Secret 'discombobulator' weapon was crucial to Venezuelan raid on Maduro

https://nypost.com/2026/01/24/us-news/trump-reveals-to-the-post-secret-discombobulator-weapon-was...
2•diogenes_atx•14m ago•0 comments

Computing Sharding with Einsum

https://blog.ezyang.com/2026/01/computing-sharding-with-einsum/
1•matt_d•14m ago•0 comments

Climber Alex Honnold scales 101-floor skyscraper without safety gear

https://www.bbc.com/news/articles/c4gl0njzxjdo
1•bookofjoe•19m ago•1 comments

Show HN: Nyola – A daily Pareidolia tool (draw what you see in clouds)

https://apps.apple.com/us/app/nyola/id6755757565
1•Foilleuse•20m ago•1 comments

Agent Skills Threat Model

https://safedep.io/agent-skills-threat-model/
2•abhisek•21m ago•0 comments

I Have Spent 500 Hours Programming With AI. This Is what I learned [video]

https://www.youtube.com/watch?v=91B_v-wOaws
1•EPendragon•22m ago•0 comments

Show HN: Interactive "Zero to Hero" – Practice what you learn with live feedback

https://zero-to-hero.app/
1•jayseb•25m ago•0 comments

Show HN: JsonUI – Constrain AI agents through code structure, not prompts

1•tai-kimura•26m ago•0 comments

Ask HN: What are the most significant man-made creations to date?

3•George97•32m ago•4 comments

Free climbing in Greenland: Arctic ascent with Alex Honnold [video]

https://www.youtube.com/watch?v=ep-xRQDTiOg
1•teleforce•33m ago•0 comments

Breakmeifyoucan: Exploiting PKO and Relay Attacks in 3DES/AES NFC Technologies

https://breakmeifyoucan.com/
2•netsec_burn•33m ago•0 comments

Show HN: Local Masonry Video Player – Pinterest UI, Prompt Search, Mobile Stream

https://github.com/HoujyouChomei/local-masonry-video-player
1•choumei•33m ago•1 comments

Tinder for Issues

https://twitter.com/acolombiadev/status/2014830414410518885
1•andreag11•35m ago•0 comments

PlowNYC: Track the progress of DSNY snow removal vehicles

https://plownyc.cityofnewyork.us/plownyc/
1•exegete•35m ago•0 comments

Show HN: HomeGenGuide – Calculator for home generator installation costs

https://www.home-generator-installation.com
2•vansxxx•36m ago•0 comments

EditTools

https://edittools.org
1•zhouhua•37m ago•0 comments

Fixing Breadboards for Wide Microcontrollers – Pico and ESP32 Edition

https://www.instructables.com/Fixing-Breadboards-for-Wide-Microcontrollers-Pico-/
1•rbanffy•37m ago•0 comments

Show HN: Reminders to Stay in Touch with Friends

https://myfriends.lol
1•alabhyajindal•38m ago•0 comments

Who is using AI to code? Global diffusion and impact of generative AI

https://www.science.org/doi/10.1126/science.adz9311
4•oss_fan•42m ago•1 comments

I reverse-engineered Kindle to build on-demand AI audiobooks

https://blog.ryanbbrown.com/p/i-reverse-engineered-kindle-to-build
2•ryanbbrown•42m ago•0 comments

SoundCloud deleted 12 years of my music – so I built my own

3•miguelmichelson•42m ago•0 comments