/fuse-security:security-scan [--full|--diff [base]] [path]from fuse-security
Scans codebases or diffs for OWASP Top 10:2025 vulnerabilities (XSS, injection, SSRF, path traversal, weak crypto, hardcoded secrets, insecure deserialization) and reports verified findings mapped to CWE.
Ships in fuse-security. 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.
Read when SKILL.md points to them.
It reports; it never fixes. Verified findings, each with a re-test check, go back to the caller.
--diff, a PR, a
branch), limit the scan to the files changed against the merge base and say so in the report
header:
git diff --name-only $(git merge-base HEAD <base>) (default <base>: the branch the caller
names, else origin/HEAD). Unchanged files are read only to trace data flow, not reported.package.json, composer.json,
pyproject.toml, requirements.txt, Package.swift, *.xcodeproj, go.mod, Cargo.toml,
Gemfile, pom.xml, build.gradle*, *.csproj) and from the file extensions actually present
(git ls-files | rg -o '\.[A-Za-z0-9]+$' | sort | uniq -c).bun ${CLAUDE_PLUGIN_ROOT}/../node_modules/@fusengine/harness/dist/cli/bin.mjs scan <dir>
This is a first-pass pattern scanner (one regex per line), not a complete audit. It prints one
JSON report and always exits 0. Since @fusengine/harness 0.1.115 the report ends with a
coverage block: that block is the coverage summary. The top-level language field is the
first root marker found, in this order: package.json, composer.json, requirements.txt or
pyproject.toml, Package.swift, go.mod, Cargo.toml, else unknown. It is not the list of
scanned languages, but it decides which files get that language's legacy rules (18 in all) and
are exempt from the skip rules and caps: only files with that marker's extension (.js for
package.json, .php, .py, .swift; none for Go, Rust or unknown). Every other file gets
only the precise rules (a bare child_process import is flagged in such a .js file, not in a
.ts file). Each finding carries id, cwe, owasp (Top 10:2025, omitted when not verified)
and language.
.js .jsx .mjs .cjs .ts .tsx .mts .cts .vue .svelte .astro), PHP (.php .phtml .inc), Python (.py .pyw), Swift
(.swift), Go (.go), Rust (.rs), Ruby (.rb .rake .erb), Java (.java), Kotlin
(.kt .kts), C# (.cs).text): .env and .env.* (not
*example/*sample/*template, counted as generated), .npmrc, .pypirc,
.netrc, and .json .yaml .yml .toml .ini .cfg .conf .properties .xml .plist .gradle .sh .bash .zsh .tf .tfvars .pem .key.2026.11.2; secrets and keys apply to every
scanned file): JS/TS family — code execution, command injection, XSS, SQL injection,
deserialization, weak crypto/randomness, TLS; PHP — code execution, command injection,
deserialization, SQL injection, include of $_GET/$_POST/$_REQUEST/$_COOKIE, weak
password hash, weak randomness; Python — code execution, command injection, deserialization,
SQL injection, weak hash/randomness, TLS; Go — command injection, SQL injection, XSS
(template.HTML & co.), weak crypto/randomness, TLS; Rust — unsafe, command injection, SQL
injection, weak hash, TLS; Ruby — code execution, command injection, deserialization, SQL
injection, weak hash, TLS; Java/Kotlin and C# — command injection, deserialization, SQL
injection, weak crypto/randomness, TLS; Swift — NSKeyedUnarchiver deserialization,
UserDefaults secret keys, weak hash. Swift "http:// literals and kSecAttrAccessibleAlways
are legacy-only rules: they run only when the root marker is Package.swift (never for an
*.xcodeproj-only app). XSS has rules only for JS/TS and Go (none for PHP echo, Python,
Ruby, Java, Kotlin, C# templates). Not covered by any rule: SSRF, open redirect, path traversal
other than that PHP include, and anything outside these families (auth, access control,
CSRF, GraphQL, ...).coverage: languages, filesScanned and patternsApplied (the largest rule
count applied to one file of that language) list what was scanned. totals.files: 0 or an
empty languages means nothing was scanned (also the output for a wrong or missing path), never
"clean". "Scanned" with no finding means no pattern matched, not "clean": the manual pass still
applies. A language or extension found in step 2 but absent from languages
was NOT scanned: other extensions (.md, .html, .sql, .css, ...) are ignored without
being counted; unsupported lists only known code extensions with no rules (.c .cpp .m .dart .lua .scala ..., at most 10). skipped counts what was not scanned, by reason:
excluded directories (excludedDirs), files (binary, minified, oversize, unreadable,
lockfiles, generated), lines longer than the line limit whose tail was not matched by the
non-legacy rules (longLines), and capped: true
when the file or byte budget stopped the scan. node_modules vendor .git dist build are never
scanned; framework and tool caches (.next .venv Pods coverage, target beside Cargo.toml,
...) are skipped except for files with the root marker language's extension (.js with
package.json, .php, .py, .swift).
Every language or file type present but not scanned, and every vulnerability class outside the
rule families, is covered with the manual patterns below. An older harness prints no coverage
block: then treat every detected language as not covered and apply the manual patterns to all
of them..js .jsx .mjs .cjs .ts .tsx .mts .cts .vue .svelte .astro), Next.js, TanStack
Start, React, Astro → scan-patterns.mdcommand -v semgrep opengrep codeql),
with its licence conditions → sast-tools.md. Never install a tool.The skill does not edit code and does not dispatch fixes. Return the report path and the
verified findings (id, severity, confidence, CWE, standard reference, file:line, evidence,
exploit scenario, recommendation, re-test check) to the caller, which decides who fixes them.
Dependencies and lockfiles → dependency-audit; single-package CVE lookups → cve-research; JWT/session/OAuth/password flows → auth-audit; HTTP headers, CSP, CORS → security-headers; AI-agent configuration (hooks, MCP, skills) → agentic-security.
references/graphql-security.md (opens in a new tab)references/owasp-top10.md (opens in a new tab)references/sast-tools.md (opens in a new tab)references/scan-patterns-extra.md (opens in a new tab)references/scan-patterns-other.md (opens in a new tab)references/scan-patterns-php.md (opens in a new tab)references/scan-patterns.md (opens in a new tab)references/secrets-patterns.md (opens in a new tab)references/templates/scan-report.md (opens in a new tab)references/triage.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/agentic-securityUse when auditing the security of an AI-coding-agent setup in a repository: Claude Code project settings and hooks, plugin manifests and hooks.json, .mcp.json and MCP servers, skills, agents and rule files, permission rules, secrets in agent configuration, and CI workflows that run an AI agent on pull requests. Do NOT use for application code vulnerabilities (use security-scan), dependency CVEs (use dependency-audit or cve-research), auth flows (use auth-audit) or HTTP headers (use security-headers)./auth-auditUse when auditing authentication (JWT, sessions, cookies, OAuth2/OIDC/PKCE, password storage, MFA, account recovery) or authorization (BOLA/IDOR, mass assignment, function-level checks, tenant isolation) in web, API or iOS code./cve-researchUse when checking a specific dependency or package version for known CVEs and security advisories (OSV, GitHub Advisory, NVD), with CVSS, CWE and reachability verification before anything is reported as a finding./dependency-auditUse when auditing a project's dependency tree for known vulnerabilities and supply-chain risks (bun/npm/pnpm/yarn, Composer, Cargo, Go modules, SwiftPM, pip, Bundler) and its GitHub Actions workflows. Read-only: reports findings, lists fix commands as options, never applies them./security-headersUse when auditing HTTP security headers (CSP with nonce/hash and strict-dynamic, HSTS, frame-ancestors, Referrer-Policy, Permissions-Policy, COOP/COEP/CORP), cookie attributes or CORS — in code (Next.js, Laravel, Astro, TanStack Start, Express, Django) or live on a URL the owner names.npx claudepluginhub fusengine/claude-plugins --plugin fuse-securityOther plugins' skills for the same job