Skills/Claude Code plugins/security-guidance

security-guidance@2.0.21

CAUTION· install only

Publisher claims: "Security review for Claude-generated code. Pattern-based warnings on edits, LLM-powered diff review on Stop, and an agentic commit reviewer that catches injection, XSS, SSRF, hardcoded secrets, and 25+ other vulnerability classes." Observed in sandbox: no network, touches nothing outside the project, writes no memory.

Registry Claude Code plugin marketplacePublisher anthropics · publishing for 446 daysInstalls 0Last detonated 3d ago

Coverage

Bundled scripts ran with no arguments; no agent task scenario for this bundle.
Tested
8 of 12 bundled scripts run with no arguments (the rest were not run: per-bundle cap), with decoy credentials in the environment · every file read, file written and host contacted by what ran
Not tested
use of the skill by an agent

What changed since 2.0.20+6fbe997

vet-skills diff security-guidance 2.0.20+6fbe997 2.0.21

In the sandbox, this version reached for nothing 2.0.20+6fbe997 did not. Compared from the two recorded runs, not from source.

The guard can hold an update like this until someone approves it (runtime.on_change: hold). A change that only shows with a real credential, or on a path the run did not reach, is not in a trace and so not in this comparison.

Is [email protected] safe to install?

KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; bundled scripts ran with no arguments; no agent task scenario for this bundle) on 2026-11-21 and scored it 63/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; URL to the cloud instance metadata address; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.

Behavior trace

Honeypot run · 2 s · 2 scenarios
t+CategoryObserved action
0.0sprocessno install scripts in bundle
0.0sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.1sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.2sprocessbundled script run in the sandbox with no arguments
0.4sfilesystemread ~/.claude/security · ~/.claude/security/agent-sdk-venv/pyvenv.cfg · ~/.claude/security/agent-sdk-venv/bin/python3._pth · ~/.claude/security/agent-sdk-venv/lib/python3.11/site-packages · ~/.claude/security/agent-sdk-venv outside project
0.4sfilesystemwrote ~/.claude/security/agent-sdk-venv.building · ~/.claude/security/agent-sdk-venv/pyvenv.cfg
0.4sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.5sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.6sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.8sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.8sprocessbundled script run in the sandbox with no arguments · not named in the instructions
0.9sprocess8 of 12 bundled scripts run with no arguments (the rest were not run: per-bundle cap)
0.9sprocessscript backend runs setup only
1.0sprocessscript backend runs setup only
1.0sprocessno install scripts to re-run

Static findings

HIGH
Access to sensitive file pathshooks/llm.py:1689 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files….Join() in Go does NOT prevent path traversal — filepath.Join("/var/log", "../../etc/passwd") returns "/etc/passwd". Same for Python's os.path.join() and Java's Paths.get(…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
CRITICAL
URL to the cloud instance metadata addresshooks/llm.py:1703 · URL to the cloud instance metadata address — reads the VM's credentials…es SSRF even when the first hop is allowlisted — attacker serves `302 Location: http://169.254.169.254/`; fix is `redirect: 'manual'` + re-validate each hop. **Argument Injection (a…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST07
HIGH
Access to sensitive file pathshooks/gitutil.py:2534 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files'credentials', '.netrc', '.pgpass', '.npmrc', '.pypirc',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedhooks/ensure_agent_sdk.py:362 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/ensure_agent_sdk.py:776 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathshooks/gitutil.py:2530 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# `.credentials.json` and `.claude.json` are Claude Code's own files: sign-inFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedhooks/ensure_agent_sdk.py:535 · Python subprocess execution detecteda folder of ours. Raises what subprocess.run(check=True) raises. FallsFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/diffstate.py:508 · Python subprocess execution detectedreturn subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathshooks/llm.py:2463 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# makes the inner CLI fall back to ~/.claude/.credentials.json.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedhooks/ensure_agent_sdk.py:246 · Python subprocess execution detectedsubprocess.run (no shell, as used here) reports negative rc = -signumFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/diffstate.py:1056 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/ensure_agent_sdk.py:474 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathshooks/gitutil.py:2535 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files'.git-credentials', '.dockercfg', '.credentials.json', '.claude.json',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathshooks/llm.py:1717 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files…— these do NOT disable DTDs or external entities, so `<!ENTITY x SYSTEM "file:///etc/passwd">` reads local files and a billion-laughs entity bomb DoS's the process. Same f…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedhooks/diffstate.py:455 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
HIGH
Access to sensitive file pathshooks/gitutil.py:2725 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# `.nvmrc`, `.env`) are config, not code; `.bashrc`-style runnables areFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
HIGH
Access to sensitive file pathshooks/gitutil.py:2584 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesif name.startswith('.env'):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedhooks/ensure_agent_sdk.py:553 · Python subprocess execution detectedreturn subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/diffstate.py:1396 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/diffstate.py:596 · Python subprocess execution detectedhead_check = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
CRITICAL
README directs the reader to a committed installerREADME.md:160**Review never finds anything** — verify your API path works, and that credentials reach the plugin (see [Credentials](#credentials)): `~/.claude/security/log.txt` says `no API credentials` when they Fix: Pin versions and sources; vendor anything fetched at install time.
AST06
CRITICAL
OS command execution function call detectedhooks/patterns.py:190 · OS command execution function call detected…bstrings": ["from os import system"], "reminder": "⚠️ Security Warning: os.system() runs a shell and is a command-injection sink. Use subprocess.run([...]) with a…Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedhooks/reporesolve.py:241 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:2340 · Python subprocess execution detectedp = subprocess.Popen(cmd, stdout=subprocess.PIPE,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codehooks/patterns.py:118 · Python exec or eval of computed codeexec() runs the command string through a shell, so any user input interpolated into it can inject arbitrary commands. Prefer child_process.execFile() (or spawn()) with an argument array instead of buiFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1657 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1987 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1346 · Python subprocess execution detectedp = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=err, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1779 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:995 · Python subprocess execution detectedr = subprocess.run([*GIT_CMD, "rev-parse", "--show-object-format"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1640 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/llm.py:1098 · Python subprocess execution detectedsubprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codehooks/patterns.py:150 · Python exec or eval of computed code"reminder": "⚠️ Security Warning: eval() executes arbitrary code and is a major security risk. Use JSON.parse() for data, ast.literal_eval() for Python literals, or a safe expression parser. If this iFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python exec or eval of computed codehooks/patterns.py:53 · Python exec or eval of computed code"""Regex for Playwright's and Puppeteer's `$eval('selector', function`, readFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:2430 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/llm.py:1705 · Python subprocess execution detected**Argument Injection (argv flag smuggling)**: User input as a positional argv element — `spawn(bin,[...])`, `execFile`, `subprocess.run([...])`, `exec.Command(bin, args...)` — is NOT safe just becauseFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:1554 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codehooks/patterns.py:121 · Python exec or eval of computed codeexec(`command ${userInput}`)Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:1062 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codehooks/llm.py:1870 · Python exec or eval of computed codeEXCEPTION — data flow to pre-existing sinks: If + lines route user-controlled data to a PRE-EXISTING dangerous sink (like `new Function()`, `eval()`, `exec()`, or shell string interpolation in contextFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:684 · Python subprocess execution detectedr = subprocess.run([*GIT_CMD, "rev-parse", "--git-path", "objects"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1696 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:227 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codehooks/llm.py:1758 · Python exec or eval of computed code**Dynamic Code Evaluation**: Is ANY data — from any source — concatenated or interpolated into strings passed to `new Function()`, `eval()`, `Function()`, `exec()`, or similar code execution constructFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python exec or eval of computed codehooks/llm.py:1766 · Python exec or eval of computed code**Data Flow to Pre-existing Dangerous Sinks**: If newly added code routes user-controlled data to a PRE-EXISTING dangerous sink (like `new Function()`, `eval()`, `exec()`, shell commands, or SQL concaFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1614 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1133 · Python subprocess execution detectedrm = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:2330 · Python subprocess execution detected"""subprocess.run(cmd, capture_output=True, timeout=timeout) for aFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1942 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:1569 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1339 · Python subprocess execution detected"""subprocess.run(cmd, capture_output=True, timeout=5) for a `git config`Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:364 · Python subprocess execution detectedreturn subprocess.run(cmd, capture_output=True, timeout=timeout, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/extensibility.py:747 · Python subprocess execution detecteddone = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1591 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:2036 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:203 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/ensure_agent_sdk.py:817 · Python subprocess execution detectedsubprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codehooks/patterns.py:57 · Python exec or eval of computed codethen a function. AngularJS `scope.$eval(expr)` and any other `$eval(` do notFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:2977 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1851 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/llm.py:1723 · Python subprocess execution detected**Command Injection via Shell Wrappers & Indirect Sources**: A custom helper that runs a shell — `sudo(cmd)`, `shell(cmd)`, `run(cmd)`, any wrapper whose body is `subprocess.run(cmd, shell=True)` / `PFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codehooks/patterns.py:131 · Python exec or eval of computed codeOnly use exec() if you absolutely need shell features and the input is guaranteed to be safe.""",Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1675 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1054 · Python subprocess execution detectedp = subprocess.Popen(cmd, cwd=top, stdout=subprocess.PIPE,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1751 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1228 · Python subprocess execution detectedr = subprocess.run([*GIT_CMD, *args], cwd=path, capture_output=True, timeout=5)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:247 · Python subprocess execution detectedresult = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/gitutil.py:1575 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_diff_prefix_config.py:42 · Python subprocess execution detectedshow = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_launcher_probe_timing.py:28 · Python subprocess execution detectedreturn int(subprocess.run([BASH, "-c", "echo ${BASH_VERSINFO[0]}"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_launcher_probe_timing.py:65 · Python subprocess execution detectedr = subprocess.run([BASH, str(shim), str(script)], input="payload", capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_baseline_snapshot.py:105 · Python subprocess execution detectedsubprocess.run(["git", "merge", "other"], cwd=repo, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_add_failure_metric.py:125 · Python subprocess execution detectedf"sys.exit(subprocess.call([{shutil.which('git')!r}, *sys.argv[1:]]))\n"))Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_commit_diff_memory.py:427 · Python subprocess execution detectedraw = subprocess.run(["git", "diff", "-p", "HEAD~1", "HEAD"], cwd=repo,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/conftest.py:67 · Python subprocess execution detected" subprocess.call('ls ' + user, shell=True)\n"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/conftest.py:187 · Python subprocess execution detected"vulnerableCode": "subprocess.call('ls ' + user, shell=True)",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_diff_parsing.py:84 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_commit_diff_memory.py:319 · Python subprocess execution detectedassert "subprocess.call('ls ' + user, shell=True)" in bodyFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_git_index_locks.py:84 · Python subprocess execution detected (subprocess.run via from)return real_run(args, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_inflight_reviews.py:302 · Python subprocess execution detectedseen = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_git_program.py:110 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_baseline_snapshot.py:214 · Python subprocess execution detectedsubprocess.run(["git", "clone", "-q", "--filter=blob:none", "--no-local",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_credential_routing.py:81 · Python subprocess execution detectedr = subprocess.run([sys.executable, "-c", code], env=env, capture_output=True, text=True)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:2634 · Python subprocess execution detectedr = subprocess.run([*GIT_CMD, "rev-parse", "HEAD"], cwd=repo_root,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_inflight_reviews.py:36 · Python subprocess execution detectedp = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_chained_commit_push.py:37 · Python subprocess execution detectedsubprocess.run(["git", "init", "-q", "--bare", str(tmp_path / "remote.git")], check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_diff_parsing.py:12 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_agentic_auth_stop.py:144 · Python subprocess execution detectedr = subprocess.run([sys.executable, "-c", _DRIVER, str(tmp_path)], env=env,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_launcher_redirector.py:25 · Python subprocess execution detectedBASH_MAJOR = int(subprocess.run([BASH, "-c", "echo ${BASH_VERSINFO[0]}"], capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:2689 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_add_failure_metric.py:39 · Python subprocess execution detectedsubprocess.run(["chmod", "-R", "a-w", str(made[-1])], check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_git_index_locks.py:106 · Python subprocess execution detected (subprocess.run via from)return real_run(args, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_chained_commit_push.py:29 · Python subprocess execution detectedr = subprocess.run(["git", *args], cwd=repo, capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_inflight_reviews.py:50 · Python subprocess execution detectedp = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_chained_commit_push.py:256 · Python subprocess execution detectedp = subprocess.Popen([sys.executable, "-c", script, str(path), os.path.dirname(diffstate.__file__)],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:2670 · Python subprocess execution detectedr_prev = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_interp_reparse_metric.py:200 · Python subprocess execution detectedr = subprocess.run([sys.executable, "-c", _SESSION_START, str(HOOKS_DIR / "ensure_agent_sdk.py"), str(value)],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_chained_commit_push.py:128 · Python subprocess execution detectedp = subprocess.Popen([sys.executable, str(HOOK_SCRIPT)], stdin=subprocess.PIPE,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_diff_parsing.py:34 · OS command execution function call detected"os.system(input()) # AFTER_EMBEDDED_HEADER\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:3557 · Python subprocess execution detectedsubprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_baseline_snapshot.py:25 · Python subprocess execution detectedout = subprocess.run(["git", "stash", "create"], cwd=repo, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/security_reminder_hook.py:2667 · Python subprocess execution detectedr_cur = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/conftest.py:178 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/conftest.py:29 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_inflight_reviews.py:450 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_bare_repo_toplevel.py:15 · Python subprocess execution detectedreturn subprocess.run(["git", *args], cwd=cwd, capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_add_failure_metric.py:43 · Python subprocess execution detectedsubprocess.run(["chmod", "-R", "u+w", str(objects)], check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_credential_routing.py:149 · Python subprocess execution detectedout = subprocess.run(Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/test_launcher_probe_env.py:55 · Python subprocess execution detectedr = subprocess.run([BASH, str(SHIM), str(box / "hook.py")], input="", capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/conftest.py:55 · Python subprocess execution detectedout = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codetests/test_diff_parsing.py:64 · Python exec or eval of computed code(repo / 'qu"ote.py').write_text(VULN * 20 + "eval(input())\n")Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_add_failure_metric.py:449 · Python subprocess execution detectedp = subprocess.Popen(["git", "--version"], stdout=subprocess.DEVNULL)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_nested_repos.py:296 · Python subprocess execution detected (subprocess.run via from)return real_run(cmd, *a, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_state_file.py:119 · Python subprocess execution detectedprocs = [subprocess.Popen([sys.executable, "-c", _MARK_ONE, str(HOOKS_DIR), f"k{i}"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_record_files.py:21 · OS command execution function call detectedSOURCE = "import os\ndef f(u):\n os.system(u)\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:117 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:485 · Python subprocess execution detectedr = subprocess.run([*gitutil.GIT_CMD, "show", "-p", sha, "--"], cwd=project, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_temp_index_cleanup.py:174 · Python subprocess execution detectedp = subprocess.Popen([sys.executable, "-c", "pass"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codetests/test_pattern_fired_metrics.py:79 · Python exec or eval of computed code_turn(repo, env, {"calc.js": "const v = eval(src)\n"})Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:1460 · Python subprocess execution detectedlisted = subprocess.run([*gitutil.GIT_CMD, *gitutil.SPARSE_AS_IT_IS, "ls-files", "-s", "--sparse"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:1121 · Python subprocess execution detectedlisted = subprocess.run(["git", "ls-files"], cwd=repo, env=env, check=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_portable_output.py:140 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_launcher_redirector.py:75 · Python subprocess execution detectedreturn subprocess.run([BASH, str(SHIM), str(self.script)], input="payload", capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_stop_diff_memory.py:294 · Python subprocess execution detectedsubprocess.run(["git", "add", "-A"], cwd=repo, check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_record_files.py:546 · Python subprocess execution detectedpushed = subprocess.run(["git", "push", "origin", "main"], cwd=repo, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codetests/test_pattern_fired_metrics.py:57 · Python exec or eval of computed code{"calc.js": "const v = eval(src)\n"})Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:360 · Python subprocess execution detectedr = subprocess.run([b"git", b"init", b"-q", b"--separate-git-dir", name, b"."],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_portable_output.py:76 · Python subprocess execution detectedr = subprocess.run([sys.executable, "-c", code], capture_output=True, text=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_stop_review_paths.py:70 · Python subprocess execution detected (subprocess.Popen via from)return real_popen(cmd, *args, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_renamed_into_review.py:18 · OS command execution function call detectedMARK = "os.system(input())"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python exec or eval of computed codetests/test_pattern_fired_metrics.py:65 · Python exec or eval of computed code{"calc.js": "const v = eval(src)\n",Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:897 · Python subprocess execution detected (subprocess.run via from)monkeypatch.setattr(subprocess, "run", lambda *a, **k: runs.append(a) or real(*a, **k))Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_nested_repos.py:113 · Python subprocess execution detectedlisted = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_sdk_emptied_install.py:54 · Python subprocess execution detected (subprocess.run via from)return real_run(cmd, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_record_files.py:261 · Python subprocess execution detectedholder = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:1329 · Python subprocess execution detectedrun = lambda *a: subprocess.run(["git", *a], cwd=index.parent, env=env, check=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_renamed_into_review.py:17 · OS command execution function call detectedBODY = "import os\n" + "".join(f"value_{i} = {i}\n" for i in range(30)) + "os.system(input())\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python exec or eval of computed codetests/test_pattern_fired_metrics.py:31 · Python exec or eval of computed codem = _turn(repo, env, {"calc.js": "const v = eval(src)\n"})Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_push_merge_base.py:48 · Python subprocess execution detectedr = subprocess.run(["git", "merge", "--no-ff", "--no-edit", ref], cwd=repo,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_secret_shaped_paths.py:61 · Python subprocess execution detectedr = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_sdk_install_timeout.py:64 · Python subprocess execution detectedproc = subprocess.Popen(stand_in, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_sdk_emptied_install.py:42 · Python subprocess execution detectedsubprocess.run([sys.executable, "-m", "venv", "--without-pip",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_state_file.py:64 · Python subprocess execution detectedr = subprocess.run([sys.executable, "-c", _KILLED_MID_SAVE, str(HOOKS_DIR)],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codetests/test_pattern_fired_metrics.py:42 · Python exec or eval of computed codem = _turn(repo, env, {"calc.js": "const v = eval(src)\n"})Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_secret_renames.py:140 · Python subprocess execution detected (subprocess.Popen via from)return real_popen(cmd, *args, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_record_files.py:616 · Python subprocess execution detectedholder = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_nested_repos.py:389 · Python subprocess execution detected (subprocess.Popen via from)return real_popen(cmd, *a, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_stop_diff_memory.py:295 · Python subprocess execution detectedsubprocess.run(["git", "commit", "-q", "-m", "views"], cwd=repo, check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_nested_repos.py:223 · Python subprocess execution detectedreturn subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_nested_repos.py:452 · Python subprocess execution detectedsha = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codetests/test_pattern_fired_metrics.py:50 · Python exec or eval of computed codem = _turn(repo, env, {"calc.js": "const v = eval(src)\n"})Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_slow_prompt_metrics.py:72 · Python subprocess execution detectedsubprocess.run(["git", "init", "-q", str(empty)], check=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python exec or eval of computed codetests/test_stop_diff_memory.py:71 · Python exec or eval of computed code+ _section("web/café.js", ["eval(x)"])Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedtests/test_repo_resolution.py:588 · Python subprocess execution detectedsubprocess.run(["git", "status"], cwd=repo, env={**clean, **GIT_ENV}, capture_output=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_nested_repos.py:356 · Python subprocess execution detected (subprocess.Popen via from)return real_popen(cmd, *a, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:60 · Python subprocess execution detectedreturn subprocess.run(["git", *args], cwd=cwd, check=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:478 · Python subprocess execution detectedsha = subprocess.run(["git", "hash-object", "-t", "commit", "-w", "--stdin"], cwd=project,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_stop_diff_memory.py:215 · Python subprocess execution detected"subprocess.Popen([sys.executable, '-c', 'import time; time.sleep(8)']); "Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:24 · Python subprocess execution detectedr"\d+", subprocess.run(["git", "--version"], capture_output=True, text=True).stdout)[:2])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_other_repo_config.py:1291 · Python subprocess execution detectedassert b"%o" % mode in subprocess.run(["git", "ls-files", "-s"], cwd=outer, capture_output=True).stdoutFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_unmatched_bash_metric.py:124 · Python subprocess execution detectedr = subprocess.run([str(bash), "-c", "echo ok"], capture_output=True, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandhooks/ensure_agent_sdk.py:249 · Process kill command — agent can terminate processesempty stdout+stderr this is the memory-kill signature (CCR repro)."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandhooks/ensure_agent_sdk.py:271 · Process kill command — agent can terminate processes"""Seconds left in the signal-kill cooldown (0 if none/expired)."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandhooks/extensibility.py:39 · Process kill command — agent can terminate processesall pattern checks; there is no per-rule kill switch in v1.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_secret_shaped_paths.py:23 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".env.local.yaml",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Process kill commandhooks/security_reminder_hook.py:171 · Process kill command — agent can terminate processes# Per-feature kill switches. Each defaults to enabled. Set to "0" to disableFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandhooks/security_reminder_hook.py:1584 · Process kill command — agent can terminate processesunconditional kill switch and SECURITY_GUIDANCE_COMMIT_REVIEW (on/off)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_renamed_into_review.py:241 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesgit(repo, "rm", "-q", ".env")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python exec or eval of computed codetests/test_untracked_cap.py:50 · Python exec or eval of computed code(repo / "old_025.py").write_text(SRC + "eval(input())\n")Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
File permission modification commandhooks/gitutil.py:596 · File permission modification command — agent changes file ownership/permissions# Not a link: chmod would follow it to whatever it points at.Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Python subprocess execution detectedtests/test_temp_index_cleanup.py:246 · Python subprocess execution detectedproc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Access to sensitive file pathstests/test_project_config_files.py:47 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files_link(project / ".claude" / GUIDANCE, project / ".env")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/test_unmatched_bash_metric.py:139 · Python subprocess execution detectedr = subprocess.run([bash, "-c", script], input=raw.encode(), capture_output=True, timeout=30)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_commit_diff_memory.py:211 · OS command execution function call detected+ _section("app.py", ["os.system(cmd)"] * 2000)).encode()Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandhooks/diffstate.py:569 · Process kill command — agent can terminate processescollide with a concurrent git command, and a timeout kill cannot leave aFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandhooks/ensure_agent_sdk.py:96 · Process kill command — agent can terminate processes# signal-kill window because a slow or stalled connection is often temporary.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandhooks/ensure_agent_sdk.py:281 · Process kill command — agent can terminate processes"""Start/refresh a cooldown (the signal-kill one unless named) so we stopFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_project_config_files.py:46 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files(project / ".env").write_text("TOKEN=abc\n")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_review_model.py:257 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"claude-opus-9 --dangerously-skip-permissions", "../../etc/passwd",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Process kill commandhooks/security_reminder_hook.py:193 · Process kill command — agent can terminate processes# as a kill switch (no double-negative).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
File permission modification commandhooks/llm.py:1754 · File permission modification command — agent changes file ownership/permissions… mode then `chmod` afterward — file is world-readable between the two calls and chmod doesn't revoke open fds, but treat this as lower severity than persistent exposu…Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.
AST05
MEDIUM
Process kill commandhooks/ensure_agent_sdk.py:84 · Process kill command — agent can terminate processes# load the SDK (kill switch included), so nothing isFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_gateway_sign_in.py:42 · Python subprocess execution detectedsubprocess.Popen([sys.executable, "-c", "import time; time.sleep(5)"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/patterns.py:198 · Python subprocess execution detectedsubprocess.run(f"ls {user_input}", shell=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_windows_cli_lookup.py:268 · Python subprocess execution detectedreturn subprocess.run([sys.executable, "-c", code], cwd=HOOKS_DIR, env={**base, **env},Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandhooks/gitutil.py:435 · Process kill command — agent can terminate processesage limit. Never probes on Windows, where os.kill would end the process."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedhooks/patterns.py:199 · Python subprocess execution detectedsubprocess.call("grep " + pattern, shell=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Access to sensitive file pathstests/test_renamed_into_review.py:243 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files_move(repo, ".env", "old_env.txt")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_secret_shaped_paths.py:22 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".env.production.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedtests/test_unmatched_bash_metric.py:154 · Python subprocess execution detectedr = subprocess.run([sys.executable, str(HOOK_SCRIPT)], input=raw, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedhooks/patterns.py:203 · Python subprocess execution detectedsubprocess.call(["grep", pattern])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandhooks/security_reminder_hook.py:1333 · Process kill command — agent can terminate processeskill switch (push-sweep reuses the same review pipeline and budget).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_renamed_into_review.py:159 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesapi_keys passwords secrets.yaml .env .env.py server.pem server.key deploy_rsaFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_secret_shaped_paths.py:29 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".claude/.credentials.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python exec or eval of computed codetests/test_untracked_cap.py:51 · Python exec or eval of computed code(repo / "old_003.py").write_text(SRC + "eval(input())\n") # inside the capFix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.
AST05
MEDIUM
Python subprocess execution detectedhooks/patterns.py:190 · Python subprocess execution detected…Security Warning: os.system() runs a shell and is a command-injection sink. Use subprocess.run([...]) with a list of arguments instead. If this is safe or is explicitly needed…Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Python subprocess execution detectedtests/test_turn_commits_metric.py:327 · Python subprocess execution detectedsubprocess.run(["git", op, "side"], cwd=r, capture_output=True,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Process kill commandhooks/_base.py:75 · Process kill command — agent can terminate processesthe kill switch (SECURITY_GUIDANCE_DISABLE=1 / ENABLE_SECURITY_REMINDER=0),Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_renamed_into_review.py:238 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".env": SECRET, "notes.txt": SECRET, "app.py": "x = 1\n"})Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
File type combined with upload actiontests/test_launcher_redirector.py:209 · File type combined with upload action — agent may exfiltrate local data filesgroups = json.loads((HOOKS_DIR / "hooks.json").read_text())["hooks"]["PostToolUse"]Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.
AST07
MEDIUM
Process kill commandhooks/gitutil.py:126 · Process kill command — agent can terminate processes# index: a concurrent `git add` fails, and a timeout kill leaves the lock.Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandhooks/security_reminder_hook.py:189 · Process kill command — agent can terminate processes# Master kill switch. Either SECURITY_GUIDANCE_DISABLE=1 orFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Python subprocess execution detectedtests/test_temp_index_cleanup.py:382 · Python subprocess execution detectedholder = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
OS command execution function call detectedtests/test_commit_diff_memory.py:182 · OS command execution function call detected+ _section("app.py", ["os.system(x)"]).encode())Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_secret_shaped_paths.py:28 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files".credentials.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_commit_diff_memory.py:235 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesraw = (_section(".env", ["KEY=1"] * lines, extra="deleted file mode 100644\n")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Python subprocess execution detectedhooks/patterns.py:202 · Python subprocess execution detectedsubprocess.run(["ls", user_input])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
AST05
MEDIUM
Access to sensitive file pathstests/test_stop_review_paths.py:171 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files"app.py": "x = 1\n", **{f"dir{i:02d}/.env": "K=v\n" for i in range(20)}})Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_stop_review_paths.py:159 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files# Room for .env beside each batch, and not for the three .py together.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
OS command execution function call detectedtests/test_stop_diff_memory.py:138 · OS command execution function call detectedassert "+os.system(cmd)\n" in bodyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadingtests/test_portable_output.py:114 · Dynamic module loading (importlib.util.find_spec via from)return real(name, *a, **k)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
OS command execution function call detectedtests/test_stop_diff_memory.py:302 · OS command execution function call detectedassert "+os.system(request.GET['cmd'])" in files[0][1][:2000]Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Process kill commandtests/test_temp_index_cleanup.py:208 · Process kill command — agent can terminate processes"""On Windows os.kill ends the process it is given."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_stop_review_paths.py:150 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesos.rename(repo / ".env", repo / "settings.py")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
OS command execution function call detectedtests/test_stop_diff_memory.py:134 · OS command execution function call detected["os.system(cmd)"] + ["new line %03d" % i for i in range(200)])Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
OS command execution function call detectedtests/test_stop_diff_memory.py:315 · OS command execution function call detectedassert "+os.system(request.GET['cmd'])" in files[0][1][:2000]Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_secret_shaped_paths.py:73 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system files(repo / ".env.production.json").write_text('{"API_KEY": "ENV_SECRET_BODY"}\n')Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
LOW
Dynamic module loadinghooks/security_reminder_hook.py:3541 · Dynamic module loadingif importlib.util.find_spec("claude_agent_sdk") is not None:Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadinghooks/ensure_agent_sdk.py:684 · Dynamic module loadingreturn importlib.util.find_spec("claude_agent_sdk") is not NoneFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadingtests/test_interp_reparse_metric.py:190 · Dynamic module loadingrunpy.run_path(script, run_name="__main__")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadingtests/test_portable_output.py:120 · Dynamic module loadingrunpy.run_path(script, run_name="__main__")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadingtests/test_interp_reparse_metric.py:186 · Dynamic module loading (importlib.util.find_spec via from)importlib.util.find_spec = lambda name, *a, **k: object() if name == "claude_agent_sdk" else real(name, *a, **k)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_stop_review_paths.py:164 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesassert len(diffs) > 1 and all(".env" in c for c in diffs)Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
Access to sensitive file pathstests/test_stop_diff_memory.py:153 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesraw = (_section("config.py", ["TOKEN = 'abc'"], old=".env")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
MEDIUM
OS command execution function call detectedtests/test_stop_diff_memory.py:69 · OS command execution function call detected_section("app.py", ["import os", "os.system(cmd)"])Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadinghooks/llm.py:105 · Dynamic module loadingmod = importlib.util.module_from_spec(spec)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
LOW
Dynamic module loadinghooks/llm.py:106 · Dynamic module loading (importlib.loader.exec_module via provenance)spec.loader.exec_module(mod)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05
MEDIUM
Access to sensitive file pathstests/test_stop_review_paths.py:149 · Access to sensitive file paths — SSH keys, AWS credentials, env files, or system filesrepo = make_repo(tmp_path / "repo", {".env": secret, "app.py": "x = 1\n"})Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
AST05
LOW
Dynamic module loadingtests/test_sdk_emptied_install.py:93 · Dynamic module loading@pytest.mark.skipif(importlib.util.find_spec("claude_agent_sdk") is not None,Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.
AST05

Cost to the agent

Instructions loaded
≈50 tok
1 file · 81 in bundle

Tokens estimated at four characters each. Skills load their instruction text when triggered; the figure is what that costs.

Known vulnerabilities

Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.

What would make this Verified

17 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%
  1. URL to the cloud instance metadata address≈ +9 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
  2. README directs the reader to a committed installer≈ +9 on the totalPin versions and sources; vendor anything fetched at install time.
  3. OS command execution function call detected≈ +9 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
  4. Unclaimed publisher≈ +8 on the totalClaim anthropics: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
  5. Touches files outside the project≈ +7 on the totalKeep reads and writes inside the working directory, or declare the exact paths in `filesystem:` and explain why in the README.
  6. Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
Publish a new version to Claude Code plugins, then queue it here. Not your skill? Claim the handle to get verdict changes by email.Claim anthropicsPropose a patch to the maintainer