First Time Seen Commonly Abused Remote Access Tool Execution

Adversaries may install legitimate remote access tools (RAT) to compromised endpoints for further command-and-control (C2). Adversaries can rely on installed RATs for persistence, execution of native commands and more. This rule detects when a process is started whose name or code signature resembles commonly abused RATs. This is a New Terms rule type indicating the host has not seen this RAT process started before within the last 30 days.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2023/04/03"
  3integration = ["endpoint", "windows"]
  4maturity = "production"
  5min_stack_comments = "The New Term rule type used in this rule was added in Elastic 8.4"
  6min_stack_version = "8.4.0"
  7updated_date = "2024/03/28"
  8
  9[rule]
 10author = ["Elastic"]
 11description = """
 12Adversaries may install legitimate remote access tools (RAT) to compromised endpoints for further command-and-control
 13(C2). Adversaries can rely on installed RATs for persistence, execution of native commands and more. This rule detects
 14when a process is started whose name or code signature resembles commonly abused RATs. This is a New Terms rule type
 15indicating the host has not seen this RAT process started before within the last 30 days.
 16"""
 17from = "now-9m"
 18index = ["logs-endpoint.events.process-*", "endgame-*", "winlogbeat-*", "logs-windows.*", "logs-system.security*"]
 19language = "kuery"
 20license = "Elastic License v2"
 21name = "First Time Seen Commonly Abused Remote Access Tool Execution"
 22note = """
 23## Triage and analysis
 24
 25### Investigating First Time Seen Commonly Abused Remote Access Tool Execution
 26
 27Remote access software is a class of tools commonly used by IT departments to provide support by connecting securely to users' computers. Remote access is an ever-growing market where new companies constantly offer new ways of quickly accessing remote systems.
 28
 29At the same pace as IT departments adopt these tools, the attackers also adopt them as part of their workflow to connect into an interactive session, maintain access with legitimate software as a persistence mechanism, drop malicious software, etc.
 30
 31This rule detects when a remote access tool is seen in the environment for the first time in the last 15 days, enabling analysts to investigate and enforce the correct usage of such tools.
 32
 33#### Possible investigation steps
 34
 35- 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.
 36- Check if the execution of the remote access tool is approved by the organization's IT department.
 37- Investigate other alerts associated with the user/host during the past 48 hours.
 38- Contact the account owner and confirm whether they are aware of this activity.
 39  - If the tool is not approved for use in the organization, the employee could have been tricked into installing it and providing access to a malicious third party. Investigate whether this third party could be attempting to scam the end-user or gain access to the environment through social engineering.
 40- Investigate any abnormal behavior by the subject process, such as network connections, registry or file modifications, and any spawned child processes.
 41
 42### False positive analysis
 43
 44- If an authorized support person or administrator used the tool to conduct legitimate support or remote access, consider reinforcing that only tooling approved by the IT policy should be used. The analyst can dismiss the alert if no other suspicious behavior is observed involving the host or users.
 45
 46### Response and remediation
 47
 48- Initiate the incident response process based on the outcome of the triage.
 49- Isolate the involved host to prevent further post-compromise behavior.
 50- Run a full scan using the antimalware tool in place. This scan can reveal additional artifacts left in the system, persistence mechanisms, and malware components.
 51- 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.
 52- If an unauthorized third party did the access via social engineering, consider improvements to the security awareness program.
 53- Enforce that only tooling approved by the IT policy should be used for remote access purposes and only by authorized staff.
 54- 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).
 55"""
 56references = [
 57    "https://thedfirreport.com/2023/04/03/malicious-iso-file-leads-to-domain-wide-ransomware/",
 58    "https://attack.mitre.org/techniques/T1219/",
 59    "https://github.com/redcanaryco/surveyor/blob/master/definitions/remote-admin.json"
 60]
 61risk_score = 47
 62rule_id = "6e1a2cc4-d260-11ed-8829-f661ea17fbcc"
 63severity = "medium"
 64tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Command and Control", "Resources: Investigation Guide", "Data Source: Elastic Defend", "Data Source: Elastic Endgame"]
 65timestamp_override = "event.ingested"
 66type = "new_terms"
 67
 68query = '''
 69host.os.type: "windows" and
 70
 71   event.category: "process" and event.type : "start" and
 72
 73    (
 74        process.code_signature.subject_name : (
 75            "Action1 Corporation" or
 76            "AeroAdmin LLC" or
 77            "Ammyy LLC" or
 78            "Atera Networks Ltd" or
 79            "AWERAY PTE. LTD." or
 80            "BeamYourScreen GmbH" or
 81            "Bomgar Corporation" or
 82            "DUC FABULOUS CO.,LTD" or
 83            "DOMOTZ INC." or
 84            "DWSNET OÜ" or
 85            "FleetDeck Inc" or
 86            "GlavSoft LLC" or
 87            "GlavSoft LLC." or
 88            "Hefei Pingbo Network Technology Co. Ltd" or
 89            "IDrive, Inc." or
 90            "IMPERO SOLUTIONS LIMITED" or
 91            "Instant Housecall" or
 92            "ISL Online Ltd." or
 93            "LogMeIn, Inc." or
 94            "Monitoring Client" or
 95            "MMSOFT Design Ltd." or
 96            "Nanosystems S.r.l." or
 97            "NetSupport Ltd" or
 98            "NinjaRMM, LLC" or
 99            "Parallels International GmbH" or
100            "philandro Software GmbH" or
101            "Pro Softnet Corporation" or
102            "RealVNC" or
103            "RealVNC Limited" or
104            "BreakingSecurity.net" or
105            "Remote Utilities LLC" or
106            "Rocket Software, Inc." or
107            "SAFIB" or
108            "Servably, Inc." or
109            "ShowMyPC INC" or
110            "Splashtop Inc." or
111            "Superops Inc." or
112            "TeamViewer" or
113            "TeamViewer GmbH" or
114            "TeamViewer Germany GmbH" or
115            "Techinline Limited" or
116            "uvnc bvba" or
117            "Yakhnovets Denis Aleksandrovich IP" or
118            "Zhou Huabing"
119        ) or
120
121        process.name.caseless : (
122            AA_v*.exe or
123            "AeroAdmin.exe" or
124            "AnyDesk.exe" or
125            "apc_Admin.exe" or
126            "apc_host.exe" or
127            "AteraAgent.exe" or
128            aweray_remote*.exe or
129            "AweSun.exe" or
130            "B4-Service.exe" or
131            "BASupSrvc.exe" or
132            "bomgar-scc.exe" or
133            "domotzagent.exe" or
134            "domotz-windows-x64-10.exe" or
135            "dwagsvc.exe" or
136            "DWRCC.exe" or
137            "ImperoClientSVC.exe" or
138            "ImperoServerSVC.exe" or
139            "ISLLight.exe" or
140            "ISLLightClient.exe" or
141            fleetdeck_commander*.exe or
142            "getscreen.exe" or
143            "LMIIgnition.exe" or
144            "LogMeIn.exe" or
145            "ManageEngine_Remote_Access_Plus.exe" or
146            "Mikogo-Service.exe" or
147            "NinjaRMMAgent.exe" or
148            "NinjaRMMAgenPatcher.exe" or
149            "ninjarmm-cli.exe" or
150            "r_server.exe" or
151            "radmin.exe" or
152            "radmin3.exe" or
153            "RCClient.exe" or
154            "RCService.exe" or
155            "RemoteDesktopManager.exe" or
156            "RemotePC.exe" or
157            "RemotePCDesktop.exe" or
158            "RemotePCService.exe" or
159            "rfusclient.exe" or
160            "ROMServer.exe" or
161            "ROMViewer.exe" or
162            "RPCSuite.exe" or
163            "rserver3.exe" or
164            "rustdesk.exe" or
165            "rutserv.exe" or
166            "rutview.exe" or
167            "saazapsc.exe" or
168            ScreenConnect*.exe or
169            "smpcview.exe" or
170            "spclink.exe" or
171            "Splashtop-streamer.exe" or
172            "SRService.exe" or
173            "strwinclt.exe" or
174            "Supremo.exe" or
175            "SupremoService.exe" or
176            "teamviewer.exe" or
177            "TiClientCore.exe" or
178            "TSClient.exe" or
179            "tvn.exe" or
180            "tvnserver.exe" or
181            "tvnviewer.exe" or
182            UltraVNC*.exe or
183            UltraViewer*.exe or
184            "vncserver.exe" or
185            "vncviewer.exe" or
186            "winvnc.exe" or
187            "winwvc.exe" or
188            "Zaservice.exe" or
189            "ZohoURS.exe"
190        ) or
191        process.name : (
192            AA_v*.exe or
193            "AeroAdmin.exe" or
194            "AnyDesk.exe" or
195            "apc_Admin.exe" or
196            "apc_host.exe" or
197            "AteraAgent.exe" or
198            aweray_remote*.exe or
199            "AweSun.exe" or
200            "B4-Service.exe" or
201            "BASupSrvc.exe" or
202            "bomgar-scc.exe" or
203            "domotzagent.exe" or
204            "domotz-windows-x64-10.exe" or
205            "dwagsvc.exe" or
206            "DWRCC.exe" or
207            "ImperoClientSVC.exe" or
208            "ImperoServerSVC.exe" or
209            "ISLLight.exe" or
210            "ISLLightClient.exe" or
211            fleetdeck_commander*.exe or
212            "getscreen.exe" or
213            "LMIIgnition.exe" or
214            "LogMeIn.exe" or
215            "ManageEngine_Remote_Access_Plus.exe" or
216            "Mikogo-Service.exe" or
217            "NinjaRMMAgent.exe" or
218            "NinjaRMMAgenPatcher.exe" or
219            "ninjarmm-cli.exe" or
220            "r_server.exe" or
221            "radmin.exe" or
222            "radmin3.exe" or
223            "RCClient.exe" or
224            "RCService.exe" or
225            "RemoteDesktopManager.exe" or
226            "RemotePC.exe" or
227            "RemotePCDesktop.exe" or
228            "RemotePCService.exe" or
229            "rfusclient.exe" or
230            "ROMServer.exe" or
231            "ROMViewer.exe" or
232            "RPCSuite.exe" or
233            "rserver3.exe" or
234            "rustdesk.exe" or
235            "rutserv.exe" or
236            "rutview.exe" or
237            "saazapsc.exe" or
238            ScreenConnect*.exe or
239            "smpcview.exe" or
240            "spclink.exe" or
241            "Splashtop-streamer.exe" or
242            "SRService.exe" or
243            "strwinclt.exe" or
244            "Supremo.exe" or
245            "SupremoService.exe" or
246            "teamviewer.exe" or
247            "TiClientCore.exe" or
248            "TSClient.exe" or
249            "tvn.exe" or
250            "tvnserver.exe" or
251            "tvnviewer.exe" or
252            UltraVNC*.exe or
253            UltraViewer*.exe or
254            "vncserver.exe" or
255            "vncviewer.exe" or
256            "winvnc.exe" or
257            "winwvc.exe" or
258            "Zaservice.exe" or
259            "ZohoURS.exe"
260        )
261	) and
262
263	not (process.pe.original_file_name : ("G2M.exe" or "Updater.exe" or "powershell.exe") and process.code_signature.subject_name : "LogMeIn, Inc.")
264'''
265
266
267[[rule.threat]]
268framework = "MITRE ATT&CK"
269[[rule.threat.technique]]
270id = "T1219"
271name = "Remote Access Software"
272reference = "https://attack.mitre.org/techniques/T1219/"
273
274
275[rule.threat.tactic]
276id = "TA0011"
277name = "Command and Control"
278reference = "https://attack.mitre.org/tactics/TA0011/"
279
280[rule.new_terms]
281field = "new_terms_fields"
282value = ["host.id"]
283[[rule.new_terms.history_window_start]]
284field = "history_window_start"
285value = "now-15d"

Triage and analysis

Investigating First Time Seen Commonly Abused Remote Access Tool Execution

Remote access software is a class of tools commonly used by IT departments to provide support by connecting securely to users' computers. Remote access is an ever-growing market where new companies constantly offer new ways of quickly accessing remote systems.

At the same pace as IT departments adopt these tools, the attackers also adopt them as part of their workflow to connect into an interactive session, maintain access with legitimate software as a persistence mechanism, drop malicious software, etc.

This rule detects when a remote access tool is seen in the environment for the first time in the last 15 days, enabling analysts to investigate and enforce the correct usage of such tools.

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.
  • Check if the execution of the remote access tool is approved by the organization's IT department.
  • Investigate other alerts associated with the user/host during the past 48 hours.
  • Contact the account owner and confirm whether they are aware of this activity.
    • If the tool is not approved for use in the organization, the employee could have been tricked into installing it and providing access to a malicious third party. Investigate whether this third party could be attempting to scam the end-user or gain access to the environment through social engineering.
  • Investigate any abnormal behavior by the subject process, such as network connections, registry or file modifications, and any spawned child processes.

False positive analysis

  • If an authorized support person or administrator used the tool to conduct legitimate support or remote access, consider reinforcing that only tooling approved by the IT policy should be used. The analyst can dismiss the alert if no other suspicious behavior is observed involving the host or users.

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.
  • Run a full scan using the antimalware tool in place. This scan can reveal additional artifacts left in the system, persistence mechanisms, and malware components.
  • 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 an unauthorized third party did the access via social engineering, consider improvements to the security awareness program.
  • Enforce that only tooling approved by the IT policy should be used for remote access purposes and only by authorized staff.
  • 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

to-top