frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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•11mo 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.

New

1•bebaeshetu•1m ago•0 comments

Show HN: Dropshot – built a browser tool for animated product shots

https://www.usedropshot.com/
1•antoninkus•2m ago•1 comments

Live Translation, Running in the Browser

https://artisincode.com/essays/live-translation-right-in-the-browser/
1•parentheses•3m ago•1 comments

Show HN: YouDeserveNow – An AI enabler that rationalizes your impulse buys

https://www.youdeservenow.com
1•oneprofiledev•3m ago•0 comments

The Vercel breach: OAuth attack exposes risk in platform environment variables

https://www.trendmicro.com/en_us/research/26/d/vercel-breach-oauth-supply-chain.html
4•queenelvis•4m ago•0 comments

Ibuilt a tiny Unix‑like 'OS' with shell and filesystem for Arduino UNO (2KB RAM)

https://github.com/Arc1011/KernelUNO
1•Arc1011•4m ago•0 comments

FastVLA – Training 7B Robotics Policies for $0.48/HR on Nvidia T4/L4

https://github.com/BouajilaHamza/fastvla
1•hamzabouajila•4m ago•0 comments

Show HN: TickerDB – pre-computed market context for agents

https://tickerdb.com/playground
1•wolfman1•4m ago•0 comments

Work with the Garage Door Up

https://notes.andymatuschak.org/Work_with_the_garage_door_up
1•jxmorris12•5m ago•0 comments

Long-term cigarette butts' decomposition over 10 years

https://www.sciencedirect.com/science/article/abs/pii/S0269749126003143
1•PaulHoule•6m ago•0 comments

Mind the van Emden Gap

https://blog.fogus.me/llm/van-emden.html
1•adityaathalye•8m ago•0 comments

Resolution Challenge

https://rico.ibs.fr/helixplorer/resolution/
1•ray__•9m ago•0 comments

SpaceX president Shotwell earned $85M last year, document shows

https://www.reuters.com/world/spacex-president-shotwell-earned-85-million-last-year-document-show...
2•1vuio0pswjnm7•9m ago•0 comments

Ordering with the Starbucks ChatGPT app was a true coffee nightmare

https://www.theverge.com/ai-artificial-intelligence/915821/starbucks-chatgpt-app-testing
1•mattas•9m ago•0 comments

The Simpsons Hit and Run Ported to WebAssembly and WebGL

https://shar-wasm.cjoseph.workers.dev/?skipfe&l1&m1&autostartmission
1•calebj0seph•10m ago•1 comments

Musk bought $1.4B SpaceX shares last year, The Information reports

https://www.reuters.com/technology/musk-bought-14-billion-spacex-shares-last-year-information-rep...
1•1vuio0pswjnm7•10m ago•0 comments

The largest randomized controlled trial of leading longevity drug is underway

https://www.gethealthspan.com/research/article/human-rapamycin-trial-longevity-evidence
3•dtawfik1•10m ago•0 comments

The Download: turning down human noise, and LA's subway upgrade

https://www.technologyreview.com/2026/04/21/1136246/the-download-human-noise-la-subway-upgrade/
1•joozio•11m ago•0 comments

Show HN: GBS Music – web based, open source Game Boy music editor/tracker

1•chrismaltby•11m ago•0 comments

Show HN: Hands-on x86-64 page table walk:finding a flag in physical RAM with GDB

https://github.com/jazho76/page_table_walk
1•jazho76•11m ago•0 comments

Flow Control Is an Architectural Decision (Not a Performance Optimization)

https://www.synadia.com/blog/nats-edge-event-architecture-4-flow-control-is-an-architectural-deci...
1•jonzu•11m ago•0 comments

More than 20 organic compounds found on Mars – many for the first time

https://www.chemistryworld.com/news/more-than-20-organic-compounds-found-on-mars-many-for-the-fir...
1•crescit_eundo•11m ago•1 comments

Ask HN: How much are you making?

1•downbad_•12m ago•1 comments

The Wharton Blueprint for AI Agent Adoption

https://knowledge.wharton.upenn.edu/special-report/wharton-blueprint-ai-agent-adoption/
1•gmays•12m ago•1 comments

A Fast Quicksort for Modern CPUs with Threads and Branch‑Avoidant Partitioning

https://easylang.online/blog/threaded_sorting
1•signa11•13m ago•0 comments

Show HN: A static website that looks and feels as a shell

https://github.com/jazho76/shellwebsite
1•jazho76•13m ago•0 comments

In-situ electron microscopy probes how atoms adsorb on surfaces at solid–liquid

https://www.chemistryworld.com/news/in-situ-electron-microscopy-probes-how-atoms-adsorb-on-surfac...
1•crescit_eundo•13m ago•2 comments

'People still remember it 40 years later': the making of Chuckie Egg

https://www.theguardian.com/games/2026/apr/21/in-my-mind-it-was-just-tall-birds-wandering-around-...
1•stevekemp•15m ago•0 comments

The Vercel and Context AI breach: an AI supply chain attack, step by step

https://www.reco.ai/blog/vercel-context-ai-breach
1•llmacpu•15m ago•0 comments

Kill Your MCP Servers

https://anonjon.substack.com/p/kill-your-mcp-servers
1•An0n_Jon•15m ago•0 comments