security-guidance@2.0.21
CAUTION· install onlyPublisher 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.
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.21In 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 scenariosStatic findings
….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.…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.'credentials', '.netrc', '.pgpass', '.npmrc', '.pypirc',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# `.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.a 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.return subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# 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.subprocess.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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'.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.…— 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.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# `.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.if name.startswith('.env'):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.return subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.head_check = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.**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.…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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = subprocess.Popen(cmd, stdout=subprocess.PIPE,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.exec() 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."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."""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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.**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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.exec(`command ${userInput}`)Fix: Put hosts, commands and strings in plain source. Decoding at runtime looks identical to malware and costs points on its own.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.EXCEPTION — 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.r = 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.**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.**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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.rm = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."""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.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."""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.return 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.done = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.then 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.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.**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.Only 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = 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.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.show = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return 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.r = 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.subprocess.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.f"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.raw = 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." subprocess.call('ls ' + user, shell=True)\n"Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."vulnerableCode": "subprocess.call('ls ' + user, shell=True)",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.assert "subprocess.call('ls ' + user, shell=True)" in bodyFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return real_run(args, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.seen = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.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.r = 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.r = 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.p = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = 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.BASH_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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.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.return real_run(args, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = 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.p = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.p = 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.r_prev = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = 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.p = 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."os.system(input()) # AFTER_EMBEDDED_HEADER\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.out = 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.r_cur = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return 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.subprocess.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.out = subprocess.run(Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.r = 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.out = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.(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.p = subprocess.Popen(["git", "--version"], stdout=subprocess.DEVNULL)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return real_run(cmd, *a, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.procs = [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.SOURCE = "import os\ndef f(u):\n os.system(u)\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = 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.p = subprocess.Popen([sys.executable, "-c", "pass"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out._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.listed = 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.listed = 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return 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.subprocess.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.pushed = 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.{"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.r = 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.r = 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.return real_popen(cmd, *args, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.MARK = "os.system(input())"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.{"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.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.listed = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return real_run(cmd, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.holder = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.run = 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.BODY = "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.m = _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.r = 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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.proc = 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.subprocess.run([sys.executable, "-m", "venv", "--without-pip",Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = 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.m = _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.return real_popen(cmd, *args, **kwargs)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.holder = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return real_popen(cmd, *a, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.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.return subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.sha = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.m = _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.subprocess.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.+ _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.subprocess.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.return real_popen(cmd, *a, **kw)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return 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.sha = 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."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.r"\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.assert 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.r = 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.empty stdout+stderr this is the memory-kill signature (CCR repro)."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."""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.all 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.".env.local.yaml",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# 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.unconditional kill switch and SECURITY_GUIDANCE_COMMIT_REVIEW (on/off)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.git(repo, "rm", "-q", ".env")Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.(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.# 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.proc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out._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.r = 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.+ _section("app.py", ["os.system(cmd)"] * 2000)).encode()Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.collide 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.# 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."""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.(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."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.# as a kill switch (no double-negative).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.… 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.# load the SDK (kill switch included), so nothing isFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.subprocess.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.subprocess.run(f"ls {user_input}", shell=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return 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.age 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.subprocess.call("grep " + pattern, shell=True)Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out._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.".env.production.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.r = 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.subprocess.call(["grep", pattern])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.kill switch (push-sweep reuses the same review pipeline and budget).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.api_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.".claude/.credentials.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.(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.…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.subprocess.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.the kill switch (SECURITY_GUIDANCE_DISABLE=1 / ENABLE_SECURITY_REMINDER=0),Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.".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.groups = 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.# 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.# Master kill switch. Either SECURITY_GUIDANCE_DISABLE=1 orFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.holder = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.+ _section("app.py", ["os.system(x)"]).encode())Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.".credentials.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.raw = (_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.subprocess.run(["ls", user_input])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."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.# 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.assert "+os.system(cmd)\n" in bodyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.return real(name, *a, **k)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.assert "+os.system(request.GET['cmd'])" in files[0][1][:2000]Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell."""On Windows os.kill ends the process it is given."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.os.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.["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.assert "+os.system(request.GET['cmd'])" in files[0][1][:2000]Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.(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.if importlib.util.find_spec("claude_agent_sdk") is not None:Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.return importlib.util.find_spec("claude_agent_sdk") is not NoneFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.runpy.run_path(script, run_name="__main__")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.runpy.run_path(script, run_name="__main__")Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.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.assert 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.raw = (_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._section("app.py", ["import os", "os.system(cmd)"])Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.mod = importlib.util.module_from_spec(spec)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.spec.loader.exec_module(mod)Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.repo = 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.@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.Cost to the agent
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%- 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.
- README directs the reader to a committed installer≈ +9 on the totalPin versions and sources; vendor anything fetched at install time.
- OS command execution function call detected≈ +9 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- 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.
- 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.
- 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.