agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/dfir/timeline-analysis/SKILL.md

timeline-analysis

Skill0 starsChanged 31 days agoMITView on GitHub

Build and analyze a forensic super-timeline from disk images, event logs, EDR and cloud logs (Plaso/log2timeline, EZ tools, or the bundled merge script) to reconstruct attacker activity in UTC. Use when you need to establish sequence of events, patient zero, dwell time, or correlate artefacts from multiple sources.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you have CSV/JSONL exports (EDR, SIEM, cloud logs, EZ tool output), normalize them to one UTC timeline:

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Timeline Analysis

Option A — Plaso super-timeline (disk images)

log2timeline.py --storage-file case.plaso disk.E01
psort.py -o l2tcsv -w timeline.csv case.plaso "date > '2025-03-01 00:00:00' AND date < '2025-03-08 00:00:00'"

Plaso can be slow on full images; use --parsers (e.g. win7,!filestat) or target with --artifact-filters to limit scope. Review in Timeline Explorer, Timesketch, or a spreadsheet.

Option B — Merge exported sources (bundled script)

When you have CSV/JSONL exports (EDR, SIEM, cloud logs, EZ tool output), normalize them to one UTC timeline:

python3 scripts/merge_timeline.py \
  --source edr=edr.csv:Timestamp \
  --source cloudtrail=ct.jsonl:eventTime \
  --source evtx=evtx.csv:TimeCreated \
  --start 2025-03-01T00:00:00Z --end 2025-03-08T00:00:00Z \
  -o timeline.csv

Each --source is label=path:timestamp_field. ISO-8601, YYYY-MM-DD HH:MM:SS (assumed UTC unless --assume-tz given) and epoch seconds/milliseconds are parsed. Output columns: timestamp_utc, source, original_timestamp, summary (summary = remaining fields, compact JSON). Unparseable timestamps are counted and reported, never silently dropped.

Analysis method

  1. Anchor events: alert time, known-bad file creation, first malicious logon. Work backwards and forwards ±window.
  2. Clock discipline: confirm each source's timezone and skew (e.g., compare a known event recorded in two sources). Windows event logs are UTC internally; many CSV exports are local time.
  3. Look for MACB patterns ($MFT $STANDARD_INFORMATION vs $FILE_NAME timestamps; SI earlier than FN suggests timestomping).
  4. Group activity into phases (initial access, execution, persistence, privilege escalation, lateral movement, collection, exfiltration) and map to ATT&CK.
  5. Annotate gaps — periods with no telemetry are not periods with no activity.

Output template

Timeline <case> — sources: <list with tz/skew>
Window: <start>–<end> UTC
<UTC> | <source> | <event> | <ATT&CK> | <analyst note>
Key findings: initial access <t>, first lateral movement <t>, exfil <t>
Gaps: <source/time>

Related skills

windows-artifacts, registry-analysis, incident-scoping, forensic-report

References

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.