ReviewToolkits/cpython-security-toolkit

A Claude Code plugin for finding semantic security flaws in CPython's standard library — archive extraction boundaries, validation coverage gaps, resource amplification, and audit hook bypass.

1Stars on the repository
12Mods indexed here, across every type
2d agoLast push, which is what freshness is scored on
noneNo LICENSE: all rights reserved, so bodies are not copied

audit-hook-coverage

01

ReviewToolkits/cpython-security-toolkit

Agent

Detects file-loading paths that bypass sys.audit() hooks by using open() instead of io.opencode(), and shell-calling paths where validation occurs before template substitution. Invoke when scanning importlib, webbrowser, or venv.

1 2d ago A 51 tokens

ReviewToolkits/cpython-security-toolkit

Agent

Detects decompression paths that materialize unbounded output before applying a size check, and allocations whose size is directly controlled by attacker-supplied archive metadata. Invoke when scanning zipfile, tarfile, lzma, bz2, gzip, or plistlib.

1 2d ago A 59 tokens

ReviewToolkits/cpython-security-toolkit

Agent

Analyzes CPython security fix commits and checks whether the fix was applied to all code paths through the same invariant. The most important agent for preventing second-round CVEs. Invoke after identifying a security fix commit or when reviewing recent type-security labeled changes.

1 2d ago A 57 tokens

traversal-detector

04

ReviewToolkits/cpython-security-toolkit

Agent

Detects archive extraction paths that may write outside the destination directory. Invoke when scanning tarfile, zipfile, or shutil.unpackarchive for path traversal vulnerabilities.

1 2d ago A 37 tokens

validation-coverage

05

ReviewToolkits/cpython-security-toolkit

Agent

Detects security-sensitive value types where some assignment paths validate input but others do not. Specializes in the incomplete-fix pattern. Invoke when scanning http.cookies, wsgiref, urllib, or webbrowser for validation gaps.

1 2d ago A 50 tokens