Suspicious MS Office Child Process
Identifies suspicious child processes of frequently targeted Microsoft Office applications (Word, PowerPoint, Excel). These child processes are often launched during exploitation of Office applications or from documents with malicious macros.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/02/18"
3integration = ["endpoint", "windows", "system", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
4maturity = "production"
5updated_date = "2026/05/04"
6
7[rule]
8author = ["Elastic"]
9description = """
10Identifies suspicious child processes of frequently targeted Microsoft Office applications (Word, PowerPoint, Excel).
11These child processes are often launched during exploitation of Office applications or from documents with malicious
12macros.
13"""
14from = "now-9m"
15index = [
16 "endgame-*",
17 "logs-crowdstrike.fdr*",
18 "logs-endpoint.events.process-*",
19 "logs-m365_defender.event-*",
20 "logs-sentinel_one_cloud_funnel.*",
21 "logs-system.security*",
22 "logs-windows.forwarded*",
23 "logs-windows.sysmon_operational-*",
24 "winlogbeat-*",
25]
26language = "eql"
27license = "Elastic License v2"
28name = "Suspicious MS Office Child Process"
29note = """## Triage and analysis
30
31### Investigating Suspicious MS Office Child Process
32
33Microsoft Office (MS Office) is a suite of applications designed to help with productivity and completing common tasks on a computer. You can create and edit documents containing text and images, work with data in spreadsheets and databases, and create presentations and posters. As it is some of the most-used software across companies, MS Office is frequently targeted for initial access. It also has a wide variety of capabilities that attackers can take advantage of.
34
35This rule looks for suspicious processes spawned by MS Office programs. This is generally the result of the execution of malicious documents.
36
37#### Possible investigation steps
38
39- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
40- Investigate other alerts associated with the user/host during the past 48 hours.
41- Retrieve MS Office documents received and opened by the user that could cause this behavior. Common locations include, but are not limited to, the Downloads and Document folders and the folder configured at the email client.
42- Determine if the collected files are malicious:
43 - Use a private sandboxed malware analysis system to perform analysis.
44 - Observe and collect information about the following activities:
45 - Attempts to contact external domains and addresses.
46 - File and registry access, modification, and creation activities.
47 - Service creation and launch activities.
48 - Scheduled task creation.
49 - Use the PowerShell Get-FileHash cmdlet to get the files' SHA-256 hash values.
50 - Search for the existence and reputation of the hashes in resources like VirusTotal, Hybrid-Analysis, CISCO Talos, Any.run, etc.
51
52### False positive analysis
53
54- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
55
56### Response and remediation
57
58- Initiate the incident response process based on the outcome of the triage.
59- Isolate the involved host to prevent further post-compromise behavior.
60- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
61- If the triage identified malware, search the environment for additional compromised hosts.
62 - Implement temporary network rules, procedures, and segmentation to contain the malware.
63 - Stop suspicious processes.
64 - Immediately block the identified indicators of compromise (IoCs).
65 - Inspect the affected systems for additional malware backdoors like reverse shells, reverse proxies, or droppers that attackers could use to reinfect the system.
66- Remove and block malicious artifacts identified during triage.
67- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
68- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
69 - If the malicious file was delivered via phishing:
70 - Block the email sender from sending future emails.
71 - Block the malicious web pages.
72 - Remove emails from the sender from mailboxes.
73 - Consider improvements to the security awareness program.
74- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
75"""
76
77setup = """## Setup
78
79This rule is designed for data generated by [Elastic Defend](https://www.elastic.co/security/endpoint-security), which provides native endpoint detection and response, along with event enrichments designed to work with our detection rules.
80
81Setup instructions: https://ela.st/install-elastic-defend
82
83### Additional data sources
84
85This rule also supports the following third-party data sources. For setup instructions, refer to the links below:
86
87- [CrowdStrike](https://ela.st/crowdstrike-integration)
88- [Microsoft Defender XDR](https://ela.st/m365-defender)
89- [SentinelOne Cloud Funnel](https://ela.st/sentinel-one-cloud-funnel)
90- [Sysmon Event ID 1 - Process Creation](https://ela.st/sysmon-event-1-setup)
91- [Windows Process Creation Logs](https://ela.st/audit-process-creation)
92"""
93
94references = ["https://www.elastic.co/blog/vulnerability-summary-follina"]
95risk_score = 47
96rule_id = "a624863f-a70d-417f-a7d2-7a404638d47f"
97severity = "medium"
98tags = [
99 "Domain: Endpoint",
100 "OS: Windows",
101 "Use Case: Threat Detection",
102 "Tactic: Initial Access",
103 "Tactic: Defense Evasion",
104 "Tactic: Execution",
105 "Resources: Investigation Guide",
106 "Data Source: Elastic Endgame",
107 "Data Source: Elastic Defend",
108 "Data Source: Windows Security Event Logs",
109 "Data Source: Microsoft Defender XDR",
110 "Data Source: Sysmon",
111 "Data Source: SentinelOne",
112 "Data Source: Crowdstrike",
113]
114timestamp_override = "event.ingested"
115type = "eql"
116
117query = '''
118process where host.os.type == "windows" and event.type == "start" and
119 process.parent.name : (
120 "eqnedt32.exe", "excel.exe", "fltldr.exe", "msaccess.exe",
121 "mspub.exe", "powerpnt.exe", "winword.exe", "outlook.exe"
122 ) and
123 process.name : (
124 "Microsoft.Workflow.Compiler.exe", "arp.exe", "atbroker.exe", "bginfo.exe", "bitsadmin.exe", "cdb.exe",
125 "certutil.exe", "cmd.exe", "cmstp.exe", "control.exe", "cscript.exe", "csi.exe", "dnx.exe", "dsget.exe",
126 "dsquery.exe", "forfiles.exe", "fsi.exe", "ftp.exe", "gpresult.exe", "hostname.exe", "ieexec.exe", "iexpress.exe",
127 "installutil.exe", "ipconfig.exe", "mshta.exe", "msxsl.exe", "nbtstat.exe", "net.exe", "net1.exe", "netsh.exe",
128 "netstat.exe", "nltest.exe", "odbcconf.exe", "ping.exe", "powershell.exe", "pwsh.exe", "qprocess.exe",
129 "quser.exe", "qwinsta.exe", "rcsi.exe", "reg.exe", "regasm.exe", "regsvcs.exe", "regsvr32.exe", "sc.exe",
130 "schtasks.exe", "systeminfo.exe", "tasklist.exe", "tracert.exe", "whoami.exe", "wmic.exe", "wscript.exe",
131 "xwizard.exe", "explorer.exe", "rundll32.exe", "hh.exe", "msdt.exe"
132 ) and
133 not (
134 process.parent.name : "outlook.exe" and
135 process.name : "rundll32.exe" and
136 process.args : "shell32.dll,Control_RunDLL" and
137 process.args : "srchadmin.dll"
138 )
139'''
140
141
142[[rule.threat]]
143framework = "MITRE ATT&CK"
144
145[[rule.threat.technique]]
146id = "T1566"
147name = "Phishing"
148reference = "https://attack.mitre.org/techniques/T1566/"
149
150[[rule.threat.technique.subtechnique]]
151id = "T1566.001"
152name = "Spearphishing Attachment"
153reference = "https://attack.mitre.org/techniques/T1566/001/"
154
155[rule.threat.tactic]
156id = "TA0001"
157name = "Initial Access"
158reference = "https://attack.mitre.org/tactics/TA0001/"
159
160[[rule.threat]]
161framework = "MITRE ATT&CK"
162
163[[rule.threat.technique]]
164id = "T1059"
165name = "Command and Scripting Interpreter"
166reference = "https://attack.mitre.org/techniques/T1059/"
167
168[[rule.threat.technique.subtechnique]]
169id = "T1059.001"
170name = "PowerShell"
171reference = "https://attack.mitre.org/techniques/T1059/001/"
172
173[[rule.threat.technique.subtechnique]]
174id = "T1059.003"
175name = "Windows Command Shell"
176reference = "https://attack.mitre.org/techniques/T1059/003/"
177
178[[rule.threat.technique]]
179id = "T1203"
180name = "Exploitation for Client Execution"
181reference = "https://attack.mitre.org/techniques/T1203/"
182
183[rule.threat.tactic]
184id = "TA0002"
185name = "Execution"
186reference = "https://attack.mitre.org/tactics/TA0002/"
187
188[[rule.threat]]
189framework = "MITRE ATT&CK"
190
191[[rule.threat.technique]]
192id = "T1218"
193name = "System Binary Proxy Execution"
194reference = "https://attack.mitre.org/techniques/T1218/"
195
196[[rule.threat.technique.subtechnique]]
197id = "T1218.001"
198name = "Compiled HTML File"
199reference = "https://attack.mitre.org/techniques/T1218/001/"
200
201[[rule.threat.technique.subtechnique]]
202id = "T1218.002"
203name = "Control Panel"
204reference = "https://attack.mitre.org/techniques/T1218/002/"
205
206[[rule.threat.technique.subtechnique]]
207id = "T1218.003"
208name = "CMSTP"
209reference = "https://attack.mitre.org/techniques/T1218/003/"
210
211[[rule.threat.technique.subtechnique]]
212id = "T1218.004"
213name = "InstallUtil"
214reference = "https://attack.mitre.org/techniques/T1218/004/"
215
216[[rule.threat.technique.subtechnique]]
217id = "T1218.005"
218name = "Mshta"
219reference = "https://attack.mitre.org/techniques/T1218/005/"
220
221[[rule.threat.technique.subtechnique]]
222id = "T1218.008"
223name = "Odbcconf"
224reference = "https://attack.mitre.org/techniques/T1218/008/"
225
226[[rule.threat.technique.subtechnique]]
227id = "T1218.009"
228name = "Regsvcs/Regasm"
229reference = "https://attack.mitre.org/techniques/T1218/009/"
230
231[[rule.threat.technique.subtechnique]]
232id = "T1218.010"
233name = "Regsvr32"
234reference = "https://attack.mitre.org/techniques/T1218/010/"
235
236[[rule.threat.technique.subtechnique]]
237id = "T1218.011"
238name = "Rundll32"
239reference = "https://attack.mitre.org/techniques/T1218/011/"
240
241[rule.threat.tactic]
242id = "TA0005"
243name = "Defense Evasion"
244reference = "https://attack.mitre.org/tactics/TA0005/"
245
246[[rule.threat]]
247framework = "MITRE ATT&CK"
248
249[[rule.threat.technique]]
250id = "T1016"
251name = "System Network Configuration Discovery"
252reference = "https://attack.mitre.org/techniques/T1016/"
253
254[[rule.threat.technique]]
255id = "T1033"
256name = "System Owner/User Discovery"
257reference = "https://attack.mitre.org/techniques/T1033/"
258
259[[rule.threat.technique]]
260id = "T1049"
261name = "System Network Connections Discovery"
262reference = "https://attack.mitre.org/techniques/T1049/"
263
264[[rule.threat.technique]]
265id = "T1057"
266name = "Process Discovery"
267reference = "https://attack.mitre.org/techniques/T1057/"
268
269[[rule.threat.technique]]
270id = "T1082"
271name = "System Information Discovery"
272reference = "https://attack.mitre.org/techniques/T1082/"
273
274[rule.threat.tactic]
275id = "TA0007"
276name = "Discovery"
277reference = "https://attack.mitre.org/tactics/TA0007/"
Triage and analysis
Investigating Suspicious MS Office Child Process
Microsoft Office (MS Office) is a suite of applications designed to help with productivity and completing common tasks on a computer. You can create and edit documents containing text and images, work with data in spreadsheets and databases, and create presentations and posters. As it is some of the most-used software across companies, MS Office is frequently targeted for initial access. It also has a wide variety of capabilities that attackers can take advantage of.
This rule looks for suspicious processes spawned by MS Office programs. This is generally the result of the execution of malicious documents.
Possible investigation steps
- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
- Investigate other alerts associated with the user/host during the past 48 hours.
- Retrieve MS Office documents received and opened by the user that could cause this behavior. Common locations include, but are not limited to, the Downloads and Document folders and the folder configured at the email client.
- Determine if the collected files are malicious:
- Use a private sandboxed malware analysis system to perform analysis.
- Observe and collect information about the following activities:
- Attempts to contact external domains and addresses.
- File and registry access, modification, and creation activities.
- Service creation and launch activities.
- Scheduled task creation.
- Observe and collect information about the following activities:
- Use the PowerShell Get-FileHash cmdlet to get the files' SHA-256 hash values.
- Search for the existence and reputation of the hashes in resources like VirusTotal, Hybrid-Analysis, CISCO Talos, Any.run, etc.
- Use a private sandboxed malware analysis system to perform analysis.
False positive analysis
- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Isolate the involved host to prevent further post-compromise behavior.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
- If the triage identified malware, search the environment for additional compromised hosts.
- Implement temporary network rules, procedures, and segmentation to contain the malware.
- Stop suspicious processes.
- Immediately block the identified indicators of compromise (IoCs).
- Inspect the affected systems for additional malware backdoors like reverse shells, reverse proxies, or droppers that attackers could use to reinfect the system.
- Remove and block malicious artifacts identified during triage.
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
- If the malicious file was delivered via phishing:
- Block the email sender from sending future emails.
- Block the malicious web pages.
- Remove emails from the sender from mailboxes.
- Consider improvements to the security awareness program.
- If the malicious file was delivered via phishing:
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
References
Related rules
- Suspicious MS Outlook Child Process
- Clearing Windows Console History
- Command Execution via SolarWinds Process
- Disabling Windows Defender Security Settings via PowerShell
- ImageLoad via Windows Update Auto Update Client