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

Ray Bradbury S3E5 The Pedestrian (Transcript)

https://subslikescript.com/series/The_Ray_Bradbury_Theater-88591/season-3/episode-5-The_Pedestrian
1•raybadbury•5m ago•0 comments

What to know about latest rupture of the Bearspaw South feeder main

https://calgaryherald.com/news/feeder-main-break-2-0-q
1•petethomas•5m ago•0 comments

Runtime invariant to rule count in a single-pass boundary execution model

https://targetedwebresults.com/pounce-demo-final.gif
1•MKuykendall•5m ago•1 comments

Rembg: Remove Image Backgrounds

https://github.com/danielgatis/rembg
1•Olshansky•6m ago•0 comments

Leaks Predict $5000 RTX 5090 GPUs in 2026 Thanks to AI Industry Demand

https://www.techpowerup.com/344578/leaks-predict-usd-5000-rtx-5090-gpus-in-2026-thanks-to-ai-indu...
1•linksbro•20m ago•0 comments

Meta AI chief Alexandr Wang says will have kids only after Elon Musk's Neuralink

https://www.businessinsider.com/scale-ai-founder-alexandr-wang-meta-neuralink-kids-elon-musk-2025-6
1•radeeyate•24m ago•0 comments

Show HN: Chat with people who share the same Internet connection (= IP address)

https://ipchat.org
2•kkovacs•29m ago•1 comments

Bokehlicious Selfies in Python (2020)

https://www.rahulrav.com/blog/bokehlicious.html
1•azhenley•32m ago•0 comments

52 Things I Learned in 2025

https://probablyinteresting.substack.com/p/52-things-i-learned-in-2025
1•zdw•32m ago•0 comments

Show HN: BusterMQ, Thread-per-core NATS server in Zig with io_uring

https://bustermq.sh/
2•jbaptiste•33m ago•0 comments

It will be more practical to fingerprint real media than fake media

https://www.engadget.com/social-media/instagram-chief-ai-is-so-ubiquitous-it-will-be-more-practic...
3•geox•34m ago•0 comments

A geological carbon cycle sink hosted by ocean crust talus breccias

https://www.nature.com/articles/s41561-025-01839-5
1•PaulHoule•34m ago•0 comments

Predictions on how software will be built in 2026 by CTO of non-AI company

https://behan.substack.com/p/reflections-on-the-best-year-of-my
2•behan•34m ago•0 comments

Application Prohibited Internationally

https://tuckersiemens.com/posts/application-prohibited-internationally/
2•nfrmatk•35m ago•0 comments

Show HN: Use Internationalizationext in Astro

https://github.com/gutenye/astro-i18next
1•GutenYe•35m ago•0 comments

Happy New Year

https://en.wiktionary.org/wiki/Bliadhna_Mhath_%C3%99r
3•onraglanroad•35m ago•1 comments

New measles cases in S. Carolina put U.S. at risk of losing elimination status

https://www.nbcnews.com/health/health-news/measles-south-carolina-us-elimination-status-rcna251515
5•lemonberry•37m ago•0 comments

Capital in the 22nd Century

https://philiptrammell.substack.com/p/capital-in-the-22nd-century
1•newyankee•37m ago•1 comments

Simvastatin-induced skeletal muscle weakness associated with mutation

https://www.jci.org/articles/view/194490
1•bookofjoe•45m ago•0 comments

Elastic style faceted search from PostgreSQL

https://www.paradedb.com/blog/faceting
1•jamesgresql•46m ago•0 comments

Versant: Decoding the OpenVerse (2022) [pdf]

https://www.opentext.com/assets/documents/en-US/pdf/opentext-ceo-book-versant-decoding-the-openve...
1•twoodfin•47m ago•0 comments

Show HN: LáR – An open-source, deterministic "Glass Box" agent framework

https://github.com/snath-ai/lar
1•axdithya•48m ago•1 comments

The Delete Act

https://privacy.ca.gov/drop/about-drop-and-the-delete-act/
44•weaksauce•50m ago•13 comments

Your Life Can Be Better, and You Can Fix It Right Now

https://perpetual-rewiring.mataroa.blog/blog/your-life-can-be-better/
1•asterakan•50m ago•0 comments

Antivirus Software

https://en.wikipedia.org/wiki/Antivirus_software
1•npmcoders•51m ago•0 comments

2025: Year in Review

https://onebadbit.com/posts/2025/12/year-in-review/
1•wilkystyle•52m ago•0 comments

Why many embodied AI systems fail under load (architecture, not learning)

https://osf.io/ugck7/overview
1•tysonjeffreys•52m ago•1 comments

Remote Client for Life360

https://github.com/Dynosol/life360-remote
1•dynosol•54m ago•0 comments

How to become a VP at a billion-dollar company

https://markgreville.ie/2025/04/13/how-to-become-a-vp-at-a-billion-dollar-company-guaranteed-succ...
1•gHeadphone•55m ago•0 comments

Personal Autonomy and the Loss of Freedom

https://coleroberts.dev/posts/personal_autonomy
1•airhangerf15•56m ago•0 comments