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.

Ukraine, Russia Hit by Hacks Sending Fake Nuclear Attack Alerts

https://www.kyivpost.com/post/88855
2•entryleveljobsc•1m ago•0 comments

I used Claude to build and ship Oriel – a free, native-feeling macOS notch app

https://orielformac.pages.dev
2•tiagotaveira•1m ago•0 comments

Second cyberattack heats EU supermarket freezers to 50°C, destroying food

https://www.tomshardware.com/tech-industry/cyber-security/supermarket-freezers-across-europe-stru...
1•entryleveljobsc•2m ago•0 comments

One possible future for websites is gated communities

https://utcc.utoronto.ca/~cks/space/blog/web/OneWebFutureGatedCommunities
2•ingve•2m ago•0 comments

Toward the Self-Driving Computer

https://twitter.com/curtis_yarvin/status/2116326516296671441
2•MrBuddyCasino•2m ago•0 comments

A Powerful Mosquito-Hunting Laser Uses A.I. To Zap Winged Pests

https://www.nytimes.com/2026/10/30/business/mosquito-laser-ai.html
2•bushwart•3m ago•1 comments

Show HN: Disable ACR on Sony Bravia TV's Without Rooting

https://github.com/joelio/bravia-guard
1•_joel•12m ago•0 comments

How hard is it to check for whitespace?

https://serce.me/posts/2026-10-30-how-hard-is-it-to-check-for-whitespace
2•SerCe•18m ago•0 comments

Binance Clone App Development Cost for Mobile Exchange Platforms

https://cryptiecraft.com/binance-clone-development-cost/
1•monroealex17•19m ago•1 comments

Hatamoto is Apache 2.0 thanks to Ubuntu Shipit Programme

https://hatamoto.dev/post/hatamoto-is-apache-2-0-thanks-to-ubuntu-shipit-programme
3•zenincognito•20m ago•0 comments

Feynman's Messenger Lectures

https://www.feynmanlectures.caltech.edu/messenger.html
1•plurby•20m ago•0 comments

KITP Program: Intermediate-Scale AI for Physics

https://online.kitp.ucsb.edu/online/physicsai-m26/welcome/rm/jwvideo.html
1•nill0•23m ago•0 comments

How Wikipedia Rewrote Zionism

https://quillette.substack.com/p/how-wikipedia-rewrote-zionism
2•mpweiher•23m ago•0 comments

Show HN: HackerTube for Apple TV. Videos HN Recommends, on Your TV

3•jnaina•25m ago•1 comments

UK Business Births and Deaths

https://www.365finance.co.uk/business-births-and-deaths/
1•robtherobber•28m ago•0 comments

RFC 1149: Standard for the transmission of IP datagrams on avian carriers

https://www.rfc-editor.org/info/rfc1149/
1•JumpCrisscross•30m ago•0 comments

Show HN: Sortaballs – alternative modes for classic sort ball puzzle

https://sortaballs.vercel.app
1•self_refactor•32m ago•0 comments

The future in old computer magazines (1984–2004)

https://tomorrowasusual.substack.com/p/blast-from-the-past-the-future-in
5•tudell•33m ago•2 comments

Show HN: Mistake Trainer – Spaced repetition from your own Lichess games

https://mistake-trainer.pages.dev/
1•pandigital•33m ago•0 comments

Security doesn't (always) have to be so fucking annoying

https://joshua.hu/security-useless-changes-theatre
3•subset•35m ago•0 comments

Hackers raised freezer temperature at Estonian supermarket chain to +50°C

https://news.err.ee/1610183296/hackers-raised-freezer-temperature-at-estonian-supermarket-chain-t...
4•vintagedave•37m ago•1 comments

Aletheia, a Fake News Detector

https://hellenicdev.substack.com/p/hellenicdev-newsletter-009
5•hsoc•38m ago•1 comments

Querying HackerTube, HackerBooks and Wikihack Directly with DuckDB/Hugging Face

https://www.ssp.sh/brain/querying-hackernews-with-duckdb-directly/
1•zazuke•39m ago•0 comments

Are you sure it was North Korea?

https://nk-ultra.com
2•splintersio•40m ago•1 comments

Minimax-Converter Toolbox

https://minimax-converter.com/
1•justvlaaaad•43m ago•1 comments

Redlib discussion: Reddit has decided to force everyone to log in

https://github.com/redlib-org/redlib/issues/609
4•probably_wrong•44m ago•0 comments

Prompt Engineering Is Dead. What Separates a Toy from a Product

https://towardsdev.com/prompt-engineering-is-dead-system-prompt-architecture-is-what-separates-a-...
1•cheikhdev•46m ago•0 comments

Show HN: Knock – stop Claude Code burning tokens exploring big codebases

https://github.com/HasanGilani/knock
1•HasanGilani•46m ago•0 comments

Cyberattack on Fridges in Ireland

https://www.irishtimes.com/technology/data-security/2026/11/02/supervalu-removes-frozen-and-chill...
3•johnflan•47m ago•1 comments

Context Anxiety: How AI Agents Panic About Their Perceived Context Windows

https://inkeep.com/blog/context-anxiety
1•ankitg12•47m ago•0 comments