Configure Deployment Package on Linux
On Linux platforms, MDE can be configured via a json file located in /etc/opt/microsoft/mdatp/managed/mdatp_managed.json. This configuration file contains both configuration for how MDE should operate and exclusions, etc. Tanium Deploy can be used to distribute this file and ensure it has not been tampered with (replacing it if it has) by checking the SHA256 hash, only replacing the file if it has changed. Microsoft provide documentation on the file here: https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/linux-preferences?view=o365-worldwide
A sample mdatp_managed.json file is provided here
To create the configuration deployment package for Linux complete the following steps:
-
Navigate to Modules > Deploy > Overview.
-
Select New Software Package from the quick links menu.
-
Click Add Package Files and select the Local File option.
-
Select the mdatp_managed.json file for your environment
-
Observe and note the SHA-256 value - this will be used later in the package for validation.
-
As the file is not an MSI the Package, information needs to be completed. Fill out the form with the following under Package Details:
-
Product Vendor: Microsoft
-
Product Name: Microsoft Defender for Endpoint Linux configuration
-
Product Version: 1.0
-
OS Platform: Linux
-
-
Under System requirements, adjust the following:
-
Disk space required: 200 MB
-
Minimum RAM: 1 GB
-
Architecture: x86, x64
-
-
Under Deploy Operations, adjust the following:
-
Install
-
-
Under Install, adjust the following:
-
Checkmark Require Source Files.
-
Click Add Command and select File/Folder.
-
File/Folder Action: Copy File/Folder
-
Existing Files: Overwrite Existing Files enabled.
-
Source: mdatp_managed.json
-
Destination: /etc/opt/microsoft/mdatp/managed/mdatp_managed.json
-
On Failure or Error: Exit
-
-
The Installation Requirements section should now be added. Set the following options:
-
Select the File Hash option from the drop-down list presented.
-
Hash Type: SHA256
-
File Path: /etc/opt/microsoft/mdatp/managed/mdatp_managed.json
-
Hash Value Operator: is not equal to
-
Hash: Enter the value you copied from the attached file earlier (this hash can copied from the top of this page).
-
Click Apply.
-
-
Click + Row and ensure the row is set to OR.
-
Select the File Path option from the drop-down list presented and complete it with the following options:
-
Operator: does not exist
-
File path: /etc/opt/microsoft/mdatp/managed/mdatp_managed.json
-
Click Apply.
-
The final configuration should appear as follows:
-
-
The Installation Verification section should now be added. Select the File Hash option from the drop-down list presented and complete it with the following details:
-
Hash Type: SHA256
-
File Path: /etc/opt/microsoft/mdatp/managed/mdatp_managed.json
-
Hash Value Operator: is equal to
-
Hash: Enter the value you copied from the attached file earlier (this hash can copied from the top of this page).
-
Click Apply.
-
-
Click Create Package and confirm the action.
-
Finally, the package should be deployed to relevant endpoints, by completing the following steps.
-
Click Deploy Package at the top right-hand corner.
-
Complete the form as follows:
-
Name: You can leave the default name provided by Tanium Deploy or change it to Deploy Defender configuration for Linux
The software package and install operation will already be selected for you.
-
Targeting: Click Select Computer Groups
-
Search for and select the MDE Linux group previously created.
-
Click Save.
-
-
Deployment Template: Do not use existing template
-
Deployment Frequency: Ongoing deployment
-
Start time: Ensure this is set in the past.
-
Within Deployment Workflow, expand the Run section
-
Checkmark Override Maintenance Windows.
-
-
-
Click Show Preview to Continue.
-
Click Deploy Software and confirm the action.
The configuration attached to the Deploy package will now be delivered to the endpoints and enforced should it be changed locally.