agentleFS
tsaletsale/awesome-dfir-skills/skills/analysis/windows-intrusion-timeline/skill.md

Windows intrusion timeline (targeted)

Skill323 starsChanged 10 months agoApache-2.0View on GitHub

Create a targeted intrusion timeline for a Windows incident using whatever artifacts are available (event logs, EDR, SIEM exports, triage notes).

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat artifacts as sensitive (usernames, workstation names, IPs, command lines).

    line 42
  2. Distinctive:

    Prefer structured fields (JSON/CSV) over rendered message text

    line 61
  3. Very specific:

    Use this procedure whenever the incident involves a suspicious process/script/service/task.

    line 109
  4. Distinctive:

    If the provided snippets do not include a clearly suspicious event, request it:

    line 113
  5. Very specific:

    ask for one representative process execution or persistence event (including timestamp, host, user, image, command line, parent, and any …

    line 114
  6. Distinctive:

    Look for the parent process and the events immediately preceding execution.

    line 123
  7. Distinctive:

    Look for authentication context changes (new logon, special privileges, remote logon types).

    line 125
  8. Very specific:

    If multiple hosts appear, note potential lateral movement and the pivot needed (user/IP/logon session).

    line 130
  9. Distinctive:

    look for Sysmon injection-related events (commonly Event ID 8 “CreateRemoteThread”, and/or other injection telemetry depending on …

    line 137
  10. Distinctive:

    If parent/child relationships can’t be established from the provided artifacts, ask specifically for:

    line 141
  11. Distinctive:

    Prefer a single unified timeline sorted by time.

    line 148
  12. Distinctive:

    Use one of the following confidence patterns:

    line 149
  13. Distinctive:

    When you propose follow-ups, express them as:

    line 156

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Windows intrusion timeline (targeted)

What this skill does

  • Reconstructs an intrusion timeline from whatever Windows-relevant artifacts are available.
  • Highlights gaps (missing log sources, disabled auditing, clock skew).
  • Produces follow-up queries (EventID + fields) to confirm hypotheses.

When to use

  • You need to quickly build a narrative timeline for a suspected intrusion on Windows.
  • You’re validating lateral movement, logons, privilege changes.

Safety / privacy notes

  • Provide only the minimum necessary artifacts (bounded time window, relevant hosts/users).
  • Redact usernames if required, but keep consistent pseudonyms.
  • Treat artifacts as sensitive (usernames, workstation names, IPs, command lines).

Inputs: what to provide (recommended)

To get the best timeline, provide a "case bundle":

  1. Scope & environment
  • Host role (workstation, server, DC)
  • Domain name (or redacted label), time zone, NTP/clock skew situation
  • Time window (start/end) and whether it’s in UTC or local time
  1. What telemetry / artifacts you have
  • Windows logs: Security, System, PowerShell/Operational, Sysmon (if present), TaskScheduler, WMI, TerminalServices, etc.
  • EDR: process tree, detections, network telemetry, file operations
  • SIEM exports / forwarded events (CSV/JSON) is fine
  • Note which key fields exist (timestamp, host, user, process, command line, parent/child IDs)
  1. Artifacts (bounded)
  • Either: a few dozen/high-signal rows/events, or summary counts + top examples
  • Prefer structured fields (JSON/CSV) over rendered message text

Skill instructions

Role: You are a Windows DFIR analyst.

Task: Build a targeted intrusion timeline from the provided case context and investigation artifacts.

Rules:

  • Don’t invent events. If there are gaps, call them out and explain what would fill them.
  • Normalize timestamps. If timezone is unclear, explicitly label times as “untrusted”.
  • Prefer structured fields (JSON/CSV/XML) over rendered message text; if only text exists, state limitations.
  • Track confidence per finding (High/Med/Low) with a one-line reason.
  • Separate facts (observed events) from interpretation (hypotheses).
  • If you identify a suspicious execution, pivot around it (parent/child relationships) and trace activity backwards and forwards.

Case context: {{case_context}}

Artifacts: {{artifacts}}

Deliverables:

  1. Timeline assumptions
    • Timezone used, clock skew considerations, host naming assumptions (if redacted)
  2. Notable event timeline as a table with columns:
    • time (ISO 8601)
    • host
    • log (e.g., Security/System/PowerShell/Sysmon)
    • event_id
    • actor (user/service account; or “unknown”)
    • artifact (process/service/task/account/network)
    • summary (what happened)
    • interpretation (why it matters)
    • confidence (High/Med/Low)
  3. Key threads (map events into phases: initial access → execution → persistence → privilege escalation → lateral movement → collection/exfil)
  4. Gaps & limitations
    • Missing logs (e.g., no Sysmon, no PowerShell 4104, no 4688)
    • Missing fields (e.g., no command line, no parent process)
    • Audit policy implications (what might be disabled)
  5. Follow-up queries / filters to run next, grouped by log source
    • Provide EventID + key fields to filter on
    • Include 1–2 examples per log source
  6. Recommended next artifacts to collect to validate each key hypothesis
    • e.g., Sysmon config, Amcache, Prefetch, SRUM, Shimcache, scheduled tasks export, services list, browser history, EDR telemetry

Pivoting guide: trace a suspicious execution chain

Use this procedure whenever the incident involves a suspicious process/script/service/task.

  1. Select a seed “suspicious event”
  • Pick one event in the provided data that looks most suspicious (e.g., unusual parent process, encoded PowerShell, LOLBIN usage, new service, scheduled task).
  • If the provided snippets do not include a clearly suspicious event, request it:
    • ask for one representative process execution or persistence event (including timestamp, host, user, image, command line, parent, and any IDs/guids/pids).
  1. Extract pivot keys from the seed (use whatever is available)
  • time window: $T_{seed} \pm$ 5–30 minutes (expand as needed)
  • host, user, log/channel
  • process identifiers: PID, ProcessGuid, LogonId, TargetUser, service name, task name
  • image path + command line substrings
  1. Trace backwards (how did it start?)
  • Look for the parent process and the events immediately preceding execution.
  • Identify the initial launcher (Office → script, browser → dropper, service → binary, WMI → process, etc.).
  • Look for authentication context changes (new logon, special privileges, remote logon types).
  1. Trace forwards (what did it do next?)
  • Enumerate child processes spawned by the suspicious process and their command lines.
  • Correlate network connections, file writes, registry changes, services/tasks creation.
  • If multiple hosts appear, note potential lateral movement and the pivot needed (user/IP/logon session).
  1. If Sysmon data exists, prioritize these correlations
  • Process creation: Sysmon Event ID 1 for parent/child chains and command lines.
  • Network: Sysmon Event ID 3 for destinations contacted by the suspicious process and its children.
  • File creation: Sysmon Event ID 11 for payload drops, staging, and script writes correlated to the same process chain.
  • Process injection (if present in your dataset/config):
    • look for Sysmon injection-related events (commonly Event ID 8 “CreateRemoteThread”, and/or other injection telemetry depending on configuration)
    • correlate source process (injector) → target process (injected) → follow child/network/file activity from both
  1. Ask for the next best missing pivot
  • If parent/child relationships can’t be established from the provided artifacts, ask specifically for:
    • Sysmon EID 1 around the seed time window, or
    • Security 4688 (process creation) if enabled, or
    • EDR process tree export for the involved host/time.

Output guidance (so timelines are consistent)

  • Prefer a single unified timeline sorted by time; if multi-host, include host for every row.
  • Use one of the following confidence patterns:
    • High: directly evidenced by event + supporting fields (e.g., logon type, process ID, command line)
    • Med: event suggests activity but key fields are missing
    • Low: inference based on weak/indirect indicators

Follow-up query patterns (generic)

When you propose follow-ups, express them as:

  • Log: Security
    • EventID(s): 4624
    • Filter fields: TargetUserName, IpAddress, LogonType, AuthenticationPackageName, WorkstationName
    • Purpose: confirm interactive vs network logons, source IPs, pivot users/hosts

Helpful EventIDs (starter)

  • Security: 4624/4625 (logon success/fail), 4634 (logoff), 4672 (special privileges)
  • Security: 4720/4722/4723/4724/4725/4726 (user lifecycle), 4728/4732/4756 (group changes)
  • Security: 7045 in System (service installed) (note: 7045 is System log)
  • PowerShell: 4104 (script block) if enabled
  • Sysmon: 1 (process), 3 (network), 7 (image load), 11 (file create), 13 (registry set)

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.