Installing a Modular, Network, or Security Sensor in KVM

A network sensor monitors the virtual environment, the physical environment if connected to the span port of a physical switch, or the LAN segment via a mirror port on a switch. The sensor monitors network and server response times and can identify applications.

The network sensor converts that information to metadata and forwards it to the DP as Interflow. The DP can then provide security, DDoS, and breach attempt detections.

A security sensor operates as a network sensor and adds:

  • sandbox
  • anti-virus
  • IDS

You can also tunnel traffic over VXLAN from an agent sensor, network sensor, or container sensor to the security sensor so it can inspect those environments.

A modular sensor lets you easily add the features you like to your sensor. This helps simplify your deployment and lets you manage the VM requirements for the sensors based on the modular features they use. A modular sensor is also recommended by Stellar Cyber when you want to deploy an aggregator – simply enable the Aggregator feature in its Modular Sensor Profile.

You can install a modular, network, or security sensor on a KVM virtual machine. The overall steps are as follows:

  1. Verify prerequisites.

  2. Install in your target environment.

  3. Connect the sensor to the DP.

  4. Authorize the sensor.

Refer to the sections below for details.

Verify Prerequisites

You can install a KVM modular, network, or security sensor on:

  • CentOS 7.3 (or later)
  • Ubuntu Server 16.04
  • Ubuntu Server 20.04
  • Ubuntu Server 22.04

Click to see the minimum system requirements for installing a modular, network, or security sensor.

You will need:

  • DPDK-capable Ethernet port(s) are recommended
  • One IP address with access to a default gateway
  • A Stellar Cyber license that can be applied to the sensor
  • Open firewall ports for a network sensor
  • Open firewall ports for a security sensor
  • Open firewall ports for log ingestion

Verify VM Capabilities

Before installing any software, verify whether the system has the VM capabilities required. This can be done from the command line.

cat /proc/cpuinfo | egrep"vmx|svm"

  • vmx – for Intel-based systems

  • svm – for AMD-based systems

If no lines are listed then VM hardware support is not available. It must be enabled in the system BIOS.

If VM capability is not reported by this command, do not proceed until it is enabled.

Install Required Packages

The system requires the KVM, tools, and Linux bridge tools installed. Install these as follows:

  • Ubuntu Server 16.04

    apt-get install -y net-tools qemu-utils qemu-kvm virt-manager libvirt-bin virtinst virt-viewer bridge-utils

  • Ubuntu Server 20.04 or 22.04

    sudo apt-get update

    sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients virtinst bridge-utils qemu-utils virt-viewer genisoimage net-tools cpu-checker

  • CentOS

    yum install net-tools qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils
    systemctl start libvirtd
    systemctl enable libvirtd

Verify libvirt Daemon is Active

Use one of the following commands to verify that the libvirt daemon is active:

  • systemctl is-active libvirtd

  • systemctl status libvirtd

If libvirtd is not active, start it now with the following command:

sudo systemctl enable --now libvirtd

Installing in Ubuntu 20.04 or 22.04

Installing in Ubuntu Server 16.04 or CentOS 7.3

Connecting the Sensor to the DP

To connect to the DP:

  1. Log in to your new sensor . The default username/password is aella/changeme. You are immediately prompted to change the password.
  2. Change the password.

    After you change the password, your session closes automatically. When you log back in with your new credentials, the prompt changes to DataSensor>.

  3. Set IP parameters for the management port. You can use either a static IP address or a DHCP server, if available.

    Stellar Cyber recommends using a static IP address for ease of troubleshooting.

    The commands are as follows:

    Configuration Type

    Commands

    Static IP

    Substitute your own IP parameters for those shown in bold.

    set interface management ip 192.168.14.100/255.255.255.0

    set interface management gateway 192.168.14.1

    set interface management dns 8.8.8.8

    DHCP  set interface management ip dhcp
  4. Verify the IP settings with the show interfaces command.

  5. Set the host name. The host name is displayed in Stellar Cyber and should be unique for each sensor:

    set hostname <new hostname>

  6. If necessary, set the proxy HTTP server:

    set proxy http://<proxy IP address:port>

  7. If this sensor is associated with a specific Tenant, use the set tenant_id <Tenant ID> command to specify the name of that tenant. For example:

    set tenant_id MyTenant

  8. Use the set cm command to specify the IP address to reach the management interface of the Data Processor. For a DP cluster, this is the IP address of the DL-master's management interface. For a single DP deployment, this is simply the DP's management IP address. You can specify either an IP address or a hostname. For example:

    set cm 192.168.44.10

    or:

    set cm example.company.com

    If you specify a hostname rather than an IP address, the system attempts to verify the hostname with the DNS server. If the DNS server is not reachable, the system reports the error and lets you either proceed with the configured hostname or quit. This way, you can specify a hostname for the set cm destination in an offline environment without access to a DNS server.

  9. Verify your settings with the show cm command. You should see the IP address of the DP listed as the CM Controller and the Status should be Established.
  10. Log out with the quit command.

The sensor automatically contacts the DP to register itself.

Sensor Authorization

You must authorize the sensor when it appears in the network.

You can authorize multiple sensors at a time. So if you're installing multiple sensors, install them all, then authorize them all at once.