ATT&CK coverage › Technique

User Execution: Malicious File T1204.002

An adversary may rely upon a user opening a malicious file in order to gain execution. Users may be subjected to social engineering to get them to open a file that will lead to code execution. This user action will typically be observed as follow-on behavior from Spearphishing Attachment. Adversaries may use several types of files that require a user to execute them, including .doc, .pdf, .xls, .rtf, .scr, .exe, .lnk, .pif, .cpl, .reg, and .iso.

Events covered

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

ProviderEvent IDTitle
Sysmon1Process creation
Sysmon3Network connection
Sysmon7Image loaded
Sysmon10ProcessAccess
Sysmon11FileCreate
Sysmon13RegistryEvent (Value Set)
Security-Auditing4688A new process has been created.
AppLocker8004FilePathBuffer was prevented from running.
AppLocker8007FilePathBuffer was prevented from running.
AppLocker8022PackageBuffer was prevented from running.
AppLocker8025PackageBuffer was prevented from running.
AppXDeployment-Server400Deployment DeploymentOperation operation with target volume MountPoint on Package PackageFullName from: Path finished successfully.
AppXDeployment-Server603Started deployment DeploymentOperation operation on a package with main parameter Path and Options Flags and FlagsHigh.
AppXDeployment-Server854Successfully added the following uri(s) to be processed: Path.
AppXDeployment-Server855Finished resolving action lists.
AppxPackagingOM171The reader was created successfully for app package packageFullName.

Authoring guide

Patterns shared across the 34 rules above: which fields they filter on, what specific values they look for, and what they exclude. Field names are normalized 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 (19 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
Image18ends_with 17, starts_with 1, match 1, eq 1\excel.exe, \mspub.exe, \onenote.exe, \rundll32.exe, \cscript.exe
ParentImage9ends_with 6, eq 2, match 1\EXCEL.EXE, \MSACCESS.EXE, \MSPUB.exe, "*\\explorer.exe", Microsoft Office
ImageLoaded7starts_with 3, ends_with 3, match 2\clr.dll, C:\Windows\assembly\, C:\Windows\Microsoft.NET\assembly\GAC_MSIL, \Desktop\, \Downloads\
CommandLine6match 5, regex_match 2tdo.msc, fdp.msc, slx.msc, http, https://globe-map.foxitservice.com/go.php?do=redirect
EventID6eq 611, 400, 854, 603, 855
OriginalFileName5eq 5PowerShell.EXE, wmic.exe, MMC.exe, WorkFolders.exe, popupwrapper.exe
TargetFilename4ends_with 2, match 2, in 1, eq 1.com, .vbs, .ocx, .ps1, .scr
HasFullTrust2eq 2true, "true"
Flags2eq 28388608, "8388608"
file_name2eq 2"*.bat", *.url
CallTrace1match 1UNKNOWN, :\Windows\Microsoft.NET\Framework64\v2.
TargetObject1match 1\AppCompatFlags\Compatibility Assistant\Store\
ParentCommandLine1match 1.lnk
PackageSourceUri1match 1, starts_with 1x-windowsupdate://, file:///C:/Program%20Files/, file:///C:/Program%20Files%20(x86)/
PackageFullName1starts_with 1MicrosoftWindows.Client.

Top indicator values (253 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.

FieldKindValueRules (here)Corpus reach
Imageends_with\winword.exe617
Imageends_with\excel.exe616
Imageends_with\mspub.exe57
Imageends_with\outlook.exe516
Imageends_with\powerpnt.exe513
Imageends_with\onenoteim.exe46
Imageends_with\onenote.exe46
Imageends_with\rundll32.exe376
ParentImageends_with\VISIO.exe33
ParentImageends_with\MSPUB.exe33
ParentImageends_with\EXCEL.EXE33
ParentImageends_with\POWERPNT.exe33
ParentImageends_with\WINWORD.EXE33
Imageends_with\msiexec.exe321
Imageends_with\cscript.exe364
Imageends_with\mshta.exe357
Imageends_with\cmd.exe392
Imageends_with\wscript.exe364
Imageends_with\regsvr32.exe357
TargetFilenameends_with.cmd28

Common exclusions (6 distinct)

Field/operator/value combinations that rules under this technique routinely exclude (top-level not() clauses). 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.

FieldKindValueRules excluding
PackageMonikerin"*cw5n1h2txyewy*"1
PackageMonikerin"*8wekyb3d8bbwe*"1
TargetFilenamein"*:\\Windows\\WinSxS\\*"1
TargetFilenamein"*:\\Program Files\\*"1
TargetFilenamein"*:\\Program Files (x86)\\*"1
TargetFilenamein"*\\AppData\\Roaming\\Microsoft\\Office\\Recent\\*"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.

Sigma 23 rules

Splunk 11 rules