Neighboring fields after an AppLocker hash: check hex shape and byte boundaries separately
Hex shape is different from a field boundary.
A boundary obligation before identity
Hex shape is different from a field boundary. Verify approved hash length and source bytes before using a value containing neighboring fields as an identity. Prepare the Truthound length table before trimming; a contaminated identifier can distort correlation with other logs about the user’s executed file. [1, 2, 3]
The observed string and the causal hypothesis
Winlogbeat #53260 reports AppLocker FileHash values on 9.x containing hex from neighboring Fqbn and FullFilePath fields. An include_xml comparison is proposed with a performance cost. The raw-API transition is a suspected cause, while the contaminated example is the observed report. Neither establishes an issue in every Windows event or hash algorithm. [1]
Evidence to retain before truncation
Keep source hash length, parsed length and an XML control for the same record. Hold file correlation when a 32-byte hash has expanded. Fix provider and event type and preserve raw bytes and declared length. Truncating to 64 characters first would erase evidence of the boundary error. [1, 3]
32 bytes define 64 characters
The illustrative hash has 32 bytes. At 2 hex characters per 1 byte, expected length is 64. A length of 64 meets only the length condition; 80 fails. Compare actual source hash content separately. The illustrative 80 is not a recalculation of the entire long string in the original report. [1, 3]
Compare in the same unit
Truthound Core Python SDK 3.3.2 can compare prepared declared_hash_hex_chars and parsed_hash_hex_chars with ColumnPairValidator using relationship="==". The operator converts declared byte length and parsed-string length to the same character unit. The SDK does not repair the Windows raw API or establish the authenticity of the file. [1, 2, 3]
Content remains separate from length
Test include_xml accuracy and performance on a bounded control and confirm a supported correction. Do not force 64 characters on a variable-length field from another provider. Select a source-matching path and rereconcile affected records instead of approving a truncated string as a valid hash. [1, 3]
Application conditions
Confirm source length per provider and event type, preserving the raw event before trimming or truncating.
Alternatives
Test include_xml accuracy and cost on a bounded control and verify the corrected version.
Limitations
The SDK does not repair the raw API or prove file authenticity; a correct length can still contain incorrect bytes.
Evidence
- Event checked
- Subject checked
- Modified
