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.

Eisenhower got Q2 and Q1 exactly backwards

https://nekolucifer.substack.com/p/someday-the-thief-of-dreams
1•andai•4m ago•0 comments

Stop Multicasting Slop

https://sam-morrow.com/blog/stop-multicasting-slop
1•hirsin•8m ago•0 comments

Ovipositor

https://en.wikipedia.org/wiki/Ovipositor
1•thunderbong•8m ago•0 comments

Show HN: I made a tool to share website growth without screenshots

https://pagzi.online/
1•sohaill•10m ago•0 comments

My Agentic Coding Setup, July 2026 – Domenic Denicola

https://domenic.me/agentic-coding-setup/
1•fagnerbrack•11m ago•0 comments

T-Unit, the Spotify founders' new startup, aims to defend European democracies

https://www.swedishtechnews.com/t-unit-the-spotify-founders-new-startup-secures-eur50m-in-funding...
1•imartin2k•11m ago•0 comments

Quandoom – A port of DOOM for a quantum computer

https://github.com/Lumorti/Quandoom
1•aggrrrh•13m ago•0 comments

Render Sandboxes

https://render.com/blog/introducing-render-sandboxes
1•bjhess•16m ago•0 comments

CVE-2026-93389: LiteSpeed Cache serves WordPress/WooCommerce data to anyone

https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/litespeed-cache/litespee...
1•drimphgol•20m ago•0 comments

Tell HN: Google Play will public-share your address and phone if you sell in EU

3•cmdr2•39m ago•0 comments

[HU-90%] Introducing Slop-O-Meter - my attempt of being up-front with readers

https://blog.jacq.cc/notes/slop-o-meter/
3•xx__yy•39m ago•1 comments

CVE-2026-109518: Debian, Ubuntu APT

https://nvd.nist.gov/vuln/detail/cve-2026-109518
2•zdkaster•43m ago•0 comments

Ask HN: Is it possible for a residential proxy provider to exist ethically?

1•walrus01•46m ago•0 comments

Tariff Walls and the Unified Context: On the Structural Logic

https://medium.com/@smoking2man/tariff-walls-and-the-unified-context-on-the-structural-logic-of-t...
1•Aldus551•48m ago•0 comments

Australia's Canva to restructure, affecting 22% of workforce

https://www.reuters.com/business/world-at-work/australias-canva-cut-22-jobs-growth-slows-first-ti...
1•vismit2000•50m ago•0 comments

A Heart Means Recursion: Exploring Visual Meaning and Communication in VLMs

https://arxiv.org/abs/2610.36449
2•matt_d•52m ago•0 comments

Adversarial Speculative Reasoning Improves Long Horizon Agents

https://www.alphaxiv.org/abs/2611.05345
1•matt_d•56m ago•0 comments

Steampipe: Zero-ETL way to query APIs and services

https://github.com/turbot/steampipe
1•saikatsg•57m ago•0 comments

Iqraa Tech

https://iqraa.tech/
1•amart90•57m ago•0 comments

When ML is just a query, every webshop screen gets one

https://aito.ai/blog/every-screen-a-decision/
1•arauhala•59m ago•0 comments

Tencent Hy4 Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/tencent-hy4
3•theanonymousone•1h ago•0 comments

Larger Tokenizers Suffer More Multi-Epoch Regret

https://wenhaochai.com/blogs/vocab-multi-epoch.html
2•matt_d•1h ago•0 comments

Audio Judgment Models Are Jagged

https://camden.sh/posts/audio-decision-models/
2•camdenclark•1h ago•0 comments

Did the World Just Gain Hundreds of Millions of Alzheimer’s Patients?

https://www.newyorker.com/magazine/2026/11/09/did-the-world-just-gain-hundreds-of-millions-of-alz...
2•littlexsparkee•1h ago•0 comments

EP 37 – Microsoft Stock Analysis: AI Bubble? Explain These Earnings. [video]

https://www.youtube.com/watch?v=-4aITC7loeo
2•russlan•1h ago•0 comments

Want to Rent an Internet Address at the White House?

https://krebsonsecurity.com/2026/11/want-to-rent-an-internet-address-at-the-white-house/
3•zdw•1h ago•0 comments

The Orchestration Tax

https://addyosmani.com/blog/orchestration-tax/
2•rzk•1h ago•0 comments

FuriosaAI raises $620M Series D, 4Xs valuation to $2.9B in Nvidia challenge

https://app.dealroom.co/news/note/furiosaai-raises-620m-series-d-quadruples-valuation-to-2-9b-in-...
2•gmays•1h ago•0 comments

Vibrating mattress helps clear Alzheimer's protein from the brain

https://www.newscientist.com/article/2597081-vibrating-mattress-helps-clear-alzheimers-protein-fr...
3•littlexsparkee•1h ago•0 comments

JustFit: Run Qwen 27B Fast with its full 256K context on a 24 GB Mac

https://github.com/YuhuaBillChen/justfit-llm
2•yuhuabill•1h ago•0 comments