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.

Fashion's Most Disgusting Product

https://www.nytimes.com/2026/09/10/opinion/new-york-fashion-week-fast-fashion.html
1•whack•56s ago•0 comments

Show HN: PredictionArchive

https://predictionarchive.com
1•brianritz•4m ago•0 comments

Civil Libertarians Knew This Would Happen. We Should Have Listened

https://www.nytimes.com/2026/09/10/opinion/911-patriot-act-trump-politics.html
1•hn_acker•4m ago•1 comments

AI agents still diverge at temperature 0. When does it matter?

https://medium.com/@ruxiz2005/ai-agents-still-diverge-at-temperature-0-when-does-it-matter-f5abac...
1•ruxiz•5m ago•0 comments

My Library Card Has Saved Me $1,330 – and I Want More

https://www.salon.com/2026/09/06/my-library-card-has-saved-me-1330-and-i-want-more/
1•karakoram•5m ago•0 comments

Show HN: KnowMeNot – your ChatGPT vs. a ChatGPT that has never met you

https://knowmenot.com
1•skilledDevelope•6m ago•0 comments

What Is a Columnar Database?

https://clickhouse.com/resources/engineering/what-is-columnar-database
1•peter_d_sherman•6m ago•0 comments

Trading Keggers for 'Wellness Darties'

https://www.nytimes.com/2026/09/11/style/wellness-darties-college-gen-z-tiktok.html
1•0in•7m ago•0 comments

Promptrack – Track How ChatGPT, Perplexity and AI Overviews Mention You

https://promptrack.io
1•samirbelabbes•9m ago•0 comments

DE9 Parts – Interactive Tribute to Richie Hawtin's DE9 Closer to the Edit

https://www.de9parts.com/
1•ChrisArchitect•10m ago•0 comments

Synthesizing Loop-Free Programs with Rust and Z3 (2020)

https://fitzgen.com/2020/01/13/synthesizing-loop-free-programs.html
1•karelpeeters•11m ago•0 comments

AI Plots 80k-Year Voyage Toward Alpha Centauri

https://spectrum.ieee.org/alpha-centauri-fermi-explorer-mission
1•rbanffy•12m ago•0 comments

Why browser fingerprinting is not a solved problem

https://www.cybersecurity-insiders.com/from-3-lines-of-code-to-a-team-of-engineers-why-browser-fi...
1•valve1•12m ago•0 comments

Show HN: DearAgent – Open-source email inboxes for AI agents

https://github.com/panda-sandeep/dearagent
1•Sandeepg33k•12m ago•0 comments

AfD's new state MPs include ex-Stasi officer, former porn actor, and neo-Nazis

https://www.theguardian.com/world/2026/sep/11/afd-mps-scrutiny-ex-stasi-actor-neopagan-neo-nazi
3•froggy•12m ago•0 comments

AT&T store worker gets 16 months inside for SIM-swap side hustle

https://www.theregister.com/cyber-crime/2026/09/11/att-store-worker-gets-16-months-inside-for-sim...
4•Bender•13m ago•0 comments

Microsoft plans 38 gigawatts of data center capacity by 2032

https://www.reuters.com/business/microsoft-plans-38-gigawatts-data-center-capacity-by-2032-bloomb...
4•datakan•15m ago•0 comments

EU's Cyber Resilience Act starts the 24-hour vulnerability clock

https://www.theregister.com/security/2026/09/11/eus-cyber-resilience-act-starts-the-24-hour-vulne...
2•Bender•15m ago•0 comments

UK government rejects 'kill switch' idea for dangerous AI

https://www.bbc.co.uk/news/articles/c3eq7kl5l00o
2•chrisjj•16m ago•0 comments

The Condom for Your PRs

https://abloh.dev/
1•LoloENG•16m ago•0 comments

Lance Fortnow: Navier-Stokes and Lean

https://blog.computationalcomplexity.org/2026/09/navier-stokes-and-lean.html
3•digital55•20m ago•0 comments

The Black Hole (Vim) Register

https://github.com/jbranchaud/til/blob/master/vim/the-black-hole-register.md
3•mooreds•22m ago•0 comments

The AI Takeover Checklist: A Devil's Advocate Audit

https://nochan.net/b/Internet-Crap/20260910-Asked-Claude-For-A-Checklist/
7•Bender•23m ago•12 comments

Anthropic claims Claude AI used for missile projects, global espionage

https://www.aljazeera.com/news/2026/9/11/anthropic-claims-claude-ai-used-for-missile-projects-glo...
3•theanonymousone•24m ago•1 comments

AI made 16 new viruses

https://www.morningbrew.com/stories/ai-made-16-brand-new-viruses
3•mooreds•24m ago•1 comments

Triple H Writes Anniversary Story for Spider-Man #1000

https://cultaholic.com/posts/triple-h-writes-anniversary-story-for-amazing-spider-man-1000
2•mooreds•25m ago•0 comments

AIRO: Automated Forecasts of Catastrophic Risks

https://airo.forecastingresearch.org/
2•ifelsehow•25m ago•0 comments

MALDA programming language reference manual

https://amaldini.github.io/maldalang/
3•amaldini•27m ago•0 comments

Claude and ChatGPT Run My Fantasty Football Team: Draft Edition

https://theautomatedoperator.substack.com/p/chatgpt-and-claude-run-my-fantasy
3•idopmstuff•27m ago•0 comments

I recently went through a translation of Musashi's Book of Five Rings

https://twitter.com/ID_AA_Carmack/status/2098443262214230095
2•tosh•27m ago•0 comments