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

Why I Built Mu

https://mu.xyz/post?id=1771160711053164263
1•asim•1m ago•0 comments

The Babies Kept in a Mysterious Los Angeles Mansion

https://www.newyorker.com/magazine/2026/02/16/the-babies-kept-in-a-mysterious-los-angeles-mansion
1•Anon84•3m ago•0 comments

Kagi Small Web

https://kagi.com/smallweb/
1•linhns•3m ago•0 comments

Show HN: Perlin Noise Terminal Animation in Rust (60 FPS, Truecolor)

https://github.com/denisepattenson/perlin-terminal
1•denisepattenson•5m ago•0 comments

Rediscovering the origins of my Lisp journey [Scheme]

https://journal.paoloamoroso.com/rediscovering-the-origins-of-my-lisp-journey
1•iGherghe•8m ago•0 comments

The Website Is Down

https://www.thewebsiteisdown.com/
3•thinkingemote•9m ago•0 comments

If you choose the homogenous mind, you are superfluous and will be cut out

https://geohot.github.io//blog/jekyll/update/2026/02/15/tiny-corp-product.html
1•piker•11m ago•0 comments

RTL-SDR Blog V4 Users Guide

https://www.rtl-sdr.com/v4/
1•marklit•11m ago•0 comments

Why is the tech industry so weird about bodies?

https://deadsimpletech.com/blog/carbon_dysphoria
1•jalev•16m ago•1 comments

A Conversation with Alan Kay (2004 for the date-obsessed pedants)

https://queue.acm.org/detail.cfm?id=1039523
2•gjvc•17m ago•0 comments

After 800 episodes, 'The Simpsons' creators look back – and ahead

https://apnews.com/article/simpsons-800-episodes-72d723e6d885b1944c9a1ec8b9a24c3a
1•1659447091•18m ago•0 comments

Show HN: Vibe Audit – Detecting Context Drift in Coding Agents

https://github.com/toumai266/Vibe-Audit
1•vulpez•20m ago•0 comments

Show HN: Clawntown – An Evolving Crustacean Island

https://clawntown.lol
1•acnops•21m ago•0 comments

The Bastard Operator from Hell

https://bofh.bjash.com/
2•Tomte•22m ago•0 comments

When interfaces become disposable

https://chrisloy.dev/post/2026/02/14/when-interfaces-become-disposable
1•chrisloy•24m ago•0 comments

uf

https://gitlab.com/b2495/uf
1•tosh•24m ago•0 comments

Roads to Rome (2015)

https://benedikt-gross.de/projects/roads-to-rome/
1•robin_reala•25m ago•0 comments

Amazon, Google Unwittingly Reveal the Severity of the U.S. Surveillance State

https://greenwald.substack.com/p/amazons-ring-and-googles-nest-unwittingly
4•mikece•25m ago•0 comments

LLMs Still Excel at Synthesis, Not Discovery

https://www.zbeegnew.dev/tech/ai_excels_at_synthesis_not_discovery/
1•zbeegnew•25m ago•0 comments

The A3 Handoff Canvas: Turn AI Delegation into a Repeatable Workflow

https://age-of-product.com/a3-handoff-canvas/
1•swolpers•31m ago•0 comments

Show HN: 500x faster string matching for Linux Netfilter (O(1) vs. O(N))

https://github.com/landerrosette/strider
1•landerrosette•32m ago•0 comments

Vstats: A dependency-free Linear Algebra, Statistics, ML library written in V

https://github.com/rodabt/vstats
1•fork-bomber•32m ago•0 comments

Show HN: Skill Container – a decent way to run and distribute agent skills

https://github.com/observerw/skill-container
1•observerw•34m ago•0 comments

What is Wireless Smart Utility Network (Wi-SUN)

https://www.everythingrf.com/community/what-is-wi-sun
1•teleforce•36m ago•0 comments

The New Ballmer Peak

https://www.adriankrebs.ch/blog/the-new-ballmer-peak/
2•hubraumhugo•37m ago•0 comments

Show HN: Turn LinkedIn profiles into Markdown for LLM use [open source]

https://chromewebstore.google.com/detail/linkedmd/ollpmcehgnalfeephmjlohapgjcagoch
1•jonaraphael•40m ago•0 comments

Let's learn to research before building

https://www.founderspace.work
1•VladCovaci•42m ago•1 comments

Python-powered machine learning analytics for GStreamer pipelines (2025)

https://www.collabora.com/news-and-blog/blog/2025/05/12/unleashing-gst-python-ml-analytics-gstrea...
1•emigre•42m ago•0 comments

Fake job recruiters hide malware in developer coding challenges

https://www.bleepingcomputer.com/news/security/fake-job-recruiters-hide-malware-in-developer-codi...
3•pseudolus•44m ago•0 comments

Calculus Made Easy (1910)

https://calculusmadeeasy.org/
1•Tomte•47m ago•0 comments