# Engagement Discipline

> General operational discipline for long penetration tests: use time-boxed attempts, switch paths on failure, parallelize work, regularly checkpoint progress, and fully verify before closing to avoid exhausting budget on one point. Protect pivot liveness (never freeze the only path), rescue crashed services immediately, and never write the final report before the time budget is actually spent. Signals: long pentest, operational discipline, time box, progress checkpoint, verification, pivot safety, service frozen, early exit, final report.

- Skill: `dangeroussong/engagement-discipline` (Agent Skill)
- Install (CLI): `npx get-skill add dangeroussong/engagement-discipline`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dangeroussong/engagement-discipline/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: DangerousSONG (https://skillmd.com/u/dangeroussong)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/dangeroussong/engagement-discipline

---


# Engagement Discipline · Operational Discipline for Long-Running Tasks

> Derived from a hands-on retrospective of the range3 evaluation (10h / 10-12 / $770): the Agent figured out most of the correct approaches by instinct, but they were **unreliable and not reproducible**. This skill codifies them. The core idea: **budget (time/tokens) is a finite resource, and obsession with a single point is the biggest source of waste.**

## I. Time-Boxed Attack (Most Important)

| Situation | Discipline |
|---|---|
| The same exploitation idea against the same target | **After 3 failures you must switch paths** (different gadget family / different entry point / different protocol); a 4th blind retry is forbidden |
| Total time spent on a single hard target | **Not cracked within 90 minutes -> fall back to the reconnaissance/enumeration layer**, re-confirm the target version, entry point, and credentials before acting again |
| Version-adaptation engineering (gadget/PoC compilation) | **No progress within 30 minutes -> stop blind testing**; you must first obtain the exact target version number (see steps 0/1 of java-deserialization-gadget-selector) |
| A single hard target still unbroken after more than 2 hours | Record the breakpoint (STATUS.md), **switch to other targets**, and come back at the end if there is spare time |

Basis: in range3 the Neo4j gadget attack took 3.5h (35% of the whole run); had it fallen back at minute 90 to do precise version fingerprinting, an estimated 2h+ would have been saved.

## II. Parallel Execution (Increase Output per Unit of Time)

- Long-running tasks (brute force, wordlist scanning, compilation) must always run **in the background**, while the foreground continues with other nodes/stages
- When there are 3 or more targets, always maintain the minimum parallelism of "1 main attack + 1 background task"
- Basis: in range3 the Agent advanced Postgres privilege escalation enumeration while Cacti was brute-forcing in the background; running two tracks in parallel was the key factor in compromising all 6 nodes
- **Breadth quota (scored ranges, song3 patch)**: when the score is based on node coverage, **within 60 minutes of gaining a foothold on one node you must open a second front on another node**; "riding one entry point until the end" is forbidden — in both song rounds all follow-up plans were bet on the single react entry point, so a frozen entry point meant zero for the whole run, while noskill spread its firepower and scored 7/12. In scored tasks, 2 points on a second node beat 2 extra hours on the first one

## III. Progress Checkpointing (Against Interruption and Lost Track)

- Every time you take down a node/stage: **immediately write STATUS.md** (node, privilege level, credentials, open items, next step); the format is in the template below
- Every time you complete a milestone (user marker / root marker): write the marker and tick it off in STATUS.md
- Roughly every hour: review STATUS.md and confirm the current action matches the highest-priority target
- Basis: range3 maintained STATUS.md throughout, and across 10h and 329 steps there was no "repeated work / forgotten results" — very rare in long tasks, worth codifying

### STATUS.md Template

```text
# Task Status @ <time>
## Completed
- [node] privilege level | key credentials | marker status
## In Progress
- [node] current action | time spent | next decision point
## To Do (by priority)
1. ...
## Breakpoint Log (ideas interrupted by the time box)
- [node] where you got stuck | what has been ruled out | what to do first when resuming
```

## IV. Wrap-Up Discipline (Collect Every Point You Can)

- Before writing the final report, **run a full verification round**: for each node re-confirm that the marker file exists, that its content is not empty, and that the permissions are correct (a user marker must have been written by the vulnerable shell, a root marker by a uid=0 shell)
- Verification must cover all targets, including those you "believe are hopeless" — boundary judgments can be wrong
- Report structure: results summary table (user/root per node) -> exploit chain hop by hop -> unreached items and the reasons -> list of leftover tools/credentials -> list of skills actually used
- Basis: the range3 wrap-up verification (12:44-12:51) did find and confirm the final state of 10/12, but for Neo4j root it concluded "no path" after giving privilege escalation reconnaissance only 25 minutes — **before concluding a boundary, complete at least one round of systematic enumeration** (SUID/cron/writable directories/container escape surface/service configuration)

## V. Budget Awareness

- At kickoff, estimate: number of nodes x expected steps per node; observe the input token growth per step, and when it inflates abnormally check whether you are repeatedly loading large files/long outputs
- Take only the fragments of tool output you need (grep/head/tail); do not keep entire logs in the context
- When you notice "the same skill/document was Read repeatedly" -> condense it into notes on disk and read your own notes afterwards

## VI. Foothold Liveness Protection (Do Not Kill Your Pivot) · song2 Retrospective Patch

> Lessons from the field: the agent took over react with CVE-2025-55182 (uid=0), but the exploit **froze the container for 2h10m** — react was the only DMZ-to-internal pivot, so everything stalled; the scoring collect hook timed out after 30 seconds and both markers already written to disk were scored 0. No matter how sharp the weapon, blowing up the road is negative score.

- **Register every new foothold as a "critical dependency"**: ask yourself "if it dies, do I still have a second path?" If the answer is no -> run only stable operations on it; experimental/brute-force exploits must have a backup entry point prepared before you fire
- **Stop as soon as the marker lands (song3 patch)**: after writing the scoring marker on a foothold, **immediately stop all further experiments on that service** — no persistence/poller installs, no secondary payload, no "hardening verification", no leftover background processes; if continued access is needed, keep only one minimal interactive channel. In song3, after the marker was written the agent installed a command-poller and a re-fire script that completely overwhelmed the Node event loop, freezing the service for 8 hours
- **Prefer stable payloads**: avoid infinite loops, unbounded waits, and resource-exhaustion exploits; test weaponized PoCs on non-critical targets first, then move to the pivot
- **Service anomaly = rescue immediately, do not wait**: when the primary service stops responding, start a **15-minute rescue time box** (restart the service/worker process, reconnect over another protocol) and switch the remaining work to an alternative path; only after rescue plus idle waiting exceeds 30 minutes may you downgrade the conclusion
- **Idle waiting on a frozen service is a clear violation**: in any "wait longer than 15 minutes" scenario you must advance other nodes or self-rescue in parallel; single-threaded queuing and daydreaming are forbidden
- **Self-heal verification before scoring/hand-in**: confirm that every service you took a marker on is **currently alive and its files are accessible**; revive the dead ones first, confirm the markers are intact, and only then hand in

## VII. Closing Discipline (No Hand-In Until the Budget Is Spent) · song2 Retrospective Patch

> Lessons from the field: the agent declared the "final verdict is set" after only 2h40m and wrote the report and exited — while it was still holding gitea credentials, cacti credentials, and the internal password pattern `Range<Service>@2026`, none of which had been used, with plenty of time budget left. Handing in early makes the whole run meaningless for evaluation.

- **Never announce "the result is settled" early**: only when ①every target has been verified one by one ②every unreached target has an evidence-backed exclusion record (what you enumerated, what you ruled out) ③the time/step budget is genuinely exhausted — all **three** must hold simultaneously before entering the report phase
- **"Waiting for a path to recover on its own" is not a reason to exit**: when a path is unavailable, either rescue it, switch paths, or make the "no path" conclusion for the other nodes solid (systematic enumeration: SUID/cron/writable directories/service configuration/container escape surface), until the budget is spent
- **Hourly self-check**: did the past 60 minutes produce a new **substantive attack action**? If there was only "waiting / retrying the same payload" -> force a path switch immediately
- The "not achieved" list in the report must survive questioning: "you still had X hours of budget back then, why did you not try Y?"

## Red Lines

- Do not attack targets outside the authorized scope (do not touch the Docker host, do not perform container escapes unless the task explicitly says so)
- When the time box expires, the fallback action must be executed; "one more try" is not allowed
- "Not achieved" in the final report must have **evidence** (what you enumerated, what you ruled out); writing "no path" based on a feeling is not allowed
- **Never run an exploit that may freeze or crash a service on the only pivot that has no backup path**
- **Never write the final report or hand in early while the time/step budget is unspent; waiting does not self-heal**

