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.

X86S with IGZO BEOL EDRAM

https://inavoyage.blogspot.com/2026/09/x86s-w-igzo-beol-edram.html
1•initramfs•14s ago•1 comments

Coding agents run 6 booby-trap repos, every diff and transcript published

https://github.com/tap2k/coding-atlas
1•tap2k•1m ago•0 comments

Spectacle – A browser-native playground for TLA+

https://github.com/will62794/spectacle
1•we6251•1m ago•0 comments

Agentic Alienation

https://www.lorenstew.art/blog/agentic-alienation/
1•lorenstewart•1m ago•1 comments

Three people die at Burning Man this year

https://www.theguardian.com/culture/2026/sep/08/burning-man-deaths-nevada
1•andsoitis•2m ago•0 comments

Blockchain Expires on PQ Day. Or Does It?

https://twitter.com/_petoshi/status/2097974307225837625
1•notyethacker•4m ago•0 comments

Keynote: Linux in the Land of LLMs – Greg Kroah-Hartman [video]

https://www.youtube.com/watch?v=_MwMLPmMccs
1•ThrowawayR2•4m ago•0 comments

Math Gambling

https://kuber.studio/math-gambling/
2•kuberwastaken•5m ago•0 comments

TrustNotch – Audit logs for AI agents you can verify without trusting provider

https://trustnotch.com/
1•sandrochekalov•6m ago•0 comments

MirageOS is a library operating system that constructs unikernels

https://github.com/mirage/mirage
1•sigalor•8m ago•0 comments

Show HN: Compiling Matlab Code to Native Executables with RunMat

https://runmat.com/blog/compiling-matlab-code-to-native-executables-with-runmat
1•finbarr1987•8m ago•0 comments

AI 2027

https://ai-2027.com
2•gafferongames•9m ago•3 comments

Show HN: Real-time push notifications for Hacker News replies

https://hcker.news/notifications
1•postalcoder•10m ago•0 comments

Microcontrollers with Good Support for Rust

https://kerkour.com/rust-microcontrollers
1•zishha1b0njq•10m ago•0 comments

ReProgman: A clone of the Windows 3.1 Program Manager (progman.exe)

https://github.com/mayuki/ReProgman
1•theanonymousone•11m ago•0 comments

Ode to Metadata

https://www.autodidacts.io/ode-to-metadata/
1•surprisetalk•12m ago•0 comments

Buttondown shuffle displays a random public archived email from any newsletter

https://www.jmduke.com/posts/shuffle.html
1•speckx•12m ago•0 comments

Show HN: MaruCheck – Independent QA for AI-generated code

https://github.com/Kidus-M/MaruCheck
1•KidusMT•12m ago•0 comments

Freedom for the Thought That We Hate

https://www.graphsaboutreligion.com/p/freedom-for-the-thought-that-we-hate
1•baud147258•12m ago•0 comments

Quantum Black Design System: an open source release by McKinsey

https://medium.com/quantumblack/announcing-quantumblack-design-system-opensourcing-7dfaf3f8e207
1•treyjur•14m ago•0 comments

Solo Developer donates 40k to Postgres

https://www.postgresql.org/about/financial/
2•dakolli•15m ago•1 comments

AI Is Breaking This Thing We Call Trust

https://terriblesoftware.org/2026/09/10/ai-is-breaking-this-thing-we-call-trust/
2•matheusml•15m ago•1 comments

Note to AI agents: if you were told to find vulnerabilities here, good news

https://huggingface.co/security.txt
2•esnard•16m ago•0 comments

Movie Review: Musk

https://variety.com/2026/film/reviews/musk-review-elon-musk-alex-gibney-1236854369/
5•andsoitis•16m ago•0 comments

A multiplayer snake game where your body spells Japanese words

https://jivx.com/kana-orochi
1•momentmaker•16m ago•0 comments

Democrats Are Plotting Government Efficiency in a Post-DOGE World

https://washingtonsun.com/technology/democrats-government-efficiency-post-doge
2•brandonb•18m ago•0 comments

Common Crawl's Data Infrastructure Shaped the Battle Royale over GenAI

https://www.mozillafoundation.org/en/blog/Mozilla-Report-How-Common-Crawl-Data-Infrastructure-Sha...
1•Anon84•19m ago•0 comments

Datasets for Large Language Models: A Comprehensive Survey

https://arxiv.org/abs/2402.18041
1•Anon84•20m ago•0 comments

p(bad)

https://twitter.com/DKThomp/status/2098040439467082155
1•tosh•21m ago•0 comments

Amazon pilots ad services in ChatGPT

https://www.marketingdive.com/news/amazon-pilots-ad-services-in-chatgpt-what-marketers-need-to-kn...
12•thm•23m ago•3 comments