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.

The iPhones 18 Pro

https://daringfireball.net/2026/09/the_iphones_18_pro
1•ValentineC•2m ago•0 comments

Zed v1.20 Is Out

https://zed.dev/releases/stable
1•soltanov•3m ago•0 comments

Show HN: I built an PDF accessibility checker that is cross platform

https://github.com/visionably/outloud
1•yashbhatnagar•3m ago•0 comments

Show HN: A Mac native app that helps you reason through math/CS pdf textbooks

https://marginstudy.lemonsqueezy.com/checkout
1•alricsiu•5m ago•0 comments

Robots Building Robots

https://www.globaltimes.cn/page/202609/1370528.shtml
1•freakynit•6m ago•0 comments

Industrializing Humanization

https://www.unite.ai/industrializing-humanization/
1•50kIters•8m ago•0 comments

Rentomojo Makes Money

https://finshots.in/markets/how-rentomojo-makes-money/
1•vismit2000•10m ago•0 comments

Free AI Business Tools – No Sign-Up Required

https://tools-three-blush.vercel.app
1•avakiyala•17m ago•0 comments

DeepSeek v2: 437x less memory footprint vs. v1 [video]

https://www.youtube.com/watch?v=MImgH4KMtj8
1•mgh2•23m ago•0 comments

Early Bowie music available to stream for first time

https://www.bbc.com/news/articles/cm4gj5z9xvnqo
1•geox•28m ago•0 comments

We Want a Quieter Internet (First Post Internet, Less)

https://www.yorba.co/internet-less/we-want-a-quieter-internet
1•cbystrom•29m ago•0 comments

Japanese mayors challenge each other to nighttime ninja battle, now recruiting

https://soranews24.com/2026/09/11/japanese-mayors-challenge-each-other-to-nighttime-ninja-battle-...
1•rawgabbit•33m ago•0 comments

SHIFTing Languages in Multilingual RAG

https://qdrant.tech/blog/shift-multilingual-rag/
1•eigenBasis•33m ago•0 comments

China Is Scared of A.I. Just Not the Way We Are

https://www.nytimes.com/2026/09/17/opinion/ai-china-america-risk.html
1•tkgally•34m ago•0 comments

HEIF Heist- Hacking OpenAI, Slack, Meta, GitHub and Many Others

https://heif-heist.com
2•rochansinha•35m ago•0 comments

Show HN: WoseApp – a social network where every reply is a private conversation

https://woseapp.com/
1•lukenstine•39m ago•1 comments

The wonder of human made art

http://ageofrust.danieldeboulay.com
1•deboulaymxf•40m ago•0 comments

Liquid Glass adoptions over and100 apps

https://liquidglassradar.com
5•ikmh•43m ago•0 comments

Make an educated guess on Fermi-style trivia questions

https://playdaily.org/fermi
3•emmanator3000•43m ago•0 comments

Jemalloc 5.4.0

https://github.com/jemalloc/jemalloc/releases/tag/5.4.0
2•gkfasdfasdf•46m ago•0 comments

Nowmine

https://signal.nowmine.site/
4•tjjune•54m ago•0 comments

Ask HN: Why have we normalized jobs and soft skills bullshit so much?

5•thomasjeff1•54m ago•0 comments

The Scourge of x86 Emulation

https://fex-emu.com/Scourge-of-emulation/
3•dagmx•57m ago•0 comments

Ngrx Inspector

https://marketplace.visualstudio.com/items?itemName=fredyang.ngrx-inspector
2•freddy18•58m ago•0 comments

Reflections on Trusting Trust, Revisited: Poisoning Self-Modifying AI Coding

https://arxiv.org/abs/2609.17817
3•sbulaev•59m ago•0 comments

Anderon (IBM) finalizes $1B CHIPS award for US quantum foundry R&D

https://newsroom.ibm.com/2026-09-16-anderon,-an-ibm-company,-finalizes-agreement-with-the-u-s-dep...
3•osnium123•1h ago•0 comments

A Bitter Lesson for Data Filtering

https://arxiv.org/abs/2605.19407
5•nujan_dev•1h ago•1 comments

Mojo 1.1: the compiler now accepts contributions

https://www.modular.com/blog/modular-26-6-open-compiler-contributions-audio-generation-and-expand...
3•user142•1h ago•0 comments

Show HN: Continuity – project state your AI sessions can't silently contradict

https://github.com/vikcena01/ai-continuity-plugin
3•vikcena01•1h ago•0 comments

Show HN: Free Tournament Bracket Maker and Generator

https://snapbracket.com/
3•littlelight•1h ago•0 comments