Windows API reference

SetFileAttributesW

Changes file attributes such as hidden, system or read-only.

Library
Kernel32.dll
Category
Evasion
Suspicion
medium

Detection summary

SetFileAttributesW maps to 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

File managers, installers and backup tools; hidden or system attributes are also used for concealment.

Open SetFileAttributesW in the interactive atlas