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.

The anatomy of a Tines gVisor sandbox

https://notebook.tines.com/writing/anatomy-of-a-3b-step/
1•shayonj•51s ago•0 comments

Show HN: Isometric Montevideo a pixel art map built from Uruguay's open data

https://isometric-montevideo.pages.dev
1•pablogancharov•56s ago•0 comments

How I Got My Laser Eye Injury (2024)

https://www.funraniumlabs.com/2024/07/how-i-got-my-laser-eye-injury/
1•_Microft•2m ago•0 comments

SSH into DOS: I wrote an x86 emulator

https://www.dialup.net/farcall/
1•keito•2m ago•0 comments

MAI Realtime 1

https://microsoft.ai/models/mai-realtime-1/
1•leumon•3m ago•0 comments

There is no such thing as an ethical datacenter

https://gardinerbryant.com/there-is-no-such-thing-as-an-ethical-datacenter/
1•HotGarbage•4m ago•0 comments

CliHelpLine – 2-line comment-based –help for scripts

https://github.com/JanAxelsson/cliHelpLine
1•axelssonjan•5m ago•0 comments

GPT-6.2 Sol Moves the Pareto Frontier in Artificial Analysis Score vs. Cost

https://artificialanalysis.ai/models/gpt-6-2-sol
1•theanonymousone•7m ago•0 comments

Think Before You Build – Have computers made architects less disciplined?

https://slate.com/culture/2011/03/have-computers-made-architects-less-disciplined.html
3•kurinikku•8m ago•0 comments

Video Agent with Version Control

https://adalagent.ai
2•meame2010•10m ago•2 comments

How an Italian startup is using smart tractors to fight landslides

https://www.repubblica.it/en/europe/fashion-design/2026/11/17/news/how_an_italian_start-up_is_usi...
2•simonebrunozzi•12m ago•0 comments

Show HN: Eso-box: turn a spare laptop into an always-on Claude Code server

https://github.com/blumalex/eso-box
1•andale•13m ago•0 comments

Preliminary data – Vulcan rocket failure may not be due to BE-4 engines

https://arstechnica.com/features/2026/11/sources-vulcan-launch-anomaly-investigation-is-complex/
2•bell-cot•13m ago•1 comments

Launch HN: StarSling (YC P25) – Self-improving CI for agent-volume repos

https://starsling.dev
6•yonasb•15m ago•0 comments

Show HN: Fardesk – fast iPhone app to manage your Claude sessions

https://fardesk.franzai.com/
1•franze•16m ago•0 comments

Observing Earth's ionospheric irregularities from the Moon

https://arxiv.org/abs/2611.21062
1•titusblair•16m ago•0 comments

GPT-6.2 Astra scores 100% on ARC-AGI-3

https://twitter.com/arcprize/status/2122751233442156678
4•rzk•17m ago•0 comments

The Lede, a read-later app that tells you what each article argues

https://apps.apple.com/us/app/the-lede-read-later/id6772315315
1•charlesklein•19m ago•1 comments

I hate GPT-6.2 Astra

https://twitter.com/theo/status/2122760447103484410
3•7777777phil•19m ago•0 comments

iCloud and Other Apple Services Are Down in an Apparent Outage

https://www.engadget.com/2319504/icloud-and-other-apple-services-are-down-in-an-apparent-outage/
1•gmays•19m ago•0 comments

I audited 361 European sites with Lighthouse – 92% fail Core Web Vitals

https://store-au6.pages.dev/blog/website-speed-report-2026
1•qorvex•20m ago•0 comments

Solid 2.0

https://www.solidjs.com/blog/solid-2-0-the-long-hold/
5•pier25•20m ago•2 comments

Microsoft announces "next chapter" of Office with a focus on agentic AI systems

https://www.neowin.net/news/microsoft-announces-next-chapter-of-office-with-a-focus-on-agentic-sy...
3•bundie•22m ago•0 comments

World 2030

https://world-2030.pages.dev/
2•gmays•23m ago•0 comments

Poll: Over 80% of respondents decided LLMs are fascist – Plenty use them anyway

https://mastodon.ie/@pixmo/117535284723432379
1•tosbourn•23m ago•0 comments

Labcheck – one command to check if a Linux server is healthy

https://github.com/jacoblockard2007-hub/labcheck
1•Linuxuser05•23m ago•0 comments

Economics of Mental Health

https://www.nber.org/papers/w36019
1•paulpauper•23m ago•0 comments

Did England bribe Scotland into political union?

https://www.sciencedirect.com/science/article/abs/pii/S0014292126002436
1•paulpauper•24m ago•0 comments

AI is shortening the time from PHP flaw disclosure to working exploit, Microsoft

2•codeswithrocky•24m ago•0 comments

Alex Imas and I podcast on the economics of AI

https://marginalrevolution.com/marginalrevolution/2026/11/alex-imas-and-i-podcast-on-the-economic...
2•paulpauper•24m ago•0 comments