agentleFS
Encod3d-SecEncod3d-Sec/TORCH/skills/workflow/walkthrough/SKILL.md

walkthrough

Skill329 starsChanged 4 months agoMITView on GitHub

Assemble a report-ready walkthrough.md for a SOLVED engagement - populate the Evidence gallery from the poc/ images captured during the engagement, and draft the step-by-step reproduction from state/loot/log (Killchain.md for pentest/bugbounty, state.md's Chain/Status for ctf) without fabricating. Use when asked to "write the walkthrough", "assemble the walkthrough", "close out the box/engagement", or at close-out once an engagement is marked SOLVED.

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read state.md (for ctf, also its ## Chain/## Status sections, the live working copy of the attack path and the SOLVED/flags marker) and …

    line 45
  2. Very specific:

    Record HOW each vuln was DISCOVERED, not only the exploit: Every Foothold/Privesc step carries a short "found via:" note - the …

    line 54
  3. Very specific:

    no unfilled template markers remain (<entrypoint>, <foothold, or a bare - target: / - reach: stub line), and

    line 79
  4. Distinctive:

    If either check fails, go back and fill the gap (more evidence to drain, more narrative to draft) rather than leaving the walkthrough …

    line 83
  5. Very specific:

    All output stays under targets/<eng>/ (gitignored) -- never write client data into session/* or wiki/.

    line 87

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Walkthrough auto-assembly

Turn a solved engagement into the full, report-ready targets/<eng>/walkthrough.md: rendered evidence, a populated ## Evidence gallery, and a drafted narrative, so the operator only reviews/polishes instead of assembling from scratch.

Convention: mark close-out explicitly

At close-out, write a STATUS heading into state.md:

## STATUS: SOLVED

(OWNED / ROOTED / COMPLETE also count.) This is the close-out signal: once present, the CLAUDE.md execution loop runs Skill(walkthrough) (then Skill(learn)).

Steps

(a) Confirm the evidence is on disk (capture any missing key state now)

Evidence is captured LIVE during the engagement, straight into poc/ (via capture.sh / Skill(screenshot)) -- there is no staging/drain step anymore. Confirm the PNGs are on disk, and if a key state (foothold shell, the flag, an exploited render) was never captured, capture it now before assembling:

ls targets/<eng>/poc/*.png targets/<eng>/poc/**/*.png 2>/dev/null
# missing a key state? capture it live, e.g.:
#   bash scripts/capture.sh ev <eng> <slug> <url> "<cmd-label>"

A walkthrough with an empty gallery means evidence was not captured as steps landed -- fix that by capturing the reproducible states now, not by fabricating.

(b) Scaffold + gallery

python3 scripts/build-walkthrough.py <eng>

Idempotent: scaffolds the walkthrough structure from the framework template if missing, and populates the ## Evidence gallery from every rendered card on disk. Never clobbers existing narrative -- safe to re-run after step (a).

(c) Draft the narrative -- never fabricate

Read state.md (for ctf, also its ## Chain/## Status sections, the live working copy of the attack path and the SOLVED/flags marker) and loot.md for the active engagement; for pentest/bugbounty also read Killchain.md and log.md (a ctf engagement has neither; its live chain and narrative live in state.md instead). Write the step-by-step reproduction into the non-Evidence sections (Access -> Recon -> Foothold -> Privilege escalation -> root/flag), using the EXACT commands, creds, and per-step results already captured in those files. If a fact needed for a section is not present in the state files, do NOT invent it; leave a clearly marked _TODO: <what is missing>_ for the operator instead.

Record HOW each vuln was DISCOVERED, not only the exploit. Every Foothold/Privesc step carries a short "found via:" note - the probe/test/observation that revealed the bug (e.g. "found via: registered a tag-marker username, saw it reflected unescaped in the users table"), so the reader can re-FIND it, not just re-fire the payload. The discovery step IS part of the reproduction; a walkthrough that only shows the working exploit hides how you got there.

Rewrite each command to the HUMAN form for the reader (technical team / client). log.md holds the messy automation that actually ran (base64/pty wrappers, exports, ;-merged diagnostic pipelines) - the walkthrough must NOT. Each step is ONE standalone command a person would type: concrete values + FULL paths, no $VAR/export (inline an env var on the one command, KRB5CCNAME=/tmp/x.ccache impacket-... ), no ;/&& chains, no echo banners. A merged diagnostic from log.md becomes 2-3 clean single commands here. Interactive sub-steps (an smbclient get, an su + password) are shown as the plain human action, not scripted.

(d) Preserve exploit scripts

Copy any exploit script (payload, escape/forge script, webshell) into targets/<eng>/poc/scripts/, the same exploit-script-preservation discipline ctf-box and screenshot use -- the reviewer needs the code and the state together, not just a screenshot. Save it as <name>.md with the code in a ```py/```sh/```js fence, NOT a bare .py/.sh/.js - Obsidian only previews .md/images in the GUI, so a raw-extension script is invisible to the operator reading the walkthrough. Reference the .md from the matching step; inline the actual payload as a fenced block in the step itself so the walkthrough is self-contained.

(e) Verify complete

Before finishing, confirm:

  • no unfilled template markers remain (<entrypoint>, <foothold, or a bare - target: / - reach: stub line), and
  • the ## Evidence gallery has at least one rendered image reference row.

If either check fails, go back and fill the gap (more evidence to drain, more narrative to draft) rather than leaving the walkthrough half-done.

Scope and safety

All output stays under targets/<eng>/ (gitignored) -- never write client data into session/* or wiki/. Every step here is best-effort: build-walkthrough.py is idempotent and no-clobber. Real client engagements still go through Skill(evidence) for redaction before the walkthrough ships in a report; CTF/lab work can skip that.

On demand

Invoke this skill directly whenever you are ready to write the walkthrough, assemble the walkthrough, or close out the box/engagement -- the same steps apply.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.