container-host-checks — скилл для Claude Code: проверка Docker-хоста
Скилл container-host-checks для Claude Code разбирает подозрительные события на хосте Docker или Podman. Проверяет новые и привилегированные контейнеры, открытые порты и признаки выхода на хост.
Apache-2.0 ★ 71 обновлён 2026-11-15
npx skills add Problem99-io/kodeblue --skill container-host-checks -a claude-codeЧто делает container-host-checks
Скилл исследует настройки контейнеров, журналы Docker и процессы на хосте. Он проверяет привилегии, подключённые каталоги, сетевой и PID-режимы, добавленные capabilities и соответствие образа ожидаемой роли. Для поиска майнеров используется docker stats, для проверки публичных портов — docker port.
Скилл также ищет следы выхода из контейнера: новые файлы в /etc/cron.d или /root/.ssh и процессы хоста с родителем containerd-shim. В режиме sidecar kodeblue может не видеть файловую систему контейнера и не иметь доступа к docker, journalctl или dmesg; тогда сведения о перезапусках и завершениях нужно запросить у оператора. Для проверки требуются доступ к Docker или Podman и команды host_exec, host_list и host_read, если они доступны в окружении.
Какие задачи решает
- найти новые контейнеры и проверить их привилегии
- обнаружить контейнеры с неожиданными публичными портами
- проверить контейнеры на признаки майнинга
- выявить следы выхода контейнера на хост
- разобрать перезапуски и завершения контейнера по доступным данным
Примеры запросов агенту
- Проверь новый контейнер на хосте и выясни, какие права и каталоги ему доступны.
- Найди контейнеры с открытыми наружу портами, которых нет в профиле.
- Проверь хост на признаки выхода из контейнера и майнинга.
Как установить container-host-checks
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill container-host-checks -a claude-code2Вручную: положить файлы
~/.claude/skills/container-host-checks/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/container-host-checks/
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill container-host-checks -a codex2Вручную: положить файлы
.agents/skills/container-host-checks/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill container-host-checks -a cursor2Вручную: положить файлы
.cursor/skills/container-host-checks/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Problem99-io/kodeblue blue/skills/container-host-checks2Вручную: положить файлы
.github/skills/container-host-checks/SKILL.md1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill container-host-checks -a gemini-cli2Командой платформы
gemini skills install https://github.com/Problem99-io/kodeblue --path blue/skills/container-host-checksВручную: положить файлы
.devin/skills/container-host-checks/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о container-host-checks
Как установить container-host-checks в Claude Code?
Выполни npx skills add Problem99-io/kodeblue --skill container-host-checks -a claude-code. Файл скилла находится по пути ~/.claude/skills/container-host-checks/SKILL.md.
Что делает container-host-checks?
Скилл исследует контейнеры Docker или Podman на хосте: проверяет права, монтирования, порты и признаки майнинга или выхода из контейнера. Также анализирует связанные процессы и журналы, если среда даёт к ним доступ.
Что нужно для работы container-host-checks?
Нужен доступ к хосту Docker или Podman. Для проверок используются host_exec; в режиме sidecar для чтения файлов также нужны host_list и host_read, если они доступны.
Исходный текст
SKILL.md · Apache-2.0
---
name: container-host-checks
description: Investigate container-related findings on a Docker/Podman host — new containers, privileged containers, exposed ports, escapes.
metadata:
kodeblue-bundled: true
---
# Container host checks
- New container: run `host_exec ["docker","inspect","<name>"]` and check `Image`, `Config.Cmd`, `HostConfig.Privileged`, `HostConfig.Binds` (a mount of `/`, `/etc`, `/root` or `/var/run/docker.sock` is a host-takeover risk), `HostConfig.NetworkMode` (`host`), `HostConfig.PidMode`, `CapAdd`.
- Is the image from the registry the server-role definition expects? Check `["docker","images"]` for creation time.
- Miners often run as containers: `["docker","stats","--no-stream"]` shows sustained CPU.
- A container listening publicly on a port not in the profile should be checked with `["docker","port","<name>"]`.
- Who started it: `journalctl -u docker --since <created> --no-pager`. Check who was logged in then and whether they are in the docker group (docker group membership is effectively root).
- Escape signs on the host: new files in `/etc/cron.d` or `/root/.ssh` written at container start time, or new processes on the host whose parent is `containerd-shim`. For a suspected escape, load `container-breakout-detection`: routes out, host-side traces, response and monitors.
## When kodeblue runs beside the workload (sidecar, pod, no runtime CLI)
kodeblue may share a container's process and network namespaces without seeing
its filesystem or having `docker`, `journalctl` or `dmesg`. `sensor_coverage`
says which sensors are blind there.
- Reach the workload's files as it sees them: `host_list` and `host_read` on
`/proc/<pid>/root/…` (its `/tmp`, `/etc/passwd`, app directory). PID 1 may be
the pod's pause process, not the app, so use the app's PID, never
`/proc/1/root`, and in monitors write `{pid:<exe>}`.
- A parent PID of 0 means the runtime supervises the process from outside the
namespace. That is normal, and so is a new PID after a restart.
- Restarting a container keeps its writable layer: tampered files survive it.
Recovery from a compromise is recreating the container from its image.
- `block_ip` acts in the shared network namespace. When the pod is recreated,
its namespace and the rule are gone (see `containment-verification`).
- What happened to the container (exit codes, OOM kills, restarts) lives with
the runtime. When kodeblue cannot see it, say so and ask the operator (see
`service-restart-forensics`).
© Problem99-io · Apache-2.0 · Problem99-io/kodeblue