Windows: attrib.exe Executed with +s to Mark Files as System Files

Flags attrib.exe executions that include the +s switch to mark target files as system files.

FreeReviewedSigma · Low · v5
Product
windows
Category
process_creation
Author
frack113 (SigmaHQ), DRL 1.1
Published
2022-02-04
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule matches process creation events where attrib.exe is executed with the +s flag to mark files as system files. Attackers and administrators can use this to modify file attributes for stealth, persistence, or to influence how files are displayed and handled. It relies on Windows process creation telemetry including the image path (or OriginalFileName) and the command line containing ' +s '.

Related detections9 linkedT1564.001 — drag to rearrange
Suspicious Executable Written to User Documents Subfolder (via file_event)
Suspicious Sobolan Staging Directory Creation in var tmp (via file_event)
FireWood Backdoor Persistence Files in Hidden kde-root Directory (via file_event)
Suspicious Attrib Hiding of Stealer Artifacts (via process_creation)
Suspicious perfctl Hidden IPC Directory Creation in tmp (via file_event)
Suspicious Executable Running From Fake Chrome User Profile Directory
Malicious Cryptominer Staging Files Dropped in tmp Directory
Suspicious Batch Script Unhiding Files via Attrib From Temp
Suspicious Hidden Directory configrc for Bandwidth SDK Abuse
Windows: attrib.exe Executed with +s to Mark Files as System Files
Pivot detection · T1564.001 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.