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.

CAISI's Assessment of Z.ai's GLM-5.3 Cyber Capabilities

https://www.nist.gov/news-events/news/2026/09/caisis-assessment-zais-glm-53-cyber-capabilities
1•soltanov•22s ago•0 comments

BrainTech

1•yashmobarsa•1m ago•0 comments

State of the (Tagged) Union Address by Andrew Kelley [video]

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

What do you want from AI?

https://www.anthropic.com/research/your-thoughts-on-ai
1•dgfl•6m ago•1 comments

Show HN: Anxiety Checklist – 3 years of itterate with no success yet

https://anxietychecklist.com/
1•seobuddy•8m ago•0 comments

Lightweight Resilient Recursive Parsing

https://andraskovacs.github.io/posts/2026/09/resilient-parsing/
1•matt_d•11m ago•0 comments

Panthalassa's Floating, Wave-Powered Data Centre Technology

https://sustainabilitymag.com/news/panthalassa-the-floating-wave-powered-data-centre-unicorn
1•galaxyLogic•18m ago•0 comments

Salesforce acquires Listen Labs, potentially for $2B

https://www.swedishtechnews.com/swedish-founded-customer-research-platform-listen-labs-is-being-a...
1•imartin2k•26m ago•0 comments

Hiring a Founding CTO

https://shieldailabs.com
2•rafaelsmadja•28m ago•2 comments

Researchers develop wallpaper that generates power

https://www.binghamton.edu/news/story/6491/wallpaper-that-generates-power-binghamton-university-r...
2•geox•30m ago•0 comments

Pencils Down, Eyes Open: A Rails Developer After Rails World

https://caio.ca/blog/pencils-down-eyes-open-rails-world
1•signa11•30m ago•0 comments

Interferometric Synthetic Aperture Radar Drone

https://hforsten.com/interferometric-synthetic-aperture-radar-drone.html
1•Teever•32m ago•0 comments

Show HN: Kasora – Simulate your finances month by month, in-browser, no sign-up

https://kasora.app
3•mitenmit•34m ago•0 comments

Repeated VM Escapes by GPT-5.6-Cyber Based Agents

https://www.infoq.com/news/2026/09/agent-escape-vm/
1•gizzlon•35m ago•0 comments

Dirty Optimization Secrets (C for Playdate)

https://devforum.play.date/t/dirty-optimization-secrets-c-for-playdate/23011
1•signa11•36m ago•0 comments

FineKo – Three KOReader plugins for metadata, quotes and covers

https://github.com/raelales/FineKo
2•RaelAles•40m ago•0 comments

Instapaper API v2

https://blog.instapaper.com/2026/09/29/instapaper-api-v2/
2•Curiositry•42m ago•0 comments

Tech Workers Made ChatGPT Drive a Toyota Corolla

https://www.404media.co/these-tech-workers-made-chatgpt-drive-a-toyota-corolla/
1•jnord•42m ago•0 comments

Decision API – compare and call decision models through one API

https://decisionapi.org
4•czmilo•43m ago•1 comments

(parody) A bot watched 1k hours of Batman movies and wrote a script of its own (2020)

https://old.reddit.com/r/DC_Cinematic/comments/i3kr2z/humor_someone_forced_a_bot_to_watch_over_1000/
3•lelanthran•44m ago•0 comments

'Madame Composer' and 'Johannes Brahms': The Keys to the Heart

https://www.wsj.com/arts-culture/books/madame-composer-and-johannes-brahms-the-keys-to-the-heart-...
1•tintinnabula•44m ago•0 comments

Shutdown Sabotage Propensities in Multi- Agent Systems

https://arxiv.org/abs/2609.28274
1•baxtr•48m ago•0 comments

Compiling Triton kernels without the Triton compiler

https://arxiv.org/abs/2609.36800
1•50kIters•55m ago•0 comments

Liquid AI releases decision model D1

https://docs.liquid.ai/lfm/models/decision-models
1•mnewme•57m ago•0 comments

Sign in with ChatGPT

https://developers.openai.com/siwc
1•doppp•58m ago•0 comments

Show HN: Instapath – your personal agent needs something, another agent has it

https://instapath.ai/
2•ddaniel10•1h ago•0 comments

I tried Orca and VSCode Agents window: I went back to tmux shortly after

https://martintapia.com/blog/2026/i-tried-orca-and-vscode-agents-window-i-went-back-to-tmux-short...
2•paps•1h ago•0 comments

Show HN: BetterNews (HN Front End)

https://bttrne.ws/
1•denysvitali•1h ago•0 comments

Show HN: YouTube Reimagined for Lifelong Learners

https://coursifyyt.com/
2•GunjanMishra•1h ago•0 comments

Claudio [video]

https://www.youtube.com/watch?v=-xwU6Tgp8Tk
2•misone•1h ago•0 comments