title: Set Windows System File with Attrib
id: bb19e94c-59ae-4c15-8c12-c563d23fe52b
status: experimental
description: Marks a file as a system file using the attrib.exe utility
author: frack113
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1564.001/T1564.001.md#atomic-test-3---create-windows-system-file-with-attrib
    - https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/attrib
date: 2022/02/04
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: \attrib.exe
        CommandLine|contains: ' +s '
    condition: selection
falsepositives:
    - Unknown
level: low
tags:
    - attack.defense_evasion
    - attack.t1564.001