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.

Apple launches research study to explore the use of AI for health

https://www.apple.com/newsroom/2026/11/apple-launches-research-study-to-explore-the-use-of-ai-for...
2•johnbehnke•4m ago•0 comments

Show HN: Agency – give your agents the computer you own

https://agency.makors.xyz/
1•bryce2010va•10m ago•0 comments

TRMI: Multiplayer ADE with Shared Memory

https://trmi.dev/download
1•slyda99•11m ago•1 comments

How NewsNinja syncs all its data in less than 1 MB of iCloud

https://ainews.ninja/blog/icloud-key-value-store-sync/
1•xeo84•15m ago•0 comments

"Who is Hiring?" postings stuck near 12-year lows as AI reaches half of all jobs

https://www.hntrends.com/2026/november.html
10•myth_drannon•16m ago•0 comments

Visualizing Metra (2011)

https://www.c82.net/blog/visualizing-metra
1•tomeraberbach•17m ago•0 comments

Agentic AI Designs an Analog Synthesizer

https://cpldcpu.github.io/2026/11/14/touchsynth/
1•oidar•20m ago•1 comments

Demudhra.sh, remove the leaked eMudhra certs from your machine

https://demudhra.sh/
1•odpay•21m ago•0 comments

Vocab Break

https://ianbarber.blog/2026/08/24/vocab-break/
1•gmays•23m ago•0 comments

Everything Made by an AI Is in the Public Domain

https://pluralistic.net/2023/08/20/everything-made-by-an-ai-is-in-the-public-domain/
2•signa11•24m ago•1 comments

California Bans Wealth Taxes

https://www.latimes.com/california/story/2026-11-13/voters-pass-proposition-42-barring-new-taxes-...
6•delichon•25m ago•2 comments

The Brilliant Compose Key

https://orangc.net/notes/compose-key
1•bariumbitmap•25m ago•0 comments

The need for at least a third option

https://blog.ovalerio.net/archives/3359
1•rowbin•28m ago•0 comments

Show HN: JA4 Fingerprinting: Why One Digest Can Cover User-Agents

https://zlu.me/2026/11/16/ja4-same-fingerprint-many-user-agents.html
1•zlu•29m ago•0 comments

Petrichor and Geosmin – The Smell of Rain

https://sciencenotes.org/petrichor-and-geosmin-the-smell-of-rain/
1•thunderbong•29m ago•0 comments

Vulcan rocket fails, destroying 40 Amazon Leo satellites

https://www.theverge.com/science/1034006/vulcan-rocket-fails-destroying-40-amazon-leo-satellites
1•madihaa•30m ago•0 comments

I Sustained 500K Words of Human–AI Dialogue Through Continuous Correction

https://uka-135-map.pplx.app
1•pinuslongaeva•30m ago•0 comments

Coles hit by a cybersecurity incident

https://www.colesgroup.com.au/updates/
8•sagunsh•33m ago•1 comments

Show HN: MIB Viewer Desktop – SNMP MIB Browser with 20k MIBs

https://mib-viewer.com/products/mib-viewer-desktop/
1•beefstew123•39m ago•0 comments

DroidPath – Stream Android UI Trees at 60Hz over TCP (Bypassing ADB)

https://github.com/V0val0x/DroidPath
1•Ak4shik•39m ago•0 comments

Nimony: A New Compiler for Nim

https://nimony.org/
1•Fervicus•43m ago•0 comments

Bringing fast wireless connectivity to the world

https://www.csiro.au/en/research/technology-space/it/Wireless-LAN
2•thamiltonsmith•48m ago•0 comments

Keytrace – One identity, many proofs

https://keytrace.dev/
1•figmert•48m ago•0 comments

Show HN: Small service for moving invoices from Cliniko to QuickBooks

https://invoice-funnel.com
1•dre85•49m ago•0 comments

The Legion of PCAST

https://daringfireball.net/linked/2026/11/15/legion-of-pcast
1•chmaynard•49m ago•0 comments

Show HN: gavel: guided code review with your coding agent

https://photostructure.com/coding/gavel/
1•mceachen•56m ago•0 comments

'It's like the Wild West': how AI has rocked the literary world

https://www.theguardian.com/books/ng-interactive/2026/nov/14/its-like-the-wild-west-how-ai-has-ro...
5•Archelaos•56m ago•1 comments

Librsvg 2.62.3: a C library that renders SVG to Cairo

https://github.com/randy-/librsvg
1•oss-fbs•57m ago•0 comments

Amazon MadPot: Honeypot for AI Agents

https://aws.amazon.com/blogs/security/amazon-threat-intelligence-observes-threat-actors-running-c...
2•dnw•57m ago•0 comments

Evolution Design a Chess Army [video]

https://www.youtube.com/watch?v=KA6cHlighO0
1•K0IN•58m ago•1 comments