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

Tess Observations

https://tess.mit.edu/
1•mooreds•28s ago•0 comments

What is Windows K2? Inside Microsoft's big plan to save Windows 11

https://www.windowscentral.com/microsoft/windows-11/what-is-windows-k2-everything-you-need-to-kno...
1•robotnikman•31s ago•0 comments

What Happens in the First 24 Hours After a New Asset Goes Live

https://www.bleepingcomputer.com/news/security/what-happens-in-the-first-24-hours-after-a-new-ass...
1•mooreds•1m ago•0 comments

Ukraine Bets on Battlefield AI

https://apnews.com/article/russia-ukraine-war-artificial-intelligence-europe-a7d2cce367f68caa3598...
1•beezle•1m ago•0 comments

Monthly News – April 2026

https://blog.linuxmint.com/?p=5022
1•paulnpace•2m ago•0 comments

Coding agents expose this: same VPS, 3 runs, ~65% drift

https://webbynode.com/articles/coding-agents-infrastructure-vps-benchmarks
1•gsgreen•2m ago•0 comments

The Enhanced Games, Where Athletes Compete on Steroids, HGH, Adderall

https://www.vanityfair.com/news/story/inside-the-enhanced-games
1•zdw•3m ago•0 comments

Difference between good debt and bad debt

https://smartmoneyguides.quora.com/
1•hennix22•4m ago•0 comments

Digging into Claude Code and codex source codes to understand how they work

https://nimasadri11.github.io/random/annotated-agent/
1•nimasadri11•5m ago•0 comments

From items to users: Rebuilding Plaid's API in flight

https://medium.com/plaid-engineering/from-items-to-users-rebuilding-plaids-api-in-flight-8e8aa037...
1•bassoonspinach•5m ago•0 comments

Palantir's Al Targeting System Running the Iran War [video]

https://www.youtube.com/watch?v=CHLFl26p7Po
2•smallerfish•6m ago•0 comments

The Alice and Bob After Dinner Speech

https://hex.ooo/library/alicebob.html
1•tempodox•6m ago•0 comments

IBM Selectric

https://en.wikipedia.org/wiki/IBM_Selectric
2•paulpauper•6m ago•0 comments

A Year on an E-Reader

https://wombat.bearblog.dev/a-year-on-an-e-reader/
1•speckx•7m ago•0 comments

Paraconsistent Logic (Substantive Revision)

https://plato.stanford.edu/entries/logic-paraconsistent/
1•StatsAreFun•8m ago•0 comments

SFO Gate Explorer

https://www.flysfo.com/passengers/services/gate-explorer
1•CaliforniaKarl•8m ago•0 comments

Greptile's New Pricing Is Predatory

https://greptile-fail.vercel.app/
2•not-chatgpt•8m ago•0 comments

Before DevRel Was a Thing

https://meghangill.substack.com/p/before-devrel-was-a-thing
1•meghan•9m ago•0 comments

The invisible force making food less nutritious

https://www.washingtonpost.com/climate-environment/interactive/2026/carbon-pollution-diluting-key...
2•johnbarron•10m ago•0 comments

Introducing Stage: Engineers deserve a better code review platform

https://stagereview.app/blog/introducing-stage
2•cpan22•11m ago•0 comments

More Tokens Isn't More Intelligence

https://briannelee.substack.com/p/more-tokens-isnt-more-intelligence
1•BrianneLee011•13m ago•0 comments

AI On-Call Engineer That Fixes Prod While I Sleep

https://twitter.com/DVremenko/status/2049885593992126682
1•dimavrem22•14m ago•2 comments

Show HN: Milkdrop Visualizations with WASM+WebGPU [TW: flashing lights]

https://milkdrop.mahae.dev/
1•mkoh•18m ago•0 comments

Granite 4.1 LLMs: How They're Built

https://huggingface.co/blog/ibm-granite/granite-4-1
1•Brajeshwar•18m ago•0 comments

Main quests, subquests, side quests and minigames

https://stevepavlina.com/blog/2020/02/main-quest-subquest-side-quest-or-minigame/
1•highfrequency•18m ago•0 comments

Running Local Agentic PDF Search with Eno

https://enopdf.com/support/local-models/
1•basscodes•19m ago•1 comments

Convicted former Harvard scientist rebuilds brain computer lab in China

https://www.reuters.com/world/china/convicted-former-harvard-scientist-rebuilds-brain-computer-la...
4•akyuu•20m ago•0 comments

Openweight Benchmark

https://openweightbench.pages.dev/
1•msoul•21m ago•1 comments

Egyptian mummy unearthed with literary text on abdomen in first ever find

https://www.cnn.com/2026/04/30/science/egyptian-mummy-iliad-scli-intl
4•pseudolus•21m ago•0 comments

Open source payment orchestration platform

https://korben.info/hyperswitch-plateforme-paiement-ingenieur.html
1•manojr13•21m ago•0 comments