Windows API reference
DefineDosDeviceW
Creates or removes a DOS device mapping, used in process doppelganging to hide a payload file.
- Library
- Kernel32.dll
- Category
- Defense Evasion (AMSI/ETW)
- Suspicion
- high
- MITRE ATT&CK
- Not mapped
Detection summary
DefineDosDeviceW is not directly logged; detect doppelganging setups through API telemetry and adjacent file, image and process events.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Use EDR user-mode hooks or call stacks for DefineDosDeviceW and correlate with process creation (Sysmon 1), image loads (Sysmon 7) and file writes (Sysmon 11). The device mapping itself has no reviewed Sysmon/ETW event.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Only security products and research tooling should touch these paths.