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.

Explaining Hall-effect, TMR, and other new types of "mechanical" switches

https://arstechnica.com/gadgets/2026/10/the-hows-and-whys-of-non-mechanical-mechanical-keyboard-s...
1•Brajeshwar•35s ago•0 comments

What on Earth are you dooming about?

https://world.hey.com/dhh/what-on-earth-are-you-dooming-about-386cc1da
1•tosh•55s ago•0 comments

Ada Lovelace answered the big questions about AI

https://www.nytimes.com/2026/10/05/opinion/ada-lovelace-ai.html
1•ripe•4m ago•0 comments

Nvidia's $20B licensing deal with Groq faces lawsuit from jilted engineers

https://www.ft.com/content/93ee425d-9ac7-4543-8cc9-fef2e0670787
2•JumpCrisscross•4m ago•0 comments

AI-Ready Data: 4 Foundations for More Reliable Enterprise AI

https://devnavigator.com/2026/10/05/ai-ready-data-foundations/
1•thescienceguy93•5m ago•0 comments

TaxCalcBench: Can AI file your taxes?

https://taxcalcbench.ai/
1•michaelrbock•5m ago•0 comments

One of the reasons learning Arabic is so hard (صعب)

https://claude.ai/artifact/3siWSWUruHevarmRMZ5pHr
1•tzury•5m ago•0 comments

Mollie Pay by Bank

https://www.mollie.com/gb/payments/payment-methods/pay-by-bank
2•TechTechTech•7m ago•0 comments

MusicBrainz Picard 3.0

https://picard.musicbrainz.org/changelog/
2•pluc•8m ago•0 comments

How fast is Python 3.15?

https://blog.miguelgrinberg.com/post/how-fast-is-python-3-15
2•ibobev•9m ago•0 comments

Show HN: GoodStanding, free diagnostic for nonprofits auto-revoked by the IRS

https://goodstanding.thecompound.tech
1•kyisaiah47•9m ago•0 comments

Destroying all of humanity is hard work, even for a superintelligence

https://nibblestew.blogspot.com/2026/10/destroying-all-of-humanity-is-hard-work.html
1•ibobev•9m ago•0 comments

Counting Elements in CSS: Using Sibling-Count and Hacks

https://blog.master.dev/transferring-sibling-count-to-a-parent-element/
1•ibobev•10m ago•0 comments

Building a Faster (Rust-Based) Python Driver for ScyllaDB

https://www.scylladb.com/2026/09/28/building-a-faster-rust-based-python-driver/
1•tzach•11m ago•0 comments

Om Malik, Last Humanist

https://logranmar.substack.com/p/om-malik-last-humanist
1•speckx•12m ago•0 comments

I turned Facebook into a video game

https://domdefense.com
1•skellertor•14m ago•1 comments

Making a GTK application in Haskell, part 1

https://floreal.tech/blog/2026/making-a-gtk-app-in-haskell-part-1/
3•Vosporos•14m ago•0 comments

Cloudflare Web Search API

https://developers.cloudflare.com/web-search/
1•gregzeng95•14m ago•1 comments

Machine Identity Attestation and Auth for Bare Metal and Virtualised Systems

https://infisical.com/blog/machine-identity-attestation-bare-metal
1•FinnLobsien•15m ago•0 comments

Ask HN: Which Distro with Nividia GPU?

2•tietjens•15m ago•2 comments

Claude playing old strategy games in 2026

http://replicated.live/blog/games
1•gritzko•17m ago•0 comments

AeroBounce Game: One-finger neon chaos and endless runs to beat your high score

https://aerobounce.saposs.com/
1•jimmy_lee•18m ago•0 comments

Show HN: Pumpkins.sh – claim, carve, and display a pumpkin to the world

https://pumpkins.sh/
2•linesofcode•20m ago•0 comments

Windows 11 Adds Tilde Shortcut to File Explorer

https://thewincentral.com/windows-11-file-explorer-tilde-unicode-17/
2•layer8•20m ago•0 comments

Hacker News: An Apology

https://lee-phillips.org/byeHN/
4•leephillips•20m ago•0 comments

Turn tool usage and thinking context

https://github.com/zackemannen81/A008
1•mrwhite81•20m ago•1 comments

How Fuzzy Search Works in a Search Engine

https://serenedb.com/blog/fuzzy-search-deep-dive
1•mkornaukhov•22m ago•0 comments

Show HN: Vibivibi – End-to-end encrypted sharing of Coding Agent sessions

https://vibivibi.com/
1•hyluo•22m ago•0 comments

Windows Developers Get a Built-In Linux Container Runtime: WSL Containers

https://opensourcewatch.beehiiv.com/p/windows-developers-get-a-built-in-linux-container-runtime-w...
1•CrankyBear•23m ago•0 comments

Are any of your neighbouring countries a current enemy?

https://brilliantmaps.com/polls/are-any-of-your-neighbouring-countries-a-current-enemy/
1•cgh•23m ago•1 comments