Carbon Black Cloud: Unable to upgrade or install due to existing system extension (macOS)
Carbon Black Cloud Sensor: 3.5.1.x and Higher
Apple macOS: 10.15 and Higher (Catalina
Install of 3.5.1.x or higher Sensor fails
Error message displayed in preinstall log indicates failure to unload installed System Extension
failed to uninstall system extension
program terminated with error code: 4096
Checking on Systemextensionsctl shows Carbon Black installed
sudo Systemextensionsctl list
enabled active teamID bundleID (version) name [state]
* * 7AGZNQ2S2T com.vmware.carbonblack.cloud.se-agent.extension (3.5.2fc76/3.5.2fc76) com.vmware.carbonblack.cloud.se-agent.extension [activated enabled]
Previously installed System Extension is unable to be uninstalled without first disabling System Integrity Protection (SIP) NOTE: Using newly added scripts this can be worked around without disabling SIP. This can be done using Resolution 1 below. Resolution 2 can still be used if Resolution 1 cannot be used.
This is the optimal solution using scripts that don't require SIP to be disabled. The scripts can be found here.
Download and extract the "VMware CBC Mitigation bundle.zip" to only the affected endpoints. Note: Running this tool on a healthy endpoint is not intended and will result in undefined behavior.
As a root user, execute the driver_remediation.sh script. If a clean uninstall of the endpoint is desired, run with the -u/--uninstall flag. Otherwise, default behavior is to clean up the old system extension to allow for a sensor upgrade to take place afterwards.
The script will unload the old system extension. Due to OS requirements, there may be a popup requesting user permission for the unload. User credentials should be inputted, and the script will continue.
After a successful execution of the script, the old system extension will be in the [Terminated waiting to uninstall on reboot] state. A reboot is not required, and sensor upgrade or uninstall can immediately be re-attempted.
Previous Solution requiring SIP to be disabled. Does not need to be used if the Resolution above has been followed.
Check Systemextensionsctl for com.vmware.carbonblack.cloud.se-agent.extension