UnixDroid

Lesson 8 of 8 · 9 min

Building an attack timeline & writing the report

Put every artifact in order to tell the attack's story, then write a report anyone can check.

By now you have artifacts from everywhere: deleted files, registry keys, event logs, memory. On their own they're puzzle pieces. A timeline puts them in order and turns them into a story, and the report tells that story so anyone can check it.

Understanding timestamps

Most file systems record a set of times for every file, often called MACB:

LetterMeaning
MModified: the file's content changed
AAccessed: the file was read (often disabled or delayed for performance)
CChanged: the metadata changed (Linux), or the MFT entry changed (NTFS)
BBorn: the file was created

Tip: Always work in UTC. Mixing a server in UTC, a laptop in IST (UTC+5:30) and a firewall in US time is the fastest way to get a timeline wrong.

Quick timeline with The Sleuth Kit

fls -r -m / case01.img > bodyfile.txt
mactime -b bodyfile.txt -d -z UTC > timeline.csv

Super timeline with Plaso

Plaso (log2timeline) goes further. It pulls times from hundreds of sources at once (file system, event logs, registry, browser history, Prefetch, LNK files) into one super timeline:

log2timeline.py --storage-file case01.plaso case01.img
psort.py -o dynamic -w case01-timeline.csv case01.plaso

Open the CSV in Timeline Explorer (free, by Eric Zimmerman) or a spreadsheet, and filter to the hours around the incident.

Turning rows into a story

Start from one solid anchor, such as the first malicious login, and work forwards and backwards:

Time (UTC)SourceEvent
02:13:05Security.evtx, 412 × 4625Password guessing against "admin" from an outside IP
02:19:41Security.evtx, 4624 type 10Successful Remote Desktop logon as admin
02:21:10PrefetchMIMIKATZ.EXE executed
02:24:55System.evtx, 7045New service "WinUpdateSvc" installed
02:31:02$MFTbackup.zip (2.1 GB) created in C:\Users\Public
02:47:30Security.evtx, 1102Security log cleared

Every row must point to the exact artifact that proves it.

Writing the forensic report

A good report can be read by a manager in two minutes and checked by another analyst in two hours.

1. Executive summary. What happened, the impact and the key recommendation, in plain language.

2. Scope and case details. Who asked for the investigation, which questions you had to answer, and the dates.

3. Evidence list. Every item with its ID, description and SHA-256 hash.

4. Tools and method. Each tool with its version, and the steps you followed.

5. Findings. Each finding with the artifact that supports it, its UTC timestamp and a screenshot or excerpt.

6. Timeline. A clean version of the table above.

7. Conclusion and recommendations. Root cause, what to fix and how to detect it next time.

8. Appendix. Hashes, raw tool output and chain-of-custody forms.

Rules that make a report trustworthy

  • Separate facts ("Prefetch shows MIMIKATZ.EXE ran at 02:21:10 UTC") from opinions ("this suggests credential theft").
  • Never claim more than the evidence supports.
  • Another analyst should be able to repeat your steps and get the same result.
  • Write the main report for a non-technical reader, and put the technical proof in the appendix.

Collection, analysis and timelines are what you do. The report is what people remember. Make it clear, honest and repeatable.

Try it yourself
  1. Use usb.img from the recovery lesson, or any practice image.
  2. Build a timeline: fls -r -m / usb.img > body.txt, then mactime -b body.txt -d -z UTC > timeline.csv
  3. Open timeline.csv and find the moments you created and deleted your test files.
  4. Write a one-page mini report: executive summary, evidence (with its hash), three findings and a short timeline.
No Linux machine? Practise in the free online terminal

Quick check

Which time zone should every entry in a forensic timeline use?

Need a hint?

Three letters, zero offset.

Finished this lesson?

Done lessons keep your daily streak going 🔥

0 day streak

0 lessons done

best 0 days

Log in to keep your streak on every device →