miner-and-reverse-shell — скилл для Claude Code: обзор и установка
Скилл miner-and-reverse-shell для Claude Code изолирует майнеры и реверс-шеллы. Срабатывает при всплесках нагрузки процессора, подозрительных сетевых портах и бинарниках в /tmp.
Apache-2.0 ★ 71 обновлён 2026-11-15
npx skills add Problem99-io/kodeblue --skill miner-and-reverse-shell -a claude-codeЧто делает miner-and-reverse-shell
Скилл вычисляет активность майнеров и шеллов по процессам и сетевым соединениям. Он проверяет имена вроде xmrig или kinsing, каталоги /tmp и /dev/shm, а также обращения к портам 3333, 4444 или 5555. Для поиска шеллов проверяются сокеты в /proc/<pid>/fd и запуск утилит вроде nc, socat или однострочников на Python.
Расследование выполняется командами ps, readlink и ss с расчётом sha256sum. Для изоляции угрозы kodeblue сохраняет бинарник для форензики, останавливает процесс через kill_process, отправляет файлы в карантин и блокирует IP пула через block_ip. Главное исправление — поиск родительского процесса или сессии входа в итоговом отчёте.
Какие задачи решает
- остановить скрытый майнер с сохранением бинарника для анализа
- обнаружить реверс-шелл через проверку сокетов в файловых дескрипторах
- изолировать дропнутые скрипты и заблокировать сетевой адрес C2
- найти родительский процесс и механизм автозапуска в cron
Примеры запросов агенту
- Проверь процесс с высокой нагрузкой процессора в
/tmpи найди его родительский PID - Изолируй процесс майнера, заблокируй адрес пула и отправь файл в карантин
Как установить miner-and-reverse-shell
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill miner-and-reverse-shell -a claude-code2Вручную: положить файлы
~/.claude/skills/miner-and-reverse-shell/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/miner-and-reverse-shell/
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill miner-and-reverse-shell -a codex2Вручную: положить файлы
.agents/skills/miner-and-reverse-shell/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill miner-and-reverse-shell -a cursor2Вручную: положить файлы
.cursor/skills/miner-and-reverse-shell/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Problem99-io/kodeblue blue/skills/miner-and-reverse-shell2Вручную: положить файлы
.github/skills/miner-and-reverse-shell/SKILL.md1Через Skills CLI (Vercel)
npx skills add Problem99-io/kodeblue --skill miner-and-reverse-shell -a gemini-cli2Командой платформы
gemini skills install https://github.com/Problem99-io/kodeblue --path blue/skills/miner-and-reverse-shellВручную: положить файлы
.devin/skills/miner-and-reverse-shell/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о miner-and-reverse-shell
Как установить miner-and-reverse-shell в Claude Code?
Выполните команду npx skills add Problem99-io/kodeblue --skill miner-and-reverse-shell -a claude-code.
Что делает miner-and-reverse-shell?
Скилл находит майнеры и интерактивные шеллы, проверяет дерево процессов и сетевые соединения, после чего блокирует активность.
Как скилл реагирует на подтверждённую угрозу?
Сначала сохраняется бинарник для расследования, затем вызываются kill_process, quarantine_file для скриптов запуска и block_ip для адреса пула.
Исходный текст
SKILL.md · Apache-2.0
--- name: miner-and-reverse-shell description: Recognise and contain cryptominers and reverse shells (cpu_hog, outbound.shell, outbound.suspicious_port, process.suspicious_location findings). metadata: kodeblue-bundled: true --- # Miners and reverse shells **Miner indicators:** sustained high CPU from an unpackaged binary; names like `xmrig`, `kdevtmpfsi`, `kinsing`, or random 6–8 character strings; binaries in /tmp, /dev/shm or /var/tmp; outbound connections to 3333, 4444, 5555, 7777, 14444 or 45700; or pool hostnames. These often come with a cron or systemd re-launcher and a killer script for competing miners. **Reverse shell indicators:** `bash -i`, `sh -i`, `nc -e`, `socat exec:`, or python/perl one-liners with socket. stdin and stdout point to a socket: `host_exec ["ls","-l","/proc/<pid>/fd"]` shows `socket:[...]` on fds 0, 1 and 2. The parent is often a web server or a service account. The child may instead be the service's own interpreter (node, python) re-exec'd rather than a named shell, and the callback may have been refused — an attempted outbound to a dead port is still the event. See service-process-exploitation. **Investigate quickly:** 1. `ps -o pid,ppid,user,lstart,cmd -p <pid>`, then walk up the parents. 2. `readlink -f /proc/<pid>/exe` and `sha256sum` of it. 3. `ss -tunap` filtered by the pid to get remote IP and port. 4. Find the re-launcher (see persistence-hunting). **Contain (true_positive):** kill_process (kodeblue preserves the binary for forensics first), quarantine_file for the dropped binary and its launcher script, and block_ip for the C2 or pool IP. Mention in the report how the attacker got in (the parent process, or the login session) — that is the real fix.
© Problem99-io · Apache-2.0 · Problem99-io/kodeblue