New File Association Using Exefile
Detects the abuse of the exefile handler in new file association. Used for bypass of security products.
Detection logic
selection
TargetObject|contains: Classes\.
Details: exefilefilter_main_exe_default
TargetObject|endswith: Classes\.exe\(Default)Condition
selection and not 1 of filter_main_*Raw YAML
title: New File Association Using Exefile
id: 44a22d59-b175-4f13-8c16-cbaef5b581ff
status: test
description: Detects the abuse of the exefile handler in new file association. Used for bypass of security products.
references:
- https://twitter.com/mrd0x/status/1461041276514623491
author: Andreas Hunkeler (@Karneades)
date: 2021-11-19
modified: 2026-11-16
tags:
- attack.stealth
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|contains: 'Classes\.'
Details: 'exefile'
filter_main_exe_default:
TargetObject|endswith: 'Classes\.exe\(Default)'
condition: selection and not 1 of filter_main_*
falsepositives:
- Unknown
level: highFalse positives
- Unknown
References
Similar rules
CrashControl CrashDump Disabled
mediumwindows · Same logsource category (registry_set)
Custom File Open Handler Executes PowerShell
highwindows · Same logsource category (registry_set)
DHCP Callout DLL Installation
highwindows · Same logsource category (registry_set)
Disable Administrative Share Creation at Startup
mediumwindows · Same logsource category (registry_set)