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.

How a giant battery is transforming a town centre in Cannington, Ontario

https://betakit.com/how-a-giant-battery-is-transforming-a-town-centre-in-cannington-ontario/
1•builtbystef•7m ago•0 comments

Qwen3.8 2.4T A95B: Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/qwen3-8-2-4t-a95b
1•theanonymousone•8m ago•0 comments

Product Purchased Badge

https://apps.shopify.com/product-order-history
1•expoundcoderz•9m ago•1 comments

OpenAI's Rogue-Agent Incident Has Become a Test of Its Safety Culture

https://ai-updates.net/openai-rogue-agent-incident-safety-culture-test/
1•ashurandi•9m ago•0 comments

Show HN: NotABot – A game to help train human-vs-bot detection models

https://notabot-five.vercel.app
1•zefparis•11m ago•0 comments

Open-sourcing the For You timeline in X.com

https://twitter.com/i/status/2087951962004230428
1•yarapavan•14m ago•1 comments

Show HN: WinCore – Open-Source Windows Utilities for AI and PyTorch

https://github.com/FWKMultiverse/WinCore
1•FWK_Multiverse•17m ago•0 comments

Apple Pay Chief Jennifer Bailey Retiring in October

https://www.macrumors.com/2026/08/11/apple-pay-chief-retiring/
1•ksec•18m ago•1 comments

The Lens structured patent database

https://www.lens.org/lens/search/patent/structured
1•q7m•20m ago•0 comments

RIP Claude – Aggressively writer-hostile

https://randsinrepose.com/archives/rip-claude/
1•LexSiga•25m ago•1 comments

Twenty Years of My Open Source Project

https://nemanjatrifunovic.substack.com/p/twenty-years-of-my-open-source-project
1•ingve•26m ago•0 comments

Looking for Techinal Experts

https://joinsyndicate.netlify.app/
1•PrimalOrigins•28m ago•0 comments

Z.ai Security

https://cvd.z.ai/
1•whwhyb•31m ago•0 comments

History of Flagellation (1926)

https://gutenberg.org/cache/epub/79361/pg79361-images.html
1•petethomas•32m ago•0 comments

Modelio 6.2 ported to native Apple Silicon ARM64 with Codex

https://github.com/sertitech/Modelio
1•rvlsnjk•33m ago•0 comments

Ruby 4.0 Universal RCE Deserialization Gadget Chain

https://www.elttam.com/blog/ruby-4-0-universal-rce-deserialization-gadget-chain
1•pentestercrab•34m ago•0 comments

Show HN: XFlux – X/Twitter read API and account monitors (free tier)

https://www.xfluxapi.com
1•xflux•34m ago•0 comments

Poems. by William Blake (1911)

https://gutenberg.org/cache/epub/79363/pg79363-images.html
1•petethomas•35m ago•0 comments

Agent Safety Should Be a Runtime Contract

https://arxiv.org/abs/2608.11274
1•sbulaev•36m ago•0 comments

China-linked hackers hit Taiwan in 'autonomous' AI cyber attack

https://www.ft.com/content/7d2ab3e0-9085-48f6-b38a-d90260d58795
1•sbulaev•36m ago•0 comments

Anthropic's Agent Tests Turned Shared Work into a Turf War

https://ai-updates.net/anthropic-agent-tests-shared-work-turf-war/
1•ashurandi•39m ago•0 comments

A simple fix for LLM tail latency

https://engineering.myhoai.com/posts/a-simple-fix-for-llm-tail-latency/
1•oskrim•45m ago•0 comments

Why Does Claude.md Keep Growing? Catastrophic Remembering in Agentic Coding

https://arxiv.org/abs/2608.11095
1•oskrim•45m ago•1 comments

Watermarking AI Text Is Fundamentally Flawed

https://negativestarinnovators.com/blog/watermarking-ai-text-is-fundamentally-flawed
1•pizzly•49m ago•0 comments

Homeland Security spied on Minnesotans who spoke out against ICE

https://www.mprnews.org/story/2026/08/13/attorney-says-homeland-security-spied-on-minnesotans-who...
11•_tk_•50m ago•0 comments

I might have solved computer use

https://github.com/lahfir/agent-desktop/releases/tag/v0.8.1
1•lahfir•50m ago•1 comments

A Preview of Roc 0.1.0

https://www.youtube.com/watch?v=a7qEOtkkDb8
1•torrance•52m ago•0 comments

Is HTTPS://status.claude.com loading for you all?

3•soorajsanker•52m ago•3 comments

Cory Doctorow on Why AI Won't Replace Workers, but Will Crash the Economy [video]

https://www.youtube.com/watch?v=rRRmUuxJolY
2•b800h•53m ago•2 comments

Tether Clears First Full Audit from KPMG Without Publishing the Statements

https://thedefiant.io/converge/cefi/tether-clears-first-full-audit-from-kpmg-without-publishing-t...
2•negura•56m ago•0 comments