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.

Hiring Software Engineers (Remote, US Only)

https://truemarch.com
1•TravisRuiz•1m ago•0 comments

Chinese Automaker's Rumored Nascar Bid Is Riddled with Red Flags

https://www.thedrive.com/news/chinese-automakers-rumored-nascar-bid-is-riddled-with-red-flags
1•cf100clunk•1m ago•0 comments

Play GTA5 on Browser

https://playgta5.com/
1•ndkap•1m ago•1 comments

Saturn Homebrew Devlog: Tomb Raider from 12fps to 30fps

https://www.youtube.com/watch?v=xIRVa_ZVdvY
1•musha68k•2m ago•0 comments

Google Releases Pixel Tag (AirTag and Tile Equivalent)

https://store.google.com/product/pixel_tag?hl=en-US
1•r-johnv•3m ago•0 comments

Reprogramming Dormant Neurons to Backdoor AI Agents

https://x.com/dimitrispapail/status/2120245027804705121?a=yp1VXtQi8Dep0GmUnxo
2•dsr12•5m ago•0 comments

'GTA 6' Pre-Loads Are Slowing Down the Internet, Warns ISP

https://www.forbes.com/sites/paultassi/2026/11/11/gta-6-pre-loads-are-slowing-down-the-internet-w...
3•10xDev•8m ago•0 comments

Show HN: Gongu, USCIS processing times next to community-reported waits

https://gongu.xyz
2•dwk601•8m ago•0 comments

Custom Case study builder that keeps customer images/info private

https://www.sansrealm.com/tools/case-study-builder
2•Sanjeevn72•13m ago•0 comments

Towards Verifiable LLM Infra: Agent-Driven Proof of Agent-Implemented Inference

https://haoailab.com/blogs/verifiable-llm-infra/
4•Yuxuan_Zhang13•13m ago•0 comments

Show HN: PoLibre – FOSS .po editor for machine assisted translation

https://github.com/LibreTranslate/PoLibre
1•pierotofy•13m ago•0 comments

CC by SA Calculus Text Books: Active Calculus Multivariable

https://activecalculus.org/multi2e/frontmatter.html
1•srean•15m ago•0 comments

GitHub Incident with Webhooks, Actions, etc.

https://www.githubstatus.com/incidents/dvy0t3mvh1lg
18•jbredeche•17m ago•7 comments

AI has made it 'close to impossible' to assess university coursework

https://www.theguardian.com/education/2026/nov/11/ai-close-to-impossible-assess-university-course...
4•chrisjj•19m ago•1 comments

I made an AI harness / orchestrator that *actually* gives you decent limits

https://scoutcode.dev
3•gentra•21m ago•1 comments

Myflames – Database Diagnostics and Management for MySQL, MariaDB, Readyset

https://myflames.io/
1•vgrippa•25m ago•0 comments

Should we fear Q-Day how to think calmly about invisible risks

https://qday.forum/quantum/should-we-fear-q-day-how-to-think-calmly-about-invisible-risks/
1•quantaful•25m ago•0 comments

Tools for exploring the souls of large language models

https://oshea00.github.io/posts/tinygpt-visualizer/
1•r00tanon•26m ago•2 comments

AUX-2 – No device left behind

https://www.home-assistant.io/connect/aux-2/
5•XiS•28m ago•0 comments

Huawei details how Kirin 9050 runs a 30B-parameter model on device

https://technode.com/2026/11/11/huawei-details-how-kirin-9050-runs-a-30-billion-parameter-model-o...
3•yogthos•28m ago•0 comments

ISP router UI sucks – make your own

https://www.rossng.eu/posts/2026-11-01-fyxel/
1•speckx•28m ago•0 comments

Own Everything and Be Happy, Ep. 1 – DIY Router Guide

https://gamersnexus.net/features/own-everything-be-happy-ep-1-diy-router-guide
1•DeepLogin•29m ago•0 comments

Ring Drone Cam

https://ring.com/products/drone-cam
1•micahswitzer•30m ago•3 comments

Type 0.73: Earth on the Kardashev scale, and why AI is short of wire

https://oliverdb.ai/blog/type-0-73.html
3•pnr-consulting•32m ago•0 comments

Scottish and NI Schools evacuated under cyber threat

https://www.walesonline.co.uk/news/uk-news/uk-schools-evacuated-after-hundreds-34895300
2•nephihaha•32m ago•0 comments

Show HN: Friday, Claude Code, Codex and Cursor as one team (open source)

https://github.com/splashxmoon/friday
1•arunjdass•34m ago•0 comments

Show HN: Play SNES games while Claude is working

https://github.com/LaurentiuGabriel/retro-break
1•bitheap_tech•35m ago•0 comments

Visualising Sorting Algorithms: Python's timsort (2009)

https://corte.si/posts/code/timsort/
1•cortesi•35m ago•0 comments

The Rise of the Overprepared Concertgoer

https://www.pastemagazine.com/music/concert-culture/the-rise-of-the-overprepared-concertgoer
1•bookofjoe•37m ago•0 comments

New York Launches Nation's First State AI Testing Program

https://www.politico.com/news/2026/11/10/new-york-hochul-first-state-ai-testing-program-01157713
1•pseudolus•38m ago•0 comments