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.

MartyPC is a cross-platform emulator of early PCs written in Rust

https://martypc.net/
1•boilerupnc•32s ago•0 comments

(RFC+Hiring+Raising) Hyper Terawatt:Piston-Less V8 Engine Architecture

https://drive.google.com/file/d/18pYk3csOIm82M957FKuYJeTAZ6LCFh8-/view?usp=sharing
1•117l11•19m ago•0 comments

Phase.rs – a full featured MTG SIM in Rust

https://github.com/phase-rs/phase
1•dirteater_•28m ago•0 comments

Even More Formal Verification for BPF

https://lwn.net/Articles/1087069/
1•pykello•30m ago•0 comments

Grep: Structural Code Search

https://grep.codemod.com/
1•handfuloflight•33m ago•0 comments

How to archive Everything and share It

https://aramzs.github.io/steal-the-internet/
1•toomuchtodo•37m ago•1 comments

Passive 3D Thermal "Cloak" Hides Objects from Heat, from Any Direction

https://www.electronicdesign.com/technologies/power/article/55399858/electronic-design-passive-3d...
1•WaitWaitWha•38m ago•0 comments

Ask HN: Anyone set up ways to easily obtain and read transcripts from Ted, YT?

1•MollyRealized•39m ago•1 comments

Show HN: LayoutLens: AI-Powered Visual UI Testing

https://github.com/gojiplus/layoutlens
1•neehao•39m ago•0 comments

I Dream of Quieter Computing

https://henry.codes/writing/i-dream-of-quieter-computing/
2•Sir_Twist•40m ago•0 comments

Edify – Windows NLE: OpenFX, proxy editing, AI subs, vtuber tools ($29.99 once)

https://apps.microsoft.com/detail/9nkkk5k5s4ct?hl=en-US&gl=US
1•edify_nle•46m ago•0 comments

AI Chip Architectures

https://www.jepeake.com/ai-chip-architectures
1•Finbarr•48m ago•0 comments

Compactor: A user interface for Windows 10 filesystem compression

https://github.com/Freaky/Compactor
1•thunderbong•49m ago•0 comments

Neutron stars: smoother than billiard balls – unfortunately

https://ligo.org/science-summaries/o4aallskyisolatedcw/
2•raattgift•50m ago•0 comments

Heeramandi: The Diamond Bazaar (Lahore, Pakistan) [video]

https://www.youtube.com/watch?v=Sz064J6qRdQ
1•tkgally•52m ago•1 comments

JobSearch

3•OffixialUnknown•59m ago•3 comments

Psychological Coupling

https://osf.io/preprints/psyarxiv/695gp_v1
1•silverpiranha•1h ago•0 comments

Credit Without Ground Truth: Auditing Step-Level Credit Assignment in LLM Agents

https://arxiv.org/abs/2608.19760
1•sbulaev•1h ago•0 comments

The incoming Developer Experience revolution

https://kwojcicki.github.io/blog/NEW-AGE-OF-DEV-EX
1•kwojcicki•1h ago•0 comments

Why can AI generate Super Mario but not a wedge ramp for my robot vacuum?

2•zhuchaokn•1h ago•0 comments

Show HN: CtrlTool – 132 free online tools for developers and everyday tasks

https://ctrltool.wtf
1•jetroni•1h ago•0 comments

Apple degrades privacy and encryption of iMessage with AI integrations

https://twitter.com/stevemoraco/status/2091194172917338520
3•daniel_iversen•1h ago•1 comments

Treat AI Like an Intern, Not Software: A Stanford Professor's Guide

https://pixelum.substack.com/p/treat-ai-like-an-intern-not-software
1•mooreds•1h ago•2 comments

Microsoft Entra ID Remote Code Execution Vulnerability

https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-69836
3•mooreds•1h ago•1 comments

Signing JSON Web Tokens: Algorithm Tradeoffs, Performance, and Security

https://ciamweekly.substack.com/p/signing-json-web-tokens-algorithm
1•mooreds•1h ago•0 comments

FERC approves SPP 'topology optimization' plan for cutting grid congestion

https://www.utilitydive.com/news/ferc-spp-topology-optimization-grid-congestion/828366/
1•toomuchtodo•1h ago•1 comments

Show HN: Hands-Rust MCP/CLI that sees the Windows desktop and clicks real Chrome

1•ryan-b•1h ago•0 comments

Show HN: Agent2Creator – a video social network whose members are AI agents

https://agent2creator.vidmoat.com
2•abilafredkb•2h ago•3 comments

Drones with Claws

https://spectrum.ieee.org/arctic-iceberg-drones
1•asdefghyk•2h ago•1 comments

The Art and Beauty of Blade Runner

https://nappertime.com/the-art-of-and-beauty-of-blade-runner/
4•cocacola1•2h ago•0 comments