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.

Show HN: KiviDB, a faster Redis-compatible memory database and vector cache

https://github.com/kividbio/kividb
1•murtazayusuf•2m ago•0 comments

Why Is Speculative Decoding Fast?

https://jbarrow.ai/2026-10-08-why-is-speculative-decoding-fast/
1•gmays•2m ago•0 comments

Canonical's Multipass 1.17 Adds Direct Support for Non-Ubuntu Linux Distros

https://www.phoronix.com/news/Multipass-1.17
1•mikece•3m ago•0 comments

Dr Garry Hunt talks to us about the astonishing Voyager probes

https://www.theregister.com/offbeat/2026/10/19/dr-garry-hunt-talks-to-us-about-the-astonishing-vo...
1•sohkamyung•3m ago•0 comments

Quantinuum Sees Path to Fault-Tolerant Quantum Computing by 2029

https://www.wsj.com/tech/quantinuum-sees-path-to-fault-tolerant-quantum-computing-by-2029-with-ne...
1•donutloop•3m ago•0 comments

Dynamics of Sentiment and Attitudes Toward AI Among Developers

https://blog.jetbrains.com/research/2026/10/dynamics-of-sentiment-and-attitudes-toward-ai-among-d...
1•mikece•4m ago•0 comments

Pray, Mr. Babbage, what about search?

https://digitalseams.com/blog/pray-mr-babbage-what-about-search
1•bobbiechen•7m ago•0 comments

Maxwell: A new kind of model that sits between code and hardware

https://heymaxwell.ai/
2•laginimaineb•7m ago•2 comments

French rioters ransack eSports team premises and looting RAM sticks from PCs

https://www.tomshardware.com/video-games/pc-gaming/french-rioters-ransack-esports-team-premises-a...
1•ilreb•8m ago•0 comments

The Cost of Looking Competent

https://yusufaytas.com/the-cost-of-looking-competent
6•juggernet•8m ago•0 comments

Close pass of Russian military satellite with US satellite aiding Ukraine ( 26m)

https://orbitalradar.com/conjunction/59103-68762
1•NicoJuicy•8m ago•1 comments

3 shuttered nuclear plants could soon power homes, AI data centers

https://www.msn.com/en-us/money/general/three-shuttered-nuclear-plants-could-soon-power-millions-...
1•pseudolus•8m ago•0 comments

The fiberglass dinosaur Star Wars turned into a krayt dragon (2-min documentary)

https://archive.org/details/the-dragon-we-made
1•vincentilands•13m ago•0 comments

Run Qwen3.8-Flash-Next on 8GB VRAM and 32 GB RAM at 20T/S

https://github.com/tin-hat/Qwen-tin
1•chess39•14m ago•0 comments

How a Linux Kernel Improvement Can Strike You in PXC/Galera Workloads

https://www.percona.com/blog/when-a-small-change-writes-too-much-how-a-linux-kernel-improvement-c...
1•malcolm_x•14m ago•0 comments

Pre-Orders Open for Flipper One

https://flipper.net/pages/flipper-one
1•MiliasGeiger•14m ago•0 comments

Mstamp: Sign API records so a third party can verify them offline

https://github.com/samschotvanger-rgb/mstamp
1•samschotvanger•15m ago•0 comments

AI, AI, AI: Learn how to play, fail and tinker with machines

https://aiaiai.art/
1•surprisetalk•15m ago•0 comments

To That (Glue Advice)

https://www.thistothat.com/
1•randycupertino•16m ago•0 comments

German courts rule Google liable for what its AI search says

https://madrobot.blog/2026/10/18/german-courts-google-liable-ai-overviews-ai-mode-aachen-munich-r...
2•robin_reala•17m ago•0 comments

US teens can access 'nudify' apps despite Apple and Google's parental controls

https://www.theguardian.com/technology/2026/oct/19/us-teens-nudify-apps-apple-google-parental-con...
2•pseudolus•17m ago•0 comments

Building a proactive workflow with Claude [video]

https://www.youtube.com/watch?v=eSP7PLTXNy8
1•endangeredhuman•17m ago•0 comments

San Francisco's shuttered downtown mall is being eyed for an AI data center

https://www.sfchronicle.com/sf/article/downtown-mall-data-center-ai-22480545.php
2•novia•18m ago•0 comments

Plex vulnerabilities being exploited in the wild to drop a cryptominer

http://www.boredhackerblog.info/2026/10/plex-vulnerabilities-being-exploited-in.html
1•mindracer•19m ago•0 comments

Start with Your Coding Agents

https://grokking.agency/posts/building-agents-with-agents-part-1/
1•CaHoop•19m ago•0 comments

How You Remember Therapy

https://mytherapynotes.co
1•Barak23230•20m ago•0 comments

Wine Ported to OpenBSD

https://marc.info/?l=openbsd-ports&m=179236125692175
2•iamnothere•20m ago•0 comments

Cairn: Open Windows into AI-Driven Cyber Operations

https://norforge.com/blog/inside_cairn
1•ragu4u•20m ago•0 comments

STM32 based SDR GPS receiver

https://github.com/iliasam/STM32F4_SDR_GPS
1•kristianpaul•20m ago•0 comments

Show HN: ApolloOffice – Local AI workers that turn GitHub issues into tested PRs

https://github.com/Silvertree2010/ApolloOffice
1•NetterSilver•21m ago•0 comments