T1204.002 Malicious File
Executionon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0294 User Execution – Malicious File via download/open → spawn chain (T1204.002)
AN0819 Windows
User opens a file delivered by email, web, chat, or share. The handler application (Word/PDF reader/archiver) creates a file in user-controlled paths (Downloads, Temp, Desktop) and then spawns a new or unusual child process (e.g., powershell.exe, wscript.exe, cmd.exe, regsvr32.exe, rundll32.exe, msiexec.exe). Optional precursors include FileStreamCreated (URL/UNC) and Office → system32 batch writes.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=1 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=15 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
AN0820 macOS
User opens a downloaded document/installer leading to EndpointSecurity file create in ~/Downloads or ~/Library paths then an exec of a suspicious utility (osascript, bash/zsh, curl, chmod, open with -a Terminal). Correlates File Creation with subsequent process exec and, optionally, quarantine/LSQuarantine events.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogprocess_exec: image in {/bin/bash,/bin/zsh,/usr/bin/osascript,/usr/bin/python*,/usr/bin/curl,/usr/bin/ssh,/usr/bin/open} AND parent in {Preview, TextEdit, Microsoft Word, Microsoft Excel, AdobeReader, Archive Utility, Finder} | Not mapped to Sentinel yet. |
macos:endpointsecurityES_EVENT_TYPE_NOTIFY_CREATE: path under /Users/*/(Downloads|Desktop|Library/*/Containers|Library/Group Containers) AND extension in SuspiciousExtensions | Not mapped to Sentinel yet. |
AN0821 Linux
User or desktop application writes a new file to ~/Downloads, /tmp, or mounted removable media followed by execve of a risky interpreter/loader (bash, sh, python, perl, php, node, curl|wget piping to sh, ld.so, rdesktop, xdg-open - with unusual args). Uses auditd PATH+SYSCALL (open/creat/write/rename) with execve event linking.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLopen/create/rename: name in (/home/*/Downloads/*|/tmp/*|/run/user/*|/media/*) AND ext in SuspiciousExtensions | Not mapped to Sentinel yet. |
auditd:SYSCALLexecve: exe in {/bin/bash,/bin/sh,/usr/bin/python*,/usr/bin/perl,/usr/bin/php,/usr/bin/node,/usr/bin/curl,/usr/bin/wget,/usr/bin/xdg-open,/usr/bin/ssh,/usr/bin/rundll32 (wine)} AND ppid process is a document viewer/browser | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (17)
- Cisco SE - Dropper activity on host
- Cisco SE - Generic IOC
- Cisco SE - Malware execusion on host
- Cisco SE High Events Last Hour
- Common Event Format (CEF) via AMA - Critical Severity Detection
- CYFIRMA - Brand Intelligence - Malicious Mobile App High Rule
- CYFIRMA - Brand Intelligence - Malicious Mobile App Medium Rule
- Microsoft COVID-19 file hash indicator matches
- Cisco SE - Infected hosts
- Cisco SE - Infected users
- Cisco SE - Malicious files
- Cisco SE - Rare scanned files
- Cisco SE - Scanned files
- Cisco SE - Suspicious powershel downloads
- Cisco SE - Uncommon application behavior
- Cisco SE - Vulnerable applications
- Rundll32 or cmd Executing Application from Explorer - Potential Malware Execution Chain
How the Content Hub rules for T1204.002 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
39 SigmaHQ community rules name it in their tags.
- Droppers Exploiting CVE-2017-11882
- Ursnif Malware C2 URL Pattern
- Exploit for CVE-2017-8759
- Potential Maze Ransomware Activity
- File With Uncommon Extension Created By An Office Application
- Flash Player Update from Suspicious Location
- GAC DLL Loaded Via Office Applications
- HackTool - LittleCorporal Generated Maldoc Injection
- Kapeka Backdoor Loaded Via Rundll32.EXE
- Suspicious Binary In User Directory Spawned From Office Application
- Suspicious Microsoft Office Child Process
- Suspicious Microsoft Office Child Process - MacOS
- Suspicious Outlook Child Process
- Suspicious Startup Folder Persistence
- Suspicious WMIC Execution Via Office Process
- Suspicious WmiPrvSE Child Process
- VBA DLL Loaded Via Office Application
- AppLocker Prevented Application or Script from Running
- CLR DLL Loaded Via Office Applications
- DotNET Assembly DLL Loaded Via Office Application
- Exploit for CVE-2017-0261
- Microsoft Excel Add-In Loaded From Uncommon Location
- Microsoft VBA For Outlook Addin Loaded Via Outlook
- Potential Suspicious Browser Launch From Document Reader Process
- Remote DLL Load Via Rundll32.EXE
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.