IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

App Control: Uninstallation Fails on MacOS Agent Due to Kext Not Shutting Down

App Control: Uninstallation Fails on MacOS Agent Due to Kext Not Shutting Down

Environment

  • App Control Agent: All Supported Versions
  • Apple MacOS: All Supported Versions

Symptoms

Running the uninstall.sh script, kext is not shutting down
sudo ./uninstall.sh
Password:
Sending uninstall event

Stopping CB App Control Daemon...

Daemon stopped.

Stopping CB App Control Notifier...
su: unknown login:

Notifier stopped.

Stopping the CB App Control System Extension...
YES (0)
YEAR-MONTH-DATE HOUR:MIN:SEC. appc-es-loader[xxxx:xxxx] Appc SystemExtension "com.vmware.carbonblack.appc-es-loader.appc-es-extension" request did finish: 0
YES (0)

System Extension stopped.

Stopping the CB App Control Kernel Extension...
Waiting for KEXT com.bit9.Kernel to shutdown...
Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
KEXT com.bit9.Kernel is shutdown.
Waiting for KEXT com.bit9.KernelKauth to shutdown...
Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
KEXT com.bit9.KernelKauth is shutdown.
Waiting for KEXT com.bit9.KernelSupport to shutdown...
Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
Executing: /usr/bin/kmutil showloaded

Cause

The uninstall script was not able to shutdown the App Control Kext

Resolution

  1. Confirm the Kext state: 
kextfind -case-insensitive -bundle-id -substring 'com.bit9' -print
  1. Confirm any error from Kext: 
sudo kextutil /Library/Extensions/b9kernel.kext
  1. Unload b9kernel.kext:
sudo kextunload /Library/Extensions/b9kernel.kext
  1. Confirm there are not KEXT loaded: 
kextstat | grep -s com.bit9
  1. Run the commands to allow the uninstall: 
cd /Applications/Bit9/tools
./b9cli --password GLOBALCLI
./b9cli --tamperprotect 0
./b9cli --shutdown
  1. Run uninstall script using administrator account that can run sudo: 
sudo /Applications/Bit9/uninstall.sh

Additional Notes

To run kext commands it is required that the administrator account can run sudo

Related Content


Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎01-11-2022
Views:
525
Contributors