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.

Gmux: Tmux for GPUs

https://github.com/numinous-technology/gmux
1•joshkolo•14s ago•0 comments

Platform-Independent SIMD in Go

https://go.dev/blog/simd-experiment
1•tkhattra•38s ago•0 comments

Protecting our knowledge of human genetic diversity

https://projecttimestamper.org/blog/human-genomes/
1•arthuredelstein•1m ago•0 comments

Show HN: Jev-pilot – Jev picks Claude Code's effort, model and skill per prompt

https://github.com/Akramovic1/jev-pilot
1•akramovic•2m ago•0 comments

Preventive Software Maintenance

https://poolp.org/posts/2026-08-13/preventive-software-maintenance/
1•vcoisne•4m ago•0 comments

4% of Sessions, 65% of the Bill: 30 Days of Claude Code Telemetry

https://www.promptarmor.com/resources/claude-cost-and-risk-otel-findings
2•sarelta•7m ago•0 comments

Back and shoulder surgery is often worse than useless

https://www.economist.com/leaders/2026/09/24/back-and-shoulder-surgery-is-often-worse-than-useless
1•burntcaramel•7m ago•0 comments

Software-only quantum tool, it breaks RSA-2048 live

https://dtec9.com
1•DTec•8m ago•0 comments

Danish Health Minister summoned over secret Wegovy court proceedings

https://www.dr.dk/nyheder/indland/ida-auken-bliver-indkaldt-i-samraad-i-hemmelig-novo-sag
2•sfjailbird•9m ago•1 comments

Which AI model is best for coding? A hands-on comparison

https://flaviocopes.com/ai-coding-models/
1•ibobev•11m ago•0 comments

C74-6502 Overview

https://c74project.com/
1•stmw•11m ago•1 comments

Grieving the Loss of Details

https://purplesyringa.moe/blog/grieving-the-loss-of-details/
1•ibobev•11m ago•0 comments

Dolphin Emulator Progress Release 2609

https://dolphin-emu.org/blog/7J/
2•thepbone•12m ago•0 comments

Sir Ranulph Fiennes kept in care home illegally

https://www.telegraph.co.uk/news/2026/09/24/fiennes/
2•bbg2401•13m ago•0 comments

Bluh

https://vivico.space
1•zinicius•13m ago•0 comments

Amiga Screens: A Primer

https://www.datagubbe.se/amscr/
1•ibobev•13m ago•0 comments

Cheap and Awesome

https://www.praf.me/cheap-and-awesome
1•_praf•16m ago•0 comments

Adam Conover explains how YouTube ruined everything

https://www.theverge.com/podcast/991471/adam-conover-youtube-tv-media-union-labor-ai
1•robenkleene•16m ago•0 comments

Google's first Suncatcher orbital data center test launches October 1

https://arstechnica.com/google/2026/09/googles-first-suncatcher-orbital-data-center-test-launches...
3•sbulaev•16m ago•0 comments

Pick OS Is a Living Fossil of Computer History

https://csixty4.medium.com/pick-is-a-living-fossil-of-computer-history-36d74408d557
2•birdculture•18m ago•0 comments

Ask HN: IEEE Expulsion of Fei-Yue Wang?

1•sathomasga•18m ago•0 comments

Redditor Connects an AMD GPU to a MacBook Pro

https://www.reddit.com/r/LocalLLaMA/comments/1woutxp/macbook_pro_m5_max_lse_llm_running_an_amd_ra...
2•AbuAssar•18m ago•0 comments

More than $170M in crypto moves from Bitget wallets to unidentified address

https://www.theblock.co/news/markets/2026-09-24-more-than-170-million-in-crypto-moves-from-bitget...
2•wslh•19m ago•0 comments

GTM Engineering Skills.md Toolbox

https://shipgtm.com/toolbox
2•namadaza•21m ago•0 comments

Eaon Code

https://github.com/eaonlabs/eaon-code
1•morriszdweck•22m ago•0 comments

Reverse Engineering ChatGPT Web: How OpenAI Built for a Billion Users

https://performance.dev/chatgpt
1•fagnerbrack•23m ago•0 comments

Why Are Today's Men Not Willing to Woo Like Before?

https://pressearn.it.com/blog/2026/09/24/why-are-todays-men-not-willing-to-woo-like-before/
1•Rebornkvng•23m ago•2 comments

Test

https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/
1•yumusyumus•27m ago•0 comments

San Francisco Currently: The coverage this city deserves

https://www.sfcurrently.com/
2•motionlessveloc•32m ago•0 comments

Two compromised GitHub Actions have been reenabled

https://socket.dev/blog/mini-shai-hulud-actions
2•justsomehuman•33m ago•1 comments