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.

Show HN: Throw Alice and Bob into Sagittarius A*

https://github.com/steveking-gh/black-hole-lab
1•steve6390•2m ago•0 comments

We spent $1200 on a booth at HITEX 2026. Here's what we got

https://mazeez.dev/posts/hitex-2026/
1•mazeez•2m ago•0 comments

Borel jet extensions via higher categories and homotopy type theory

https://higher-borel-jets.grok.me/
1•measurablefunc•4m ago•0 comments

DuckDB Runs Recursive CTEs Faster

https://duckdb.org/2026/08/25/how-duckdb-runs-recursive-ctes-faster
1•kristianp•10m ago•0 comments

Hackers abuse Google Ads, Bing redirects to push Claude ClickFix attacks

https://www.bleepingcomputer.com/news/security/hackers-abuse-google-ads-bing-redirects-to-push-cl...
4•PicardManeuver•11m ago•1 comments

The Token Economy: Why Falling Token Prices Have Not Lowered AI Bills

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7562258
1•b-man•12m ago•0 comments

Montray – a tray icon for systemd service health

https://github.com/dimonomid/montray/
1•birdculture•12m ago•0 comments

Truck Parking Solver

https://truckslop.joshu.dev/
2•mbokinala•16m ago•0 comments

A General Capacity Frontier of Complex Networks

https://arxiv.org/abs/2610.09574
1•nickkunz•17m ago•1 comments

Show HN: Stop asking "can you spell that?" on calls (auto-deletes in 24h)

https://www.spltfm.com
1•bolshchikov•18m ago•0 comments

Software's centaur age may last decades

https://www.seangoedecke.com/softwares-centaur-age-may-last-decades/
1•herbertl•19m ago•0 comments

San Serriffe

https://en.wikipedia.org/wiki/San_Serriffe
1•simonebrunozzi•19m ago•0 comments

GPT-Astra NFL Player Video Analysis

https://twitter.com/robsandhu/status/2108987321786007853
1•rsandhu•19m ago•0 comments

The Plunging Price of Thought

https://epoch.ai/publications/the-plunging-price-of-thought
1•herbertl•21m ago•0 comments

Why We Still Cannot Read Etruscan

https://veiledantiquity.com/posts/etruscan-language-lost/
2•darkwater•23m ago•0 comments

The Safety That Isn't

https://markatwood.substack.com/p/the-safety-that-isnt
1•skmurphy•27m ago•0 comments

I bet AI would invent its own language; Claude Opus's survived every copy

https://claude.ai/artifact/KNR1u48RyraRAy6hi64wc8
1•BlackThistle•28m ago•0 comments

Gase – Educational multi-platform Genesis / Mega Drive emulator written in Rust

https://bthuner.github.io/gase/
3•otistropo•28m ago•0 comments

Field Projections: Basic Borrow Checking

https://benno-lossin.de/blog/field-projections/basic-borrow-checking/
1•dabinat•28m ago•0 comments

The Commuting Principle That Shaped Urban History (2019)

https://www.bloomberg.com/news/features/2019-08-29/the-commuting-principle-that-shaped-urban-history
1•thunderbong•28m ago•0 comments

I'm Still Convinced the iPod Was the Perfect Gadget

https://www.wired.com/story/im-still-convinced-the-ipod-was-the-perfect-gadget/
1•herbertl•30m ago•1 comments

NASA issues long-awaited call to industry for private space stations

https://arstechnica.com/space/2026/10/nasa-issues-long-awaited-call-to-industry-for-private-space...
1•taubek•31m ago•0 comments

Semantic Game Builder Interface to be Integrated Into Unity

https://web.archive.org/web/20120501131830/http://blogs.unity3d.com/2012/04/01/semantic-game-buil...
1•coinfused•32m ago•0 comments

MailDeskt – I turned Resend into an email app you can use every day

https://www.maildeskt.com/
1•jimmy_lee•32m ago•0 comments

ERCOT batteries: Boom, bust, or rebound?

https://www.latitudemedia.com/news/catalyst-ercot-batteries-boom-bust-or-rebound/
1•toomuchtodo•34m ago•0 comments

RF BrainScan Unveiled at UN?

https://www.nytimes.com/2026/10/08/world/europe/united-nations-technology-warning.html
1•Dabbling_Dion•35m ago•1 comments

Effective Spaced Repetition (2023)

https://borretti.me/article/effective-spaced-repetition
3•wslh•41m ago•0 comments

A new look at brains transformed by psychedelics

https://arstechnica.com/science/2026/10/the-psychedelic-brain-looks-like-chaos-underneath-theres-...
9•ron_k•42m ago•2 comments

Ask HN: Locked out of Google despite knowing password and having email access

2•coherenttemple•44m ago•0 comments

Nvidia reportedly halts GeForce RTX 5090 production in favor of data center GPUs

https://www.tomshardware.com/pc-components/gpus/nvidia-reportedly-halts-geforce-rtx-5090-producti...
2•elorant•54m ago•1 comments