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•1y 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•1y 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•1y 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.

How to Stop a Killer Asteroid

https://thereader.mitpress.mit.edu/how-to-stop-a-killer-asteroid/
1•EA-3167•39s ago•0 comments

How big tobacco helped shape the design of ultra-processed foods

https://www.ucsf.edu/news/2026/06/432011/how-big-tobacco-helped-shape-design-ultra-processed-foods
1•hhs•2m ago•0 comments

Latent Agents: A Post-Training Procedure for Internalized Multi-Agent Debate

https://arxiv.org/abs/2604.24881
1•PaulHoule•2m ago•0 comments

Valve says it's ready to launch the Steam Machine this summer

https://www.theverge.com/games/943657/valve-steam-machine-frame-summer-launch-verified
1•droidjj•4m ago•0 comments

Introducing Boron Buckyballs: Theory that B80 cages can’t be made is disproved

https://cen.acs.org/materials/nanomaterials/buckyballs-boron-buckminster-fullerene-nanomaterials/...
1•crescit_eundo•5m ago•1 comments

Shouting in the Datacenter (2008) [video]

https://www.youtube.com/watch?v=tDacjrSCeq4
1•st_goliath•6m ago•0 comments

RIP Tech Interviews, Oxy Will Not Miss You

https://sageox.ai/blog/rip-tech-interviews
1•skadamat•6m ago•0 comments

White House will dump $700M of public funds into costly, unreliable coal again

https://electrek.co/2026/06/04/white-house-will-dump-700m-of-public-funds-into-costly-unreliable-...
1•Bender•7m ago•0 comments

Google releases fitbit air specs

https://support.google.com/googlehealth/thread/438625393/unleash-your-creativity-and-style-we%E2%...
1•subroutine•7m ago•0 comments

Flutter: macOS Malvertising Campaign Spreads New FlutterShell Backdoor

https://unit42.paloaltonetworks.com/flutterbridge-new-fluttershell-backdoor/
1•brazukadev•8m ago•0 comments

1ShotGen – Turn rough ideas into one-shot prompts for AI coding agents

https://1shotgen.com/
1•zachisparanoid•9m ago•0 comments

The rise of digital advertising and its economic implications (2024)

https://www.stlouisfed.org/on-the-economy/2024/oct/rise-digital-advertising-economic-implications
1•hhs•9m ago•0 comments

SpaceX IPO

https://spacexipo.com/
2•0xedb•12m ago•1 comments

The thorny question of work-life balance in European startups

https://www.ft.com/content/d8be5090-8b2f-46ce-a108-675d70b7ba8b
2•rustoo•14m ago•0 comments

Using Safetensors with Flax

https://www.gilesthomas.com/2026/06/flax-and-safetensors
1•gpjt•14m ago•0 comments

SpaceX, Other Mega IPOs Denied Fast Index Entry by S&P

https://www.bloomberg.com/news/articles/2026-06-04/s-p-dow-jones-keeps-megacap-ipo-rules-as-is-af...
4•tristanj•15m ago•1 comments

AI model predicts building fire spread, redirecting evacuees to safer exits

https://techxplore.com/news/2026-06-ai-redirecting-evacuees-safer-exits.html
1•lschueller•16m ago•0 comments

Shell, Awk, and Make Should Be Combined

https://www.oilshell.org/blog/2016/11/13.html
1•Chris2048•18m ago•0 comments

You want to build a Recommender System

https://knhash.in/recommender-system-in-prod/
1•kn81198•18m ago•0 comments

US Mint Steve Jobs coin sells out in just 11 minutes

https://appleinsider.com/articles/26/05/12/commemorative-us-mint-steve-jobs-coin-sells-out-in-jus...
3•ohjeez•19m ago•1 comments

Jujutsu v0.42.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.42.0
1•itskokeh•23m ago•1 comments

The skeptic's guide to humanoid robots going viral on the Internet

https://arstechnica.com/ai/2026/06/the-skeptics-guide-to-humanoid-robots-going-viral-on-the-inter...
1•dangle1•24m ago•0 comments

Show HN: Patina, an AI that learns your judgment, not just your tasks

https://github.com/Sanctum-Origo-Systems/patina
1•andywidjaja•24m ago•1 comments

Canada's CHU Will Go Silent on Shortwave on June 22, 2026

https://swling.com/blog/2026/05/canadas-chu-will-go-silent-on-shortwave-on-june-22-2026/
2•rmason•27m ago•1 comments

OWASP VulnerableApp Project: Break It. Scan It. Improve It

https://github.com/SasanLabs/VulnerableApp
2•newaccount12344•28m ago•1 comments

A one-parameter model that gets 100% on ARC-AGI-2

https://eitanturok.github.io/one-parameter-model/
2•jxmorris12•28m ago•0 comments

Training an Agentic Router for Optimal Cost-Performance on SWE Tasks

https://www.appliedcompute.com/research/training-an-agentic-router
2•matt_d•28m ago•0 comments

Symbiotic fungi underlie the regeneration potential of island rainforests

https://www.cell.com/current-biology/fulltext/S0960-9822(26)00435-5
3•PaulHoule•34m ago•0 comments

Ask HN: Hey, you, tech worker–how are you feeling?

2•arm32•36m ago•3 comments

ClawQueue – Open-source GitHub issue dispatcher for human-agent teams

https://github.com/ClawQueue/ClawQueue
2•clawqueue•38m ago•0 comments