Windows API reference

GetTempFileNameW

Creates a unique temporary file name.

Library
Kernel32.dll
Category
Helper, Evasion
Suspicion
low
MITRE ATT&CK
Not mapped

Detection summary

GetTempFileNameW maps to Sysmon Event 11 and Microsoft-Windows-Kernel-File; these events record the OS effect, not the API call.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Installers and file-processing tools that need a unique temporary file name.

Open GetTempFileNameW in the interactive atlas