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 Metaphysics (350 BCE)

https://classics.mit.edu/Aristotle/metaphysics.1.i.html
1•andsoitis•2m ago•0 comments

Meta Deletes Face-Recognition System from Smart Glasses App After Wired Report

https://www.wired.com/story/meta-removes-face-recognition-code-meta-ai-app-smart-glasses/
1•1vuio0pswjnm7•4m ago•0 comments

Hasharot – Control a Claude Code agent on your machine from Telegram

https://github.com/Mamasodikov/hasharot
1•mamasodikov•9m ago•0 comments

Why Rodents Can't Throw Up, in Case You Were Wondering

https://www.smithsonianmag.com/smart-news/why-rodents-cant-throw-up-in-case-you-were-wondering-25...
1•thunderbong•10m ago•0 comments

Show HN: isitsecure - 1-command SAST & DAST & LLM security scanner for web apps

https://github.com/jaurakunal/isitsecure
1•kunaljaura•11m ago•0 comments

The Conversation We're Not Having About AI in Peer Review

https://cabird.com/ide/posts/ai-in-peer-review
1•azhenley•14m ago•0 comments

Why is (the word game) Lingo 'lightning in a bottle'? (2026)

https://icely.neocities.org/articles/lingo-lightning-in-a-bottle
1•icely•15m ago•0 comments

Parents' Phone Addiction Affects Bond with Kids, New Study Finds

https://www.bloomberg.com/news/articles/2026-07-08/parents-phone-addiction-affects-bond-with-kids...
1•1vuio0pswjnm7•19m ago•0 comments

Show HN: River Rescue – Game mechanic for 3yo

https://www.pip.quest/
1•satellite2•21m ago•1 comments

Crypto Criminal Accused of Crypto Crimes Again, While in Jail

https://www.bloomberg.com/news/articles/2026-07-09/crypto-criminal-accused-of-crypto-crimes-again...
1•1vuio0pswjnm7•24m ago•0 comments

Self-replicating spacecraft, a.k.a. von Neumann probes

https://en.wikipedia.org/wiki/Self-replicating_spacecraft
1•gurjeet•25m ago•0 comments

Depone – Delete legacy require_once with proof, not guesswork

https://github.com/lll-lll-lll-lll/depone
2•www_lll•25m ago•0 comments

AI Limit, Social Divide

https://valand.dev/blog/post/ai-limit-divide
1•valand•28m ago•0 comments

Nectar: A programming language that compiles to WebAssembly

https://github.com/HibiscusConsulting/nectar-lang
2•handfuloflight•29m ago•0 comments

Vermont becomes first US state to ban paraquat herbicide over Parkinson's fears

https://www.theguardian.com/environment/2026/may/26/vermont-paraquat-weedkiller-ban
1•xoa•29m ago•0 comments

Show HN: Files402 – share or sell a folder online from $1/mo

https://files402.net/
1•mannders•30m ago•0 comments

The Vintage Beauty of Soviet Control Rooms

https://designyoutrust.com/2018/01/vintage-beauty-soviet-control-rooms/
2•mvdtnz•31m ago•0 comments

Show HN: Numbergram – Make 10 from 4 numbers

https://numbergram.app
1•zmilou•33m ago•1 comments

Show HN: Paste a URL, get an honest answer to "can I build this with a prompt?"

https://onepromptai.app
1•pro_methe5•35m ago•1 comments

Cycle Double Cover Conjecture Proof Using 5.6 Sol Ultra

https://twitter.com/__eknight__/status/2075643450196971805
1•virgildotcodes•37m ago•1 comments

EPA to open habitats of endangered species to logging and mining

https://www.theguardian.com/us-news/2026/jul/10/epa-rollback-endangered-habitats-logging-mining
2•Jimmc414•40m ago•1 comments

The Stubborn Myth of the Literary Genius (2025)

https://www.theatlantic.com/books/2025/11/shakespeare-marlowe-and-myth-literary-genius/684797/
1•bryanrasmussen•42m ago•0 comments

Show HN: I built a YouTube for generative videos in 50 prompts

https://gallery.samsar.one/
1•proy24•46m ago•0 comments

Show HN: Multi person realtime location tracking

https://tracktour.ir
1•misano•52m ago•0 comments

Perforce and Unreal Lore's alternative, another way to use Git

https://github.com/zhuzhonghua/blackgit
1•zhonghua•52m ago•0 comments

How dementia is being defeated

https://www.economist.com/briefing/2026/07/09/how-dementia-is-being-defeated
3•pingou•53m ago•2 comments

Wlctl – a Rust TUI for Managing Wi-Fi/ETH/VPN Using NetworkManager

https://github.com/aashish-thapa/wlctl
3•iamaashishthapa•59m ago•2 comments

Noisia: Harmful Workload Generator for PostgreSQL

https://github.com/lesovsky/noisia
1•handfuloflight•1h ago•0 comments

The Four-Color Problem and Its Philosophical Significance (1979) [pdf]

http://www.thatmarcusfamily.org/philosophy/Course_Websites/Math_S08/Readings/tymoczko.pdf
2•rfv6723•1h ago•0 comments

Curious case, comparing output from multiple LLMs

https://github.com/vseryakov/backendjs/tree/master/examples/prompts
1•vlad1719•1h ago•1 comments