What is the Monarx auditd integration
We leverage auditd to consume real time file creation and mutation events in supporting environments. This allows us process file activity as it occurs, providing near realtime malware time-to-detection and time-to-remediation.
Installation
To manage installation of our auditd integration we leverage your OS' package manager, similar to the installation of the Monarx Agent and Protect extensions.
1. Add the Monarx Repository
To install any Monarx package, add the Monarx repository to your package manager:
CentOS / RHEL / CloudLinux / Alma / Rocky
CentOS / RHEL / CloudLinux / Alma / Rocky
curl -fsS https://repository.monarx.com/repository/monarx-yum/monarx.repo | sudo tee /etc/yum.repos.d/monarx.repo
sudo rpm --import https://repository.monarx.com/repository/monarx/publickey/monarxpub.gpg
Ubuntu
Ubuntu
curl -fsS https://repository.monarx.com/repository/monarx/publickey/monarxpub.gpg | sudo tee /etc/apt/trusted.gpg.d/monarx.asc
echo "deb [arch=amd64] https://repository.monarx.com/repository/ubuntu-$(lsb_release -sc)/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/monarx.list
Debian
Debian
sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "4E240071023138C8"
echo "deb [arch=amd64] https://repository.monarx.com/repository/debian-$(lsb_release -sc)/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/monarx.list
2. Install the integration
Install the monarx-agent-auditd package with your preferred package manager:
Yum (CentOS / RHEL / CloudLinux / Alma / Rocky)
Yum (CentOS / RHEL / CloudLinux / Alma / Rocky)
sudo yum install monarx-agent-auditd
Apt (Ubuntu / Debian)
Apt (Ubuntu / Debian)
sudo apt install monarx-agent-auditd
3. Validating Install
Confirm out extension is loaded
systemctl status auditd
The output should include our process (example below)
root@host ~]# systemctl status auditd
● auditd.service - Security Auditing Service
Loaded: loaded (/usr/lib/systemd/system/auditd.service; enabled; vendor preset: enabled)
Active: active (running) since x UTC; 2 months 2 days ago
Docs: man:auditd(8)
https://github.com/linux-audit/audit-documentation
Main PID: 508 (auditd)
CGroup: /system.slice/auditd.service
├─ 508 /sbin/auditd
├─3600765 /sbin/audispd
└─3600766 /usr/bin/monarx-agent-auditd
Confirm configuration is loaded
auditctl -l | grep monarx
The output should include the monarx_filemon items (example below)
[root@host ~]# auditctl -l | grep monarx
-w /path/to/somewhere -p wa -k monarx_audit
-w /path/to/somewhere -p w -k monarx_filemon
-w /path/to/somewhere -p w -k monarx_filemon
-w /path/to/somewhere -p w -k monarx_filemon
