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.

Isaac Levy auctioning off his mind

https://grace.training/
1•ent101•32s ago•0 comments

Pigeon-powered internet packet goes under the hammer at Christie's

https://www.theregister.com/offbeat/2026/10/12/pigeon-powered-internet-packet-goes-under-the-hamm...
1•mikelgan•1m ago•0 comments

It's important that we don't concede FOSS to socialists and communists

https://twitter.com/dhh/status/2109415402090717286
1•koolba•2m ago•0 comments

Fields Medalists Are Wrong

https://conjectureinstitute.org/articles/fields-medalists-are-wrong
1•MoritzWall•2m ago•0 comments

Tailwind CSS v4 Dynamic Themes with CSS Variables

https://www.sitepoint.com/tailwind-css-v4-dynamic-themes/
1•ulrischa•2m ago•0 comments

New EU Rules: Smartphones and Tablets to Meet Ecodesign Requirements by June

https://repair.eu/news/new-eu-rules-smartphones-and-tablets-will-follow-new-ecodesign-requirement...
1•birdculture•3m ago•0 comments

Rice husk is being repurposed as a sturdy and resilient construction material

https://www.bbc.com/future/article/20261009-the-houses-made-from-rice-husks
1•giuliomagnifico•3m ago•0 comments

What are wormholes? An astrophysicist explains the shortcuts through space-time

https://theconversation.com/what-are-wormholes-an-astrophysicist-explains-these-shortcuts-through...
1•ulrischa•4m ago•0 comments

Show HN: Henge Days – When does sunlight directly hit the wall of a building?

https://hengedays.com/
1•busseio•4m ago•0 comments

The Great Experiment

https://yakshed.com/great-experiment/
1•abound•5m ago•0 comments

The Job Trail: Oregon Trail, but you're job hunting in 2026

https://labs.ficuscreative.com/job_trail/
1•bmamaril•5m ago•0 comments

Drop in Russian bot traffic after Yandex drone strikes was mostly web crawlers

https://www.theverge.com/tech/1009594/russian-bots-yandex-outage-drone-strikes-debunk
2•elmean•5m ago•0 comments

The People, Counted: Browse Raw Census Records at the Internet Archive

https://blog.archive.org/2026/10/12/the-people-counted-browse-raw-census-records-at-the-internet-...
2•raybb•6m ago•2 comments

A man hiking the world in search of rare cheeses

https://www.bbc.com/travel/article/20261007-the-man-hiking-the-world-in-search-of-rare-cheeses
2•tosh•7m ago•0 comments

Normies won't know they're building software because their AI will do it

https://levels.io/normies-ai-builds-software-for-them
1•speckx•8m ago•0 comments

The Kubernetes Control Loop Changed the Question

https://www.diagrid.io/blog/agentic-execution-evolution-5-kubernetes-control-loop
1•mwfussell•8m ago•0 comments

AI coding agents generate more code, but not more software

https://arstechnica.com/ai/2026/10/ai-coding-agents-generate-more-code-but-not-more-software/
2•gumby•9m ago•0 comments

Written in Go

https://shelley.dev/docs/written-in-go
2•tosh•10m ago•0 comments

The Download: moon city problems and drone traffic controllers

https://www.technologyreview.com/2026/10/12/1146376/the-download-moon-city-drone-air-traffic-cont...
1•joozio•10m ago•0 comments

Forkable copy-on-write filesystem on gVisor sandboxes

https://www.shayon.dev/post/2026/283/versioned-filesystem-for-disposable-sandboxes/
1•shayonj•11m ago•0 comments

Is Growth Good?

https://stonemaiergames.com/is-growth-good/
1•Tomte•13m ago•0 comments

Ask HN: How does your organization make build vs. buy decisions now?

4•bigblind•13m ago•1 comments

Aura: A behavioral threat-intelligence framework for AI Safety

https://medium.com/@kate8382/aura-ai-user-risk-assessment-a-behavioral-threat-intelligence-framew...
1•kate8382•13m ago•0 comments

Lotus Improv on the NeXT

https://stonetools.ghost.io/lotusimprov-next/
2•cybersoyuz•14m ago•0 comments

AI Reflections of a New Grad Engineer

https://medium.com/affirmengineering/ai-reflections-of-a-new-grad-engineer-3020093196fe
1•mooreds•14m ago•0 comments

Feds Got Warrants to Use Fake Cell Towers to Hunt Down Don Lemon's Producer

https://www.wired.com/story/feds-got-warrants-to-use-fake-cell-towers-to-hunt-down-don-lemons-pro...
3•rndsignals•14m ago•0 comments

A Nigerian breakfast reveals centuries of history and today's struggle to get by

https://text.npr.org/nx-s1-5894904
1•mooreds•15m ago•0 comments

Who's Who at Jane Street

https://www.bloomberg.com/features/2026-jane-street-guide-power-players/
1•mooreds•15m ago•0 comments

I Did Not Leave Nazi Germany in Time (1982)

https://www.oldsite.religion-online.org/showarticle26b9.html
1•Tomte•15m ago•0 comments

Lonely Reality of Self Hosting

https://noted.lol/lonely-reality-of-self-hosting/
1•Tajnymag•15m ago•0 comments