Detect intrusions with AIDE
Deploy AIDE (Advanced Intrusion Detection Environment) AIDE on the data plane nodes to check the integrity of files and directories and detect unauthorized file access. AIDE analyzes system files and compiles an integrity database of file hashes.
The control plane services run as pods on Red Hat OpenShift Container Platform (RHOCP), where file integrity is managed by OpenShift container image signatures and SecurityContextConstraints. RHOSO does not include a built-in AIDE service equivalent to the director OS::TripleO::Services::Aide integration that is available in previous versions of Red Hat OpenStack Platform (RHOSP). To deploy AIDE on your data plane nodes, create a custom data plane service that uses Ansible to install and configure AIDE on each node.
Deploy AIDE intrusion detection on data plane nodes Copy linkLink copied!
You can create an OpenStackDataPlaneService custom resource (CR) that uses Ansible to install AIDE (Advanced Intrusion Detection Environment), configure an integrity database, and schedule periodic integrity checks on your data plane nodes.
Before you begin Copy linkLink copied!
- You are logged on to a workstation that has access to the Red Hat OpenStack Services on OpenShift (RHOSO) control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
AIDE database updates Copy linkLink copied!
If you modify the configuration of your data plane nodes, you must reinitialize the AIDE database. Otherwise, AIDE reports legitimate changes as integrity violations. Create a new OpenStackDataPlaneDeployment CR that runs only the aide service with the servicesOverride field.
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
metadata:
name: aide-reinit
namespace: openstack
spec:
nodeSets:
- openstack-data-plane
servicesOverride:
- aide
aide --init task in the example playbook uses the creates parameter to skip initialization if the database already exists. To force reinitialization, you must modify the playbook to remove the existing database first, or create a separate reinitialization service.Control plane integrity verification Copy linkLink copied!
You do not use AIDE (Advanced Intrusion Detection Environment) on the control plane. Control plane services run as container images on Red Hat OpenShift Container Platform (RHOCP). To verify the integrity of the control plane:
- Use OpenShift container image signature verification to ensure that images have not been tampered with.
- Use the File Integrity Operator (FIO) on RHOCP worker nodes that host OpenStack pods to detect unauthorized changes to the underlying node filesystem.
- Review pod security admission and
SecurityContextConstraintsto ensure containers cannot modify the host filesystem.