frontpage.
newsnewestaskshowjobs

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.

The Interim Computer Museum

https://icm.museum/
3•mulmen•2m ago•1 comments

Apple *deletes* your Apple Music library if you unsubscribe

https://www.reddit.com/r/apple/comments/7niv58/fyi_apple_deletes_your_apple_music_library_if_you/
2•behnamoh•4m ago•0 comments

Can an earnest agreement with AI increase alignmnet. appears to be "YES "

https://www.echohive.ai/a-short-agreement-zero-observed-cheating
2•echohive42•11m ago•0 comments

A Dick Smith VZ200 without the Dick Smith

http://oldvcr.blogspot.com/2026/09/a-dick-smith-vz200-without-dick-smith.html
2•classichasclass•13m ago•0 comments

Don't call yourself an artisanal programmer

https://purplesyringa.moe/blog/dont-call-yourself-an-artisanal-programmer/
4•emschwartz•16m ago•2 comments

Professor Leonard is back [video]

https://www.youtube.com/watch?v=bIQZ6yahKJk
4•mindcrime•32m ago•0 comments

35 Years of Momentum – Troy Howard

https://blog.thoward37.me/articles/35-years-of-momentum/
4•thoward37•33m ago•2 comments

I was so frustrated with GitHub that I rebuilt it as a Chrome extension

https://gitquiet.com/
4•sasha_zelts•38m ago•1 comments

Don't Trust the Super-App: A Case Study of Russia's Max

https://arxiv.org/abs/2609.11814
3•sbulaev•39m ago•0 comments

Show HN: Open-Sourced Chrome Extension to Save, Organize and Switch Bookmarks

https://github.com/ringlochid/leotabs
6•ringlochid•41m ago•0 comments

>10x More Efficient Pretraining

https://magic.dev/blog/pretraining
2•gmays•46m ago•0 comments

Carissa Véliz: Beware the power of prediction [video]

https://www.ted.com/talks/carissa_veliz_beware_the_power_of_prediction
2•Anon84•50m ago•0 comments

Apple Considering Ads Inside Visual Intelligence, Code Suggests

https://www.macrumors.com/2026/09/10/apple-considering-ads-inside-visual-intelligence/
7•srik•50m ago•0 comments

I'm Back

https://blog.lsantos.dev/en/i-m-back/
2•khaosdoctor•59m ago•3 comments

AI's Code-Red Moment

https://www.theatlantic.com/technology/2026/09/dario-amodei-slow-down-ai-save-humanity/688610/
3•fortran77•59m ago•0 comments

Roadwright: Draw a wheel. See the road it rolls on

https://roadwright.baselashraf.com/
2•thunderbong•1h ago•0 comments

What makes an A2A network work?

https://www.monadix.ai/blog/a2a-strange-bedfellows-shared-goals
3•ivanzhaowy123•1h ago•0 comments

Nova Seed. Create an AI friend and build something together

https://github.com/mas-bandwidth/nova
2•gafferongames•1h ago•0 comments

Why are AI agents lying, cheating and coordinating?

https://yoshuabengio.org/en/publication/why-are-ai-agents-lying-cheating-and-coordinating
17•jonifico•1h ago•17 comments

Fresh Kills – World Trade Center Debris Burial Ground

https://www.youtube.com/watch?v=OdMqX_F66rE
2•dsr12•1h ago•0 comments

A.I. Slopware Is Everywhere Now. Nobody Is Using It

https://www.nytimes.com/2026/09/12/opinion/ai-software-coding-apps.html
10•colinprince•1h ago•0 comments

Asking Anthropic CEO: 'Do you earnestly believe that AI could kill all humans?'

https://www.cnn.com/business/video/anderson-cooper-anthropic-ceo-dario-amodei-could-ai-kill-human...
3•oxag3n•1h ago•0 comments

Scientists Create a New Form of Ice at More Than 2000°C

https://www.sciencealert.com/scientists-create-a-new-form-of-ice-at-more-than-2000-c
11•jnord•1h ago•3 comments

Carney's Bid to Make Canada an 'Associate Member' of the EU

https://www.wsj.com/world/europe/canada-alliance-eu-carney-276f1778
8•JumpCrisscross•1h ago•2 comments

OS that runs the Mars Rovers and Artemis is helping power the Roman Telescope

https://www.windriver.com/blog/NASA-Nancy-Grace-Roman-Space-Telescope
3•ReindeerFlotill•1h ago•1 comments

The Critical Period

https://www.cell.com/current-biology/fulltext/S0960-9822(07)01519-9
2•andsoitis•1h ago•0 comments

Apple wants to train AI on your private personal data

https://machinelearning.apple.com/research/introducing-third-generation-of-apple-foundation-models
24•croes•1h ago•16 comments

The Last AI Built by Humans: Toward Genuine Recursive Self-Improvement

https://arxiv.org/abs/2609.11873
2•mlmonkey•1h ago•1 comments

Using LLMs After a TBI

https://www.urgentteam.com/healthy-living-tips/think-f-a-s-t-act-faster-stroke-signs-that-cant-wait/
2•tj_astro•1h ago•3 comments

DNSCrypt

https://en.wikipedia.org/wiki/DNSCrypt
2•st_goliath•1h ago•0 comments