containment-verification — скилл для Claude Code
Скилл containment-verification для Claude Code проверяет на хосте результат защитных действий kodeblue после блокировки IP, завершения процессов, изоляции файлов или остановки служб.
Apache-2.0 ★ 71 обновлён 2026-11-15
npx skills add Problem99-io/kodeblue --skill containment-verification -a claude-codeЧто делает containment-verification
Скилл запускает инспекцию хоста сразу после защитных мер. Статус done от модуля реагирования подтверждает только выполнение команды, но не изоляцию атаки. Скилл сверяет таблицы iptables или nftables, контролирует исчезновение PID в выводе ps, проверяет каталоги через host_list и опрашивает статус юнитов через systemctl is-active.
Инструмент учитывает границы доступности мер. Правило block_ip действует только в сетевом пространстве имен kodeblue: при перезапуске пода сетевой неймспейс пересоздаётся, поэтому правило сбрасывается. Завершение процесса kill_process под супервизором не очищает полезную нагрузку во внешнем хранилище или записываемом слое контейнера, а карантин файлов не закрывает уязвимость загрузки.
Если действие не удержало изоляцию или цель лежит в другом неймспейсе, скилл требует передать отчёт и алерт человеку. Дополнительно настраивается наблюдение за логами запросов и целевыми директориями хоста.
Какие задачи решает
- проверить наличие правил DROP в iptables и nftables после вызова block_ip
- убедиться в завершении вредоносного процесса и отсутствии его перезапуска супервизором
- проконтролировать удаление подозрительного файла из каталога через host_list
- отследить статус остановленной службы через systemctl is-active
- сформировать эскалацию для человека при сбросе блокировки после перезапуска пода
Примеры запросов агенту
- Проверь через containment-verification, сработала ли блокировка IP 198.51.100.24 в iptables
- Убедись, что процесс после kill_process не перезапущен супервизором и отсутствует в выводе ps
- Проверь статус службы worker.service через systemctl после вызова stop_unit
Как установить containment-verification
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill containment-verification -a claude-code2Вручную: положить файлы
~/.claude/skills/containment-verification/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/containment-verification/
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill containment-verification -a codex2Вручную: положить файлы
.agents/skills/containment-verification/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill containment-verification -a cursor2Вручную: положить файлы
.cursor/skills/containment-verification/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Problem99-io/kodeblue blue/skills/containment-verification2Вручную: положить файлы
.github/skills/containment-verification/SKILL.md1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill containment-verification -a gemini-cli2Командой платформы
gemini skills install https://github.com/Problem99-io/kodeblue --path blue/skills/containment-verificationВручную: положить файлы
.devin/skills/containment-verification/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о containment-verification
Как установить containment-verification в Claude Code?
Выполните команду npx skills add Problem99-io/kodeblue --skill containment-verification -a claude-code в терминале проекта.
Что делает containment-verification?
Скилл проверяет реальный эффект действий реагирования на хосте: читает правила межсетевого экрана, сверяет список процессов, контролирует отсутствие изолированных файлов и статус юнитов systemd.
В каких случаях правила block_ip перестают действовать?
Блокировка работает в сетевом пространстве имён kodeblue. Если защищаемый сервис запущен в поде, чей неймспейс пересоздаётся при перезапуске, правило сбрасывается вместе с ним.
Исходный текст
SKILL.md · Apache-2.0
--- name: containment-verification description: After any respond action — block_ip, kill_process, quarantine_file, stop_unit — check on the host that it took effect and still holds, know what each action cannot reach, and escalate when it does not hold. metadata: kodeblue-bundled: true --- # Did the containment work? `respond` reporting `done` means the action ran, not that the attacker is cut off. Check the effect on the host every time, and again when the situation changes (a restart, the attacker returning). | Action | Check that it holds | |---|---| | `block_ip` | `host_exec ["iptables","-L","INPUT","-n","-v"]` (or `["nft","list","ruleset"]`) shows the DROP rule; the client stops appearing in the request log after the block time; its packet counter rises if it keeps trying | | `kill_process` | `ps` no longer shows the PID; nothing with the same executable and command line came back as a child of the same parent; any supervisor restart is the legitimate service, not the payload (see `service-restart-forensics`) | | `quarantine_file` | `host_list` on the directory: the file is gone and not back under the same or a new name | | `stop_unit` | `systemctl is-active <unit>` is inactive and the unit is not re-enabled by a timer or another unit | ## What each action cannot reach - **`block_ip` works in kodeblue's network namespace.** It protects services that share it. A container with its own network needs a block at the host, network or proxy level. If the service runs in a pod whose network namespace is recreated (the pod restarts), the rule is gone with it. - **`kill_process` on a supervised service** brings back a fresh process. It ends the attacker's running code, but not a payload stored in data, uploads or the container's writable layer. - **`quarantine_file`** removes the file, not the way it got there: the attacker can drop it again through the same upload or exploit. - Nothing kodeblue does removes application-level footholds (accounts, tokens, sessions) or the vulnerability itself. ## When it does not hold - kodeblue re-checks an earlier block or quarantine before it treats a repeat request as done, and acts again when the rule or file is gone. Ask again, then check again. - If it still does not hold, or the action cannot reach the attacker (other network namespace, outside the policy), say so plainly in the report and in an alert: what failed, what you saw, and the block a human must apply instead. - Keep a tripwire: a `log` monitor for the blocked client in the request log, or a fast `file` monitor on the drop directory, so a return is seen in seconds.
© Problem99-io · Apache-2.0 · Problem99-io/kodeblue