Linux Secure Boot support for agents
When Secure Boot is enabled on an agent computer, the Linux kernel performs a signature check on kernel modules before they are installed. These Deep Security features install kernel modules:
- Web Reputation
- Integrity Monitoring
- Intrusion Prevention
- Application Control
If you intend to use any of those features on a computer where Secure Boot is enabled, you must enroll the Trend Micro public key (provided after install as DSversion.der, depending on which Deep Security Agent you have installed, for example DS20.der) into the Linux computer's firmware so that it recognizes the Trend Micro kernel module's signature. Otherwise, the Deep Security features can't be installed.
To enroll the Trend Micro public key:
- On the computer that you want to protect, and where Secure Boot is enabled, install the Deep Security Agent, if it isn't installed already.
After installation, the Trend Micro public key is in /opt/ds_agent/DS20.der.
- Install the Machine Owner Key (MOK) facility, if it isn't already installed.
yum install mokutil
- Add the public key, DS20.der, to the MOK list:
mokutil --import DS20.der
For details about manually adding the public key to the MOK list, see your Linux documentation.
- When prompted, enter a password that you will use later in this procedure.
- Reboot the system.
- After the computer restarts, the Shim UEFI key management console opens:
- Press any key to get started.
- On the Perform MOK management screen, select Enroll MOK.
- On the Enroll MOK screen, select View key 0.
- On the Enroll the key(s)? screen, select Yes and then enter the password you set in step 4, above.
- On the The system must now be rebooted screen, select OK to confirm your changes and reboot.
- Use the mokutil utility to check if the key successfully enrolled or not.
- Next, use the keyctl utility to check that the key is on the system key ring. If the keyctl utility is not already installed, use this command to install it:
yum install keyutils
- To list the keys that are on the system key ring:
keyctl list %:.system_keyring
You should see the Trend Micro signing key listed.
mokutil --test-key /opt/ds_agent/DS20.der
Upgrade the agent if you're using Secure Boot
Deep Security refreshes the Trend Micro kernel module signing key in every major release of the agent (for example, 11.0 and 12). To keep security features functioning when you upgrade a Deep Security Agent to a new major release, you must enroll the new public key into any Linux computers that have Secure Boot enabled. You may see "Engine Offline" error message in the Deep Security Manager console because the operating system will not load the upgraded kernel module until the new public key is enrolled.