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.

How the body creates reliable antibodies out of biological chaos

https://www.rockefeller.edu/news/39873-germinal-center-immune-evolution/
1•hhs•1m ago•0 comments

The Long Illness Persists

https://systemsthinkingcollection.substack.com/p/the-long-illness-persists
1•InputName•3m ago•0 comments

Pfizer Bets on Weight-Loss Drugs to Power Its Next Decade

https://www.bloomberg.com/news/articles/2026-06-06/pfizer-bets-on-weight-loss-drugs-to-power-its-...
1•paulpauper•3m ago•0 comments

Raize Orion Multi-framework GRC with anchored NIS2 reporting clocks

https://raizehq.dev
1•olusmith•4m ago•0 comments

Waypoint-1.5

https://over.world/blog/waypoint-1-5
1•sshh12•4m ago•0 comments

Reed Hastings officially leaves Netflix board, Jay Hoag becomes chairman

https://variety.com/2026/tv/news/netflix-board-reed-hastings-jay-hoag-chairman-1236768093/
1•hhs•8m ago•0 comments

Tragedy of the Anticommons

https://en.wikipedia.org/wiki/Tragedy_of_the_anticommons
1•thelastgallon•10m ago•0 comments

Action Potentials for May

https://neurobiology.substack.com/p/action-potentials-for-may-c20
1•paulpauper•10m ago•0 comments

Trump Signs Executive Order for AI Testing Prior to Frontier Model Releases

https://thezvi.substack.com/p/trump-signs-executive-order-for-ai
1•paulpauper•11m ago•0 comments

Predicting Stronghold locations with Bayesian statistics (2021) [pdf]

https://github.com/Ninjabrain1/Ninjabrain-Bot/blob/main/triangulation.pdf
1•aw1621107•12m ago•0 comments

Show HN: A beautiful and local-first PDF reader for studying dense things

https://www.tryquincy.live
2•oleksg•15m ago•0 comments

Experts and superforecasters update their AI timelines

https://forecastingresearch.substack.com/p/leap-wave-8-ai-timelines
1•hhs•18m ago•0 comments

If LLMs Have Human-Like Attributes, Then So Does Age of Empires II

https://arxiv.org/abs/2605.31514
2•doener•21m ago•0 comments

Show HN: An iOS bubble level designed to calibrate away camera bump

https://apps.apple.com/us/app/bubble-level-calibrated/id6767735397
1•dfskGT•29m ago•1 comments

My Partner's Dependence on Chatbots Is Becoming a Problem

https://www.nytimes.com/2026/05/30/magazine/partner-chatbot-dependence-ethics.html
1•gk1•29m ago•0 comments

TB – super‑fast text‑only browser using Jina Reader API

https://github.com/falcga/tb
1•falcga•35m ago•1 comments

A Fully Hallucinated OS [video]

https://www.youtube.com/watch?v=z3pV6FHvcgM
1•My_Name•35m ago•0 comments

How much do amd64 microarchitecture levels help in Go?

https://lemire.me/blog/2026/06/06/how-much-do-amd64-microarchitecture-levels-help-in-go/
2•chmaynard•36m ago•0 comments

"The only cassette mechanism being made" myth BUSTED [video]

https://www.youtube.com/watch?v=dYeY4DvlFDs
1•fortran77•41m ago•0 comments

Launching internal testing for PicnicTimer – looking for early Android testers

https://picnicapps.uk
1•PicnicApps•42m ago•0 comments

Hong Kong Surpasses Switzerland as the Largest Cross-Border Wealth Hub

https://www.bcg.com/press/27may2026-hong-kong-surpasses-switzerland-largest-cross-border-wealth-hub
3•LopRabbit•45m ago•0 comments

Breaking Circular Imports in Python Without Losing Type Safety

https://www.orcaset.com/blog/breaking-circular-imports-in-python-without-losing-type-safety
2•rbanffy•49m ago•0 comments

Hong Kong Develops " First" Nasal Spray for Rapid Stroke Aid [video]

https://www.youtube.com/watch?v=WyourYqtIOA
2•nikolay•49m ago•0 comments

The Machines Making People Human Again

https://www.thefp.com/p/the-machines-making-people-human
1•mhb•49m ago•0 comments

We are in the golden age of Open Source

https://kerkour.com/open-source-golden-age-ai
2•worik•57m ago•0 comments

MySQL 9.7.0 LTS Is Now Available

https://blogs.oracle.com/mysql/mysql-9-7-0-lts-is-now-available-expanded-community-capabilities-a...
1•ksec•58m ago•1 comments

Scientists ejected from diabetes conference for distributing journal reprints

https://arstechnica.com/science/2026/06/scientists-ejected-from-diabetes-conference-for-distribut...
2•quapster•59m ago•1 comments

Show HN: Aegis – post-quantum cyberdefense proxy (471 attacks, 0 breaches)

https://github.com/conchaestradamiguelangel-droid/aegis
2•conchaestrada•1h ago•0 comments

They are looting your life savings

https://social.bau-ha.us/@raganwald/116705256401454865
15•ColinWright•1h ago•10 comments

They Already Need a Bailout

https://www.youtube.com/watch?v=QAn_39-qu6I
4•tcp_handshaker•1h ago•0 comments