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/09/18"
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 "Noise: Medium",
114 "Performance: Normal",
115 "Profile: Recommended",
116 "Threat: Living off the Land",
117 "Rule Type: Event Correlation (EQL)",
118 "Platform: Windows",
119]
120timestamp_override = "event.ingested"
121type = "eql"
122
123query = '''
124process where host.os.type == "windows" and event.type == "start" and
125 process.parent.name : (
126 "eqnedt32.exe", "excel.exe", "fltldr.exe", "msaccess.exe",
127 "mspub.exe", "powerpnt.exe", "winword.exe", "outlook.exe"
128 ) and
129 process.name : (
130 "Microsoft.Workflow.Compiler.exe", "arp.exe", "atbroker.exe", "bginfo.exe", "bitsadmin.exe", "cdb.exe",
131 "certutil.exe", "cmd.exe", "cmstp.exe", "control.exe", "cscript.exe", "csi.exe", "dnx.exe", "dsget.exe",
132 "dsquery.exe", "forfiles.exe", "fsi.exe", "ftp.exe", "gpresult.exe", "hostname.exe", "ieexec.exe", "iexpress.exe",
133 "installutil.exe", "ipconfig.exe", "mshta.exe", "msxsl.exe", "nbtstat.exe", "net.exe", "net1.exe", "netsh.exe",
134 "netstat.exe", "nltest.exe", "odbcconf.exe", "ping.exe", "powershell.exe", "pwsh.exe", "qprocess.exe",
135 "quser.exe", "qwinsta.exe", "rcsi.exe", "reg.exe", "regasm.exe", "regsvcs.exe", "regsvr32.exe", "sc.exe",
136 "schtasks.exe", "systeminfo.exe", "tasklist.exe", "tracert.exe", "whoami.exe", "wmic.exe", "wscript.exe",
137 "xwizard.exe", "explorer.exe", "rundll32.exe", "hh.exe", "msdt.exe"
138 ) and
139 not (
140 process.parent.name : "outlook.exe" and
141 process.name : "rundll32.exe" and
142 process.args : "shell32.dll,Control_RunDLL" and
143 process.args : "srchadmin.dll"
144 )
145'''
146
147
148[[rule.threat]]
149framework = "MITRE ATT&CK"
150
151[[rule.threat.technique]]
152id = "T1566"
153name = "Phishing"
154reference = "https://attack.mitre.org/techniques/T1566/"
155
156[[rule.threat.technique.subtechnique]]
157id = "T1566.001"
158name = "Spearphishing Attachment"
159reference = "https://attack.mitre.org/techniques/T1566/001/"
160
161[rule.threat.tactic]
162id = "TA0001"
163name = "Initial Access"
164reference = "https://attack.mitre.org/tactics/TA0001/"
165
166[[rule.threat]]
167framework = "MITRE ATT&CK"
168
169[[rule.threat.technique]]
170id = "T1059"
171name = "Command and Scripting Interpreter"
172reference = "https://attack.mitre.org/techniques/T1059/"
173
174[[rule.threat.technique.subtechnique]]
175id = "T1059.001"
176name = "PowerShell"
177reference = "https://attack.mitre.org/techniques/T1059/001/"
178
179[[rule.threat.technique.subtechnique]]
180id = "T1059.003"
181name = "Windows Command Shell"
182reference = "https://attack.mitre.org/techniques/T1059/003/"
183
184[[rule.threat.technique]]
185id = "T1203"
186name = "Exploitation for Client Execution"
187reference = "https://attack.mitre.org/techniques/T1203/"
188
189[rule.threat.tactic]
190id = "TA0002"
191name = "Execution"
192reference = "https://attack.mitre.org/tactics/TA0002/"
193
194[[rule.threat]]
195framework = "MITRE ATT&CK"
196
197[[rule.threat.technique]]
198id = "T1218"
199name = "System Binary Proxy Execution"
200reference = "https://attack.mitre.org/techniques/T1218/"
201
202[[rule.threat.technique.subtechnique]]
203id = "T1218.001"
204name = "Compiled HTML File"
205reference = "https://attack.mitre.org/techniques/T1218/001/"
206
207[[rule.threat.technique.subtechnique]]
208id = "T1218.002"
209name = "Control Panel"
210reference = "https://attack.mitre.org/techniques/T1218/002/"
211
212[[rule.threat.technique.subtechnique]]
213id = "T1218.003"
214name = "CMSTP"
215reference = "https://attack.mitre.org/techniques/T1218/003/"
216
217[[rule.threat.technique.subtechnique]]
218id = "T1218.004"
219name = "InstallUtil"
220reference = "https://attack.mitre.org/techniques/T1218/004/"
221
222[[rule.threat.technique.subtechnique]]
223id = "T1218.005"
224name = "Mshta"
225reference = "https://attack.mitre.org/techniques/T1218/005/"
226
227[[rule.threat.technique.subtechnique]]
228id = "T1218.008"
229name = "Odbcconf"
230reference = "https://attack.mitre.org/techniques/T1218/008/"
231
232[[rule.threat.technique.subtechnique]]
233id = "T1218.009"
234name = "Regsvcs/Regasm"
235reference = "https://attack.mitre.org/techniques/T1218/009/"
236
237[[rule.threat.technique.subtechnique]]
238id = "T1218.010"
239name = "Regsvr32"
240reference = "https://attack.mitre.org/techniques/T1218/010/"
241
242[[rule.threat.technique.subtechnique]]
243id = "T1218.011"
244name = "Rundll32"
245reference = "https://attack.mitre.org/techniques/T1218/011/"
246
247[rule.threat.tactic]
248id = "TA0005"
249name = "Defense Evasion"
250reference = "https://attack.mitre.org/tactics/TA0005/"
251
252[[rule.threat]]
253framework = "MITRE ATT&CK"
254
255[[rule.threat.technique]]
256id = "T1016"
257name = "System Network Configuration Discovery"
258reference = "https://attack.mitre.org/techniques/T1016/"
259
260[[rule.threat.technique]]
261id = "T1033"
262name = "System Owner/User Discovery"
263reference = "https://attack.mitre.org/techniques/T1033/"
264
265[[rule.threat.technique]]
266id = "T1049"
267name = "System Network Connections Discovery"
268reference = "https://attack.mitre.org/techniques/T1049/"
269
270[[rule.threat.technique]]
271id = "T1057"
272name = "Process Discovery"
273reference = "https://attack.mitre.org/techniques/T1057/"
274
275[[rule.threat.technique]]
276id = "T1082"
277name = "System Information Discovery"
278reference = "https://attack.mitre.org/techniques/T1082/"
279
280[rule.threat.tactic]
281id = "TA0007"
282name = "Discovery"
283reference = "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
- ImageLoad via Windows Update Auto Update Client
- Suspicious .NET Code Compilation
- Suspicious MS Outlook Child Process
- Control Panel Process with Unusual Arguments
- Execution from Unusual Directory - Command Line