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

service-process-exploitation — скилл для Claude Code: установка

Скилл service-process-exploitation для Claude Code помогает искать выполнение кода внутри процесса легитимного сервиса. Он разбирает дочерние процессы, исходящие соединения и изменения файлов.

Apache-2.0 ★ 71 обновлён 2026-11-15

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

Что делает service-process-exploitation

Скилл помогает расследовать эксплуатацию, при которой чужой код выполняется от имени работающего веб-сервиса. Он предлагает искать запуск дочерних процессов, в том числе повторный запуск того же интерпретатора, неожиданные исходящие соединения и новые файлы в каталогах, доступных сервису для записи.

Проверка охватывает и случаи без дочернего процесса: скилл предлагает отслеживать изменения кода, шаблонов и других статических файлов, отделяя их от штатных записей при запуске приложения. Снимок процессов может пропустить короткую команду, поэтому в расследовании также рассматриваются журналы запросов и соединений. Для установки в Claude Code нужна команда npx skills add Problem99-io/kodeblue --skill service-process-exploitation -a claude-code.

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

  • найти дочерний процесс, запущенный сетевым сервисом
  • обнаружить исходящее соединение за пределами обычных адресов сервиса
  • выявить новые файлы в доступном для записи веб-каталоге
  • отличить изменение статических файлов от записей при запуске приложения

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

  • Проведи расследование возможной эксплуатации внутри процесса веб-сервиса.
  • Проверь, какие дочерние процессы запускал сервис и куда он подключался.
  • Найди изменения файлов сервиса, которые не объясняются его запуском.

Как установить service-process-exploitation

1Через Skills CLI (Vercel)

npx skills add Problem99-io/kodeblue --skill service-process-exploitation -a claude-code

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

~/.claude/skills/service-process-exploitation/SKILL.md

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

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

Вопросы о service-process-exploitation

Как установить service-process-exploitation в Claude Code?

Выполни npx skills add Problem99-io/kodeblue --skill service-process-exploitation -a claude-code. Файл скилла находится по пути ~/.claude/skills/service-process-exploitation/SKILL.md.

Что делает service-process-exploitation?

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

Почему снимок процессов может не показать запуск команды?

Короткоживущий дочерний процесс может завершиться до следующего снимка. Скилл предлагает сопоставлять журналы запросов и соединений, а также искать оставшиеся изменения файлов.

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

SKILL.md · Apache-2.0
---
name: service-process-exploitation
description: Detect exploitation that runs INSIDE a legitimate service process — web-app RCE, unsafe deserialization, template/expression injection, interpreter abuse — where the attacker's code masquerades as the normal service and may drop nothing or start no child at all.
metadata:
  kodeblue-bundled: true
---

# In-process service exploitation (living off the land)

A whole class of compromise never spawns an obvious shell, drops no binary, and
may never complete an outbound connection. The attacker gets code execution
*inside* a running service — a web-app RCE, an unsafe deserialization
(`!!js/function`, Java/Python pickle, YAML/XML), a template or expression
injection, or an interpreter the app exposes — and runs their code AS that
service's own process. It looks like the service doing its job. Detect it on the
tells it cannot hide, not on a dropped file or a strange binary name.

## 1. Lineage, not the binary name
The child process is often the *same* binary the baseline already trusts (node
re-exec'ing node via `execFileSync`, python spawning python, php-fpm spawning
php). A trusted name is not a trusted event.
- The anomaly is that a long-running **service process forked/exec'd at all**.
  nginx, node, java, php-fpm, gunicorn, postgres and the like rarely spawn
  children in normal operation; when they do it is a known, repeating pattern (a
  worker pool, a documented sidecar) the baseline shows.
- `host_exec ["ps","-eo","pid,ppid,user,lstart,etime,cmd","--forest"]` and find
  children whose parent is a network service. `host_exec ["readlink","-f","/proc/<pid>/exe"]`;
  a `(deleted)` or `memfd:` exe is a strong IOC. `host_list /proc/<pid>/fd` — a
  `socket:[…]` on fds 0/1/2 is an interactive shell.
- The parent (the service) is *how they got in*. Name it in the report — that is
  the real fix, not just killing the child.

## 2. A snapshot miss is not an all-clear
These children are often sub-second (an exec to read a file, run `id`, probe a
port) and gone before the next snapshot. **Absence from `sensor_snapshot` does
not exonerate.** Hunt the *traces* a transient exec leaves:
- the request that triggered it in the request log or the app's own log
  (stack traces, 500 bursts, a probe that turned into a success),
- new or modified files under paths the service can write (see §4),
- connection traces in app/auth logs for attempts already gone,
- a re-launcher (cron/systemd/timer) if they wanted persistence — see
  [persistence-hunting].

## 3. Outbound attempts count, even when they fail
The post-exploitation step is usually a call home: a reverse shell, a stage-two
download, exfil. **A refused or timed-out connection is still an IOC** — "the C2
port was closed" means the attempt happened, not that it was benign.
- The decisive signal is a **service reaching outside its baselined egress set**
  (its database, its known upstream APIs). *Any* other outbound from that
  process — to an internal neighbour or a public IP, on any port — is suspicious.
- `host_exec ["ss","-tunap"]` for current state; correlate with app logs for
  attempts that have already closed.
- Name the destination before calling it hostile: many services call their
  vendor on their own (update checks, usage stats, certificate renewal), often
  only once a day, so learning misses them. Skill
  [outbound-destination-check] covers the name lookups, the setting that makes
  the call and the timing against the process start.

## 4. Writable app/web directories are drop zones
Code running as the service can write wherever the service can — its own web
root, upload, cache or build dirs. Those are **not** the protected system paths
kodeblue guards by default, so they must be watched explicitly. A new file under
a service-writable web root (`.php`/`.jsp`/`.js`/`.sh`, or anything executable)
is a webshell until proven otherwise. Inside a container, reach them as the
service sees them: `host_list /proc/<pid>/root/<path>` (also `tmp`, `var/tmp`,
`dev/shm` there).

## 5. Execution with no child and no drop
The quietest case: the service process itself does the attacker's work — it
rewrites its own code or assets (a defacement, an injected script), changes
stored data, or reads secrets — with no child, no new file in a temp dir and no
outbound. The tell is a **write by the service to files that are static while it
runs**: its code, templates, built assets, config.

**Rule out startup writes first.** Many applications write files every time they
start: translations filled from a default language, compiled or minified assets,
caches, generated config. Before you call a write an attack:
1. Get the process start time (`ps -o pid,lstart,etime,cmd -p <pid>`) and the
   file times (`host_list` shows mtimes).
2. Writes in the first minutes after a start, repeated after every restart, and
   never while the process has been running a while, are startup behaviour.
   Name it in the server-role definition so the next agent does not repeat the
   investigation.
3. A write long after the start, with no restart, deploy or admin session to
   explain it, is the service doing something it does not normally do.

Never confirm a theory with your own action: killing a supervised service makes
the runtime restart it, and the restart repeats the startup writes. Compare the
new write times with the restart you caused before you call them a second wave.

## Containing it
- `kill_process` ends the attacker's code, but a supervised service comes back
  at once. The new process is clean only if what it loads is clean: a payload in
  stored state (database rows, uploaded files, a poisoned cache) runs again.
- A container restart keeps its writable layer; tampered files survive it. Say
  in the report that the container must be **recreated from its image**, and that
  attacker-created data (accounts, uploads, tokens) is for a human to remove.

## Setting up the detections (learner)
The learner's procedure already creates the main monitors for each network
service: `process` with `no_children` (code execution), `sockets` with
`no_outbound` and the known `allow_remotes` (egress), and fast `file` monitors on
the directories an attacker writes first, with `contain` where it is safe. In
addition:
- Record each service's legitimate outbound set in the `Server role and
  services` definition, so a new destination is judged against it.
- `integrity_watch_add` the service's static code and asset files that stay the
  same while it runs (after checking §5's startup writes), so an in-place change
  is seen.
- Capture the host-specific version with `skill_write` once you know the
  services, e.g. "node-app-egress-and-webroot".

## Verdict
A service process that execs a child, re-execs its own interpreter, opens an
outbound outside its egress set, gains a new file under its writable web root,
or rewrites its static files outside its startup window — with no deploy, admin
login, or config-management run to explain it — is suspicious, and malicious when
two of these coincide. "The binary is one we know" and "nothing was in the last
snapshot" are not causes (see [false-positive-playbook]).

[persistence-hunting]: ../persistence-hunting/SKILL.md
[false-positive-playbook]: ../false-positive-playbook/SKILL.md
[outbound-destination-check]: ../outbound-destination-check/SKILL.md

© Problem99-io · Apache-2.0 · Problem99-io/kodeblue

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

Все скиллы по теме «Безопасность» →
heap-exploitation yaklang Скилл heap-exploitation для Claude Code описывает эксплуатацию кучи ptmalloc2: UAF, double free, overflow и атаки tcache, fastbin и unsortedbin для CTF и разбора уязвимостей glibc. CX Codex +1 4 100установок format-string-exploitation yaklang Скилл format-string-exploitation для Claude Code разбирает уязвимости форматных строк в функциях семейства printf. Он подключается к задачам чтения памяти, утечек адресов и анализа записи через %n. CX Codex +1 4 000установок analyzing-heap-spray-exploitation mahipal Скилл analyzing-heap-spray-exploitation для анализа дампов памяти: ищет следы heap spray, NOP-следы и внедрённый шелл-код через плагины Volatility3. CX Codex +1 379установок cms-and-framework-exploitation-wordpress W4L33Dx Скилл cms-and-framework-exploitation-wordpress для Claude Code разбирает риски WordPress: уязвимости ядра, плагинов и тем, а также REST и XML-RPC. Он включается при проверке цели, подтверждённой как WordPress. CX Codex +1 ★ 73звёзд репо Security Monitoring Claude Office Skills Скилл Security Monitoring для автоматизации мониторинга безопасности: правила детекта, алерты, разбор инцидентов и проверки на соответствие требованиям. CX Codex +1 4 800установок incident-response Alireza Rezvani Скилл incident-response классифицирует сработавшую тревогу по 14 типам инцидентов, отсеивает ложные и подсказывает, кого звать и что фиксировать. CX Codex +1 634установок

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

Весь набор →
containment-verification Скилл containment-verification для Claude Code проверяет на хосте результат защитных действий kodeblue после блокировки IP, завершения процессов, изоляции файлов или остановки служб. CX Codex +1 ★ 71звёзд репо linux-intrusion-triage Скилл linux-intrusion-triage для Claude Code помогает проверить Linux-хост, который мог быть скомпрометирован. Он задаёт порядок первичной проверки и использует инструменты kodeblue только для чтения. CX Codex +1 ★ 71звёзд репо false-positive-playbook Скилл false-positive-playbook для Claude Code помогает агенту доказывать безопасность алертов системы kodeblue. Он отделяет легитимные изменения от атак по системным логам. CX Codex +1 ★ 71звёзд репо web-app-attack-chain Скилл web-app-attack-chain для Claude Code восстанавливает цепочку атаки по журналам запросов. Он выделяет успешные действия внутри приложения и перечисляет, что должен отменить человек. CX Codex +1 ★ 71звёзд репо kodeblue-self-integrity Скилл kodeblue-self-integrity для Claude Code расследует изменения бинарников, движка и конфигов kodeblue. Проверяет возможное вмешательство злоумышленника при остановке или модификации агента. CX Codex +1 ★ 71звёзд репо service-restart-forensics Скилл service-restart-forensics для Claude Code расследует остановки и перезапуски сервиса. Он проверяет новый процесс и помогает определить, когда причину нельзя найти на этом хосте. CX Codex +1 ★ 71звёзд репо outbound-destination-check Скилл outbound-destination-check для Claude Code проверяет внешние сетевые соединения процессов и отличает штатный служебный трафик вендоров от активности вредоносного ПО. CX Codex +1 ★ 71звёзд репо container-breakout-detection Скилл container-breakout-detection для Claude Code определяет побег процессов из контейнера на хост. Проверяет конфигурации рантайма и аномалии в пространствах имён хоста. CX Codex +1 ★ 71звёзд репо

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

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