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 Temporal Logic of Actions (TLA) – Leslie Lamport, DEC (1993) [pdf]

https://lamport.azurewebsites.net/pubs/lamport-actions.pdf
1•peter_d_sherman•31s ago•0 comments

Ask HN: Could I make a better Minecraft proxy than Velocity?

2•NotSoSerious•6m ago•0 comments

SF startup leader (Gary Tan) praises Trump on defense: 'Absolutely amazing'

https://www.politico.com/news/2026/12/01/gary-tan-convo-01187676
1•rmason•7m ago•2 comments

WebGPU Skill

https://github.com/cazala/webgpu-skill
1•measurablefunc•7m ago•0 comments

Merrilin – We Built an App to Read Books

https://merrilin.ai/
2•stonecharioteer•7m ago•0 comments

Private paycheck-to-paycheck zero-based budget and financial tracker app

https://www.yzbb.app/
1•derricbrissette•8m ago•0 comments

Laravel Rust

https://github.com/laravel/rust-framework
2•tosh•8m ago•1 comments

Show HN: Proxea – a defensive reverse proxy that isn't there

https://github.com/proxea/proxea
1•hyusband•9m ago•0 comments

Show HN: I built a decision picker mobile app inspired by gacha games

https://newprojectplus.com/apps/pickalot/
1•unLuckyNumbers•9m ago•0 comments

Show HN: Pogon, a decision queue for Claude Code and Codex agents

https://pogon.build
1•andrejsshell•10m ago•0 comments

13 Years' Data Fuels NASA's Prithvi AI Model

https://quantumzeitgeist.com/nasa-prithvi-ai-years-data/
1•rmason•11m ago•0 comments

Show HN: Open-source guitar practice studio with stem extraction and NAM rigs

https://guitarist.tools
2•mgechev•11m ago•0 comments

Neo Semiconductor's X-DRAM – Next Gen Architecture for DRAM

https://neosemic.com/x-dram/
1•peter_d_sherman•11m ago•0 comments

Anthropic discovers new quantum algorithms for lattice-based cryptography

https://github.com/anthropics/formal-math/commit/6bb031d7ecd6f25331359cd20e5d4333f389da9b
1•aditchandra•11m ago•0 comments

The good and the bad of cyber insurance

https://mysamureye.com/cyber-insurance/
1•titusblair•13m ago•0 comments

Show HN: PayWords – Cut HTTP 402 AI fees from 30¢ to $0.0077 per 1k calls

https://newsatoshi.org/paywords/
1•socialnakamoto•14m ago•0 comments

WhatsApp blocks logins on iPhones running older iOS versions over malware

https://www.bleepingcomputer.com/news/security/whatsapp-blocks-logins-on-iphones-running-older-io...
2•dvaplima•15m ago•0 comments

Tor adopts Agent guidelines for LLM assisted contribution

https://gitlab.torproject.org/tpo/core/tor/-/blob/main/doc/HACKING/AgentPlanningWorkflow.md
2•rustyhancock•16m ago•0 comments

AP Memory's VHM – 3D Stacked DRAM for your SoC – up to 24TB/s bandwidth

https://www.apmemory.com/en/solution/VHM
2•peter_d_sherman•17m ago•0 comments

Octopus Pricing – No Shelfware

https://octopus.com/blog/octopus-pricing-no-shelfware
1•paulstovell•18m ago•0 comments

The Uberization of Software

https://lsrx.net/blog/the-uberization-of-software
2•LSRX•19m ago•0 comments

The GTA logo is based on this free font inspired by a game show

https://www.creativebloq.com/news/yes-the-gta-logo-is-based-on-a-free-font-inspired-by-a-game-sho...
2•gaws•22m ago•0 comments

Anthropic and OpenAI should release their secret internal models

https://www.dwarkesh.com/p/no-internal-external-gap
3•jekude•23m ago•0 comments

Show HN: I made a game about quantum immortality

https://ninefold.club
1•flymetothestar•23m ago•0 comments

Docker VMM – new virtualization layer under Docker Desktop

https://www.docker.com/blog/announcing-docker-vmm-ga/
1•gempir•24m ago•0 comments

The Most Glaring Contradiction in Jensen Huang's Interview with Congress

https://www.nytimes.com/2026/12/02/business/economy/jensen-huang-testimony-contradiction.html
4•alwillis•26m ago•0 comments

Show HN: An always-changing audiovisual collage powered by Wikimedia Commons

https://commonwealth.ochre.works/
2•muxtupe•27m ago•0 comments

The Covered List Moved Inside the Box

https://blog.ppb1701.com/the-covered-list-moved-inside-the-box
1•speckx•27m ago•0 comments

California calls Kalshi an illegal gambling operation in latest state lawsuit

https://www.coindesk.com/policy/2026/12/02/california-calls-out-kalshi-as-illegal-gambling-operat...
5•PaulHoule•28m ago•0 comments

Smart Deterministic: a manifesto for systems people trust and like

https://five250.com/blog/smart-deterministic
1•carucio•28m ago•0 comments