frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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•11mo 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.

Google's best practices document for designing AI products

https://pair.withgoogle.com/guidebook/
1•dotancohen•4m ago•0 comments

Excited Delirium[audio]

https://thisiscriminal.com/episode-355-excited-delirium-3-6-2026/
1•muddi900•6m ago•0 comments

North Korean IT workers are stealing remote jobs: Americans are helping them

https://fortune.com/2026/04/25/north-korean-it-worker-scheme-american-faciliators/
1•napolux•6m ago•1 comments

New Bible TUI App Releases v1.0.0

https://github.com/DeLsonJabberwo/bible-tui
1•delsonjabberwo•6m ago•0 comments

Agent Harness Engineering

https://addyosmani.com/blog/agent-harness-engineering/
1•kiyanwang•9m ago•0 comments

The Normal Work of Creating Reliability

https://surfingcomplexity.blog/2026/04/26/the-normal-work-of-creating-reliability/
1•azhenley•10m ago•0 comments

Everything that went wrong with Claude

https://clawd.rip/
1•aratahikaru5•15m ago•0 comments

How to hire people who are better than you

https://longform.asmartbear.com/hire-better-than-you/
1•kiyanwang•16m ago•0 comments

Terraform is dead

https://grahamgilbert.com/blog/2026/04/20/terraform-is-dead/
2•milkglass•19m ago•0 comments

Chernobyl disaster (April 26th, 1986)

https://en.wikipedia.org/wiki/Chernobyl_disaster
1•simonebrunozzi•20m ago•0 comments

But what is L0-L2 processing for satellite data?

https://medium.com/@aryachauhan7/but-what-is-l0-l2-processing-for-satellite-data-27f39f5324a1
1•marklit•21m ago•0 comments

Don't Confuse Computer Science with Coding

https://substack.com/home/post/p-194090221
2•AbbeFaria•21m ago•0 comments

AI can cost more than human workers now

https://www.axios.com/2026/04/26/ai-cost-human-workers
11•nreece•30m ago•2 comments

Conversations with Cosmos

https://madsenaim.substack.com/p/coming-soon
1•aimmia•34m ago•0 comments

I Am Doing This: The Origin Story of Project-AI

https://zenodo.org/records/19592336
1•IAmSoThirsty•34m ago•0 comments

Lipovive Review: Effective Formula for Fitness

https://www.morningstar.com/news/accesswire/1138075msn/lipovive-reviews-shocking-2026-report-what...
1•JamesLoynes•36m ago•0 comments

OpenAI boss 'deeply sorry' for not telling police of mass shooter's account

https://www.bbc.com/news/articles/cq6je7e80r7o
3•chistev•40m ago•0 comments

An AI driven WP theming workflow

https://anchor.host/a-custom-wordpress-theme-from-scratch-in-2026-an-ai-driven-workflow/
1•g00m•41m ago•0 comments

Savings Hacks You Must Know

https://www.threads.com/@financial.tips.101/post/DXnfOxRCMEX
1•hennix22•45m ago•0 comments

Claude 4.7 vs. ChatGPT 5.5

https://www.tomsguide.com/ai/7-0-wipeout-i-put-chatgpt-5-5-and-claude-4-7-through-7-impossible-te...
3•ageospatial•46m ago•0 comments

Claude Platform on AWS (Coming Soon)

https://aws.amazon.com/claude-platform/
1•qainsights•47m ago•0 comments

Txtfold – summarize large files for LLMs

https://github.com/kristiandupont/txtfold
1•kristiandupont•51m ago•0 comments

The Silencing Engine

https://kitchencloset.com/realstuff/essays/the_silencing_engine/
1•bcRIPster•55m ago•0 comments

Show HN: ChatForm – Create an AI chat form in 1 minute

https://chatform.000ooo.ooo/
1•fengyiqicoder•1h ago•0 comments

Draft's knowledge graph engine – deterministic codebase understanding for AI

https://www.getdraft.dev/blog/local-graph-engine/
1•mayurpise•1h ago•0 comments

Why the Future Doesn't Need US

https://web.archive.org/web/20160210081017/http://www.wired.com/2000/04/joy-2/
1•signa11•1h ago•0 comments

The Publishing Mystery That No One Wants to Talk About

https://www.theatlantic.com/books/2026/04/who-really-wrote-autistic-author-woody-brown-novel/686814/
1•samclemens•1h ago•0 comments

AMD's Zen: Coming Back from the Dead

https://clamtech.org/?dest=zen1
1•matt_d•1h ago•1 comments

Coyote vs. Acme (1990)

https://www.newyorker.com/magazine/1990/02/26/coyote-v-acme
2•aaronbrethorst•1h ago•0 comments

Learning About FPGAs in Finance

https://www.semidesignjobs.com/blog/fpgas-in-finance-hft
1•johncole•1h ago•0 comments