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.

10k Fraudulent Credentials Seized: Indian Fraud Credential Ring Uncovered

https://dallasexpress.com/national/h-1b-fraud-claims-back-in-spotlight-after-fox-segment-on-fake-...
2•joshcsimmons•2m ago•0 comments

Ask HN: Most impactful podcast episodes so far this year?

2•chistev•5m ago•0 comments

My SSN was exposed in a breach at Columbia–a school I have no connection with

https://arstechnica.com/tech-policy/2026/06/my-ssn-was-exposed-in-a-breach-at-columbia-a-school-i...
1•duxup•8m ago•0 comments

The curious case of low-protein diets

https://knowablemagazine.org/content/article/living-world/2026/low-protein-diet-animals-live-longer
2•curmudgeon22•10m ago•0 comments

New power banks released by BMX with safer semi-solid-state batteries

https://hardware.slashdot.org/story/26/06/06/1932216/new-power-banks-released-by-bmx-with-safer-s...
1•MilnerRoute•10m ago•0 comments

Leiden Declaration on Artificial Intelligence and Mathematics

https://www.lms.ac.uk/news/leiden-declaration-on-ai-and-mathematics
2•_____k•10m ago•0 comments

The AI coding optimized for the part of engineering that hurt the least

https://www.ardel.io/blog/the-3am-problem
1•srbsa•11m ago•0 comments

Beekeeper Watching the Blooms

https://sassafrasbeefarm.wordpress.com/2026/01/03/beekeeper-watching-the-blooms/
1•jruohonen•11m ago•0 comments

Finish the Underside

https://steadypair.com/blog/finish-the-underside/
2•asoli•12m ago•0 comments

What Works for Dating in 2026

https://julienreszka.com/blog/what-actually-works-for-dating-in-2026/
2•julienreszka•13m ago•0 comments

Findnix.eu – Find alles, speichere Nix

https://findnix.eu
1•phppower•13m ago•1 comments

Building from Zero After Addiction, Prison, and a Felony

https://gavinray97.github.io/blog/building-from-zero-after-addiction-prison-felony
1•gavinray•14m ago•0 comments

Show HN: Typol – Static typing layer for Polars

https://github.com/pdtpartners/typol
1•mrrpdt•14m ago•0 comments

Unfurl – Freeing the Internet from Big Cloud

https://github.com/onecommons/unfurl
1•sigalor•18m ago•1 comments

Tire wear particles collecting device for automobiles

https://thetyrecollective.com
1•num42•19m ago•1 comments

Home Security and AI

1•garypearce•19m ago•0 comments

A Rejection on the Eve of Launch (2024)

https://jonofyi.substack.com/p/a-rejection-on-the-eve-of-launch
1•xk3•23m ago•0 comments

Tell HN: Stripe ToS demands biometrics, freezes payments until given

4•cuz-reasons•26m ago•0 comments

Bumblebees can solve problems like chimps and elephants

https://www.npr.org/2026/06/07/nx-s1-5846947/bumblebees-problem-solving-research
2•marojejian•26m ago•1 comments

My automated doubt development process

https://www.alexself.dev/blog/automated-doubt
3•aself101•29m ago•1 comments

Seattle unemployed worker stretches $690 per week

https://www.seattletimes.com/business/seattle-unemployed-worker-stretches-690-per-week-affording-...
1•petethomas•30m ago•0 comments

Where Do F1 Drivers Live? The Monaco Effect

https://www.kymillman.com/blog/where-do-f1-drivers-live-the-monaco-effect/
1•thunderbong•31m ago•0 comments

Making Peace with Your Unlived Dreams

https://nik.art/making-peace-with-your-unlived-dreams/
1•herbertl•31m ago•0 comments

Uni president told graduates to 'end themselves'

https://xcancel.com/TaiwanSpecial/status/2063099174019874882
2•bsgada•32m ago•1 comments

Memory safety is a matter of life and death

https://joshlf.com/posts/memory-safety-life-and-death/
1•birdculture•32m ago•0 comments

The complete IPv4 address space, mapped

https://worldip.io/
2•theanonymousone•33m ago•0 comments

A newly discovered organelle could help reduce cow methane emissions

https://phys.org/news/2026-05-newly-organelle-cow-methane-emissions.html
1•PaulHoule•34m ago•0 comments

Show HN: Axiomax – Cryptographic proof of AI inference carbon footprint

https://axiomaxllc.com
2•axiomaxllc•37m ago•0 comments

Not by AI

https://notbyai.fyi/
2•lopespm•38m ago•1 comments

The plan to give Americans an equity stake in AI

https://www.ft.com/content/8559a3f9-86de-4a1c-8a75-6623e83e6a00
2•marojejian•40m ago•3 comments