Change Default File Association Via Assoc
A Sigma rule for process creation on Windows, by Timur Zinniatullin, oscd.community.
low 1 ATT&CK technique 1 program it names 9 everyday examples trip it
What it looks for
detection:
selection_cli:
CommandLine|contains: 'assoc'
selection_img:
- Image|endswith: '\cmd.exe'
- OriginalFileName: 'Cmd.Exe'
condition: all of selection_*
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Timur Zinniatullin, oscd.community, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
Command lines that trip it
To view the current file type association for the file name extension .txt, type on the page for assoc
assoc .txtIdentifyTo remove the file type association for the file name extension .bak, type on the page for assoc
assoc .bak=IdentifyTo remove the file type association for the file name extension .jar, type on the page for assoc
assoc .jar=Identify