Triage collection and timelines

Lessons on KAPE, Plaso, Hayabusa, and Chainsaw: what a destination path, a parser name, a record id, or a hit time does not prove.

  • 24 lessons
  • 4.5 h of reading
  • 4 topics

The first hours of an investigation decide what evidence survives. These lessons collect the artifacts that matter into a hashed container, parse them on a separate workstation, and read events from many sources on one clock.

Collect from hosts named in the investigation and record who approved it. Analysis always runs on the copy.

  1. 01KAPE: collect a triage package and parse it with modulesRun KAPE with the KapeTriage target to copy key Windows artifacts into a VHDX with a copy log, then run EZ Tools modules over the copy so analysis never touches the original host.12 min
  2. 02KAPE: what the copy log shows, and what it does notRead a KAPE copy log as proof a path was copied and hashed. It is not a malware verdict, an execution record, or a full inventory of the disk.11 min
  3. 03Triage: when the package is enough to write the findingStop collecting when every claim in the finding cites a row you hold and every gap is a sentence. Extra artifacts that the question does not use are not a reason to continue.12 min
  4. 04KAPE: a module CSV is a parse of the copyA module CSV is a tool’s reading of a file inside the package. Write the module name and the source path it names. The row is not the bytes, and it does not show that the live host still has the file.11 min
  5. 05KAPE: the VHDX filename is a label from the runThe VHDX filename carries the host string and the time the operator supplied for that run. The computer name inside the copied logs is a different field. Write both when they disagree.11 min
  6. 06KAPE: the console count is not the path listA console line that says how many files were copied is a tally. The path list is the copy log. Write the tally as a count, and do not name a path the tally does not contain.11 min
  7. 07KAPE: the destination path is inside the packageOn a copy-log row, the source path is where the file was taken from. The destination path is where that copy sits inside the package. Write both. Do not open the destination as a path on the analysis machine.11 min
  1. 01Plaso: build a super timeline from a lab disk image and filter itUse log2timeline to parse a lab disk image into a Plaso storage file, check it with pinfo, and export a two-hour window with psort so one incident’s events can be read in order.13 min
  2. 02Plaso: read timestamp_desc before you call a time the startA Plaso row has one datetime and a timestamp_desc that says which time it is. The earliest datetime in the sheet is not automatically the start of the incident.12 min
  3. 03Plaso: a zero parser count is not proof nothing happenedA parser count of zero means that parser emitted no rows in this store. Write the parser name and the count. Silence can be an excluded parser, a failed parse, or a missing artifact, and the count alone does not say which.12 min
  4. 04Plaso: display_name is the file the parser readOn a Plaso row, display_name is the artifact the parser read. A path inside the message can be something that artifact mentions. Cite display_name as the source file, not a path that only appears in the message.11 min
  5. 05Plaso: the source code is the parser familyThe short source code on a timeline row names the parser family, such as file, registry, or web history. It is not the computer and not the path. Write the code as the family.11 min
  6. 06Plaso: the parser column is not the source codeThe parser column names the parser that produced the row. The short source code names the family. Write both. Do not treat the family code as the specific parser, or the parser name as the whole family.11 min
  1. 01Chainsaw: search and hunt Windows event logs from a triage copyPoint Chainsaw at EVTX files from a triage collection, run its built-in rules and Sigma rules with a field mapping, and search for specific event IDs to confirm what a detection claimed.11 min
  2. 02Chainsaw and Hayabusa: write the false positive beside the hitA Chainsaw or Hayabusa hit means a rule matched one event. Close it as a false positive only with the matched field, the expected reason, an owner, and a re-check date.11 min
  3. 03Chainsaw: a blank column was not in this exportA Chainsaw hunt table only has the columns that group printed. A blank cell means this export did not fill it. Write the headers you actually have, and do not read a missing account as “no account.”11 min
  4. 04Chainsaw: the time window bounds the hitsA hunt that was limited with a start and end only returns hits inside that window. Write the bounds. Zero hits means nothing matched in the window, not that the log has no events.12 min
  5. 05Chainsaw: the mapping file is part of the exportThe columns in a hunt export depend on the mapping file that was used. Write that path. A column that appears under one mapping and not another is a difference in the export, not proof the event lacked the field.12 min
  6. 06Chainsaw: the hit time is not when you huntedThe timestamp on a hunt row is the event time in that row. The time you ran the hunt is when the tool ran. Write both. Do not date the event with the hunt.11 min
  1. 01Hayabusa: a detection timeline and logon summary from Windows logsRun Hayabusa over a triage folder of EVTX files to build a CSV timeline of rule hits at medium severity and above, then use logon-summary to see which accounts signed in and from where.11 min
  2. 02Hayabusa: Level is the rule’s label, and Details can be cut offIn a Hayabusa CSV, Level is the rule’s level and Details is an extract. Write the event id, channel, and computer, and quote Details only as printed. Do not finish a cut-off path from memory.11 min
  3. 03Hayabusa: the Computer column is not the folder nameThe Computer value comes from the event. The folder you stored the logs in is your label. Write both when a file from one directory contains another computer’s name.11 min
  4. 04Hayabusa: the channel and the event id are a pairAn event id belongs to the channel printed on the same row. Write both. An id of 7045 in System is not the same record as 7045 in another channel, and the level does not choose the channel.11 min
  5. 05Hayabusa: the record id is one eventThe record id is the event’s number in that log. The event id is the type. Two rows can share an event id and still be different records. Write the record id when you cite one event.11 min