Sysmon Event ID 15: FileCreateStreamHash — Zone.Identifier and ADS
Published
A process created a named file stream — Sysmon records the file it was attached to, the process and account that wrote it, the hash of the file''s own contents and the contents of the named stream.
Logged to: Microsoft-Windows-Sysmon/Operational, on the machine where it happened; filtered in a Sysmon configuration by the <FileCreateStreamHash> element.
Microsoft's description
Event ID 15: FileCreateStreamHash
This event logs when a named file stream is created, and it generates events that log the hash of the contents of the file to which the stream is assigned (the unnamed stream), as well as the contents of the named stream. There are malware variants that drop their executables or configuration settings via browser downloads, and this event is aimed at capturing that based on the browser attaching a Zone.Identifier "mark of the web" stream.
Source: Microsoft's Sysmon documentation
Every field of event 15
| Field | What it tells you |
|---|---|
| TargetFilename | The file the named stream was written to. For browser downloads this is the downloaded file itself, so it tells you what arrived on the host and where it landed. |
| Image | The process that created the stream — a browser, a mail client, an archiver or a script host. It answers how the file got onto the machine. |
| Hash | The hash of the contents of the file to which the stream is assigned (the unnamed stream), so the same file can be tracked across hosts and looked up against threat intelligence. |
| Contents | The contents of the named stream itself. For a mark-of-the-web stream that is the zone information the browser attached; for an unusual stream name it is the data someone chose to hide there. |
| CreationUtcTime | The creation timestamp recorded for the file, which can differ from UtcTime and from what the file system shows later if something backdated it (see event 2). |
| ProcessGuid | Joins the write to the writing process's creation event (event 1), which has its command line, parent and hashes. |
| User | The account the writing process runs as, which gives you the session and the user to interview. |
| ProcessId | The writing process's PID on that host, for correlating with other telemetry collected at the same time. |
| RuleName | — |
| UtcTime | — |
Field names and order from Sysmon's manifest (schema 4.90), checked on every build.
What it records
Microsoft’s description: “This event logs when a named file stream is created, and it generates events that log the hash of the contents of the file to which the stream is assigned (the unnamed stream), as well as the contents of the named stream. There are malware variants that drop their executables or configuration settings via browser downloads, and this event is aimed at capturing that based on the browser attaching a Zone.Identifier “mark of the web” stream.”
One record therefore has two halves. The carrier file is described by TargetFilename, CreationUtcTime and Hash; the stream that was attached is described by Contents. The writer is Image, ProcessGuid, ProcessId and User, with UtcTime and RuleName completing the event.
That combination is what makes event 15 a download record rather than a file record: it names the program that pulled the file in, the account it ran as, where the file was written, and a hash you can pivot on before anyone executes it. The exact rendering of the stream name inside TargetFilename and of the stream data in Contents depends on your Sysmon version and the program that wrote the stream — look at one real event from your own estate before pinning a query to a fixed shape.
Filtering is done with the <FileCreateStreamHash> element, which supports conditions such as is, contains, end with, excludes and image:
<FileCreateStreamHash onmatch="include">
<TargetFilename condition="contains">\Downloads\</TargetFilename>
<TargetFilename condition="contains">.exe</TargetFilename>
<TargetFilename condition="contains">.hta</TargetFilename>
</FileCreateStreamHash>
When it matters
| Reading | Meaning |
|---|---|
A browser or mail client attaches a stream to an executable, script, .lnk, .iso or .hta in a user folder | A file capable of running code arrived from outside (T1105) — the start of most intrusions that begin with a user |
| The writing Image is a script host, an archiver or an unfamiliar program rather than a browser | Something other than ordinary browsing dropped the file; follow ProcessGuid to what started it |
| The same Hash appears on several hosts within minutes | One campaign, one delivery, several recipients — scope from the hash rather than from the filename |
| A stream with a name that is not the usual mark-of-the-web stream, holding substantial Contents | Data parked in an alternate data stream (T1564.004) |
| A file in the event later runs, or a DLL from it is loaded | The download became execution — pivot to events 1 and 7 |
The event also matters for the opposite reason. Mark-of-the-web is what makes Office and SmartScreen treat a file as untrusted, so attackers package payloads in ways that strip or never apply it (T1553.005). You cannot see that directly here — you see only the streams that were created — but a file that executes without ever appearing in event 15 on a host where the rules should have caught it is worth asking about.
How to investigate
Streams attached to files that can run code, in the last week:
Event
| where TimeGenerated > ago(7d)
| where Source == "Microsoft-Windows-Sysmon" and EventID == 15
| extend D = parse_xml(EventData).DataItem.EventData.Data
| mv-apply d = D on (summarize f = make_bag(bag_pack(tostring(d["@Name"]), tostring(d["#text"]))))
| extend TargetFilename = tostring(f.TargetFilename), Image = tostring(f.Image), FileHash = tostring(f.Hash),
StreamContents = tostring(f.Contents), Account = tostring(f.User)
| where TargetFilename has_any (".exe", ".dll", ".ps1", ".js", ".vbs", ".hta", ".lnk", ".iso", ".img", ".scr")
| project TimeGenerated, Computer, Account, Image, TargetFilename, FileHash, StreamContents
| order by TimeGenerated desc
Rare combinations of writing process and file hash across the estate — the long tail where single-victim deliveries sit:
Event
| where TimeGenerated > ago(30d)
| where Source == "Microsoft-Windows-Sysmon" and EventID == 15
| extend D = parse_xml(EventData).DataItem.EventData.Data
| mv-apply d = D on (summarize f = make_bag(bag_pack(tostring(d["@Name"]), tostring(d["#text"]))))
| extend TargetFilename = tostring(f.TargetFilename), Image = tostring(f.Image), FileHash = tostring(f.Hash)
| summarize Hosts = dcount(Computer), Writes = count(), Files = make_set(TargetFilename, 5), LastSeen = max(TimeGenerated)
by Image, FileHash
| where Hosts <= 2
| order by LastSeen desc
From a hit, work outwards: ProcessGuid to the writer’s process creation event for its command line and parent; TargetFilename to the file creation event for the write itself and to later process creation or image load events for the same path, which is the question that decides severity — was it opened? User gives the session; tie it to the host’s 4624 logons to see who was at the keyboard. Finally take Hash to your intelligence sources and search every host for it, including machines where the file was copied in rather than downloaded. A Sysmon export can be triaged quickly in the free log analyzer.
Read a Sysmon log without a SIEM
Copy Microsoft-Windows-Sysmon%4Operational.evtx from C:\Windows\System32\winevt\Logs (or wevtutil epl Microsoft-Windows-Sysmon/Operational sysmon.evtx) and open it in the EVTX viewer: every event in a table, event 15 filterable, with the analyzer's checks for LSASS access, remote threads and suspicious command lines. Nothing is uploaded.
Related events
- Sysmon Event ID 11 FileCreate
- Sysmon Event ID 1 Process creation
- Sysmon Event ID 7 Image loaded
- Security Event ID 4688 A new process has been created
- Security Event ID 4624 An account was successfully logged on
Detect it
Frequently Asked Questions
- What is Sysmon Event ID 15 actually logging?
- It logs the creation of a named file stream — an alternate data stream attached to a file on NTFS. Microsoft states the event logs the hash of the contents of the file the stream is assigned to (the unnamed stream) as well as the contents of the named stream, so one record describes both the carrier file and what was attached to it.
- How is event 15 different from event 11 (FileCreate)?
- Event 11 records that a file was created; event 15 records that a named stream was created on a file, and adds the hash of the file's own contents plus the contents of the stream. A download usually produces both: the file write, then the mark-of-the-web stream the browser attaches.
- Why do I see no event 15 for a file I know was downloaded?
- The event only fires when a named stream is actually created, and only for what your `<FileCreateStreamHash>` rules include. A transfer path that never attaches a stream, or a file extracted from a container by a program that does not propagate the mark of the web, leaves no record here — absence is not proof of where a file came from.
- What do I do with the Hash field?
- Use it to identify the file independently of its name and path: look it up in threat intelligence, search for the same hash on other hosts, and compare it with the hashes in process creation events to see whether the downloaded file was later executed anywhere in the estate.
Find every Sysmon 15 that matters
Open a Sysmon .evtx or XML export in the free browser analyzer: LSASS access, remote thread injection, process tampering, suspicious command lines and reverse-shell ports are flagged, with the events behind each. Nothing is uploaded.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]