frontpage.
newsnewestaskshowjobs

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.

Epic's EAC2 v2 seems fairly easily bypassable

https://codon.org.uk/~mjg59/blog/p/epics-eac2-v2-seems-fairly-easily-bypassable/
1•_____k•34s ago•0 comments

What goes into store-bought chicken stock (2023)

https://www.eater.com/23552129/what-is-in-store-bought-chicken-stock
1•thaumasiotes•51s ago•0 comments

How do you know your agent's memory layer is helping, not hurting?

https://github.com/yadu9989/memstrata-lme500-harness
1•yadu989•1m ago•0 comments

Rock Paper Scissors

https://fin.run/
1•stoicfungi•4m ago•0 comments

Nvidia Barred Neoclouds Running AMD Chips from GTC Berlin

https://twitter.com/SemiAnalysis_/status/2111162214891610496
1•bigwheels•4m ago•0 comments

Parallax (YC S26) – A live reviewer running alongside each coding agent

https://www.conifer.build/parallax/
1•loctran0323•11m ago•1 comments

Llama.cpp on a jailbroken PS5: run any GGUF model natively on the console

https://github.com/cobanov/PS5LM
2•Anon84•11m ago•0 comments

Many Screens Left

https://mbork.pl/2026-09-28_How_many_screens_left
1•speckx•12m ago•0 comments

Chicago-Area Cops Helped HSI Spy on Minnesota Anti-ICE Activists

https://www.wired.com/story/chicago-area-cops-helped-hsi-spy-on-minnesota-anti-ice-activists/
6•chaps•14m ago•0 comments

Musk approached Trump to slow down Starlink in Ukraine

https://www.telegraph.co.uk/world-news/2026/10/16/musk-approached-trump-slow-down-starlink-help-u...
17•defly•15m ago•4 comments

Anthropic's Valuation Collapsed by $500B

https://www.telegraph.co.uk/business/2026/10/16/anthropic-valuation-ipo-ai-stock-listing/
5•novaRom•16m ago•2 comments

We Got Duo Support in NetNewsWire

https://netnewswire.blog/2026/10/16/how-we-got-duo-support.html
2•frizlab•18m ago•0 comments

Show HN: Camera Controls and Motion for AI Video Prompts

https://www.kapwing.com/ai/prompt-generator/camera
1•jenthoven•18m ago•0 comments

China moves to curb tech exports, including AI, citing national security risks

https://apnews.com/article/china-export-restrictions-ai-chips-solar-us-5ac381c0c6d6628bbea2e0da7d...
2•atlasunshrugged•18m ago•0 comments

Widespread X Outage

https://developer.x.com/status
2•joshcsimmons•19m ago•0 comments

Show HN: Tinywm – a scrolling window manager for macOS, inspired by Niri

https://github.com/bbodi/tinywm
1•bbodi•21m ago•0 comments

The Missing Trust Layer for A2A Communication

https://a2aregistry.org/agents/900d4d12-f8e3-4512-ab85-aac98fde7da8/
1•gael_dev•22m ago•0 comments

Zombie shooter game based in San Francisco sparks online controversy

https://www.kron4.com/news/technology-ai/zombie-shooter-game-based-in-san-francisco-sparks-online...
2•CoffeeOnWrite•22m ago•1 comments

100GiB DB Served from a Durable Object

https://twitter.com/tantaman/status/2110946680661287406
2•tantaman•24m ago•0 comments

Show HN: 2026 Midterms Tracker blends polls and Kalshi/Poymarket odds

https://pressaudit.org/midterms-2026
1•SLHamlet•24m ago•0 comments

Lessons from two decades talking to parents who don't vaccinate their children

https://www.statnews.com/2026/09/29/understanding-vaccine-skepticism-in-parents/
2•brandonb•24m ago•0 comments

Will MOOCs Destroy Academia?

https://cacm.acm.org/opinion/will-moocs-destroy-academia/
2•theanonymousone•25m ago•2 comments

LLM says something, my tool track if it followed its promise on tools

https://www.raytracer.si/
1•godcreatebugs•25m ago•1 comments

MediFamily – Offline, AES-256 encrypted family health and pill vault

https://apps.apple.com/us/app/medifamily-health-organizer/id6810080893
1•Maslabs•25m ago•0 comments

Asset Speculation Japanese Bubble (1992)

https://www.nippon.com/en/in-depth/d00470/heisei-blues-the-post-bubble-struggles-of-japan’s-finan...
1•cryology•29m ago•0 comments

Open-sourcing SPACE, the sandbox platform behind Computer

https://www.perplexity.ai/hub/blog/open-sourcing-space
1•gmays•31m ago•0 comments

Incident Readiness and Response in Super Intelligence Training and Evaluation

https://www.cisa.gov/resources-tools/resources/key-practices-incident-readiness-and-response-supe...
2•retromagik•32m ago•2 comments

Anthropic assigned highest junk credit rating in June

https://www.ft.com/content/5a310aee-f555-4266-874c-b1b4db20186d
22•JumpCrisscross•32m ago•4 comments

History of Cdrom Technology

https://unclesp1d3r.github.io/posts/history-cdrom-technology/
3•speckx•33m ago•0 comments

Show HN: Webhix – Self-hosted webhook inspector in a single binary

https://github.com/GaIsBAX/Webhix
1•Webhix•33m ago•0 comments