Sigma rule: Hiding Files with Attrib.exe

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-b16264ed160c, updated 2023-03-14T00:00:00.000Z.

Rule

Title
Hiding Files with Attrib.exe
Status
test
Level
medium
Author
Sami Ruohonen
Date
2019-01-16
Modified
2023-03-14
File
rules/windows/process_creation/proc_creation_win_attrib_hiding_files.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects usage of attrib.exe to hide files from users.

Log source

product
windows
category
process_creation

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 (as the rule lists them)

  • 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

Tags

  • attack.stealth
  • attack.t1564.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_attrib_hiding_files.yml

Sources and licences

  • SigmaHQ

    "Hiding Files with Attrib.exe" by Sami Ruohonen (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_attrib_hiding_files.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Hiding Files with Attrib.exe",
entity page, dataset version ref-b16264ed160c, updated 2023-03-14T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/4281cb20-2994-4580-aa63-c8b86d019934 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 4281cb20-2994-4580-aa63-c8b86d019934, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.