К основному содержанию
скилл CX Codex

ghost-scan-deps — скилл для Claude Code: что делает и как установить

Скилл запускает аудит зависимостей проекта по файлам блокировок, находит уязвимости с CVE и готовит отчёт с оценкой риска и шагами по исправлению.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add ghostsecurity/skills --skill ghost-scan-deps -a claude-code
npx skills add ghostsecurity/skills --skill scan-deps -a claude-code
Открыть на GitHub

Что делает ghost-scan-deps

ghost-scan-deps работает как оркестратор для проверки зависимостей через Software Composition Analysis (SCA). Скилл ищет файлы блокировок вроде package-lock.json, yarn.lock, go.mod или Gemfile.lock. После этого он проверяет сторонние компоненты на известные CVE.

Процесс разбит на шаги и выполняется через субагентов инструмента Task. Сначала инициализируется локальный бинарник wraith, затем отдельный агент находит локфайлы и сканирует их. Для найденных кандидатов запускаются параллельные анализаторы, которые оценивают реальную эксплуатируемость каждой угрозы и сохраняют отчёты в директорию ~/.ghost/repos/.

Скиллу нужен доступ к Bash для настройки каталогов и установки утилиты wraith. Если в репозитории нет поддерживаемых локфайлов, оркестратор сразу перейдёт к итоговому шагу и завершит работу без сканирования.

Какие задачи решает

  • найти уязвимые библиотеки и CVE в файлах блокировок проекта
  • оценить эксплуатируемость найденных уязвимостей в кодовой базе
  • сформировать отчёт с уровнями критичности и рекомендациями по исправлению
  • проверить безопасность package-lock.json, yarn.lock, go.mod или Gemfile.lock

Примеры запросов агенту

  • Проверь зависимости проекта на уязвимости и покажи найденные CVE
  • Запусти аудит безопасности для lockfile в текущем репозитории
  • ghost-scan-deps: проверь package-lock.json и оцени критичность угроз

Как установить ghost-scan-deps

1Через Skills CLI (Vercel)

npx skills add ghostsecurity/skills --skill ghost-scan-deps -a claude-code
npx skills add ghostsecurity/skills --skill scan-deps -a claude-code

2Вручную: положить файлы

~/.claude/skills/scan-deps/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/scan-deps/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора7

ghost-scan-code Ищет уязвимости в исходниках: SQL-инъекции, XSS, SSRF и другие категории OWASP. Планирует проверки, потом прогоняет их по проекту. CX Codex +1 5 200установок ghost-scan-secrets Ищет утёкшие API-ключи, токены и пароли в кодовой базе проекта. Пригодится перед коммитом или при аудите репозитория на скрытые секреты. CX Codex +1 4 400установок ghost-repo-context Сканирует кодовую базу, находит проекты и записывает карту архитектуры в repo.md. Нужен перед анализом безопасности или знакомством с новым репозиторием. CX Codex +1 3 800установок ghost-report Собирает находки всех сканирующих скиллов Ghost Security в один отчёт по риску и уверенности. Пригодится перед релизом или аудитом. CX Codex +1 3 800установок ghost-validate Проверяет отчёты сканеров безопасности и отделяет ложные срабатывания от реальных уязвимостей. Анализирует код, проверяет маршруты и при доступности тестирует эндпоинты. CX Codex +1 3 800установок ghost-exo Маршрутизирует запросы к платформе exo: создаёт цепочки агентов, улучшает их по прошлым запускам и находит сбои. CX Codex +1 947установок

Похожие

dependency-scan jwynia Скилл проверяет зависимости проекта на известные уязвимости и предлагает обновления до пропатченных версий. Пригодится перед релизом или когда нужно быстро оценить чужой репозиторий. CX Codex +1 355установок dependencies-audit cognitedata Скилл находит уязвимости, устаревшие и заброшенные пакеты, проблемы с лицензиями и чинит их, а не просто составляет отчёт. CX Codex +1 1 900установок dependency-check ruvnet Сканирует зависимости проекта на известные уязвимости и CVE. Запускается перед релизом, после изменения lockfile или при расследовании Advisory. CX Codex +1 748установок rust-deps-visualizer actionbook Рисует дерево зависимостей Rust-проекта символами ASCII. Пригодится, когда нужно быстро понять, что тянет за собой ваш Cargo.toml. CX Codex +1 3 000установок deps-upgrade Seth Hobson Планирует и выполняет поэтапное обновление зависимостей проекта: оценивает риски, ищет ломающие изменения и подсказывает путь миграции. CX Codex ★ 41 729звёзд репо audit-integrity официальный github Проверяет доказательства уязвимостей, запрещает замалчивать находки и оценивает отчёт по шкале качества от 8 из 10. Пригодится при SAST, SCA и аудите кода. 202установок

Рядом в теме «Безопасность»

Всё по теме «Безопасность» →

Вопросы о ghost-scan-deps

Как установить ghost-scan-deps в Claude Code?

Выполните команду npx skills add ghostsecurity/skills --skill ghost-scan-deps -a claude-code в терминале.

Что делает скилл ghost-scan-deps?

Он находит файлы зависимостей вроде go.mod или package-lock.json, запускает сканер wraith и проверяет пакеты на CVE. На выходе получается отчёт с оценкой возможности эксплуатации и инструкциями по устранению.

Какие утилиты нужны для работы сканера?

Скилл использует бинарник wraith, который субагент инициализации сам скачивает в ~/.ghost/bin/wraith (или wraith.exe на Windows).

Исходный текст

SKILL.md · Apache-2.0
---
name: "ghost-scan-deps"
description: |
  Ghost Security - Software Composition Analysis (SCA) scanner. Scans dependency lockfiles for known vulnerabilities, identifies CVEs, and generates findings with severity levels and remediation guidance. Use when the user asks about dependency vulnerabilities, vulnerable packages, CVE checks, security audits of dependencies, or wants to scan lockfiles like package-lock.json, yarn.lock, go.mod, or Gemfile.lock.
allowed-tools: Read, Glob, Grep, Bash, Task, TodoRead, TodoWrite
argument-hint: "[path-to-scan]"
license: apache-2.0
metadata:
  version: 1.1.0
---

# Ghost Security SCA Scanner — Orchestrator

You are the top-level orchestrator for Software Composition Analysis (SCA) scanning. Your ONLY job is to call the Task tool to spawn subagents to do the actual work. Each step below gives you the exact Task tool parameters to use. Do not do the work yourself.

## Defaults

- **repo_path**: the current working directory
- **scan_dir**: `~/.ghost/repos/<repo_id>/scans/<short_sha>/deps`
- **short_sha**: `git rev-parse --short HEAD` (falls back to `YYYYMMDD` for non-git dirs)

$ARGUMENTS

Any values provided above override the defaults.

---

## Execution

1. **Setup** — compute paths and create output directories
2. **Initialize Wraith** — install the wraith binary
3. **Discover Lockfiles** — find all dependency lockfiles in the repo
4. **Scan for Vulnerabilities** — run wraith against each lockfile
5. **Analyze Candidates** — assess exploitability of each candidate
6. **Summarize Results** — generate the final scan report

### Step 0: Setup

Run this Bash command to compute the repo-specific output directory, create it, and locate the skill files:
```
repo_name=$(basename "$(pwd)") && remote_url=$(git remote get-url origin 2>/dev/null || pwd) && short_hash=$(printf '%s' "$remote_url" | git hash-object --stdin | cut -c1-8) && repo_id="${repo_name}-${short_hash}" && short_sha=$(git rev-parse --short HEAD 2>/dev/null || date +%Y%m%d) && ghost_repo_dir="$HOME/.ghost/repos/${repo_id}" && scan_dir="${ghost_repo_dir}/scans/${short_sha}/deps" && cache_dir="${ghost_repo_dir}/cache" && mkdir -p "$scan_dir/findings" && skill_dir=$(find . -path '*skills/scan-deps/SKILL.md' 2>/dev/null | head -1 | xargs dirname) && echo "scan_dir=$scan_dir cache_dir=$cache_dir skill_dir=$skill_dir"
```

Store `scan_dir` (the absolute path under `~/.ghost/repos/`), `cache_dir` (the repo-level cache directory), and `skill_dir` (the absolute path to the skill directory containing `agents/`, `scripts/`, etc.).

After this step, your only remaining tool is Task. Do not use Bash, Read, Grep, Glob, or any other tool for Steps 1–5.

### Step 1: Initialize Wraith

Call the Task tool to initialize the wraith binary:
```json
{
  "description": "Initialize wraith binary",
  "subagent_type": "general-purpose",
  "prompt": "You are the init agent. Read and follow the instructions in <skill_dir>/agents/init/agent.md.\n\n## Inputs\n- skill_dir: <skill_dir>"
}
```

The init agent installs wraith to `~/.ghost/bin/wraith` (or `wraith.exe` on Windows).

### Step 2: Discover Lockfiles

Call the Task tool to discover lockfiles in the repository:
```json
{
  "description": "Discover lockfiles",
  "subagent_type": "general-purpose",
  "prompt": "You are the discover agent. Read and follow the instructions in <skill_dir>/agents/discover/agent.md.\n\n## Inputs\n- repo_path: <repo_path>\n- scan_dir: <scan_dir>"
}
```

The discover agent finds all lockfiles (go.mod, package-lock.json, etc.) and writes `<scan_dir>/lockfiles.json`.

**If lockfile count is 0**: Skip to Step 5 (Summarize) with no lockfiles found.

### Step 3: Scan for Vulnerabilities

Call the Task tool to run the wraith scanner:
```json
{
  "description": "Scan for vulnerabilities",
  "subagent_type": "general-purpose",
  "prompt": "You are the scan agent. Read and follow the instructions in <skill_dir>/agents/scan/agent.md.\n\n## Inputs\n- repo_path: <repo_path>\n- scan_dir: <scan_dir>"
}
```

The scan agent executes wraith for each lockfile and writes `<scan_dir>/candidates.json`.

**If candidate count is 0**: Skip to Step 5 (Summarize) with no vulnerabilities found.

### Step 4: Analyze Candidates

Call the Task tool to analyze the vulnerability candidates:
```json
{
  "description": "Analyze vulnerability candidates",
  "subagent_type": "general-purpose",
  "prompt": "You are the analysis agent. Read and follow the instructions in <skill_dir>/agents/analyze/agent.md.\n\n## Inputs\n- repo_path: <repo_path>\n- scan_dir: <scan_dir>\n- skill_dir: <skill_dir>\n- cache_dir: <cache_dir>"
}
```

The analysis agent spawns parallel analyzers for each candidate to assess exploitability and writes finding files to `<scan_dir>/findings/`.

### Step 5: Summarize Results

Call the Task tool to summarize the findings:
```json
{
  "description": "Summarize scan results",
  "subagent_type": "general-purpose",
  "prompt": "You are the summarize agent. Read and follow the instructions in <skill_dir>/agents/summarize/agent.md.\n\n## Inputs\n- repo_path: <repo_path>\n- scan_dir: <scan_dir>\n- skill_dir: <skill_dir>\n- cache_dir: <cache_dir>"
}
```

After executing all the tasks, report the scan results to the user.

---

## Error Handling

If any Task call fails, retry it **once**. If it fails again, stop and report the failure.

© ghostsecurity · Apache-2.0 · ghostsecurity/skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой