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.

Show HN: UBOM now has attributes and artifacts

https://github.com/comalice/ubom-v4
1•all2•9m ago•0 comments

Show HN: Dddiscover – a rabbit hole for images, quotes, podcasts, and facts

https://dddiscover.com
1•hidelooktropic•18m ago•0 comments

MIT Researchers Develop Generative AI Tool to Boost Database Searches

https://aibusiness.com/data/mit-researchers-develop-generative-ai-tool-to-boost-database-searches
1•caruasdo•18m ago•0 comments

Durable tribal knowledge for all your AI agents

https://fixdoc.dev/
1•supercech•19m ago•0 comments

Show HN: A directory of vibe-coded or AI built games

https://aibuiltgames.com/
2•rrmdp•28m ago•2 comments

Tracker in rare book ends up in Amazon facility destroying books to train AI

https://www.tomshardware.com/tech-industry/artificial-intelligence/secret-tracking-device-placed-...
4•emptybits•29m ago•0 comments

Everything I own, owned

https://schlarp.com/posts/everything-i-own-owned/
27•schlarpc•30m ago•4 comments

Top Shit: The Wheel of Paid Mediocrity

https://topshit.lol
1•insomnie•31m ago•0 comments

Why Aging May Be a Program, Not a Breakdown

https://www.quantamagazine.org/why-aging-may-be-a-program-not-a-breakdown-20260814/
2•marojejian•32m ago•1 comments

Flock CEO calls for 'compromise' as surveillance company faces growing backlash

https://techcrunch.com/2026/08/23/flock-ceo-calls-for-compromise-as-surveillance-company-faces-gr...
2•cocacola1•34m ago•0 comments

Cal Fire/USFS Aerial Firefighting Drop Safety (2019) [video]

https://www.youtube.com/watch?v=ONdSoiI4zIA
1•CaliforniaKarl•35m ago•0 comments

GCC Patch Adjusting AMD Zen 5 Misprediction Cost Nets 12% Win in Benchmark

https://www.phoronix.com/news/AMD-Zen-5-Mispredict-Cost
1•Alephinitesimal•35m ago•0 comments

Coupling free electrons to a trapped-ion quantum computer

https://arxiv.org/abs/2601.11446
1•rbanffy•36m ago•0 comments

I Tried to Solve Hangman

https://ballparkfigures.substack.com/p/hangman
1•jffry•36m ago•1 comments

GOP issues stark warning to AI companies

https://www.axios.com/2026/08/19/gop-data-center-memo-ai-election
2•adletbalzhanov•39m ago•3 comments

Show HN: World Models 101 - an interactive guide to World Models

https://worldmodels101.com/chapters/what-is-a-world-model
2•Niluk•44m ago•0 comments

Higher-Order List Operations

https://matt.might.net/articles/higher-order-list-operations/
2•azhenley•44m ago•0 comments

Linus Torvalds uses AI to debug an Intel GPU driver bug

https://github.com/torvalds/linux/commit/818bebeb63dd6bf5f4e07e145f6cdbace520a34c
5•birdculture•44m ago•0 comments

Fires are turning Forests into shrubland in America's West

https://www.nytimes.com/2026/08/23/climate/wildfire-forest-loss-california-southwest.html
2•cwwc•46m ago•1 comments

For anyone looking to make resumes

https://justquicktools.com/resume-builder
1•officialjerryno•47m ago•0 comments

Show HN: Kit – Not another events app

https://trykit.io/
1•sagsanne•52m ago•0 comments

Show HN: Locality – Sync engine to mount apps like Notion, Gmail as a filesystem

https://github.com/codeflash-ai/locality
1•misrasaurabh1•52m ago•0 comments

You can never go home again. But you can spend a lifetime trying

https://www.dwell.com/article/moving-out-of-your-childhood-home-john-petrarca-architect-b6d045d1-...
2•NaOH•53m ago•0 comments

CAD Benchmark

https://www.seldon.global/blog/cadbench
1•hmokiguess•1h ago•0 comments

Show HN: Substack Corpus Migration

https://www.shayanarman.com/archive
1•shayan-arman•1h ago•0 comments

Parallel development without the headaches using Git worktree

https://barrd.dev/article/parallel-development-without-the-headaches-using-git-worktree/
3•oogali•1h ago•0 comments

Getters, Setters, and Other Things I Loved Without Knowing Why

https://robertxworld.com/shadow-artist-software-engineer/
2•devrob•1h ago•0 comments

You probably use AI because your colleagues use AI

https://austinhenley.com/blog/aiadoption.html
2•azhenley•1h ago•2 comments

Ask HN: How to build an audience as a software engineer?

1•grandimam•1h ago•3 comments

How I Use Git Worktrees (2024)

https://matklad.github.io/2024/07/25/git-worktrees.html
2•oogali•1h ago•1 comments