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.

Insurers' $1T Buildup in Private Credit Is Leaving Regulators in Dust

https://www.wsj.com/finance/regulation/insurers-1-trillion-buildup-in-private-credit-is-leaving-r...
1•petethomas•1m ago•0 comments

Show HN: Redos-analyzer – static ReDoS detection and auto-fix for Python

https://github.com/HarshithReddy01/redos-analyzer
1•kingkongsatan•1m ago•0 comments

Artemis delivers some exceptional, high-quality photos of the Moon

https://arstechnica.com/space/2026/04/the-artemis-ii-mission-sends-back-stunning-images-of-the-fa...
2•jonbaer•2m ago•0 comments

InstaMed – Oral Dissolving Peptides with InstaRelease Technology

https://store.getinstamed.com/
1•evo_9•2m ago•0 comments

RNA barcodes enable high-speed mapping of connections in the brain

https://news.illinois.edu/rna-barcodes-enable-high-speed-mapping-of-connections-in-the-brain/
1•geox•4m ago•0 comments

He designed C++ to solve your code problems

https://stackoverflow.blog/2026/04/07/he-designed-c-to-solve-your-code-problems/
1•chrisaycock•8m ago•0 comments

Release Please

https://github.com/googleapis/release-please
1•b-man•10m ago•0 comments

Show HN: Omni Voice – AI Voice Cloning and Text-to-Speech Platform

https://omnivoice.app
2•danielmateo773•13m ago•0 comments

Training SOTA vulnerability discovery agents through RL

https://depthfirst.com/post/dfs-mini1-agent
1•growthgod•13m ago•0 comments

Personal Site Infrastructure, Diagrammed

https://www.coryd.dev/posts/2026/personal-site-infrastructure-diagrammed
1•cdrnsf•18m ago•0 comments

Apollo.io Acquires Pocus

https://www.morningstar.com/news/pr-newswire/20260319ne14558/apolloio-acquires-pocus-to-advance-i...
1•jenthoven•25m ago•0 comments

Drive9, a network drive with built-in semantic search

https://github.com/mem9-ai/drive9
1•jinqueeny•26m ago•0 comments

How Alive Can a Video Game Street Be?

https://www.youtube.com/watch?v=5wU4AB7Y2Kw
2•pippy360•27m ago•2 comments

Impact of 100% Adoption of AI Coding Agents by Non-Technical Team

https://www.kapwing.com/blog/how-we-achieved-100-adoption-of-ai-coding-agents/
1•jenthoven•28m ago•0 comments

Russia and China veto UN resolution aimed at reopening the Strait of Hormuz

https://apnews.com/article/un-iran-us-strait-hormuz-bahrain-resolution-640e644b57df5c762ed9c57ef8...
3•WaitWaitWha•28m ago•0 comments

ICE acknowledges it is using powerful spyware

https://text.npr.org/nx-s1-5776799
4•dnemmers•31m ago•0 comments

Law Students: AI Is Changing Things

https://maxglobalnews.com/the-future-of-lawyers-in-the-age-of-ai-%f0%9f%92%bb/
1•videobroker•35m ago•0 comments

Show HN: Kylrix- open source de-googled privacy suite for techies

1•nathfavour•38m ago•1 comments

The way every agent framework handles MCP is a latent security problem

2•An0n_Jon•45m ago•0 comments

Steergen: Single-source steering docs for spec-driven development

https://github.com/aabs/steergen
1•andrew_matthews•50m ago•0 comments

Voltage drops when powering a Raspberry Pi4B from a LM2596T regulator

https://electronics.stackexchange.com/questions/767760/voltage-drops-when-powering-a-raspberry-pi...
1•kristianp•51m ago•0 comments

I wrote maternity experience on my resume

https://story.cv/blog/articles/maternity-leave-on-resume
1•kavyaj•52m ago•1 comments

GitHub Copilot CLI now supports BYOK and local models

https://github.blog/changelog/2026-04-07-copilot-cli-now-supports-byok-and-local-models/
4•lemonish97•52m ago•1 comments

Odd Lots: This Is How to Tell If Writing Was Made by AI

https://www.bloomberg.com/news/audio/2026-04-02/odd-lots-how-to-tell-if-writing-was-made-by-ai-po...
2•KnuthIsGod•53m ago•0 comments

White Noise (encrypted group chat over Nostr) completes security audit

https://leastauthority.com/blog/audit-of-white-noise-whitenoise-rs/
2•iamnothere•55m ago•0 comments

Phishing Campaigns "I Paid Twice" Targeting Booking.com Hotels and Customers

https://blog.sekoia.io/phishing-campaigns-i-paid-twice-targeting-booking-com-hotels-and-customers/
1•quantisan•56m ago•0 comments

JSIR: A High-Level IR for JavaScript

https://discourse.llvm.org/t/rfc-jsir-a-high-level-ir-for-javascript/90456
8•nnx•58m ago•1 comments

Is my writing too wet?

https://samkriss.substack.com/p/is-my-writing-too-wet
1•cainxinth•1h ago•0 comments

Apple is pissing me off. (rant - Account Settings)

3•TechPlasma•1h ago•0 comments

Zayvora

https://ollama.com/daxini2404
1•dharamdaxini•1h ago•0 comments