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

130k Lines of Formal Topology: Simple and Cheap Autoformalization for Everyone?

https://arxiv.org/abs/2601.03298
1•PaulHoule•46s ago•0 comments

Motorola's GrapheneOS phones: They're a privacy and open source win

https://www.zdnet.com/article/motorola-to-preinstall-grapheneos-on-2027-phones/
2•CrankyBear•1m ago•0 comments

Emacs Bedrock

https://codeberg.org/ashton314/emacs-bedrock
1•thomascountz•2m ago•0 comments

OpenCode-lore: Stop re-explaining your codebase

https://github.com/BYK/opencode-lore
1•BYK•3m ago•1 comments

Slung: Stream processing runtime for autonomous systems

https://slung.tech/blog/intro
1•notxorand•4m ago•0 comments

EEmicroGPT: 19,000× faster microGPT training on a laptop CPU (loss vs. time)

https://entrpi.github.io/eemicrogpt/
1•easygenes•5m ago•1 comments

Saudi Arabia, Qatar arrest Mossad agents planning 'terror attacks': Report

https://thecradle.co/articles-id/36258
5•abdelhousni•6m ago•0 comments

Talos: Hardware accelerator for deep convolutional neural networks

https://talos.wtf/
2•llamatheollama•6m ago•0 comments

What Are the Most Promising FinTech Startups to Watch in 2026?

https://www.analyticsinsight.net/fintech/what-are-the-most-promising-fintech-startups-to-watch-in...
1•journey2s•7m ago•0 comments

Learning-Based Multi-Stage Strategy for Aircraft to Evade Missile

https://arxiv.org/abs/2511.05828
1•rbanffy•8m ago•0 comments

The Man Who Broke into Jail

https://www.newyorker.com/magazine/2026/03/09/alexander-friedmann-profile-prison-reform
1•fortran77•8m ago•1 comments

How to deploy your Lovable App in Brazil [video]

https://www.youtube.com/watch?v=LRr8Hycpt_E&lc=UgyvJ8m7t8qdGkkFhuF4AaABAg
1•acfilho•9m ago•0 comments

Reflections on Norway

https://minutes.substack.com/p/reflections-on-norway
1•jger15•9m ago•0 comments

The Zen of DevOps · TBNL

https://www.tibobeijen.nl/2026/02/23/introducing-the-zen-of-devops/
1•rbanffy•9m ago•0 comments

Earth Garden: Field Recordings Around the World

https://earth-garden.alen.ro/
1•alentodorov•11m ago•0 comments

Robert Tinney: 'Byte' Magazine and Beyond

https://70s-sci-fi-art.ghost.io/robert-tinney-byte-magazine-and-beyond/
2•sohkamyung•11m ago•0 comments

Show HN: Pane – Give your AI access to your financial data via MCP

https://pane.money
5•darnfish•14m ago•0 comments

Hit Your 1 Rep Max with AI

https://www.xiegerts.com/post/hit-your-1-rep-max-with-ai/
1•siegers•15m ago•0 comments

CBP Tapped into the Online Advertising Ecosystem to Track Peoples' Movements

https://lwn.net/Articles/1061085/
2•DyslexicAtheist•16m ago•0 comments

MCP Servers Are Now Searchable

https://mcpmonitoring.com/
1•jspuri•17m ago•0 comments

Microsoft Expands Starlink Alliance to Grow Azure and AI in Kenya

https://finance.yahoo.com/news/microsoft-expands-starlink-alliance-grow-160902940.html
2•andsoitis•21m ago•0 comments

Slab tearing and segmented subduction termination driven by transform tectonics

https://www.science.org/doi/full/10.1126/sciadv.ady8347
1•luu•22m ago•0 comments

Rare Earths Norway says estimate of Europe's biggest deposit jumps 81%

https://www.reuters.com/business/energy/rare-earths-norway-says-estimate-deposit-biggest-europe-j...
2•littlexsparkee•22m ago•0 comments

Anthropic-backed super PAC spends $1.6M in primary race divided over datacenters

https://www.theguardian.com/us-news/2026/mar/03/datacenter-politics-north-carolina-primary
2•colinhb•23m ago•0 comments

First AI Agent on a Smartwatch

https://twitter.com/petruspennanen/status/2028946464119165140
1•petruspennanen•23m ago•1 comments

Killed by Mozilla

https://killedbymozilla.com/
2•TigerUniversity•24m ago•0 comments

PRX Part 3 – Training a Text-to-Image Model in 24h

https://huggingface.co/blog/Photoroom/prx-part3
1•ibobev•28m ago•0 comments

Helsinki just went a full year without a single traffic death

https://www.politico.eu/article/helsinki-no-traffic-death-roads-eu-accident-finland-driving-trans...
10•mooreds•28m ago•0 comments

Select your fruit (No JavaScript)

https://codepen.io/t_afif/pen/PwGPJOB
1•ChadNauseam•28m ago•1 comments

If You Like PICO-8, You'll Love Kaplay (Probably)

https://jslegenddev.substack.com/p/if-you-like-pico-8-youll-love-kaplay
1•ibobev•28m ago•0 comments