---
name: post-exploitation-notes
description: After a successful privilege escalation, record what was done, keep it reversible, and clean up planted artifacts. Use once a technique skill has achieved root.
---

# Post-exploitation notes

Once you have root, the job is to document the path and leave the system in a
clean, known state. This matters for a real engagement report and for not
leaving a target worse than you found it.

## Record

- Which `CONFIRMED` finding was used, and the exact command that got root.
- The confidence confirmesc assigned and the evidence it reported.
- Timestamp and the account you started from.

## Keep it reversible

- Prefer changes that undo cleanly (a temporary SUID copy, a temporary sudoers
  line, a file you backed up first).
- Note every artifact you create: planted files, added users, shared objects,
  containers, SUID copies.

## Clean up

- Remove planted files (`/tmp/x.so`, `rootbash`, wildcard trigger files).
- Remove any added user or sudoers entry; restore files you edited from backup.
- Remove containers or images you created for `group-escalation`.
- Confirm the system is back to its original state.

## Report

Summarize for the engagement writeup: the vector, the proof of root
(`uid=0`), the fix confirmesc suggested, and that you cleaned up. Tie each
finding back to its remediation so the owner can close it.

## Rules

- Authorized targets only. Leaving persistence or backdoors behind is out of
  scope unless the engagement explicitly calls for it.
