Sigma rule: Suspicious Double Extension Files

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c3fe47f0497e, updated 2026-10-16T00:00:00.000Z.

Rule

Title
Suspicious Double Extension Files
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems), frack113
Date
2022-06-19
Modified
2026-10-16
File
rules/windows/file/file_event/file_event_win_susp_double_extension.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects dropped files with double extensions, which is often used by malware as a method to abuse the fact that Windows hide default extensions by default.

Log source

product
windows
category
file_event

Detection

selection_gen:
    TargetFilename|re|i: '\.(docx?|gif|jpe?g|mp3|mp4|pdf|png|pptx?|rtf|svg|txt|xlsx?)\.(bat|exe|iso|rar|svg|vbe|vbs|zip)$'
selection_exe:
    TargetFilename|endswith:
        - '.rar.exe'
        - '.zip.exe'
# Note: If you wanna keep using the ".lnk" extension. You might uncomment this filter and add additional locations
# filter_main_lnk:
#     TargetFilename|contains:
#         - '\AppData\Roaming\Microsoft\Office\Recent\'
#         - '\AppData\Roaming\Microsoft\Windows\Recent\'
filter_main_legitimate_extensions:
    TargetFilename|endswith:
        - '.svg.svg'
        - '.png.svg'
        - '.jpg.svg'
        - '.jpeg.svg'
filter_optional_icons_linux:
    TargetFilename|startswith: '/usr/share/icons/'
condition: 1 of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*

False positives (as the rule lists them)

  • Unlikely

Tags

  • attack.stealth
  • attack.t1036.007

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_susp_double_extension.yml

Sources and licences

  • SigmaHQ

    "Suspicious Double Extension Files" by Nasreddine Bencherchali (Nextron Systems), frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_susp_double_extension.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious Double Extension Files",
entity page, dataset version ref-c3fe47f0497e, updated 2026-10-16T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b4926b47-a9d7-434c-b3a0-adc3fa0bd13e (accessed 2026-11-03).
Underlying source: SigmaHQ rule b4926b47-a9d7-434c-b3a0-adc3fa0bd13e, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.