Detectionmediumtest
Hiding Files with Attrib.exe
Detects usage of attrib.exe to hide files from users.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic4 selectors
detection:
selection_img:
- Image|endswith: '\attrib.exe'
- OriginalFileName: 'ATTRIB.EXE'
selection_cli:
CommandLine|contains: ' +h '
filter_main_msiexec:
CommandLine|contains: '\desktop.ini '
filter_optional_intel:
ParentImage|endswith: '\cmd.exe'
CommandLine: '+R +H +S +A \\\*.cui'
ParentCommandLine: 'C:\\WINDOWS\\system32\\\*.bat'
condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*False Positives
IgfxCUIService.exe hiding *.cui files via .bat script (attrib.exe a child of cmd.exe and igfxCUIService.exe is the parent of the cmd.exe)
Msiexec.exe hiding desktop.ini
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
4281cb20-2994-4580-aa63-c8b86d019934
Status
test
Level
medium
Type
Detection
Created
Wed Jan 16
Modified
Tue Mar 14
Author
Path
rules/windows/process_creation/proc_creation_win_attrib_hiding_files.yml
Raw Tags
attack.defense-evasionattack.t1564.001