Detection of Suspicious Double Extension File Names
Adversaries frequently employ files with double extensions to bypass user skepticism and exploit Windows default settings that hide common file extensions.
Threat actors, including groups like Mustang Panda and operators of the BazarLoader malware, utilize file masquerading techniques to deceive users into executing malicious binaries. By crafting filenames with double extensions (e.g., 'document.pdf.exe'), attackers take advantage of the default Windows configuration that hides known file extensions from the user interface. This makes a malicious executable appear as a harmless document or media file. The technique is frequently used in spear-phishing campaigns to deliver payloads, such as droppers or remote access trojans (RATs). Detection engineering teams should monitor for the creation of files with mismatched or dual-extension patterns, as this is a high-fidelity indicator of social engineering and malicious intent.
Impact
Successful execution of these files leads to unauthorized code execution, potential establishment of persistence, and subsequent compromise of host systems. Observed campaigns targeting government, private sector, and minority groups demonstrate that this technique is a reliable vector for gaining initial access to sensitive environments.
Recommendation
- Deploy the provided Sigma rule to your SIEM/EDR to monitor for file creation events that match suspicious double-extension patterns.
- Implement Group Policy settings to "Show file extensions" globally, reducing the efficacy of this masquerading technique for end-users.
- Configure endpoint security solutions to alert on or block files that use high-risk combinations like '.zip.exe' or '.rar.exe' which are explicitly designed for evasion.
- Use the file_event logs to baseline common legitimate software update patterns to tune out noise and reduce false positives in highly dynamic environments.
Immediate actions
Deploy Sigma rule to detect files with double extensions
Mitigations
Enable Windows GPO 'Show file extensions'
T1036.007
Detection coverage 1
Detect Suspicious Double Extension Files
highDetects dropped files with double extensions often used by malware to bypass user scrutiny
Detection queries are available on the platform. Get full rules →