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

Welcome to Actual Computer

https://actual.inc/company/blog/introducing-actual-computer
2•ray__•15m ago•0 comments

Hermit – uniform tooling for Linux and Mac

https://github.com/cashapp/hermit
2•zikani_03•21m ago•1 comments

Oak trees outwit their predators

https://phys.org/news/2026-04-oak-trees-outwit-predators.html
1•wglb•23m ago•1 comments

Wine 11.8 Improves VBScript Compatibility Fixes Microsoft Golf 1999

https://www.phoronix.com/news/Wine-11.8-Released
1•Bender•23m ago•0 comments

Job Postings for Software Engineers Are Rapidly Rising

https://www.citadelsecurities.com/news-and-insights/2026-global-intelligence-crisis/
1•delichon•24m ago•0 comments

Why Footbinding Persisted in China for a Millennium (2015)

https://www.smithsonianmag.com/history/why-footbinding-persisted-china-millennium-180953971/
1•thomassmith65•31m ago•0 comments

Robot fighting league has new home in S.F. you can watch – and buy – 'humanoids'

https://www.sfchronicle.com/tech/article/buy-fighting-robots-sf-22231111.php
1•iancmceachern•31m ago•0 comments

OpenX32: Open Linux kernel for Behringer X32 mixer

https://github.com/OpenMixerProject/OpenX32
2•brudgers•33m ago•0 comments

We Built an Authorization Engine That the Fortune 100 Bet On

https://www.technology.org/2026/04/30/we-built-an-authorization-engine-that-the-fortune-100-bet-o...
2•mooreds•39m ago•0 comments

Trump issues executive order against Cuba

https://www.cbsnews.com/miami/news/trump-executive-order-tightening-u-s-sanctions-on-cuba/
2•mark336•43m ago•1 comments

Echon – A privacy-first Discord alternative built in Tauri/Rust

https://echon-voice.com
1•highest678•46m ago•0 comments

Apple Is Holding My Pictures Hostage Until I Accept Their New Terms of Service

https://probablydance.com/2026/05/01/apple-is-holding-my-pictures-hostage-until-i-accept-their-ne...
4•akkartik•54m ago•0 comments

Gut bacteria may play a role in the rise in colon cancer in young adults

https://www.npr.org/sections/shots-health-news/2025/04/25/g-s1-62623/colon-cancer-gut-health-micr...
2•littlexsparkee•1h ago•0 comments

There's a lot of hype about Chinese EVs, is any of it true?

https://arstechnica.com/cars/2026/05/theres-a-lot-of-hype-about-chinese-evs-is-any-of-it-true/
2•Bender•1h ago•0 comments

Show HN: Transparent Tor Proxy – Route all Linux system traffic through Tor

https://github.com/onyks-os/TransparentTorProxy
1•onyks•1h ago•0 comments

xAI Has Used OpenAI's Models to Train Its Own

https://www.wired.com/story/elon-musk-distill-openai-models-partly-xai/
1•bhouston•1h ago•0 comments

Show HN: MemHub, Turn Your GPT/Claude/Gemini History into LLM-Wiki Mindmap

https://github.com/XTraceAI/memhub-llm-wiki-guide
3•TristanX•1h ago•0 comments

Hobson vs. Hansen and the Decline of D.C. Schools

https://www.educationprogress.org/p/hobson-v-hansen-and-the-decline-of
2•barry-cotter•1h ago•1 comments

Finny – AI trading agent that runs in your terminal

https://www.finnyai.tech/
1•jaimin67•1h ago•0 comments

Kubernetes Secret Extraction via ArgoCD ServerSideDiff

https://github.com/argoproj/argo-cd/security/advisories/GHSA-3v3m-wc6v-x4x3
1•milkglass•1h ago•0 comments

TanStack Router: modern router designed for type safety, data‑driven navigation

https://github.com/TanStack/router
1•doener•1h ago•0 comments

Show HN: Hackamaps – A global hackathon map I build after hitting Lovable Limits

1•ostenjap•1h ago•0 comments

So, About That AI Bubble

https://www.theatlantic.com/economy/2026/05/ai-bubble-revenue-anthropic/687022/
2•JumpCrisscross•1h ago•1 comments

Vite: Next Generation Front End Tooling

https://github.com/vitejs/vite
1•doener•1h ago•0 comments

Agsist – free real-time grain market dashboard for US producers

https://agsist.com/
1•dnilgis•1h ago•0 comments

The Half of CI We Forgot to Automate

https://blog.sebastiansastre.co/posts/the-half-of-ci-we-forgot-to-automate/
1•sebastianconcpt•1h ago•2 comments

GitHub Enshittification

https://pablotron.org/2026/04/30/github-enshittification/
2•birdculture•1h ago•0 comments

Russian forces defeated in Saharan stronghold after wave of attacks

https://www.ft.com/content/e40ba9d0-7430-4545-8c26-c99cde5caf33
4•JumpCrisscross•1h ago•1 comments

Good developers learn to program. Most courses teach a language

https://evilgeniuslabs.ca/blog/good-developers-learn-to-program-not-a-language
16•andsoitis•1h ago•11 comments

Probability Sampling

https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm
1•firasd•1h ago•0 comments