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.

Show HN: The Stack, a Clay sculpture that writes poems through Wi-Fi [video]

https://vimeo.com/1181880000
1•G_S•38s ago•0 comments

Gender Medicine Set Itself Up for Disaster

https://www.compactmag.com/article/how-gender-medicine-set-itself-up-for-disaster/
1•isolli•1m ago•0 comments

Show HN: Polter – Agent Driven UI (react library)

https://mydatavalue.github.io/polter/
1•lemonade311•3m ago•0 comments

The Building Block Economy – Mitchell Hashimoto

https://mitchellh.com/writing/building-block-economy
1•futurecat•3m ago•0 comments

Untaxed hidden wealth surpasses wealth of the poorest half of humanity

https://www.oxfam.org/en/press-releases/untaxed-wealth-hidden-offshore-richest-01-surpasses-entir...
2•robtherobber•4m ago•0 comments

We're Getting the Wrong Message from Mythos

https://danielmiessler.com/blog/wrong-message-from-mythos
1•tobr•16m ago•0 comments

Mesurer: Measure and Align Everything on Localhost

https://mesurer.ibelick.com
1•handfuloflight•17m ago•0 comments

Supply chain attack on CPU-Z and HWMonitor

https://twitter.com/vxunderground/status/2042483067655262461
1•aprilnya•19m ago•1 comments

US plans to automatically register young men for military draft

https://www.bbc.com/news/articles/cd6lx2lpl9xo
3•georgecmu•22m ago•0 comments

Show HN: Open-Source MCP Servers – Twitter, Bluesky, LinkedIn, Google Ads, HN

https://github.com/isteamhq/mcp-servers
3•spotlayn•26m ago•0 comments

Elastic Tabstops (2006)

https://nick-gravgaard.com/elastic-tabstops/
1•dhruv3006•26m ago•0 comments

Show HN: Emduke32 – duke nukem 3D native in your web browser

https://originalsouth.github.io/emduke32/
1•originalsouth•28m ago•0 comments

Show HN: Hindsight Simulator – Go back in time and get rich

https://chrispattle.com/hindsight-simulator
3•pattle•29m ago•0 comments

Startup Focido joins the Limb accelerator

https://focido.com/
1•vladimir_fc•30m ago•0 comments

Running Terraform against Azure locally, without a subscription

https://topaz.thecloudtheory.com/blog/terraform-local-azure-no-subscription/
2•kamilmrzyglod•32m ago•0 comments

Show HN: Nvim plugin to jump to concrete interface implementation for Python

https://github.com/sigfriedCub1990/nvim.py_gti
1•sigfriedcub1990•32m ago•0 comments

TOON: Token-Oriented Object Notation

https://toonformat.dev/
2•pramodbiligiri•33m ago•0 comments

Kintify AI tool to analyze cloud issues and suggest fixes

1•kintify•34m ago•0 comments

Show HN: Mantyx – Agents that solve real problems for you and your business

https://mantyx.io/
2•mantyx•39m ago•0 comments

Architecting the Autonomous Enterprise with Agentic Workflows

https://viitorcloud.com/blog/ai-integration-services-for-agentic-workflows/
2•Olivia_Watson•41m ago•0 comments

I shipped a transaction bug, so I built a linter

https://leonh.fr/posts/go-transaction-linter/
1•leonhfr•41m ago•0 comments

Surelock

https://notes.brooklynzelenka.com/Blog/Surelock
1•lukastyrychtr•43m ago•0 comments

LLM Wiki v2 – extends Karpathy's take on LLM wiki

https://gist.github.com/rohitg00/2067ab416f7bbe447c1977edaaa681e2
1•rohitghumare•43m ago•0 comments

For AI, energy is the final frontier

https://m4ttl4w.substack.com/p/energy-the-final-frontier
1•mattyboomboom•44m ago•0 comments

We pay you 2x back if you follow the plan and miss your goal – 30 free codes

https://nano.com/
1•DiegoGilH•45m ago•0 comments

From $11/Month to $0: How I Used AI to Reclaim My Evening

https://www.rockoder.com/blog/website-migration/
2•ZacnyLos•48m ago•0 comments

Show HN: Keeper – embedded secret store for Go (help me break it)

https://github.com/agberohq/keeper
2•babawere•48m ago•0 comments

AI camera scanning cars issue 500k unjustified fines/year in the Nederlands

https://nltimes.nl/2026/04/09/camera-scanning-cars-issue-500000-unjustified-parking-fines-per-yea...
2•giuliomagnifico•50m ago•0 comments

Pizza Tycoon

https://store.steampowered.com/app/598990/Pizza_Connection/
2•doener•50m ago•0 comments

Sharp – Textured Display

https://blog.global.sharp/2025/05/16/21336/
1•TEHERET•51m ago•0 comments