3cx compromised

It has been a tough week for MSPs who supply 3CX as part of their package offerings. And a lesson learnt to those who’s EDR tools flagged the compromise, and they decided to whitelist it as a false positive.

For those that don’t know, the issue started when a few MSPs posted on various forums that the latest 3CX app had been flagged as containing a threat actor. More of that can be read on the Huntress post: https://www.huntress.com/blog/3cx-voip-software-compromise-supply-chain-threats

At our MSP, we immediately took appropriate action, blocking the reported malware websites via Cisco Umbrella. And to be fair to the Umbrella team, they put the block in place pretty quickly too. But we had a number of clients on the version affected, and we needed to get rid of is fast.

Well, here is a script to help you achieve such greatness.

DISCLAIMER! Running this code, you do so at YOUR OWN RISK. I have included a line that you can include to aim this at 1 tenant, or a tenant at a time, if you wish to do so.

This script will:

1. Use the GUID of each affected 3CX application.
2. Loop through each GUID and use msiexec to remove the application if present.
3. A reboot may be required to allow your RMM to then show it is no longer installed.

Who Are We?

Growth MSP is an MSP for MSPs. We are manage migration projects from start to finish, at a price that means we can all make money. We aim to take the stress away, whilst allowing you to not put off sales due to lack of capacity.

The Code

Note here that your RMM most likely run scripts as SYSTEM

Set-ExecutionPolicy Unrestricted -force

$guids = @(


foreach ($guid in $guids) {
    $uninstallArgs = "/x $guid /qn /norestart"
    Start-Process msiexec.exe -ArgumentList $uninstallArgs -Wait

What Happens When You Run This Code?

Running this script will remove all 3CX applications from the device, pending reboot.

Want More Expert Tips Like This?

We’ve got dozens of tips and tricks like this to make your life as an MSP a little easier. We also offer expert mentorship, advice, and support for every aspect of an MSP’s business, including sales, marketing, support, and engineering. If you need help growing your MSP, please contact us today.


Post comment

Your email address will not be published. Required fields are marked *

Go top