Installing GuardMode Agent on Linux
Last updated
Last updated
Go to the Catalogic website. Select the latest version of GuardMode Agent and click the installer download link.
Attention! GuardMode Agent is designed for exclusive access to the audit system to function correctly and cannot operate concurrently with osquery
, which also hooks into the audit system for event monitoring and logging.
To prevent this issue, verify that osquery
and any other tools that utilize the audit system are not installed or running on the system before installing GuardMode Agent.
Before installing the GuardMode Agent, ensure the Audit System configuration files are in their default state. These files are located in:
/etc/audit/
It is crucial not to alter these files post-installation.
If you have customized these files for other purposes, contact support for compatibility guidance.
During installation, some Audit System configuration files may be altered. The following files will be added:
/etc/audit/rules.d/GuardMode.rules
/etc/audit/plugins.d/CatalogicAuditDispatcher.conf
(for RHEL 8, RHEL 9, OES 2023)
Installing GuardMode Agent also modifies the following systemd
configuration files:
/usr/lib/systemd/system/auditd.service
/usr/lib/systemd/system/augenrules.service
(OES 2023 only)
Additionally, a new service file /usr/lib/systemd/system/Catalogic.GuardMode.Agent.service
will be added.
Attention! GuardMode Agent relies on the auditd
service for certain monitoring functionalities. Before proceeding with the installation, ensure that auditd
is installed on your Linux system.
Once you have downloaded the program archive, unzip it and navigate to GuardMode Agent’s directory, using:
Now, you can execute the installation script, using:
GuardMode Agent will be installed in /opt/catalogic/guard-mode/agent
regardless of the directory from which install.sh
is run.
If you are using OES, reboot your system after the installation.
Attention! GuardMode Agent installation changes the following security settings:
RHEL: systemd
setting for auditd
service the RefuseManualStop is changed from yes to no.
OES: systemd
settings for augenrules
and auditd
services regarding the /home
directory are downgraded from protected to read-only!
The installation and upgrade scripts create and run a systemd
service. To stop and disable this service, use:
To update GuardMode Agent, run:
The script locates the current installation directory or accepts one as a parameter. It transfers data and logs directories to the new installation. Post-upgrade, the old directory can be removed manually.
You can set up basic authentication for REST API access using:
Before configuring the connection between the DPX Master Server and the GuardMode Agent’s API, you need to open port 5000/TCP using:
Now you can register the GuardMode Agent with the DPX Master Server with:
If a certificate error is thrown when adding DPX as the notification provider, use the additional --validate-certificate false
flag.
To configure Syslog notifications, provide the hostname, port, and certificate details (if using TLS):
After setting up DPX Notifications, register the GuardMode Agent as a DPX security node. Follow these steps:
Once the DPX notification provider is configured, use the following command to register the GuardMode Agent with DPX:
Replace {agent_username}
and {agent_password}
with the credentials for the GuardMode Agent’s REST API you set up during the basic authentication step.
See also. If you want to alter audit rules after installation, see .
Ensure you have added the DPX notification provider as described in the section.