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.

MailDeskt v1.4.0 – A simple, fast desktop inbox for Resend, Gmail, Outlook, more

https://www.maildeskt.com/
1•jimmy_lee•17s ago•0 comments

The top secret URSALA, RAQUEL, and FARRAH satellites

https://www.thespacereview.com/article/4951/1
5•Bluestein•4m ago•0 comments

NASA observatory could be weeks away from falling to Earth after failed rescue

https://www.cnn.com/2026/09/30/science/nasa-swift-observatory-falling
1•everybodyknows•5m ago•0 comments

1.25M synthetic emails, chats, and calendar events for RAG and LLMs

https://huggingface.co/datasets/sinabis-group/sinabis-synthetic-corporate-dataset
1•sinabis_1•5m ago•0 comments

Custom Mesh Radio Interface for 1980s Computers [video]

https://www.youtube.com/watch?v=4jlctItN5FI
1•Teever•6m ago•0 comments

IANA's email about why example.com changed

https://www.oliverdunk.com/2026/09/30/iana-reply
1•oliverdunk•7m ago•0 comments

Echo – A SOTA writing model for style imitation

https://echo.fulcrum.inc/
3•etherio•7m ago•0 comments

SELP: Self-Guided Symptom Check and Pain Assessment Tool

https://selp.life
1•zilijonas•7m ago•0 comments

Selpflow – Personalized Workout and Nutrition Plans

https://selpflow.com/en
1•zilijonas•7m ago•0 comments

Ask HN: Do you procrastinate less when coding with AI?

1•amichail•8m ago•0 comments

Distillation Defenses Easily Break After Reinforcement Learning

https://arxiv.org/abs/2609.35699
1•ollybritton•8m ago•0 comments

Parasitic Computing

https://en.wikipedia.org/wiki/Parasitic_computing
1•simonpure•11m ago•0 comments

China's 2,250kW chargers are in service, US thinks about 750kW next year

https://electrek.co/2026/09/30/chinas-2250kw-chargers-are-already-in-service-while-us-thinks-abou...
2•cisc•11m ago•0 comments

Show HN: Another Email Provider - Inbound

https://inbound.new
1•ryanvogel•13m ago•0 comments

AI invite codes and referral codes, live

https://aiinvitecode.com
1•febeee•14m ago•0 comments

Uber Wait Times Rise 19% as Prices Climb 53%: Study

https://www.businessinsider.com/uber-wait-times-rise-19-as-prices-climb-53-study-2026-9
4•richardbarosky•15m ago•1 comments

Warp Factories Overview

https://docs.warp.dev/factories/
1•handfuloflight•15m ago•0 comments

The Airbnb Backfire

https://www.businessinsider.com/selling-vacation-home-airbnb-rental-real-estate-price-cuts-2026-9
2•toomuchtodo•17m ago•0 comments

Cycode Extends Its ADLC Security Capabilities to Developers' Workstations

https://radicaldatascience.wpcomstaging.com/2026/09/25/cycode-extends-its-adlc-security-capabilit...
2•ddgutierrez•21m ago•0 comments

Jev predicts every plate appearance of the 2026 MLB postseason

https://live.bitgraph.ing/
2•mikeargento•21m ago•0 comments

A Cold War Spy Satellite Named After Farrah Fawcett Just Blew Apart in Orbit

https://gizmodo.com/a-cold-war-spy-satellite-named-after-farrah-fawcett-just-blew-apart-in-orbit-...
7•PLenz•23m ago•0 comments

Walking Men from Around the World

https://mossandfog.com/walking-men-from-around-the-world/
3•gaws•26m ago•0 comments

Sycophantic Chatbots Cause Delusional Spiraling, Even in Ideal Bayesians

https://arxiv.org/abs/2602.19141
2•luispa•27m ago•0 comments

After Jenny Simpson&Jeff Browning, What Runners Should Know About Cardiac Events

https://www.trailrunnermag.com/training/after-jenny-simpson-and-jeff-browning-heres-what-runners-...
1•bookofjoe•30m ago•0 comments

Hegseth Announces AutoWarCom

https://www.militarytimes.com/news/your-military/2026/09/30/hegseth-announces-new-four-star-comma...
6•nick__m•31m ago•1 comments

Show HN: DragomanD – local language translator for Linux

https://dragomand.l10n-bg.dev/
3•eniac111•31m ago•0 comments

Expanding My Music Pipeline

https://www.coryd.dev/posts/2026/expanding-my-music-pipeline
1•nullpad•32m ago•0 comments

Show HN: Certify you wrote it and not AI

https://iwrote.co
2•arpanghoshal•34m ago•0 comments

YouTube lunatic designed and 3D printed a working mechanical calculator

https://www.theregister.com/offbeat/2026/09/30/youtube-lunatic-designed-and-3d-printed-a-working-...
2•joebuckwilliams•35m ago•0 comments

Swatting Calls: A Couple's Fight Against Online Stalkers and the Police

https://www.nytimes.com/2026/09/30/us/swatting-milwaukee-couple-settlement.html
4•nonfamous•35m ago•0 comments