frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo 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•9mo 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•9mo 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.

TikTok hit with charges by EU for its addictive features

https://www.reuters.com/business/media-telecom/tiktok-hit-with-charges-breaching-eu-online-conten...
1•hackerbeat•52s ago•0 comments

SAS plane tries take-off from taxiway at Brussels Airport, gets up to 120 MPH

https://onemileatatime.com/news/near-disaster-sas-plane-take-off-taxiway/
1•lode•1m ago•0 comments

Signy: Signed URLs for Small Devices

https://github.com/golioth/signy
1•hasheddan•1m ago•0 comments

Shadcn/Create in Figma

https://www.shadcndesign.com/blog/shadcn-create-in-figma
1•figmaster•2m ago•0 comments

Show HN: Langraph Networks as Equations

https://github.com/kummahiih/python-langgraph-equations
1•kummap•3m ago•0 comments

Bui – TUI for painless Bubblewrap sandboxing

https://smaller.fish/posts/bubblewrap_tui
1•smallerfish•3m ago•0 comments

John Haugeland on the failure of micro-worlds

https://blog.plover.com/tech/gpt/micro-worlds.html
1•robinhouston•7m ago•0 comments

EC preliminarily finds TikTok's addictive design is Digital Services Act breach

https://ec.europa.eu/commission/presscorner/home/en
2•u1hcw9nx•9m ago•0 comments

Ask HN: XCancel but for Instagram?

2•Nurbek-F•9m ago•0 comments

Toyota retains top auto crown in 2025 with record sales

https://www.reuters.com/business/autos-transportation/toyota-retains-top-auto-crown-2025-with-rec...
2•breve•11m ago•0 comments

Iranian regime propaganda floods Wikipedia

https://www.neutralpov.com/p/a-flood-of-iranian-propaganda-on
1•ukblewis•13m ago•0 comments

Show HN: Gazill – Save your code, it's live. Built for vibe coders and agents

1•niklai•13m ago•0 comments

Show HN: Grok Prompts – AI image and video generator with 500 curated prompts

https://grokprompts.app/
1•Yreminder•16m ago•0 comments

Library of Babel 3D

https://library-of-babel-3d.netlify.app/
1•m-hodges•19m ago•0 comments

Amara

https://amara.01c.ai/
2•ashkan01c•19m ago•2 comments

A curated list of best Python books

https://github.com/lara-west/PythonBooks
1•mahsima•20m ago•0 comments

Monty – A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
2•areski•21m ago•0 comments

A startup copied my landing page (and then gave me great feedback on it)

https://blog.dahl.dev/posts/startup-copied-my-design/
2•aleda145•24m ago•0 comments

US Immigration on the Easiest Setting

https://pluralistic.net/2026/02/06/doge-ball/#n-600
3•headalgorithm•24m ago•1 comments

Trois-Rivières, le jeu vidéO

https://www.trois-rivieres.net/
2•JeanKage•24m ago•0 comments

Show HN: PromptHub – 2000 Free AI Prompts for ChatGPT and Midjourney

https://promptshub.shop
1•meimeixoxi•24m ago•0 comments

First Proof: Research-Level Math for AI Evaluation

https://1stproof.org
1•panic•27m ago•0 comments

Show HN: An app to use Instagram without Reels on iOS

https://apps.apple.com/us/app/timecap-limit-screen-time/id6737515680
1•antoferra•29m ago•0 comments

Need feedback for AI tool that lets non-technical users query Postgres

2•dimitsapis•35m ago•0 comments

Ask HN: What you want in a travel planner app?

1•shubhwicked•36m ago•1 comments

Western Digital details 14-platter 3.5-inch HAMR HDD designs with 140 TB plus

https://www.tomshardware.com/pc-components/hdds/western-digital-details-14-platter-3-5-inch-hamr-...
2•asdefghyk•37m ago•1 comments

So, your developers use AI now – here's what to know

https://evilmartians.com/chronicles/so-your-developers-use-ai-now-here-is-what-to-know
1•rudolftheone•38m ago•0 comments

Against Markdown

https://aartaka.me/markdown.html
1•nemoniac•39m ago•0 comments

What causes surprise infra costs in your org?

1•frmalmaty•40m ago•0 comments

Show HN: Nano Banana Presentation Editor

https://www.presentia.ai/
1•roodrallec•41m ago•0 comments