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.

DummyScheme now supports coroutine as like Lua's coroutine except call/cc

https://github.com/zhuzhonghua/dummyscheme
1•zhonghua•1m ago•0 comments

Can app-specific credentials enable private account recovery?

https://blog.iamhuman.link/post/passwords-account-recovery-and-privacy/
1•hxseileah•2m ago•0 comments

Man dies after falling off roller coaster at Six Flags Over Georgia

https://www.cnn.com/2026/10/12/us/six-flags-roller-coaster-death-georgia
2•mondobe•4m ago•0 comments

T3 Code

https://github.com/pingdotgg/t3code
1•xiaoyu2006•6m ago•0 comments

An Anthropic AI model sent a false homicide tip to Philadelphia police

https://techcrunch.com/2026/10/09/an-anthropic-ai-model-sent-a-false-homicide-tip-to-philadelphia...
3•luispa•8m ago•1 comments

A Universal Wi-Fi CSI Encoder for Ubiquitous Human Sensing

https://arxiv.org/abs/2610.09559
1•d3ron•8m ago•0 comments

Examining China's AI Financing [pdf]

https://www.visualcapitalist.com/wp-content/uploads/2026/09/Examining-Chinas-AI-Financing.pdf
2•gmays•8m ago•0 comments

Original thoughts have terrible UX

https://sunilpai.dev/posts/original-ideas/
2•luispa•10m ago•0 comments

Open Source TikTok Live Streaming Tool

https://github.com/talkaboutdesign/tiklive
2•insomnie•12m ago•0 comments

Jujutsu Has No "Create a Branch" Step, and That Made Git Branches Click

https://juju-chu.com/blog/rethinking-branch-with-jj
2•oukayuka•14m ago•0 comments

Local-First Decentralized Storage

2•ZachQ•15m ago•2 comments

Super Smash Brothers Port to Original Xbox from N64 Decomp

https://github.com/Team-Resurgent/SSB-X
1•lucasrufkahr•16m ago•0 comments

LLMs Broke Developer Education

https://www.augmentedswe.com/p/ai-is-changing-developer-education
1•wordsaboutcode•17m ago•0 comments

ChatGPT Plugin in Review for Weeks

2•dthedavid•19m ago•0 comments

Epic Games reportedly pivoting to "AI first" game development model

https://arstechnica.com/gaming/2026/10/report-epic-games-goes-all-in-on-ai-for-disney-collaboration/
1•doppp•20m ago•0 comments

A Real DuckDB Database in S3, with Nothing Else to Run

https://dentiny.github.io/posts/duckdb-on-object-storage/
3•shenli3514•23m ago•0 comments

Minecraft in Witcher 3

https://github.com/Henvag/WitchCraft
1•henvag•24m ago•0 comments

He Dropped Out to Become a Poet. Now He's Won a Fields Medal. (2022)

https://www.quantamagazine.org/june-huh-high-school-dropout-wins-the-fields-medal-20220705/
2•maxall4•26m ago•0 comments

Stopping sand from destroying a hydropower turbine [video]

https://www.youtube.com/watch?v=kCYrSBexF_4
1•CaliforniaKarl•30m ago•0 comments

One Original Thought

https://anish.ink/posts/one-original-thought.html
4•anish210•31m ago•0 comments

Show HN: Monitor Postgres Health

https://github.com/turbolytics/dbhealth
1•dm03514•35m ago•0 comments

Ssrf-agent 1.0.5 reaches loopback through 2 address spellings

https://github.com/roshan-amble/ssrf-lab/blob/main/docs/findings/2026-09-13-ssrf-agent-bypass.md
4•RoshanAmble•36m ago•0 comments

Math community could learn from bio[med]'s to live with AI

https://terrytao.wordpress.com/2026/09/22/open-problems-open-mathematics/
1•oliculipolicula•39m ago•1 comments

The Venetian Arsenal

https://en.wikipedia.org/wiki/Venetian_Arsenal
3•gradus_ad•40m ago•0 comments

ETAF: Build complete text applications in Emacs with a web-style model

https://etaf.top/
2•DASD•45m ago•0 comments

The Grammar of Nature [pdf]

https://assets.zyrosite.com/m6LvaabebNtj6Eao/jmsouriau-grammairedelanature-2007-Awv4Ee7obKuBLQWK.pdf
4•oliculipolicula•45m ago•0 comments

Taijiquan- the Art of Integration

https://hal.science/hal-05683347v2/document
2•oliculipolicula•47m ago•0 comments

Refute, Don't Review

https://docs.cmd-ctrl.ai/blog/refute-dont-review
1•mrwoof•47m ago•1 comments

Boole-1.7B

https://precisionnumerics.ai/blog/boole-1p7b
1•nnx•50m ago•0 comments

AI Company Lets Cops Pinpoint Specific Houses Based on a Single Interior Photo

https://www.404media.co/ai-company-lets-cops-pinpoint-specific-houses-based-on-a-single-interior-...
4•bookofjoe•54m ago•0 comments