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.

MacBook Neo Is So Popular That Apple Doubled Production

https://www.macrumors.com/2026/06/03/macbook-neo-production-doubled-says-kuo/
1•tosh•1m ago•0 comments

Meta Business Agent

https://about.fb.com/news/2026/06/meta-business-agent/
1•ChrisArchitect•1m ago•0 comments

Inside Meta's attempts to play catch-up with AI

https://arstechnica.com/ai/2026/06/inside-metas-attempts-to-play-catch-up-with-ai/
1•pseudolus•1m ago•0 comments

Apple Announces Europe's First Developer Center

https://www.macrumors.com/2026/06/03/apple-announces-first-developer-center-in-europe/
1•tosh•2m ago•0 comments

Five Stages of Building with LLMs

https://llmfn.com/signals/fivestages
1•bargavas•2m ago•0 comments

A Visual Guide to Gemma 4 12B

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-gemma-4-12b
1•yurivish•2m ago•0 comments

Framework Laptop 13 Pro Deep Dive – LPCAMM2

https://frame.work/blog/framework-laptop-13-pro-deep-dive-lpcamm2
1•allddd•4m ago•0 comments

AI costs how much? GitHub Copilot users react to new usage-based pricing system

https://arstechnica.com/ai/2026/06/ai-costs-how-much-github-copilot-users-react-to-new-usage-base...
1•ceejayoz•4m ago•0 comments

I made a streaming feature where you can predict what happens during the stream

https://polybets.fun/go-live
1•realJared54•4m ago•0 comments

The SSRI Debate Flares Again

https://www.psychologytoday.com/us/blog/the-biology-of-human-nature/202606/the-ssri-debate-flares...
1•lovestory•4m ago•0 comments

Ecdsa Fail Challenge

https://github.com/ecdsafail/ecdsafail-challenge
1•aburan28•5m ago•0 comments

Show HN: Erebus, A VPN client that runs rootless in user space

https://margaine.com/erebus/
2•tlar•5m ago•0 comments

Show HN: PersonalPod – Saving my long-distance relationship with a podcast

https://personal-pod.com/
1•smarterhome•6m ago•0 comments

WebSSH: A modern, feature-rich web-based SSH terminal with SFTP file manager

https://github.com/bifrost0x/webssh
1•indigodaddy•8m ago•0 comments

My Coding Setup

https://theoo.dev/notes/4
1•speckx•9m ago•0 comments

New Texas Instruments 5532 chips are not the 5532's we've used for decades

https://groupdiy.com/threads/the-new-ti-5532-chips-are-not-5532s-weve-used-for-decades.93707/
3•SpikedCola•9m ago•0 comments

Show HN: Nutrepedia – nutrition info in 29 locales built with Clojure and Htmx

https://nutrepedia.com/en-us/
1•llovan•9m ago•0 comments

GitLab cuts 14% of staff as it scales its platform to serve AI workloads

https://techcrunch.com/2026/06/03/gitlab-cuts-14-of-staff-as-it-scales-its-platform-to-serve-ai-w...
3•01-_-•9m ago•0 comments

Tidal Wave: CachyOS Is Now Bigger Than Arch Linux Ever Was

https://boilingsteam.com/tidal-wave-cachy-os-is-now-bigger-than-arch-linux-ever-was/
3•ekianjo•10m ago•0 comments

DrakoFlow – A serverless, open-source text-to-diagram tool

https://github.com/pazvanti/DrakoFlow
1•pazvanti•10m ago•0 comments

Amazon-owned Ring should pay Americans for scanning their faces, lawsuit says

https://arstechnica.com/tech-policy/2026/06/amazon-owned-ring-should-pay-americans-for-scanning-t...
3•01-_-•10m ago•1 comments

Show HN: Agent-browser-shield – free extension to protect AI agents on the web

https://github.com/pixiebrix/agent-browser-shield
4•tschiller•11m ago•1 comments

Nvidia: Nemotron 3 Super

https://developer.nvidia.com/blog/introducing-nemotron-3-super-an-open-hybrid-mamba-transformer-m...
1•tosh•12m ago•0 comments

Today a crazy quantum story just got wilder

https://twitter.com/drakefjustin/status/2061793725299224676
2•Anon84•13m ago•0 comments

NPM-Scan: Detecting Supply Chain Attacks (100% Validation on Real Campaigns)

https://www.npmjs.com/package/@lateos/npm-scan
1•lateos-ai•14m ago•0 comments

'Close to the Terminator narrative': the dawn of self-improving AI

https://www.ft.com/content/7cc7800f-18ed-47d8-9539-221ae3e16182
2•aanet•15m ago•1 comments

AI Delegation Starts with Inspectable Work

https://deviantabstraction.com/2026/06/02/audit-test-automate-how-we-decide-what-ai-can-own/
1•top256•16m ago•0 comments

Renowned Warhammer Artist, John Blanche, Passes Away

https://www.ontabletop.com/warhammer-40k/renowned-warhammer-artist-john-blanche-passes-away/
1•bushwart•17m ago•1 comments

FIA Operating Systems FiaPhy Dtdss Algorithm

https://ui.adsabs.harvard.edu/abs/arXiv:2604.15352
1•openrockets•17m ago•0 comments

Resource consumption of AI: The insatiable industry and its costs

https://algorithmwatch.org/en/climate-ai/
1•fodmap•18m ago•0 comments