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.

WebSocket Servers in JavaScript: Node.js, Bun and Deno in 2026

https://lemire.me/blog/2026/10/10/websocket-servers-in-javascript-node-js-bun-and-deno-in-2026/
1•smilelamp•6m ago•0 comments

Show HN: Save photo, video, and audio from websites in one step

https://menura.download
3•haneboxx•10m ago•0 comments

Ctrl + Shift + A to search tabs on Firefox

https://gist.github.com/radiantly/f18ea1fd06d8dd328b6ae64b6fa7cb36
3•calmingsolitude•18m ago•0 comments

Division by zero in common meadows (nicer fields)

https://arxiv.org/abs/1406.6878
2•fanf2•22m ago•0 comments

GATE – A Godot Engine GDScript Superset

https://github.com/Blade67/GATE
2•liminal-dev•22m ago•0 comments

Senate Investigation Challenges Big Tech's Case for AI Data Centers

https://time.com/article/2026/10/08/senate-investigation-ai-data-centers/
2•snikolaev•29m ago•0 comments

OpenAI's New ChatGPT Watermark Breaks If You Edit One Word in Four

https://rews.cc/a/openai-s-new-chatgpt-watermark-breaks-if-you-edit-one-word-i-37eb4a
2•ojosilva•32m ago•0 comments

I earned $100 from premium subscription of this extension in 30 days

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
2•digitaShida•39m ago•1 comments

Show HN: Open Components – UI Components standard for people, devs and AI agents

https://opencomponents.dev/
1•alexgrozav•40m ago•0 comments

Show HN: Chrome Relay – background tabs in your real Chrome for coding agents

https://github.com/aindeev/agent-chrome-relay
1•alexeyindeev•49m ago•0 comments

Helium Terminal – A tiny macOS terminal for coding agents, built on libghostty

https://helium-terminal.bensarmiento.com/
6•yowmamasita•50m ago•0 comments

Anthropic can't reliably control its AI agents, cuts internet access

https://techcrunch.com/2026/10/09/anthropic-cant-reliably-control-its-ai-agents-its-cutting-off-i...
3•sbulaev•57m ago•1 comments

The hazy OpenAI growth metric driving Wall Street

https://www.ft.com/content/62653892-2333-4953-a8d5-cfd760ae3257
3•sbulaev•57m ago•0 comments

Show HN: Printable Calendar

https://printcalendarx.com/
2•artiomartiom•1h ago•0 comments

PhotoCraft Online – A browser editor with English guides

https://photocraftonline.org/
1•visiohex•1h ago•0 comments

Study on AI coding agents finds gains "absorbed" by human review "bottleneck."

https://arstechnica.com/ai/2026/10/ai-coding-agents-generate-more-code-but-not-more-software/
4•evolve2k•1h ago•1 comments

A Rant About Two Things: AI and the People Who Rant About AI

https://www.patreon.com/FluffyQuack/posts/rant-about-two-168230683
1•turpentine•1h ago•0 comments

The Power of Constraint Solvers

https://btmc.substack.com/p/the-awesome-power-of-constraint-solvers
1•sirwhinesalot•1h ago•0 comments

Phone 18 Pro in Everyday Life: Upgrades That Matter – and the Ones You Can Skip

https://thetechboom.com/2026/10/10/iphone-18-pro-everyday-life-real-benefits-australia/
2•ninyeh•1h ago•0 comments

Careless People: An entertaining book with few surprises

https://piotrmzakrzewski.substack.com/p/careless-people-an-entertaining-book
1•gieksosz•1h ago•0 comments

Mac.apk – Run Android Apps Natively on Apple Silicon Macs

https://github.com/kksimp/Mac.apk-Releases
4•phantomathkg•1h ago•0 comments

Tesla Renames FSD to 'Assisted Driving' in Europe

https://www.reuters.com/business/autos-transportation/tesla-renames-full-self-driving-assisted-dr...
2•JumpCrisscross•1h ago•0 comments

Zeroization, part 1: Wiping can make things worse

https://00f.net/2026/10/06/zeroization-1/
3•birdculture•1h ago•0 comments

I expect rapid progress but not towards general superintelligence

https://www.interconnects.ai/p/i-expect-rapid-progress-but-not-towards
3•pretext•1h ago•1 comments

I Made Diablo First Person [video]

https://www.youtube.com/watch?v=xkpLG9keQF0
3•skibz•1h ago•0 comments

The Download: AI's refusal problem and weight-loss drug side effects

https://www.technologyreview.com/2026/10/09/1146250/the-download-ai-refusal-problem-weight-loss-d...
1•joozio•1h ago•0 comments

Could Nigerian eateries become as widespread as Chinese restaurants?

https://www.cnn.com/world/africa/could-nigerian-restaurants-become-as-common-as-chinese-restauran...
4•koolhead17•1h ago•0 comments

Alan Turing – Intelligent Machinery, a Heretical Theory (1951)

https://turingarchive.kings.cam.ac.uk/publications-lectures-and-talks-amtb/amt-b-4
2•yshklarov•1h ago•0 comments

Unauthorized access, personal data leaks surge in Japan

https://www3.nhk.or.jp/nhkworld/news/20261007de55671/
2•phantomathkg•1h ago•0 comments

Cyril Hilsum invented the flat-screen displays that hold us in thrall

https://www.economist.com/obituary/2026/10/08/cyril-hilsum-invented-the-flat-screen-displays-that...
4•sohkamyung•1h ago•0 comments