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

Doctor's AI notetaker may be making things up, Ontario audit finds

https://arstechnica.com/health/2026/05/your-doctors-ai-notetaker-may-be-making-things-up-ontario-...
1•Timofeibu•15s ago•0 comments

Cisco announces record revenue and 4k layoffs in the same day

https://arstechnica.com/information-technology/2026/05/cisco-announces-record-revenue-and-4000-la...
1•taubek•58s ago•0 comments

Even mild blows to the head disrupt the microbiome

https://www.nature.com/articles/d41586-026-01504-w
1•Brajeshwar•2m ago•0 comments

Exploitbench

https://exploitbench.ai/
1•anp•3m ago•0 comments

Project Gutenberg – keeps getting better

https://www.gutenberg.org/
4•JSeiko•5m ago•1 comments

What are Forward Deployed Engineers, and why are they so in demand?

https://newsletter.pragmaticengineer.com/p/forward-deployed-engineers
2•carlos-menezes•6m ago•0 comments

I love Linux, but I can't quit Windows

https://jpain.io/i-love-linux-but-i-cant-quit-windows/
3•speckx•7m ago•1 comments

Why do Windows editions on 32-bit x86 systems artificially limit RAM to 4 GB?

https://devblogs.microsoft.com/oldnewthing/20260512-00/?p=112316
1•supermatou•8m ago•0 comments

UCF Commencement Speaker Draws Boos After A.I. Remarks

https://www.nytimes.com/2026/05/14/style/ucf-commencement-ai-booed-gloria-caulfield.html
4•reaperducer•11m ago•0 comments

Google Analytics 4 Is Lying to You About AI Traffic

https://medium.com/@eliotdill/google-analytics-4-is-lying-to-you-about-ai-traffic-and-they-might-...
1•DillyDally125•12m ago•0 comments

5× faster fast_blur in image-rs

https://apas.tel/blog/optimizing-image-rs-blur
1•art049•12m ago•0 comments

How Fedora is responding to recent Kernel vulnerabilities

https://fedoramagazine.org/how-fedora-is-responding-to-recent-kernel-vulnerabilities/
1•speckx•12m ago•0 comments

How I'm building a better way to understand and store legacy logs

https://www.mihirdeshpande.com/posts/logslim
2•mihirrd•13m ago•0 comments

If you are redlining the LLM, you aren't headlining

https://ghuntley.com/redlining/
1•cebert•18m ago•1 comments

Narwhal 0.7 – Rust message broker on io_uring, now with FIFO channels

https://github.com/ortuman/narwhal/releases/tag/narwhal-0.7.0
1•ortuman•20m ago•1 comments

Researchers unearth Southeast Asia's largest dinosaur

https://www.npr.org/2026/05/14/nx-s1-5819740/dinosaur-thailand-sauropod-giant-asia-paleontology
2•Brajeshwar•20m ago•0 comments

Moving away from Tailwind, and learning to structure my CSS

https://jvns.ca/blog/2026/05/15/moving-away-from-tailwind--and-learning-to-structure-my-css-/
2•surprisetalk•20m ago•0 comments

Show HN: Setup a box on demand and run your agent on it remotely

https://www.gibil.dev/
2•AlexFromTwelve•21m ago•0 comments

Show HN: Nemo – A visual, local server and job runner

https://github.com/andrewchilds/nemo
2•andrewchilds•23m ago•0 comments

Can LLMs Play Baba Is You?

https://meffmadd.github.io/samplesurium/posts/baba_is_agent/
3•meffmadd•23m ago•0 comments

Show HN: Revos – architecture checks for AI-generated code

https://github.com/mattykry/revos
1•Mattykry•27m ago•0 comments

Elvure

https://elvure.app
1•mening12001•28m ago•0 comments

Transfa – ephemeral file transfer for CI/CD pipelines and AI agents

https://transfa.sh/
1•colapsis•28m ago•0 comments

Mars or the Moon or A.I.? Elon Musk's Changing Goals for SpaceX

https://www.nytimes.com/2026/04/22/technology/elon-musk-spacex-ipo-goals.html
1•1vuio0pswjnm7•28m ago•0 comments

Why Spain has the greatest cities

https://worksinprogress.co/issue/why-spain-has-the-worlds-greatest-cities/
4•devitoria•29m ago•0 comments

The Atmosphere needs a front door

https://wecanjustdothings.leaflet.pub/3mlv5oijn5s2q
1•Kye•29m ago•0 comments

X Algorithm open source updated

https://github.com/xai-org/x-algorithm/commit/e414c171ed68266341193330bc4864bf3f3534e3
1•drak0n1c•31m ago•0 comments

Easy Tauri integration tests with vitest

https://powersync.com/blog/tauri-integration-tests
1•kobieps•31m ago•0 comments

Comparing Context Retrieval Approaches for AI Code Review

https://comparethemarketcareers.com/blog/comparing-context-retrieval-approaches-for-ai-code-review/
1•adzicg•32m ago•0 comments

Today we are releasing a QEMU escape

https://twitter.com/v12sec/status/2055282721212252178
5•throwaway2027•33m ago•0 comments