Signed Proxy Execution via MS Work Folders
Identifies the use of Windows Work Folders to execute a potentially masqueraded control.exe file in the current working directory. Misuse of Windows Work Folders could indicate malicious activity.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2022/03/02"
3integration = ["windows", "system", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
4maturity = "production"
5updated_date = "2024/10/31"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10author = ["Elastic", "Austin Songer"]
11description = """
12Identifies the use of Windows Work Folders to execute a potentially masqueraded control.exe file in the current working
13directory. Misuse of Windows Work Folders could indicate malicious activity.
14"""
15from = "now-9m"
16index = [
17 "winlogbeat-*",
18 "logs-windows.forwarded*",
19 "logs-windows.sysmon_operational-*",
20 "endgame-*",
21 "logs-system.security*",
22 "logs-m365_defender.event-*",
23 "logs-sentinel_one_cloud_funnel.*",
24 "logs-crowdstrike.fdr*"
25]
26language = "eql"
27license = "Elastic License v2"
28name = "Signed Proxy Execution via MS Work Folders"
29note = """## Triage and analysis
30
31### Investigating Signed Proxy Execution via MS Work Folders
32
33Work Folders is a role service for file servers running Windows Server that provides a consistent way for users to access their work files from their PCs and devices. This allows users to store work files and access them from anywhere. When called, Work Folders will automatically execute any Portable Executable (PE) named control.exe as an argument before accessing the synced share.
34
35Using Work Folders to execute a masqueraded control.exe could allow an adversary to bypass application controls and increase privileges.
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 - Examine the location of the WorkFolders.exe binary to determine if it was copied to the location of the control.exe binary. It resides in the System32 directory by default.
41- Trace the activity related to the control.exe binary to identify any continuing intrusion activity on the host.
42- Review the control.exe binary executed with Work Folders to determine maliciousness such as additional host activity or network traffic.
43- Determine if control.exe was synced to sync share, indicating potential lateral movement.
44- Review how control.exe was originally delivered on the host, such as emailed, downloaded from the web, or written to
45disk from a separate binary.
46
47### False positive analysis
48
49- Windows Work Folders are used legitimately by end users and administrators for file sharing and syncing but not in the instance where a suspicious control.exe is passed as an argument.
50
51### Response and remediation
52
53- Initiate the incident response process based on the outcome of the triage.
54- Isolate the involved host to prevent further post-compromise behavior.
55- Review the Work Folders synced share to determine if the control.exe was shared and if so remove it.
56- If no lateral movement was identified during investigation, take the affected host offline if possible and remove the control.exe binary as well as any additional artifacts identified during investigation.
57- Review integrating Windows Information Protection (WIP) to enforce data protection by encrypting the data on PCs using Work Folders.
58- Confirm with the user whether this was expected or not, and reset their password.
59"""
60references = [
61 "https://docs.microsoft.com/en-us/windows-server/storage/work-folders/work-folders-overview",
62 "https://twitter.com/ElliotKillick/status/1449812843772227588",
63 "https://lolbas-project.github.io/lolbas/Binaries/WorkFolders/",
64]
65risk_score = 47
66rule_id = "ad0d2742-9a49-11ec-8d6b-acde48001122"
67severity = "medium"
68tags = [
69 "Domain: Endpoint",
70 "OS: Windows",
71 "Use Case: Threat Detection",
72 "Tactic: Defense Evasion",
73 "Resources: Investigation Guide",
74 "Data Source: Elastic Endgame",
75 "Data Source: System",
76 "Data Source: Microsoft Defender for Endpoint",
77 "Data Source: Sysmon",
78 "Data Source: SentinelOne",
79 "Data Source: Crowdstrike",
80]
81timestamp_override = "event.ingested"
82type = "eql"
83
84query = '''
85process where host.os.type == "windows" and event.type == "start" and
86 process.name : "control.exe" and process.parent.name : "WorkFolders.exe" and
87 not process.executable : (
88 "?:\\Windows\\System32\\control.exe",
89 "?:\\Windows\\SysWOW64\\control.exe",
90 "\\Device\\HarddiskVolume?\\Windows\\System32\\control.exe",
91 "\\Device\\HarddiskVolume?\\Windows\\SysWOW64\\control.exe"
92 )
93'''
94
95
96[[rule.threat]]
97framework = "MITRE ATT&CK"
98[[rule.threat.technique]]
99id = "T1218"
100name = "System Binary Proxy Execution"
101reference = "https://attack.mitre.org/techniques/T1218/"
102
103
104[rule.threat.tactic]
105id = "TA0005"
106name = "Defense Evasion"
107reference = "https://attack.mitre.org/tactics/TA0005/"
Triage and analysis
Investigating Signed Proxy Execution via MS Work Folders
Work Folders is a role service for file servers running Windows Server that provides a consistent way for users to access their work files from their PCs and devices. This allows users to store work files and access them from anywhere. When called, Work Folders will automatically execute any Portable Executable (PE) named control.exe as an argument before accessing the synced share.
Using Work Folders to execute a masqueraded control.exe could allow an adversary to bypass application controls and increase privileges.
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.
- Examine the location of the WorkFolders.exe binary to determine if it was copied to the location of the control.exe binary. It resides in the System32 directory by default.
- Trace the activity related to the control.exe binary to identify any continuing intrusion activity on the host.
- Review the control.exe binary executed with Work Folders to determine maliciousness such as additional host activity or network traffic.
- Determine if control.exe was synced to sync share, indicating potential lateral movement.
- Review how control.exe was originally delivered on the host, such as emailed, downloaded from the web, or written to disk from a separate binary.
False positive analysis
- Windows Work Folders are used legitimately by end users and administrators for file sharing and syncing but not in the instance where a suspicious control.exe is passed as an argument.
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.
- Review the Work Folders synced share to determine if the control.exe was shared and if so remove it.
- If no lateral movement was identified during investigation, take the affected host offline if possible and remove the control.exe binary as well as any additional artifacts identified during investigation.
- Review integrating Windows Information Protection (WIP) to enforce data protection by encrypting the data on PCs using Work Folders.
- Confirm with the user whether this was expected or not, and reset their password.
References
Related rules
- Enable Host Network Discovery via Netsh
- Microsoft Build Engine Started by an Office Application
- Disable Windows Firewall Rules via Netsh
- Attempt to Install Kali Linux via WSL
- Control Panel Process with Unusual Arguments