Masquerading: Double File Extension T1036.007

Tactic: Stealth

Adversaries may abuse a double extension in the filename as a means of masquerading the true file type. A file name may include a secondary file type extension that may cause only the first extension to be displayed (ex: File.txt.exe may render in some views as just File.txt). However, the second extension is the true file type that determines how the file is opened and executed. The real file extension may be hidden by the operating system in the file browser (ex: explorer.exe), as well as in any software configured using or similar to the system’s policies.

Events covered

3 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 6 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (10 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
CommandLine2regex_match 2(?i)((\s{3,}|_{3,})|(\.(pdf|jpg|jpeg|gif|ico|doc|xls|docx...
EventID2eq 21, 4688
TargetFilename2contains 2, ends_with 2, starts_with 1.doc., .docx., .exe, .jpg.
Image1ends_with 1\excel.exe, \powerpnt.exe, \winword.exe
ParentCommandLine1contains 1.doc.js, .doc.lnk, .docx.js
ParentImage1ends_with 1.doc.js, .doc.lnk, .docx.js
Type1eq 1
event.type1eq 1creation
file.extension1eq 1exe
file.name1match 1.*\.(vbs|vbe|bat|js|cmd|wsh|ps1|pdf|docx?|xlsx?|pptx?|txt...

Top indicator values (75 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
CommandLineregex_match
(?i)((\s{3,}|_{3,})|(\.(pdf|jpg|jpeg|gif|ico|doc|xls|docx|xlsx|png|xml|csv|pp...
22
TargetFilenamecontains
.doc.
22
TargetFilenamecontains
.docx.
22
TargetFilenamecontains
.jpg.
22
TargetFilenamecontains
.pdf.
22
TargetFilenamecontains
.ppt.
22
TargetFilenamecontains
.pptx.
22
TargetFilenamecontains
.xls.
22
TargetFilenamecontains
.xlsx.
22
EventIDeq
1
1237
EventIDeq
4688
1313
Imageends_with
\excel.exe
118
Imageends_with
\powerpnt.exe
115
Imageends_with
\winword.exe
120
ParentCommandLinecontains
.doc.js
1
ParentCommandLinecontains
.doc.lnk
1
ParentCommandLinecontains
.docx.js
1
ParentCommandLinecontains
.docx.lnk
1
ParentCommandLinecontains
.pdf.js
1
ParentCommandLinecontains
.pdf.lnk
1
ParentCommandLinecontains
.ppt.js
1
ParentCommandLinecontains
.ppt.lnk
1
ParentCommandLinecontains
.pptx.js
1
ParentCommandLinecontains
.pptx.lnk
1
ParentCommandLinecontains
.rtf.js
1
ParentCommandLinecontains
.rtf.lnk
1
ParentCommandLinecontains
.txt.js
1
ParentCommandLinecontains
.txt.lnk
1
ParentCommandLinecontains
.xls.js
1
ParentCommandLinecontains
.xls.lnk
1

Exclusions (18 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
Imageends_with
\excel.exe
1
Imageends_with
\powerpnt.exe
1
Imageends_with
\winword.exe
1
Imagewildcard
*\users\*\qgis_sccm\files\qgis-osgeo4w-*-setup-x86_64.exe
1
Imagewildcard
?:\windows\system32\msiexec.exe
1
Imagewildcard
\device\harddiskvolume*\program files\dotnet\dotnet.exe
1
Imagewildcard
\device\harddiskvolume*\program files\microsoft visual studio\*.exe
1
Imagewildcard
\device\harddiskvolume*\windows\system32\msiexec.exe
1
Imagewildcard
c:\program files\dotnet\dotnet.exe
1
Imagewildcard
c:\program files\microsoft visual studio\*.exe
1
TargetFilenamecontains
\appdata\roaming\microsoft\excel
1
TargetFilenamecontains
\appdata\roaming\microsoft\office\recent\
1
TargetFilenamecontains
\appdata\roaming\microsoft\powerpoint
1
TargetFilenamecontains
\appdata\roaming\microsoft\windows\recent\
1
TargetFilenamecontains
\appdata\roaming\microsoft\word
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 3 rules

Elastic 1 rule

Splunk 2 rules