Skip to content

Color Rules

Color rules apply conditional formatting to grid cells, making patterns and anomalies visually obvious at a glance.

Color Rules dialog showing conditional formatting with DFIR presets for PowerShell, Mimikatz, PsExec, LSASS, and more

Creating Color Rules

  1. Open View > Color Rules or Cmd+Click a cell and select Create Color Rule
  2. Configure the rule:
    • Column — which column to evaluate (or "Any Column")
    • Condition — matching logic (see below)
    • Value — the pattern or text to match
    • Background color — cell highlight color
    • Foreground color — text color

Condition Types

ConditionDescriptionExample
ContainsSubstring match (case-insensitive)powershell
EqualsExact match4624
Starts withPrefix matchC:\Windows\Temp
RegexRegular expression(?i)invoke-\w+

Rule Ordering

Rules are evaluated top to bottom. The first matching rule wins for each cell. Drag rules in the editor to reorder priority.

KAPE-Aware Presets

IRFlow Timeline includes pre-built color rule sets for common DFIR artifacts:

Suspicious Process Indicators

PatternColorDetects
powershellRedPowerShell execution
mimikatzRedCredential dumping
lsassRedLSASS access
cmd.exeOrangeCommand shell
wscript / cscriptOrangeScript hosts
certutilOrangeLOLBin abuse
bitsadminOrangeLOLBin abuse
mshtaOrangeLOLBin abuse
rundll32YellowSuspicious execution
regsvr32YellowSuspicious execution

Path-Based Rules

PatternColorDetects
\Temp\YellowTemp directory execution
\AppData\YellowUser profile execution
\Downloads\YellowDownloaded file execution
\ProgramData\YellowUnusual execution path

Auto-Color Palette

When a KAPE profile is detected, IRFlow Timeline can automatically generate color rules based on unique values in a designated column. For example, EvtxECmd output can be auto-colored by Channel so that Security, Sysmon, System, and Application events each have a distinct background color.

Performance

Color rules are pre-compiled into optimized matching functions when created or modified. This means:

  • Regex patterns are compiled once, not on every cell evaluation
  • Contains/equals/starts with/ends with use fast string operations
  • Rules are evaluated per-visible-row only (virtual scrolling means only ~50 rows need evaluation at a time)

Managing Rules

  • Edit — click a rule in the list to modify it
  • Delete — remove rules you no longer need
  • Enable/Disable — toggle rules without deleting them
  • Import/Export — rules are saved and restored with sessions

Built for the DFIR community.