/toolbelt:security-scanfrom toolbelt
Manually audit your Claude Code / Codex configuration (~/.claude, ~/.codex, or a project's .claude/) for security vulnerabilities and misconfigurations — hardcoded secrets, overly permissive allow-lists, risky hooks, risky MCP servers, and over-privileged agent definitions. Self-contained checklist, no external tools required.
Ships in toolbelt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Audit your Claude Code / Codex configuration for security issues, entirely with the Read/Grep/Bash tools already available — no third-party scanner installed or invoked.
The original ECC security-scan skill delegated everything to a third-party npm package, ecc-agentshield (npx ecc-agentshield scan, from github.com/affaan-m/agentshield), including an "Opus deep analysis" mode that required exporting ANTHROPIC_API_KEY and piping it into that package's own three-agent pipeline.
That package was not installed, not run, and not copied into this skill. The directory this skill scans (~/.claude, ~/.codex) is exactly the kind of place that holds API keys, OAuth tokens, and hook scripts — running an unreviewed third-party package against it, especially one that also wants your Anthropic API key, is a real supply-chain risk: a malicious or compromised version of that package could exfiltrate everything it's supposedly scanning for. This rewrite performs the same categories of checks (see table below) using only local, inspectable commands you can read before running.
If the user wants the npx tool specifically, that's a decision to make explicitly and separately — this skill does not recommend it.
settings.json, CLAUDE.md/AGENTS.md, hooks, or MCP configsconfig-gc)| Target | Checks |
|---|---|
CLAUDE.md / AGENTS.md (project + ~/.claude/~/.codex level) | Hardcoded secrets, auto-run instructions ("always run X without asking"), prompt-injection-shaped content |
settings.json / settings.local.json | Overly permissive allow lists (Bash(*)), missing/empty deny lists, dangerous bypass flags |
.mcp.json / MCP servers registered in ~/.claude.json / ~/.codex/config.toml | Risky MCP servers, hardcoded env secrets, npx -y supply-chain risk |
~/.claude/plugins/*/hooks/hooks.json and any project hooks | Command injection via unquoted interpolation, silent error suppression, data exfiltration patterns (e.g. piping file contents to an external curl) |
~/.claude/agents/*.md (custom subagents) | Unrestricted tool access (tools: omitted or grants Bash without need), prompt injection surface, missing model specs |
Run each check below directly. Every command is read-only (no --fix, no writes) — this skill reports findings, it does not auto-remediate. Present findings to the user and let them decide what to change (tie into config-gc if the fix is a deletion, or update-config if it's a settings.json edit).
grep -nE "(api[_-]?key|secret|password|token)\s*[:=]\s*['\"][A-Za-z0-9_\-]{10,}" \
~/.claude/CLAUDE.md ~/.codex/AGENTS.md ./CLAUDE.md ./AGENTS.md 2>/dev/null
grep -niE "(always run|never ask|auto-approve|do not confirm|bypass permission)" \
~/.claude/CLAUDE.md ~/.codex/AGENTS.md ./CLAUDE.md ./AGENTS.md 2>/dev/null
Also eyeball the file for instructions that read like they were injected rather than authored (e.g. text quoting "ignore previous instructions", oddly-formatted directives buried mid-paragraph).
for f in ~/.claude/settings.json ~/.claude/settings.local.json ./.claude/settings.json ./.claude/settings.local.json; do
[[ -f "$f" ]] || continue
echo "== $f =="
jq -e '.permissions.allow | index("Bash(*)")' "$f" >/dev/null 2>&1 \
&& echo "CRITICAL: Bash(*) unrestricted shell access allowed"
jq -r '.permissions.deny // [] | length' "$f" | grep -qx 0 \
&& echo "INFO: no deny list configured"
jq -r '.permissions.allow[]?' "$f" 2>/dev/null | grep -E '(--force|--no-verify|rm -rf|curl.*\|.*sh)'
done
Flag any allow entry that runs a downloaded script (curl ... | sh, | bash), force-pushes, or skips verification (--no-verify, --no-gpg-sign).
# Project-level
[[ -f ./.mcp.json ]] && jq '.mcpServers | to_entries[] | {name: .key, command: .value.command, args: .value.args, env: (.value.env // {} | keys)}' ./.mcp.json
# Claude Code global registrations
jq -r '.projects // {} | to_entries[] | .value.mcpServers // {} | keys[]' ~/.claude.json 2>/dev/null
For each server found: does command/args include npx -y (auto-installs and runs whatever version is currently published, no pinning)? Does env reference a secret directly instead of a placeholder? Is the server's origin something you actually recognize?
# Any hooks configured directly in your own settings
jq '.hooks' ~/.claude/settings.json ~/.claude/settings.local.json 2>/dev/null
# Hooks shipped by installed plugins
find ~/.claude/plugins/marketplaces -path "*/hooks/hooks.json" -exec sh -c 'echo "== {} =="; cat "{}"' \; 2>/dev/null
For each hook command string found, check for:
$FILE instead of "$FILE", especially when $FILE comes from a tool argument an LLM controls)2>/dev/null, || true) that would hide a hook failing to do its jobcurl -X POST ... $(cat ...), curl ... -d @file)for f in ~/.claude/agents/*.md ./.claude/agents/*.md; do
[[ -f "$f" ]] || continue
echo "== $f =="
awk '/^tools:/{print} /^model:/{print}' "$f"
done
Flag agents that grant Bash, Write, or Edit without an obvious need from their description, and agents with no tools: line at all (means unrestricted — inherits everything).
Bash(*) in the allow list (unrestricted shell access)2>/dev/null, || true)npx -y auto-install in MCP server configs (no version pinning)~/.claude/~/.codex without reading its source first — this directory is exactly what an attacker would want to read.config-gc, settings edits through update-config).config-gc — general cleanup of the same directories; this skill is the security-focused subset of that audit.security-review — application-code security checklist (auth, input validation, XSS, etc.) — a different layer than this skill's config/agent-definition focus.update-config — the skill that actually edits settings.json/hooks once a finding here needs fixing.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jh3779/agent-toolbelt-public --plugin toolbelt40 skills in this plugin
/agent-self-evaluationUse after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions./architecture-audit프로젝트의 설계(데이터/스키마 생명주기, API·인터페이스 계약, 상태 머신, 실패·경계 처리, 결합도·확장성, 신뢰 경계)가 얼마나 견고한지 근거와 함께 감사하는 스킬. structure-audit(파일·계층 조직)과 다르다 — 이 스킬은 "어디에 있는가"가 아니라 "이 모델링이 맞는가"를 본다. 코드 수정 없이 조사·보고만 한다. Triggers - "설계 감사", "아키텍처 감사", "설계 검토", "이 스키마 설계 괜찮은지", "API 계약 검토", "이 상태 머신 맞게 짰는지", "design audit", "architecture review", "schema design review"/article-writingWrite articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice derived from supplied examples or brand guidance. Use when the user wants polished written content longer than a paragraph, especially when voice consistency, structure, and credibility matter.