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.

Supporting a shared AI training control for websites

https://developers.google.com/search/blog/2026/10/ai-training-control
1•gnabgib•1m ago•0 comments

Skip navigation Create Avatar image What your developers aren't telling you [video]

https://www.youtube.com/watch?v=E3hUVVuQwdw
1•mooreds•1m ago•0 comments

Failure analysis of the Arecibo Observatory 305-meter telescope collapse

https://www.nationalacademies.org/read/26982
1•fanf2•2m ago•0 comments

SOML – A Config Format for Humans

https://github.com/soml-lang/soml
1•microflash•2m ago•0 comments

New PRC rules require geodata from connected cars to stay in China

https://asia-tech-news.ghost.io/new-prc-rules-require-geodata-from-connected-cars-to-stay-in-china/
1•ilamont•3m ago•0 comments

Ubuntu still has not released patch for Linux 0day RCE in almost 3 weeks

https://freenode.net/article/ubuntu-lts-kernels-still-unfixed-for-critical-cve-2026-98432
2•majorchord•4m ago•2 comments

7 Months on the Frontlines with a Russian Battalion [video]

https://www.youtube.com/watch?v=onHBXHHalhI
1•StromFLIX•5m ago•0 comments

Know the best move when playing chess with Meta glasses

https://www.reverse.dev/pjchess
1•stosssik•6m ago•0 comments

Sandboxes favor repo-native tooling

https://epiq.sh/blog/repo-native-tooling-for-sandboxes.html
1•ionetan•6m ago•0 comments

Show HN: Vantage – Early-Warning Signals

https://aditya-web-portfolio.vercel.app/blogs/vantage
1•rearview•6m ago•0 comments

Stacy's Brain

https://stacysbrain.com
1•MaxIakovlev•7m ago•1 comments

Anthropic and OpenAI Are Creating Warrooms for Election Misinformation

https://www.semafor.com/article/11/02/2026/election-war-rooms-enter-the-ai-age
1•sp4cec0wb0y•9m ago•0 comments

Yozo – a custom element library for simple, robust and readable components

https://yozo.ooo
1•microflash•10m ago•0 comments

Linux reverts a feature designed to reduce bug-report noise

https://www.phoronix.com/news/Linux-7.4-Drops-Taint-Bind
2•zomtorg•10m ago•0 comments

AI models are enabling suicide

https://twitter.com/Prosaic_int/status/2117318562880905678
1•chef_wang•11m ago•1 comments

Show HN: Intent-lens – see what Claude Code is about to do, before it does it

https://github.com/Dhananjay-JSR/claude-mods/tree/main/plugins/intent-lens
1•dhananjay-jsr•11m ago•0 comments

Agentic Backdoors via Pretraining Poisoning

https://arxiv.org/abs/2610.37741
3•gmays•13m ago•0 comments

'Sniff' and 'Smell': Making Sense of Scent

https://www.wsj.com/arts-culture/books/sniff-and-smell-making-sense-of-scent-f31ead7a
1•Caiero•13m ago•0 comments

How Did Big Tech Get So Big? [video]

https://www.youtube.com/watch?v=fwW3XVFrm9c
1•aaraujo002•14m ago•0 comments

A 450 KB ad-free Android TV launcher with reversible ADB debloat scripts

https://github.com/Fardin7798/Spider-Tv-Launcher
1•AshhalPookie•14m ago•0 comments

Show HN: Noctty – A fast, native terminal for Windows

https://github.com/amanthanvi/noctty
1•amanthanvi•15m ago•0 comments

In one of the largest deals in tech history, Marvell buys Lumentum for $115B

https://techcrunch.com/2026/11/02/in-one-of-the-largest-deals-in-tech-history-marvell-buys-lument...
2•adwmayer•15m ago•0 comments

Researchers face record-low chances of getting a grant partly due to rise of AI

https://nltimes.nl/2026/11/02/researchers-face-record-low-chances-getting-grant-partly-due-rise-ai
3•giuliomagnifico•15m ago•0 comments

Mithril.js with signals, state, SSR and a store

https://code.garage44.eu/jeroen/mithril
1•thunderbong•17m ago•0 comments

Lessons from Red-Teaming Auto-Review, OpenAI's Blocking Monitor

https://www.lesswrong.com/posts/dbStc8ZFESqfihwAd/lessons-from-red-teaming-auto-review-openai-s-b...
1•gmays•19m ago•0 comments

Rebuild Rust in Milliseconds

https://weeklyrust.substack.com/p/rebuild-rust-in-milliseconds
1•rustbytes•19m ago•0 comments

America's Gulf Allies Prepare for New Round of Strikes on Iran–and the Blowback

https://www.wsj.com/world/middle-east/americas-gulf-allies-prepare-for-new-round-of-strikes-on-ir...
3•throwaway5752•20m ago•0 comments

Some Memories of Early Anthropic

https://nothinghuman.substack.com/p/some-memories-of-early-anthropic
1•wskinner•22m ago•0 comments

Astra can read and write weights to improve Qwen

https://rikiyat.github.io/blog/weight-space-programming/
5•dbreunig•23m ago•0 comments

Ocarina of Time – Google Search

https://www.google.com/search?q=Ocarina+of+Time
2•xnx•23m ago•1 comments