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

Andrew Mountbatten-Windsor arrested on suspicion of misconduct in public office

https://www.bbc.com/news/live/c70kjr9wjw0t
2•asdefghyk•1m ago•1 comments

12-hour days, no weekends: AI's brutal work culture is a warning for all of us

https://www.theguardian.com/technology/ng-interactive/2026/feb/17/ai-startups-work-culture-san-fr...
1•Stratoscope•1m ago•0 comments

The Programming Language Doesn't Matter So You Should Use Rust

https://tavakyan.substack.com/p/the-programming-language-doesnt-matter
1•tavakyan•4m ago•0 comments

Drizz.dev

1•drizz_dev•6m ago•0 comments

Berkshire Hathaway's website today resembles its 1997 design

https://web.archive.org/web/19970530212007/http://www.berkshirehathaway.com/
1•thewavelength•6m ago•2 comments

Drizz.dev

1•drizz_dev•8m ago•0 comments

Open Sesame – I Now Have to Ask My Internet Router to Give Me Internet

https://kryptokommun.ist/tech/2026/02/19/llm-gatekeeper-router.html
1•kryptokommunist•8m ago•1 comments

Ask HN: Why Science and philosophy are together?

1•modinfo•8m ago•0 comments

Advent of Compiler Optimisations 2025

https://www.youtube.com/playlist?list=PL2HVqYf7If8cY4wLk7JUQ2f0JXY_xMQm2
1•tosh•11m ago•0 comments

Show HN: Heroku/Fly.io-like app deployments to Cloudflare Containers

https://github.com/michaloo/flarepilot
1•michaloo•12m ago•0 comments

Zuna: A 380M-parameter foundation model for EEG signals

https://huggingface.co/Zyphra/ZUNA
1•victormustar•12m ago•1 comments

I reverse-engineered Zomato's Food Rescue real-time notification system

https://medium.com/@jatin.b.rx3/i-reverse-engineered-zomatos-food-rescue-feature-here-s-what-i-fo...
1•jatin-dot-py•12m ago•0 comments

On-the-fly code generation with OpenClaw won't fly

https://medium.com/versanova/on-the-fly-code-generation-wont-fly-0f7b02e69195
1•gauravsc•13m ago•0 comments

State of Clojure 2025 Results

https://clojure.org/news/2026/02/18/state-of-clojure-2025
1•adityaathalye•15m ago•0 comments

Permissive, then restrictive: concrete solutions and examples in Haskell (2020)

https://www.williamyaoh.com/posts/2020-05-03-permissiveness-solutions.html
1•todsacerdoti•16m ago•0 comments

AI, Entropy, and the Illusion of Convergence in Modern Software

https://www.abelenekes.com/p/when-change-becomes-cheaper-than-commitment
2•enekesabel•17m ago•1 comments

Baking the Context Cake

https://theelderscripts.com/baking-the-context-cake/
1•haarlemist•19m ago•0 comments

Signal launches version 8.0 with Signal Secure Backups

https://aboutsignal.com/news/signal-launches-version-8-0-with-signal-secure-backups/
1•mikae1•20m ago•0 comments

UK Names Antonia Romeo as First Woman to Head Civil Service

https://www.bloomberg.com/news/articles/2026-02-19/uk-names-antonia-romeo-as-first-woman-to-head-...
1•JustSkyfall•20m ago•0 comments

We don't need AI to cure cancer

https://outspeaker.com/post/12
1•onesandofgrain•23m ago•7 comments

/Deslop

https://tahigichigi.substack.com/p/12-red-flags-of-ai-writing-and-how
1•yayitswei•26m ago•0 comments

Ask HN: Since of humanity do we have made any difference in the universe?

1•modinfo•28m ago•0 comments

Oral history of Robert P. Colwell, Intel Pentium / IA32 lead architect [pdf]

https://www.sigmicro.org/media/oralhistories/colwell.pdf
1•fanf2•30m ago•0 comments

Wellington rages as litres of raw sewage pour into ocean

https://www.theguardian.com/world/2026/feb/19/wellington-raw-sewage-leak-spill-water-new-zealand
3•rguiscard•30m ago•0 comments

Bitwarden ignored serious CVEs reported 4 years ago

https://www.reddit.com/r/Bitwarden/s/LsJWCaQ6YD
1•cromka•31m ago•1 comments

Music Generation comes to Gemini [video]

https://www.youtube.com/watch?v=TD6FPndjhoE
1•Alifatisk•33m ago•0 comments

Boundary Point Jail A new way to break the strongest AI defences

https://www.aisi.gov.uk/blog/boundary-point-jailbreaking-a-new-way-to-break-the-strongest-ai-defe...
1•iNic•43m ago•0 comments

Show HN: Nanbeige 4.1-3B running in the browser via WebGPU

https://huggingface.co/spaces/victor/nanbeige
1•victormustar•46m ago•1 comments

On-the-fly code generation with OpenClaw won't fly

https://medium.com/versanova/on-the-fly-code-generation-wont-fly-0f7b02e69195xa
1•gauravsc•47m ago•2 comments

Forward propagation of errors through time

https://nicolaszucchet.github.io/Forward-propagation-errors-through-time/
1•iNic•48m ago•0 comments