ScreenConnect MSP attacks: find the second ScreenConnect client on your customers’ computers
Huntress found an active campaign against MSPs on Wednesday, November 11. “Our SOC is working an active campaign that started around 17:47 UTC today targeting cloud-hosted ScreenConnect instances,” it posted to Reddit. Huntress had found six compromised MSPs and 286 affected computers across 47 organizations when BleepingComputer wrote it up. Huntress said the numbers were still going up. ConnectWise is investigating.
The attackers use ScreenConnect’s Run Command to install another ScreenConnect client on the MSP’s managed computers. That client answers to the attacker’s own ScreenConnect server. The MSP’s client keeps running next to it. The MSP’s console still lists only its own.
Huntress also warned that an attacker can compromise the technician’s own machine when the technician opens a ScreenConnect session to an infected computer.
We saw the same end state on RFF itself in September. Someone signed up for two free accounts, enrolled four computers and opened a SYSTEM console on them. They installed a ScreenConnect client from a domain made to look like a billing site. Then they deleted the computers from RFF. Three of the four looked like home PCs. RFF now flags a job that downloads a remote-access client from a host that isn’t the vendor’s. An account that sets off checks like that gets suspended, or at least has its jobs halted.
How to tell two ScreenConnect clients apart
Every installed ScreenConnect client is a Windows service named ScreenConnect Client ( plus 16 hex characters. Those 16 characters are the instance ID. Every computer that answers to the same ScreenConnect server has the same one. A client that answers to a different server has a different one. Your own is in the service name on any computer you manage.
The service’s command line says where the client connects. This one is from a ScreenConnect trial on one of my lab machines:
"C:\Program Files (x86)\ScreenConnect Client (2ad4e4888aa2a021)\ScreenConnect.ClientService.exe"
"?e=Access&y=Guest&h=instance-dg0cqs-relay.screenconnect.com&p=443&s=1dd05de9-...&k=...&c=RFF&c=&c=..."
h= is the relay host and p= is the port. s= is the session ID. The c= values are the custom properties from the installer link, with Company first.
Reports of the campaign list two rogue instance IDs, 2588ef5c15954b10 and ed630cc2c873b091. The rogue installer links carry c=Exploited plus a number as the custom property. Other compromised servers will have IDs of their own.
Check one computer
This lists every ScreenConnect client service with its relay host:
Get-CimInstance Win32_Service |
Where-Object { $_.PathName -match 'ScreenConnect\.ClientService\.exe' } |
ForEach-Object {
[pscustomobject]@{
Service = $_.Name
State = $_.State
Relay = if ($_.PathName -match '[?&]h=([^&]+)') { $Matches[1] }
}
}
This is the output on my lab computer, with a real client and the stand-in rogue client described below:
Service State Relay
------- ----- -----
ScreenConnect Client (2ad4e4888aa2a021) Running instance-dg0cqs-relay.screenconnect.com
ScreenConnect Client (ed630cc2c873b091) Stopped rogue-relay.example.invalid
A second line, or a relay host you don’t recognize, is a client someone else installed.
A support session doesn’t install a service. A user who opens a ScreenConnect support link runs ScreenConnect.WindowsClient.exe from their own profile. Look for the process too:
Get-CimInstance Win32_Process -Filter "Name = 'ScreenConnect.WindowsClient.exe'" |
Select-Object ProcessId, ExecutablePath, CommandLine
Remove it
A client installed from a ScreenConnect installer link is an MSI. Its Add/Remove Programs entry has the instance ID in the name. Uninstall that entry:
$id = 'ed630cc2c873b091' # the instance ID to remove
Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' |
Where-Object DisplayName -eq "ScreenConnect Client ($id)" |
ForEach-Object { Start-Process msiexec.exe -ArgumentList '/x', $_.PSChildName, '/qn', '/norestart' -Wait }
A client with no Add/Remove Programs entry needs its service deleted with sc.exe delete. Then delete its folder under C:\Program Files (x86).
What I found in the lab
I tested on a Windows 11 Enterprise 25H2 lab computer that still had a real ScreenConnect client (26.6.5.9742) from a trial instance. I didn’t have a real rogue client. In its place I added a stand-in: a service named ScreenConnect Client (ed630cc2c873b091) with a made-up relay host and c=Exploited7, set to Manual and never started.
- The MSI uninstall removed the real client’s service, process and folder in 21 seconds.
- My first uninstall run took several minutes. The RFF agent on that computer was installing its own update at the same time. Windows runs one MSI install at a time. The ScreenConnect uninstall waited for the agent’s to finish. On a busy computer, msiexec can also give up and return 1618.
What to do
- Find your own instance ID in the service name on any computer you manage.
- Check every computer for a ScreenConnect client with any other instance ID.
- Remove the extra clients with a tool other than ScreenConnect.
- Go through your own ScreenConnect instance with ConnectWise’s advisory when it’s out.
Doing it with RFF
The RFF Script Library has two new Windows entries for this. “ScreenConnect Clients - Find Unknown Servers” lists every ScreenConnect client on a computer. It reads the services, the Add/Remove Programs entries and the running client processes, including support sessions. It reports each client’s instance ID, relay host and Company property. It flags any client whose instance ID or relay host isn’t on the list you give it. It always flags the two rogue IDs and the Exploited property. “Remove ScreenConnect Client” uninstalls one client by instance ID, waits for another MSI install to finish if one is running, cleans up anything the uninstall leaves behind, and checks that the service, process, folder and program entry are gone. Clients with any other instance ID stay.
I ran both as SYSTEM on the lab computer above. The check flagged only the stand-in, with and without your own instance ID. The removal deleted the stand-in and left the real client alone. It removed the real client through its MSI. The wait for another install hasn’t run in a test yet.
RFF is free for your first 100 endpoints: getrff.com.
Sources
- BleepingComputer: Active ScreenConnect attacks breach MSPs, impact dozens of organizations: Huntress’s numbers and Reddit post, Run Command, the warning about sessions to infected computers
- ConnectWise Trust Center advisories: where ConnectWise publishes its own guidance
Comments
Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.