Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

security-audit

БесплатноЗапускает вложенные скриптыНе проверен

Audit a codebase for application, API, dependency, secret, and configuration vulnerabilities when the user requests a security review or vulnerability…

mswellот mswell★ 74 звезды на GitHub44 установки в других каталогах

Об этом скилле

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:

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

Полный SKILL.md на GitHub

Установить security-audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

install.shreferences/api-security-checklist.mdreferences/business-logic-checklist.mdreferences/cwe-mapping.mdreferences/report-templates.mdreferences/secrets-patterns.mdreferences/stride-methodology.mdreferences/vulnerability-patterns.mdscripts/analyze_dependencies.pyscripts/detect_project.pyscripts/generate_report.pyscripts/scan_secrets.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить security-audit с