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

Ask HN: AI Agents took my programming job. What can I do?

1•butILoveLife•33s ago•0 comments

Jeff Kaplan: World of Warcraft, Overwatch, Blizzard, and Future of Gaming [video]

https://www.youtube.com/watch?v=H9rF1CSSh-w
1•neko_ranger•1m ago•0 comments

High court claimant was fed answers through his smart glasses, judge finds

https://www.theguardian.com/uk-news/2026/mar/13/high-court-smart-glasses-fed-answers-evidence
1•chrisjj•2m ago•0 comments

The Stalk Market

https://www.stalk-market.com
1•mooreds•4m ago•0 comments

Election Data Handed over to the FBI in Maricopa County Could Be Fatally Flawed

https://www.propublica.org/article/maricopa-county-arizona-election-records-fbi
1•hn_acker•5m ago•1 comments

Proton's Swiss Myth: US Jurisdiction via Cloudflare and FAA Arbitration Clauses

1•MissMajordazure•5m ago•0 comments

Show HN: CaliVibe – Explore California Neighbourhoods

https://trekhleb.dev/cali-vibe/
1•trekhleb•5m ago•0 comments

The race to solve the biggest problem in quantum computing

https://www.newscientist.com/article/2518974-the-race-to-solve-the-biggest-problem-in-quantum-com...
1•Brajeshwar•5m ago•0 comments

Boulder's middle-income down payment program drew zero applicants in 3 years

https://boulderreportinglab.org/2026/03/12/boulders-middle-income-down-payment-program-drew-zero-...
1•mooreds•5m ago•0 comments

Sandcat – Docker and dev container setup for securely running AI agents

https://github.com/VirtusLab/sandcat
4•mihau•6m ago•0 comments

Show HN: Fine-tuned 3B outperforms Claude Haiku on constrained generation

https://serendip-ml.github.io/fine-tuned-3b-beats-haiku/
1•serendip-ml•6m ago•0 comments

New Tools Added

https://everytool.solutions/
1•Mihir1426•6m ago•1 comments

What Crystals Older Than the Sun Reveal About the Start of the Solar System

https://www.quantamagazine.org/what-crystals-older-than-the-sun-reveal-about-the-start-of-the-sol...
1•colinprince•7m ago•0 comments

Comparing income and hours worked across countries and states for the bottom 95%

https://bsky.app/profile/jakemgrumbach.bsky.social/post/3mgdis6q3oc2o
2•colinprince•7m ago•0 comments

The Uncomfortable

https://www.theuncomfortable.com/
1•bookofjoe•10m ago•0 comments

Show HN: Every AI tool claims to be revolutionary. We built a place to test it

https://glad-ia-tor.com/
2•Enjoyooor•10m ago•0 comments

Four crew members killed after US refuelling plane crashes in Iraq

https://www.bbc.com/news/articles/cy0dz5ql17vo
6•tartoran•10m ago•0 comments

Sharing encrypted files in a single HTML file

https://blog.alcazarsec.com/posts/portable-secret-use-cases
1•alcazar•11m ago•0 comments

AI Software Tells Cops to Arrest the Wrong Guy

https://thecivilrightslawyer.com/2026/03/11/ai-software-tells-cops-to-arrest-the-wrong-guy/
2•FinnKuhn•12m ago•1 comments

A Brief History of Software Engineering (Wirth: 2008) [pdf]

https://people.inf.ethz.ch/wirth/Miscellaneous/IEEE-Annals.pdf
1•recursivedoubts•14m ago•0 comments

'Comatose' Mojtaba Khamenei 'is unaware he is supreme leader'

https://www.dailymail.co.uk/news/article-15642237/Mojtaba-Khamenei-UNAWARE-war-coma.html
1•Bender•14m ago•1 comments

Immersive Navigation is Google Maps' biggest upgrade in a decade

https://www.androidpolice.com/google-maps-immersive-navigation-ask-maps-chat-rollout/
2•golfer•14m ago•0 comments

Meta to Deploy Four New In-House Chips to Handle AI

https://www.bloomberg.com/news/articles/2026-03-11/meta-preparing-to-deploy-four-new-homegrown-ch...
1•gmays•16m ago•0 comments

California Considers Grizzly Reintroduction Plan That Could Use Wyoming Bears

https://cowboystatedaily.com/2026/03/12/california-considers-grizzly-reintroduction-plan-that-cou...
1•Bender•17m ago•0 comments

Pentagon needs more missile interceptors; Artemis II clears review

https://arstechnica.com/space/2026/03/rocket-report-pentagon-needs-more-missile-interceptors-arte...
1•Bender•18m ago•0 comments

Show HN: HealUp – Task execution app that hides your todo list on purpose

https://www.healup.me
1•neshwa35•18m ago•0 comments

Software Bonkers

https://craigmod.com/essays/software_bonkers/
1•Tomte•18m ago•0 comments

Puppet Agent OS Support EOL: 90 Day Notice

https://groups.google.com/g/puppet-announce/c/7awnfHR0ZEg?pli=1
1•mooreds•18m ago•0 comments

Parallels Confirms MacBook Neo Can Run Windows in a Virtual Machine

https://www.macrumors.com/2026/03/13/macbook-neo-runs-windows-11-vm/
2•tosh•18m ago•0 comments

Show HN: Argus – AI agent that investigates infra anomalies and proposes fixes

https://github.com/precious112/Argus
1•PreciousH•19m ago•1 comments