change_point

Mode: unknown_key  ·  File: algorithms/unknown_key/change_point.py

Use cumulative-sum (CUSUM) change detection on the entropy profile. The algorithm pairs rising and falling edges to find high-entropy regions near the expected widths. This identifies candidates for further checks.

Parameters (read from context.extra)

Key

Default

window

32

step

16

entropy_threshold

4.5 for a 32-byte window. A different window uses its own default threshold.

cusum_threshold

0.8

drift

0.05

plateau_widths

[32, 48]

Output

Match.label = "cusum_plateau_{N}B". Pass these matches to constraint_validator to test derivation relationships.