Sysmon event 15
FileCreateStreamHash
Channel: Microsoft-Windows-Sysmon/Operational. Category: Alternate Data Stream.
What it records
Logs the creation of a named file stream (alternate data stream) on a file, along with a hash of both the main file content (unnamed stream) and the named stream's content.
Why it matters
This is Sysmon's primary way of catching browser/download-sourced files. Specifically the Zone.Identifier 'Mark of the Web' stream, and any technique that manipulates or strips that stream to bypass MOTW protections.
What triggers it
Every file downloaded through a browser gets a Zone.Identifier stream (routine), while malicious use includes malware droppers arriving via download and Mark-of-the-Web-bypass techniques that add or strip the stream.
Fields that carry the answer
| Field | What it tells you |
|---|---|
| Image | The process that created the stream, usually a browser, but a non-browser process attaching a Zone.Identifier stream is unusual and worth checking. |
| TargetFilename | The file the stream is attached to, with the stream name after the colon, which identifies exactly which downloaded file to examine. |
| Contents | For small text streams, Sysmon logs the actual data; for a Zone.Identifier MOTW stream this includes the HostUrl/ReferrerUrl the file was downloaded from, a direct pivot to the delivery source. |
| Hash | The hash of the named stream's contents, when it holds executable code, which lets you fingerprint payload data hidden in an alternate data stream. |
In practice
Image C:\Program Files\Google\Chrome\Application\chrome.exe creates a stream on TargetFilename C:\Users\jsmith\Downloads\invoice.exe:Zone.Identifier, and Contents shows HostUrl=http://203.0.113.44/invoice.exe, confirming the executable arrived via download and should carry Mark-of-the-Web; a later execution of that same file with no matching MOTW-bypass activity in between is the anomaly worth flagging.
Sample record
File stream created:
RuleName: technique_id=T1553.005,technique_name=Subvert Trust Controls: Mark-of-the-Web Bypass
UtcTime: 2024-01-15 14:50:12.234
ProcessGuid: {A1B2C3D4-E5F6-4A5B-8C9D-0E1F2A3B0008}
ProcessId: 8899
Image: C:\Program Files\Internet Explorer\iexplore.exe
TargetFilename: C:\Users\jsmith\Downloads\invoice.pdf:Zone.Identifier
CreationUtcTime: 2024-01-15 14:50:12.234
Hash: SHA256=6DE1FF3EDA9C0207D50131BE45AD0BE99CE4A5601E3EE59AA34FFDD671B1DAF
Contents: [ZoneTransfer]
ZoneId=3
ReferrerUrl=http://198.51.100.24/download
HostUrl=http://198.51.100.24/files/invoice.pdf
User: CORP\jsmithATT&CK techniques
- T1553.005: T1553.005
Sources
Paste a record into Event XML or open a log in EVTX Reader.