security-guidance@2.0.18
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
Nothing executable in the bundle ran; the trace covers the install step only.- Tested
- 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.17+1a7e5ae
vet-skills diff security-guidance 2.0.17+1a7e5ae 2.0.18In the sandbox, this version reached for nothing 2.0.17+1a7e5ae 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 (1 scenario; nothing executable in the bundle ran; the trace covers the install step only) on 2026-11-07 and scored it 70/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; Access to sensitive file paths; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 0 s · 1 scenarios · 0 deviationsStatic findings
listed = 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", "--git-path", "objects"],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.'credentials', '.netrc', '.pgpass', '.npmrc', '.pypirc',Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# `.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.out = subprocess.run(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.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.sha = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.if name.startswith('.env'):Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.**Path Traversal**: Is user input used to construct file paths? Key insight: filepath.Join() in Go does NOT prevent path traversal — filepath.Join("/var/log", "../../etc/passwd") returns "/etc/passwd"Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.# `.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.**XXE / XML Entity Expansion**: Untrusted XML (uploaded .docx/.xlsx/.pptx/.svg, SOAP/SAML bodies, feed/webhook payloads, OOXML extracted from a zip) parsed with Python stdlib `xml.etree.ElementTree`, 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.# 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.call(["grep", pattern])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."reminder": "⚠️ 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, brieflyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# 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.subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."""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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# 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.# 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.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.return 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.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.head_check = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.**SSRF (Server-Side Request Forgery)**: A user-influenceable URL/host/path reaching an outbound fetch — `requests.get`/`httpx`/`aiohttp`/`urllib`/`fetch`/`axios`/`http.Get`, OAuth/OIDC discovery fieldFix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.# load the SDK (kill switch included), so nothing isFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.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."""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.r = subprocess.run(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.r = subprocess.run(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.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.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.r = subprocess.run(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.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.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.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.unconditional kill switch and SECURITY_GUIDANCE_COMMIT_REVIEW (on/off)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.# Master kill switch. Either SECURITY_GUIDANCE_DISABLE=1 orFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.**SSRF (Server-Side Request Forgery)**: A user-influenceable URL/host/path reaching an outbound fetch — `requests.get`/`httpx`/`aiohttp`/`urllib`/`fetch`/`axios`/`http.Get`, OAuth/OIDC discovery fieldFix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.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.r = 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(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(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.show = 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(["git", "--version"], stdout=subprocess.DEVNULL)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.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."os.system(input()) # AFTER_EMBEDDED_HEADER\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# kill every spawn before the first API call. Omit the fallbackFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.# 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.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.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.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.return subprocess.run([BASH, str(SHIM), str(script or self.script), *args], input="payload",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.subprocess.call("grep " + pattern, shell=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.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." subprocess.call('ls ' + user, shell=True)\n"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(5)"])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."reminder": "⚠️ 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, brieflyFix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.**Insecure File Permissions on Credential Writes**: A file write creating a token, secret, lockfile-with-auth, or persisted-agent-memory under a path other local users can reach, where the resulting mFix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts."vulnerableCode": "subprocess.call('ls ' + user, shell=True)",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.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.p = subprocess.Popen(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.# as a kill switch (no double-negative).Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.result = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run(["ls", user_input])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.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.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.".claude/.credentials.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.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._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.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.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.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."os.system(f'convert {user_input}')\n"Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.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.".env.production.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose."content": "KEY = 'AKIAABCDEFGHIJKLMNOP'\n"},Fix: Never read or enumerate credential locations; accept a documented environment variable instead.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.subprocess.run([sys.executable, "-c", SINGLE_TURN, str(HOOKS_DIR)],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.["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."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 = 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.(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.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(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.".credentials.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.(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.return subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.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.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.out = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.@pytest.mark.parametrize("bom", ["", ""])Fix: Keep SKILL.md to visible, descriptive text. Remove comments and encoded text that address the agent.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.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.r = subprocess.run([sys.executable, "-c", SWEEP, str(HOOKS_DIR)],Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.return subprocess.run(cmd, input="", capture_output=True, text=True, timeout=60,Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.assert "+os.system(cmd)\n" in bodyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell._section("app.py", ["import os", "os.system(cmd)"])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.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.r = subprocess.run(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out."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.".env.local.yaml",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.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.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.holder = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.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.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.proc = subprocess.Popen(Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.r = subprocess.run(["openssl", *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."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.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."""On Windows os.kill ends the process it is given."""Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.p = subprocess.Popen([sys.executable, "-c", "pass"])Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.# 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.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
10 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- 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.
- 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.
- Outbound HTTP to raw IP address≈ +4 on the totalReplace encoded or assembled strings with plain literals and remove undeclared network calls.
- Python subprocess execution detected≈ +2 on the totalBuild commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.
- Process kill command≈ +2 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.