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.

Panther Lake is the real deal

https://world.hey.com/dhh/panther-lake-is-the-real-deal-4bd731f1
1•maluta•1m ago•0 comments

Show HN: Claude Code skills for network engineering and homelabs

https://github.com/arsallls/claude-network-skills
1•arsalsajjad•2m ago•0 comments

I Went to China to See Their Progress on A.I. We Can't Beat Them

https://www.nytimes.com/2026/04/13/opinion/china-ai-america-chipmakers.html
2•amgreg•3m ago•0 comments

SSH Pilot: Scala-based SSH tool for managing and testing remote server clusters

https://github.com/openmole/sshpilot
1•thunderbong•3m ago•0 comments

Show HN: GDL – I built an AI-powered invention engine

https://groundeddiscoverylabs.com/
1•Whyachi•5m ago•0 comments

Show HN: Lint-AI by RooAGI, a Rust CLI for AI Doc Retrieval

https://github.com/RooAGI/Lint-AI
1•rooagi•6m ago•0 comments

Mapcodes – free, open way to make locations on Earth addressable by a short code

https://www.mapcode.com
1•smartmic•8m ago•0 comments

Show HN: Ithihāsas – a character explorer for Hindu epics, built in a few hours

https://www.ithihasas.in
3•cvrajeesh•8m ago•1 comments

The "AI Vulnerability Storm": Building a "Mythos-Ready" Security Program [pdf]

https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/04/mythosready-20260413.pdf
3•larve•10m ago•0 comments

Artemis II Was a Blockbuster. Landing on the Moon Will Be a Lot Harder

https://www.wsj.com/science/space-astronomy/artemis-ii-was-a-blockbuster-landing-on-the-moon-will...
1•JumpCrisscross•12m ago•0 comments

AI Agents Are Control Systems

https://cloudpresser.com/writing/ai-agents-are-control-systems
2•cloudpresser•13m ago•0 comments

'Has the Rust programming language's popularity reached its plateau?'

https://developers.slashdot.org/story/26/04/12/2329229/has-the-rust-programming-languages-popular...
1•MilnerRoute•14m ago•0 comments

Sometimes I Don't Use AI at All

https://www.clintmcmahon.com/Blog/sometimes-i-dont-use-ai
1•speckx•16m ago•0 comments

Transitive 2.0: store, visualize and alert about robotics fleet data

https://transitiverobotics.com/blog/transitive-v2/
1•chfritz•17m ago•1 comments

Probing the Planck scale with quantum computation

https://arxiv.org/abs/2604.06322
2•haxiomic•18m ago•1 comments

AI-boosted hacks with Anthropic's Mythos could have dire consequences for banks

https://www.reuters.com/legal/litigation/ai-boosted-hacks-with-anthropics-mythos-could-have-dire-...
5•devonnull•18m ago•0 comments

Can you learn to read faster? And why would you want to?

https://www.rnz.co.nz/life/lifestyle/can-you-really-learn-to-read-faster-and-why-would-you-want-to
3•billybuckwheat•18m ago•1 comments

U.S. blockade of Iran's ports comes into effect

https://www.nbcnews.com/world/iran/live-blog/live-updates-us-blockade-iran-ports-trump-hormuz-pea...
3•mgh2•20m ago•1 comments

Can we use C++ Modules in 2026?

https://mropert.github.io/2026/04/13/modules_in_2026/
1•jandeboevrie•21m ago•0 comments

Lattice-Based Cryptography and Formal Verification

https://mayckongiovani.substack.com/p/pqc-engineering-series-deep-dive-dba
1•doomhammerhell•28m ago•0 comments

How to make Firefox builds 17% faster

https://blog.farre.se/posts/2026/04/10/caching-webidl-codegen/
3•mbitsnbites•28m ago•0 comments

Brunost: The Nynorsk Programming Language

https://lindbakk.com/blog/introducing-brunost
2•atomfinger•28m ago•0 comments

Péter Magyar: Hungary's next leader energised voters but is 'dark horse'

https://www.theguardian.com/world/2026/apr/12/peter-magyar-hungary-next-leader-profile
2•mooreds•30m ago•0 comments

Misanthropic

https://privatebank.jpmorgan.com/nam/en/o/eotm/misanthropic
3•baddash•30m ago•0 comments

New credit card will tap into borrowers' fossil-fuel rights

https://www.americanbanker.com/news/new-credit-card-will-tap-into-borrowers-fossil-fuel-rights
1•petethomas•31m ago•0 comments

New Player Control for YouTube

https://chromewebstore.google.com/detail/accent-converter-for-yout/lnmbdamplioghdakbfnbbofeipjlbgpk
1•astipili•32m ago•0 comments

The Age of Dinosaurs

https://longreads.com/2026/03/31/age-of-dinosaurs-parenting-history-museum/
2•mooreds•33m ago•0 comments

AI ran into the cold hard reality of the legal profession

https://www.theregister.com/2026/04/13/ai_attorneys/
4•blackcoffeerain•35m ago•2 comments

Laundry folding floor lamp for $1500

https://syncere.com/product
1•ageofattention•36m ago•0 comments

Building a Web Page That Edits Itself

https://www.patrickweaver.net/blog/one-pager-self-editing-html/
1•evakhoury•36m ago•0 comments