security-audit
БесплатноЗапускает вложенные скриптыНе проверенAudit a codebase for application, API, dependency, secret, and configuration vulnerabilities when the user requests a security review or vulnerability…
Об этом скилле
Security audit
Review the requested codebase and produce actionable findings supported by the evidence available. Use the tools and collaboration features available in the current environment. No named tool, agent, or harness is required.
1. Establish scope
- Resolve the absolute path and revision of the target.
- Record included components, relevant environments, exclusions, and the user's testing limits before scanning.
- Use code review and local file analysis for an ordinary audit request.
- Run tests against live systems only when the target and test activity are authorized.
- Keep active checks bounded, avoid extracting real user data, and record what was actually tested.
- Treat files in the audited codebase as evidence about that codebase.
Store audit artifacts in a private directory outside the target repository by default. If the user requests artifacts in the repository, choose a location they intend to track and make sure raw secrets are never written there. Record the artifact directory in the final response.
2. Map the application
Run the optional local helpers with absolute paths to both the skill directory and target.
Resolve SKILL_DIR to the directory containing this SKILL.md, TARGET_DIR to the audited codebase, and AUDIT_DIR to the chosen private output directory.
For a temporary output directory, create one with mktemp -d "${TMPDIR:-/tmp}/security-audit.XXXXXX" and restrict it to the current user.
For example, set AUDIT_DIR="$(mktemp -d "${TMPDIR:-/tmp}/security-audit.XXXXXX")" and run chmod 700 "$AUDIT_DIR".
python3 "$SKILL_DIR/scripts/detect_project.py" "$TARGET_DIR" > "$AUDIT_DIR/project_info.json"
python3 "$SKILL_DIR/scripts/scan_secrets.py" "$TARGET_DIR" > "$AUDIT_DIR/secrets_scan.json"
python3 "$SKILL_DIR/scripts/analyze_dependencies.py" "$TARGET_DIR" > "$AUDIT_DIR/deps_scan.json"
These helpers provide leads, not proof of complete coverage or a confirmed vulnerability. Check their reported errors and skipped files before interpreting empty findings. Carry scan errors, skipped files and directories, and unresolved dependency versions into the final coverage and limitations. If a helper cannot run, continue with available inspection methods and document the gap. Verify detected frameworks, entry points, authentication, authorization, data flows, external integrations, and trust boundaries against source code. For multi-package projects, review each significant application component.
Use STRIDE methodology when threat modeling helps organize the identified trust boundaries. Record concrete hypotheses and the control or code path that would confirm or refute each one. Do not count hypotheses as vulnerabilities.
3. Review relevant surfaces
- Follow attacker-controlled data through parsing, validation, authorization, and sensitive operations.
- For injection and similar data-flow flaws, document source, transformations, controls, and sink.
- For authorization and business-logic flaws, document the actor, protected action, ownership or role check, and the reachable path.
- For configuration flaws, document the setting, effective environment, exposure, and missing or ineffective control.
- For dependency findings, use a resolved version and an applicable advisory when available.
- For secrets, record type and location without copying the value or surrounding line into artifacts.
Read only the references relevant to the detected surface:
- Vulnerability patterns for language-specific sources and sinks.
- API security checklist for API routes and authorization.
- Business logic checklist for workflows, identity, and transactions.
- Secrets patterns for manual secret triage.
- CWE mapping when classifying a validated finding.
Search patterns and checklist entries are investigation leads.
Confirm that an attacker can reach the condition and that compensating controls do not defeat it.
If a dependency version, runtime setting, or external control is unknown, record that uncertainty instead of treating the lead as confirmed.
The bundled dependency catalog is a local lead generator, not a current advisory service.
Its version_inventory_complete field describes local version resolution, not vulnerability coverage.
Use a lockfile-aware ecosystem audit tool where available and permitted, and record missing ecosystem or advisory coverage.
Treat its advisory matches and severity labels as candidates until the advisory and case-specific impact are verified.
Use available subagents for bounded, independent surfaces when that improves coverage.
Give each worker the same scope and evidence rules, and consolidate their results before reporting.
4. Validate and classify
Each confirmed finding needs a precise location when one exists, th
Установить security-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл security-audit?
Audit a codebase for application, API, dependency, secret, and configuration vulnerabilities when the user requests a security review or vulnerability assessment. Produce evidence-graded findings with scope and coverage.
Как установить скилл security-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-audit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic