Skip to content

Triage and analysis

TRACE's Triage tab listing executables with their signers
Triage: what stands out across the whole case.

The file analysis modules want the same bytes, so a run reads each file once, whatever you selected: the first 4 KB to identify it, the rest streamed in 64 KB blocks only if a module needs it. Anything not selected stays not measured – distinguishable from measured as nothing. Rows are written in batches, so a 20,000-file image is a few hundred transactions, not 20,000. On larger images the files are read by several processes at once, and the rows written in the same order whichever finishes first: a 143,769-file Fedora image takes 54 s instead of 201 s, with identical results. A scope can narrow a run to the folders, types or dates that matter (Cases).

Module What it finds
File type the type from the content (libmagic), compared with the name
Entropy Shannon entropy, the mean and the highest-scoring block
Hashes SHA-256 always; MD5 and SHA-1 if the case asks for them
Hidden data deceptive names, bytes after a file’s real end, encryption, possible encrypted volumes
Photo metadata EXIF, including GPS – every located photo goes on the map
Document authors authors and editors recorded in Office, ODF and PDF files
Executables PE, ELF and Mach-O: architecture, libraries, signer, overlays, imphash and Rich hash

A list that opens with a thousand false alarms is a list nobody reads twice, so findings are graded:

  • Suspicious – an executable wearing a document’s extension.
  • Notable – content that cannot be identified and scores high entropy, which is what an encrypted file looks like from outside.
  • Benign – .jpe holding a JPEG. Recorded, not reported.

Entropy is judged by type first: a ZIP at 7.99 bits per byte is a ZIP, and flagging it would teach you to ignore the flag. And because a small encrypted payload appended to a photograph hardly moves the mean, the peak block is kept too. Files under a minimum size score 0 rather than a number – over a few dozen bytes, entropy measures how many distinct values appeared, not disorder.

  • Bytes after the end of a JPEG, PNG or PDF – found by parsing the format, not by searching for the last end marker.
  • Deceptive names: double extensions such as invoice.pdf.exe, and right-to-left override characters that make a name read backwards.
  • Encrypted documents and archives, and files that look like encrypted volumes.
  • Office macros – VBA in Word, Excel and PowerPoint files, old and new, and Excel 4.0 macro sheets. The source is shown with the document, and a macro that runs on opening and downloads, writes or starts something is suspicious.

PE, ELF and Mach-O (fat binaries too) are parsed by TRACE itself: architecture, imported libraries, build time, signer and any overlay appended after the program. The Authenticode signer is read from the signature – and TRACE says plainly that it is not verified. A reproducible build’s PE timestamp is recognised as a hash, not a time. Triage lists every executable; the Findings node only the notable and suspicious ones. The values are tested against pefile and pyelftools on real binaries (PuTTY, SQLite, BusyBox, bat, ripgrep).

The NTFS module reads the raw $MFT and $UsnJrnl:$J into events with 100-nanosecond times, plus:

  • Timestomping, graded: a $STANDARD_INFORMATION time earlier than $FILE_NAME alone is benign (installers do it thousands of times); a whole-second SI time where FN has a fraction is notable; both together are suspicious.
  • $I30 slack – index entries for files long gone.
  • $LogFile records, accepted only where their log sequence number points back to where they sit.

Paths of deleted entries are rebuilt the way libfsntfs does; orphans go under $Orphan.

The Deleted files module lists every file the file systems still remember deleting – and says how much of each is left: recoverable, partly overwritten, overwritten, resident (kept in the MFT entry), possibly overwritten, start only, entry reused, or no data recorded. It reads further than the file system’s own entries:

  • NTFS – files whose MFT entry now holds another file are named from $LogFile; of two deleted files over the same clusters, the one freed later owns them.
  • exFAT – a deleted file keeps its FAT chain, which TRACE follows; on FAT, where deletion clears the chain, only the start is known and the state says so.
  • ext3 / ext4 – deletion empties the inode; its earlier copy in the journal gives back where the data was, and blocks a later file took are counted as overwritten.
  • ext2 / ext3 folders – files inside a deleted folder are named from the folder’s surviving directory block.
  • HFS+ – deleted files are read back from old catalog records in the journal and in the catalog’s free space (The Sleuth Kit lists none).
  • Btrfs – see Volumes.

None of it is called recoverable when it is not: NIST’s Deleted File Recovery set, scored against NIST’s own answer key, gives no file called recoverable that was overwritten on ext, FAT, exFAT or NTFS.

Windows thumbcache_*.db and Thumbs.db, the Windows Search index’s thumbnail IDs (Windows.edb and the Windows 11 Windows.db), and the RDP bitmap cache. Each picture is checked against its original: still present, deleted, or absent – a picture of a file that no longer exists is a finding.

See Detection: autoruns graded by the file they start, and NSRL and your own hash sets to hide the known and flag the known-bad.

Photo GPS and activity records that carry coordinates are drawn on Triage ▸ Map – offline by default, over a bundled world map. Online map tiles are opt-in, asked once per server per session, and audited.