Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Linux Kernel module for Carbon Black EDR

License

Notifications You must be signed in to change notification settings

vmware-archive/cbsensor-linux-kmod

Repository files navigation

cbsensor-linux-kmod

This project is a Linux kernel module used to detect and report security related events and take security related actions.

It is used by the VMware Carbon Black Endpoint Detection and Response product.

The distributions supported by this module are RedHat 6 and 7 and derivatives that use the same RedHat kernels (CentOS, Oracle Linux).

Other distributions may work but have not been testing.

Specifically, this project is not likely to work with version 4+ kernels.

Dependencies

Kernel source code must be installed

sudo yum install kernel-devel gcc-c++ make

Special instructions for CMake for RHEL/CentOS 6/7 development machines:

This project depends on CMake version 3+

sudo yum install epel-release
sudo yum install cmake3
sudo yum remove cmake
sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
sudo ln -s /usr/bin/cpack3 /usr/bin/cpack
sudo ln -s /usr/bin/ctest3 /usr/bin/ctest

Building from source

Building is done using standard CMake commands

mkdir build
cd build
cmake ..
make

For Carbon Black internal builds

To build, just run make

This will pull and launch a docker image in which the build will take place. The docker container will remain running after the build. This allows subsequent builds to be done incrementally (and quickly)

make clean will halt the docker container and delete the build directory, allowing for a clean build.

NOTE: This local build technique only builds against a single kernel version. You can change the kernel to build against by changing the KERNEL_PACKAGE reference in the Makefile