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•10mo 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•10mo 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•10mo 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 internet ruined customer service. AI could save it

https://www.a16z.news/p/the-internet-ruined-customer-service
1•7777777phil•53s ago•0 comments

World ID wants to put a unique human identity on every AI agent

https://arstechnica.com/ai/2026/03/world-id-wants-you-to-put-a-cryptographically-unique-human-ide...
1•Brajeshwar•2m ago•0 comments

Researchers uncover iPhone spyware capable of penetrating millions of devices

https://www.reuters.com/technology/researchers-uncover-iphone-spyware-capable-penetrating-million...
1•1vuio0pswjnm7•2m ago•0 comments

Job Is Dead. Autopsies for the AI Transition

https://www.job.rip/
1•bixvolt•3m ago•0 comments

React SSR Framework Showdown: TanStack, React Router and Next.js Under Load

https://blog.platformatic.dev/react-ssr-framework-benchmark-tanstack-start-react-router-nextjs
1•TheAnkurTyagi•4m ago•0 comments

Heaps do lie: debugging a memory leak in vLLM

https://mistral.ai/news/debugging-memory-leak-in-vllm
1•shiftingleft•5m ago•0 comments

Where did the lightweight web go?

https://medium.com/@hmnt.bazooka/where-did-the-lightweight-web-go-1c1ee2caa447
3•hmntyee•5m ago•0 comments

Show HN: WeFrames One shared photo a day from Apple Shared Albums

1•sillendev•5m ago•0 comments

Show HN: KonbiniAPI – One API for Instagram and TikTok Data, Same JSON Shape

https://konbiniapi.com
1•FdezRomero•6m ago•0 comments

A ngrok-style secure tunnel server written in Rust and Open Source

https://github.com/joaoh82/rustunnel
1•joaoh82•8m ago•1 comments

Anthropic's Hidden Vercel Competitor "Antspace"

https://aprilnea.me/en/blog/reverse-engineering-claude-code-antspace
1•AprilNEA•9m ago•0 comments

Why Good Economic Policies Can Fail – The Need for Incentives and Reminders

https://www.nominalnews.com/p/why-good-economic-policies-can-fail
1•NomNew•9m ago•0 comments

Show HN: Applemail – Cursor skill for full macOS Mail.app control

https://github.com/Don-Yin/apple-mail
1•DonYin•9m ago•0 comments

A drop-in binary replacement to migrate from MinIO to RustFS

https://github.com/rustfs/rustfs/issues/2212
1•KevinatRustFS•10m ago•1 comments

Belgium launches secure messaging app for government staff

https://www.belganewsagency.eu/belgium-launches-secure-messaging-app-for-government-staff
2•whynotmaybe•10m ago•0 comments

Show HN: Elisym – Open protocol for AI agents to discover and pay each other

1•igor-peregudov•11m ago•0 comments

Switch on "Tap to Click"

https://practicalbetterments.com/switch-on-tap-to-click/
1•surprisetalk•12m ago•0 comments

Boolean Types (2024)

https://blog.xoria.org/boolean-types/
1•surprisetalk•12m ago•0 comments

Side-Effectful Expressions in C (2023)

https://blog.xoria.org/expr-stmt-c/
1•surprisetalk•12m ago•0 comments

LLMs Predict My Coffee

https://dynomight.net/coffee/
2•surprisetalk•13m ago•0 comments

The Anatomy of a Large-Scale Hypertextual Web Search Engine (1998) [pdf]

http://infolab.stanford.edu/pub/papers/google.pdf
1•droidjj•13m ago•0 comments

Show HN: Vestigo – A local Git forensics tool to find technical debt

https://www.3squaredcircles.com/GetStarted/
1•brokerandy25•13m ago•1 comments

Next.js vs. Wasp: Use 42% fewer tokens for the same app

https://twitter.com/hot_town/status/2034225417603764430
1•matijash•13m ago•0 comments

The Rise of the Self-Serve Blood Test

https://www.nytimes.com/2026/01/08/well/function-health-blood-tests.html
1•bookofjoe•14m ago•1 comments

Do you understand this billboard? If not, that's the whole point

https://www.npr.org/2026/03/18/nx-s1-5746115/billboards-san-francisco-tech-ai-advertising-marketing
1•ecliptik•15m ago•0 comments

TinyOp – Typed entity store with spatial queries, beats LokiJS by 36%

https://github.com/Baloperson/TinyOp
1•Displayusername•15m ago•1 comments

AI is making software development lonelier

https://www.lemm.dev/blog/en/dev/26-03-17-ailone/
1•314rate•15m ago•0 comments

Ignoring the Supply Curve: The Logic Behind Housing Supply Skepticism

https://shonczinner.substack.com/p/ignoring-the-supply-curve-the-logic
1•kjshsh123•16m ago•0 comments

Show HN: Hipocampus – Persistent memory harness for AI agents

https://github.com/kevin-hs-sohn/hipocampus
1•kevin-hs-sohn•16m ago•1 comments

Citing Conservation, Tanzania Pushes Ahead on Evictions of Indigenous Maasai

https://e360.yale.edu/digest/tanzania-maasai-evictions
1•YaleE360•17m ago•0 comments