In short.
code-vuln-audit is a security scanning skill for developers reviewing their own projects, but a clean report can hide skipped dependency checks. It provides a Python command-line helper that delegates dependency checks to npm audit and pip-audit, searches for possible secrets and flags selected security-related code patterns. The implementation uses line-based matching rather than program analysis, and several dependency failure paths return no findings without recording incomplete coverage in the report. It is suitable for preliminary triage with manual follow-up. Nothing was executed; runtime correctness, detection accuracy and performance are unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied skills/code-vuln-audit folder: SKILL.md, scripts/security_scan.py and LICENSE, plus the repository-level LICENSE, all at commit c8f12ba31081ce52578dea413c74789ab5437829. Other repository content, external audit-tool implementations and services, assistant-host configuration and later revisions are outside this scope. No code or commands were executed. Installation success, runtime compatibility, real-project coverage, detection accuracy and performance remain unassessed.
The overview
Identity
code-vuln-audit is an assistant skill in zebbern/claude-code-guide, comprising SKILL.md, scripts/security_scan.py and a local MIT licence. Its instructions describe when an assistant should use the scanner, while the helper can also be invoked directly from a terminal.
The original resource is available at [https://github.com/zebbern/claude-code-guide/tree/main/skills/code-vuln-audit]. The source described here is commit c8f12ba31081ce52578dea413c74789ab5437829.
Assessment
The useful feature is a single interface for three common review tasks, with readable findings, JSON output and severity filtering. Developers can inspect the rules and helper without needing an additional Python library for the local pattern checks.
The central reliability problem is incomplete dependency coverage appearing as an empty result. Missing tools or an npm lockfile, and caught audit failures, return empty finding lists. The final report records requested modules rather than their completion status, and exit code 0 means only that no findings remain after filtering.
Users
The skill suits developers who want a preliminary review of their own source tree and can investigate each alert. Beginners get one command for several checks; experienced developers get inspectable rules and structured output that could support further processing.
Teams needing dependable CI failure reporting, verified dependency coverage or evidence of exploitability would need additional controls. The supplied scanner does not establish those guarantees.
Capabilities
The command supports all, deps, secrets and owasp modes. Dependency mode invokes npm audit for a target containing package.json and package-lock.json, and invokes pip-audit when Python project markers are present.
Secret checks cover patterns such as AWS keys, GitHub tokens, private-key headers, credential-bearing URLs and named password assignments. An additional entropy check looks for sufficiently varied strings in credential-related assignments.
The security-pattern rules flag selected SQL, command and HTML injection patterns, weak cryptography, path traversal, configuration issues, deserialization and possible server-side request forgery. Output options include text or JSON, file output, minimum severity, additional excluded directory names and a configurable file-size limit.
Using it
Requirements
The guide specifies Python 3.7 or later, and the helper imports only Python standard-library modules. Runtime compatibility was not verified. Dependency checks additionally require npm or pip-audit to be discoverable on PATH; supported versions of those tools are unspecified.
The helper needs a readable target directory and permission to write the chosen report destination. Direct invocation contains no model or assistant API integration. Secrets and OWASP modes read local files; dependency mode delegates to external programs whose service access and data handling are not established by these files.
Mechanism
Secret and OWASP scanning walk the target directory recursively and inspect individual lines. OWASP rules are restricted by filename language tags. There is no syntax tree, tracking of values through the program or determination that an attacker controls a matched expression.
Entropy detection requires a quoted value of at least 20 characters, Shannon entropy greater than 4.5 and a matching credential-related assignment context. This is narrower than scanning every string constant for randomness.
Findings contain the scanner, rule name, severity, file, line, source snippet and category. They are deduplicated by file, line and rule name, then filtered by severity. Python dependency findings are assigned high severity unless their description contains the word critical; these labels are not independently established vulnerability scores.
Setup
Obtain the skill files from the pinned source folder at [https://github.com/zebbern/claude-code-guide/tree/c8f12ba31081ce52578dea413c74789ab5437829/skills/code-vuln-audit], preserving the scripts/security_scan.py path beside SKILL.md and the local licence. The supplied files do not establish an assistant-specific installation directory or registration procedure.
For direct use, invoke python3 /path/to/code-vuln-audit/scripts/security_scan.py /path/to/project. An explicit target avoids accidentally scanning the current working directory. For dependency mode, check that the relevant external tool is available and inspect stderr for skipped checks or failures.
Example
A secrets-only JSON report can be requested with: python3 /path/to/code-vuln-audit/scripts/security_scan.py --mode secrets --format json --output secrets-report.json /path/to/project.
The implementation constructs JSON containing the target, UTC timestamp, requested modules, findings and severity counts. Each finding includes a source location and snippet for investigation. This command is illustrative; no execution result is available.
Report snippets contain up to 200 characters of the original source line without redaction. A secrets report can therefore contain the credentials it identifies and should be handled accordingly.
Assessment & evidence
Limitations
Line-based rules can miss multiline expressions and vulnerabilities requiring context, and can flag legitimate code. For example, the Python SQL rule can flag an execute call merely because its SQL string contains %s, without checking whether parameters are passed separately.
Go is advertised in the guide and recognized in the extension table, but no supplied OWASP rule targets Go. Recognizing a file extension does not establish security-rule coverage for that language.
The walker skips every hidden directory, listed dependency and build directories, selected file extensions and files larger than 512 KiB by default. File-access failures can silently omit content. It scans working-tree files rather than Git history.
Dependency discovery checks only the target directory. For Python projects without requirements.txt, the helper passes no manifest argument to pip-audit, so detecting pyproject.toml, Pipfile, setup.py or setup.cfg does not establish that the declared project dependencies were audited.
External audit return codes are not checked. The guide describes exit code 2 as an internal error, while the implementation explicitly uses it for an invalid target directory; caught dependency failures can still produce exit code 0. No detection-accuracy benchmark or runtime test evidence is supplied.
Reasoning
The resource offers convenience through one small helper that combines external dependency audits with readable local rules. Its source makes the detection logic and report format available for inspection.
That convenience comes with limited context and incomplete failure reporting. The supported role is preliminary triage: investigate alerts, verify which checks completed and use further review where the consequences of a missed vulnerability matter.
Alternatives
For dependency-only work, invoking npm audit or pip-audit directly exposes the external tool's own output rather than this helper's reduced finding format. Both commands are already used by the resource; their full capabilities, current versions and runtime behavior were not assessed here.
Requirements such as tracing attacker-controlled values through code, reviewing Git history or confirming exploitability need capabilities beyond the supplied implementation. The evidence does not support a benchmark or product comparison for those needs.
Evidence
The available source covers SKILL.md, the complete scripts/security_scan.py helper and the skill-local LICENSE at commit c8f12ba31081ce52578dea413c74789ab5437829, together with the repository-level LICENSE. Claims about behavior follow the visible implementation; the guide's sample output is illustrative.
The original helper is available at [https://raw.githubusercontent.com/zebbern/claude-code-guide/c8f12ba31081ce52578dea413c74789ab5437829/skills/code-vuln-audit/scripts/security_scan.py]. No tests, benchmark results, actual scan reports or verified assistant installation records are included.
Access & freshness
Costs
No price, subscription schedule or operating-cost estimate is stated. Total cost is unknown.
The supplied helper contains no model API calls or billing integration. Any assistant-host charges, external audit-service charges and local computing costs are not established by the evidence. No scan duration or resource-usage measurements are available.
Rights
Both supplied notices use the MIT License, permitting use, modification and redistribution, including commercial distribution, provided the copyright and permission notices accompany copies or substantial portions.
The skill-local notice credits 2026 security-scanner contributors; the repository notice credits 2025 zebbern. Preserve both notices when redistributing these captured files. The software is supplied without warranty, including any warranty of fitness for a particular purpose.
Freshness
The source snapshot was captured on 2026-11-16 at 13:36:38.126 UTC and identifies commit c8f12ba31081ce52578dea413c74789ab5437829. That capture time does not establish a release date or the date of the last substantive update.
Changes after that commit are unknown. Local detection patterns are fixed in the helper, while dependency results depend on the external audit tools and information they access when invoked. Compatibility with current external output formats remains unverified.
Actions
Before relying on results, confirm the target directory, required audit tools, npm lockfile and the Python dependency input actually passed to pip-audit. For repositories with multiple projects, account separately for each dependency root.
Review stderr alongside the report, inspect coverage exclusions and investigate alerts before treating them as vulnerabilities. Protect reports containing source snippets. If integrating the helper into automation, add explicit completion checks for dependency audits and account for severity filtering; exit code 0 alone cannot establish a complete or clean security review.
