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.

We build our voice input method like an experiment

https://arion.astrafoundry.si/blog/building-like-an-experiment/
1•l2dy•2m ago•0 comments

Show HN: Dolly – A Tribute to "The Birth and Death of JavaScript"

https://slopshare.dev/v0.1.4/
1•daugasauron•3m ago•0 comments

Effective Type: Part 1

https://uecker.codeberg.page/2026-10-31.html
1•uecker•6m ago•0 comments

Ganson+, Google+ accurately revived because nobody cared to make it

https://gansonplus.xyz/login
1•frutigasteraero•7m ago•0 comments

CurateClick – A curated directory of developer tools and products

https://curateclick.com
1•dotcurio•7m ago•2 comments

Ghost in the machine: how AI is haunting the search for the supernatural

https://www.theguardian.com/technology/ng-interactive/2026/oct/30/ai-ghost-hunting
1•nephihaha•9m ago•0 comments

The VPN Manager I want to build: let different apps use their own VPNs

https://dennysora.me/en/blog/tools/vpn-manager-architecture/
1•dennysora-main•12m ago•0 comments

Mercury Arc Rectifiers – Kempton Steam Museum [video]

https://www.youtube.com/watch?v=YhaQqgXrMMU
1•mdf•22m ago•0 comments

Bubbuild/republic: A Python library for AI providers

https://github.com/bubbuild/republic
1•l2dy•23m ago•0 comments

Microsoft confirms Windows 11 won't let you move the Taskbar like on Windows 10

https://www.windowscentral.com/microsoft/windows-11/its-a-deliberate-design-decision-not-a-missin...
2•thunderbong•24m ago•1 comments

Double Trouble (From Macbeth)

https://potw.org/archive/potw283.html
1•joebig•32m ago•0 comments

FineDNA: Open data to train LLMs on DNA

https://huggingface.co/datasets/HuggingFaceBio/FineDNA
4•pixel_art•42m ago•0 comments

V0.5.0 of PSSA: a non-transformer language model

https://github.com/Sparticle62ops/pssa/releases/tag/v0.5.0
2•JPLeRouzic•44m ago•0 comments

Open data and code to teach LLMs to read DNA

https://github.com/huggingface/carbon
3•testerui•45m ago•0 comments

Briareus: Segment-parallel distributed video transcoder in Go, built on FFmpeg

https://github.com/omanshchoudhary/briareus
3•handfuloflight•47m ago•0 comments

Show HN: AnchorGit – Hardware-signed Git decision ledger for AI code

https://www.anchorgit.com
1•rahool-bk•51m ago•0 comments

Stuck on an island for years, can't get transit visa to fly home

https://www.bbc.co.uk/news/articles/cmq5npz5l5geo
3•squirrel•54m ago•1 comments

Recycling ANSI art: Tracing the origins of Fire Escape's logon screens

https://breakintochat.com/blog/2026/10/25/recycling-ansi-art/
1•naves•56m ago•0 comments

The Shinkansen's legendary operation and safety record

https://www.hsrail.org/blog/the-shinkansens-legendary-operation-and-safety-record-2/
1•thunderbong•57m ago•0 comments

Agentic Backdoors via Pretraining Poisoning

https://arxiv.org/abs/2610.37741
2•espeed•1h ago•1 comments

How to Live with AI

https://humanpro.co/articles/how-to-live-with-ai/
1•gx•1h ago•0 comments

Show HN: Janet LSP with VS Code Extension

https://marketplace.visualstudio.com/items?itemName=kulkarniniraj.yajlsp
2•kulkarniniraj•1h ago•0 comments

Show HN: Kin – Natural language search for family voice notes and memories

https://kin.camera
1•vishalborana34•1h ago•0 comments

How HN: Nexus Doctor – A multi-language OS diagnostic engine (Rust/COBOL/Ruby)

https://github.com/Aissamohammedi88/nexus-doctor.sh
1•Nackher_news•1h ago•0 comments

Pac-Man's Siren Call

https://unsung.aresluna.org/pac-mans-siren-call/
2•tobr•1h ago•2 comments

Show HN: Resticker – A tiny macOS menu bar app for reliable restic backups

https://github.com/marcboeker/resticker
1•laughingparrot•1h ago•0 comments

Who pays for the AI power boom?

https://www.axios.com/2026/10/31/who-pays-ai-power-boom
2•latentframe•1h ago•0 comments

Resisting Cognitive Surrender

https://knlb.dev/essays/surrender
1•knlb•1h ago•0 comments

Work, Art, and Study: AI and Ownership

https://ninchiai.substack.com/p/work-art-and-study-ai-and-ownership
1•jbethune•1h ago•0 comments

Bastard

https://bez-lightyear.bearblog.dev/bastard/
5•HotGarbage•1h ago•0 comments