Configure security settings in Microsoft Defender for Endpoint on Linux
In brief
The article now documents four antivirus enforcement levels, including audit mode (Preview), states that passive is the default, and adds a command to verify the active level. Audit mode requires Defender for Endpoint version 101.26062.0007 or later.
What Defender admins need to know
Review Linux enforcement profiles and health checks to account for the passive default, audit mode, and the new antivirus_enforcement_level verification field.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Configure security settings in Microsoft Defender for Endpoint on Linux
You can use the command line to configure specific settings, gather diagnostics, run scans, and more. For more information, see Linux resources: Configure using command line.
Configure settings with Defender for Endpoint Security Settings Management
You can configure Defender for Endpoint on Linux in the Microsoft Defender portal at (Microsoft Defender portal) using Defender for Endpoint Security Settings Management. For more information, including how to create, edit, and verify security policies, see Use Microsoft Defender for Endpoint Security Settings Management to manage Microsoft Defender Antivirus.
ConfigurationUse a configuration profile to manage security settings
You can configure settings in Defender for Endpoint on Linux through a configuration profile that uses a .json file. After you set up your profile, you can deploy it by using your management tool of choice. Preferences managed by the enterprise take precedence over preferences set locally on the device.
In other words, users in your enterprise aren't able to change preferences that are set through this configuration profile. If exclusions were added through the managed configuration profile, they can only be removed through the managed configuration profile. The command line works for exclusions added locally.
This sectionThe following configuration profile guidance describes the structure of the Defender for Endpoint on Linux configuration profile, includes a recommended starter profile, and explains how to deploy it.
Configuration profile structure
Recommended configuration profile
This sectionThe following recommended configuration profile guidance includes two configuration profile examples:
- Sample profile to help you get started with recommended settings.
- Full configuration profile example for organizations who want more granular control over security settings.
Full configuration profile example
The following complete managed configuration profileexample contains entries for all settings described in this articlearticle, including antivirus engine, scheduled scan, cloud service, advanced feature, network protection, EDR, and exclusion settings. You can be useduse this profile for more advanced scenarios where you want more control.granular control over each setting.
{
|Description|JSON Value|Defender portal value|
|---|---|---|
|**Key**|`antivirusEngine`enforcementLevel`|Antivirus Engine|Enforcement level|
|**Data type**|Dictionary (nested preference)String|Drop down|
|**Possible values**|Collapsed Section|`real_time`<br/>`audit`<br/>`on_demand`<br/>`passive`|Not configured<br/>Real-time<br/>Audit<br/>On-demand<br/>Passive|
For descriptions of the dictionary contents and policy properties, see [Enforcement level for Microsoft Defender Antivirus](#enforcement-level-for-microsoft-defender-antivirus), [Scan exclusions](#scan-exclusions), [Threat type settings](#threat-type-settings), and [Exclusion merge policy](#exclusion-merge-policy).
#### Enforcement level for Microsoft Defender Antivirus
Specifies the enforcement preference of the antivirus engine. There are threefour values for setting enforcement level:
| Enforcement level | Description |
|---|---|
| Real-time | Actively monitors, detects, and remediates threats in real time. |
| Audit(Preview) | Actively monitors and detects threats in real time without automatically remediating them. |
| On-demand | Detects and remediates threats only during manual or scheduled scans. |
| Passive | Doesn't provide real-time threat detection. Threats can still be detected during manual or scheduled scans. |
Verify the enforcement level
To verify the active antivirus enforcement level, run:
mdatp health --field antivirus_enforcement_level
The command returns the active enforcement level (real_time, audit, on_demand, or passive).
@@ -6,7 +6,7 @@ ms.service: defender-endpoint ms.author: painbar author: paulinbar ms.localizationpriority: medium-ms.date: 06/17/2026+ms.date: 07/02/2026 ms.collection: - m365-security - tier3@@ -17,7 +17,7 @@ appliesto: - Microsoft Defender for Endpoint Plan 1 - Microsoft Defender for Endpoint Plan 2 ai-usage: ai-assisted-ms.custom: msecd-doc-authoring-1014+ms.custom: msecd-doc-authoring-1016 --- # Configure security settings in Microsoft Defender for Endpoint on Linux@@ -49,17 +49,19 @@ To configure your security settings in Defender for Endpoint on Linux, you have You can use the command line to configure specific settings, gather diagnostics, run scans, and more. For more information, see [Linux resources: Configure using command line](linux-resources.md#configure-from-the-command-line). -### Defender for Endpoint Security Settings Management+<a name="defender-for-endpoint-security-settings-management"></a>+### Configure settings with Defender for Endpoint Security Settings Management You can configure Defender for Endpoint on Linux in the Microsoft Defender portal at ([Microsoft Defender portal](https://security.microsoft.com)) using Defender for Endpoint Security Settings Management. For more information, including how to create, edit, and verify security policies, see <a href="/intune/intune-service/protect/mde-security-integration" target="_blank" rel="noopener noreferrer">Use Microsoft Defender for Endpoint Security Settings Management to manage Microsoft Defender Antivirus</a>. -### Configuration profile+<a name="configuration-profile"></a>+### Use a configuration profile to manage security settings You can configure settings in Defender for Endpoint on Linux through a configuration profile that uses a `.json` file. After you set up your profile, you can deploy it by using your management tool of choice. Preferences managed by the enterprise take precedence over preferences set locally on the device. In other words, users in your enterprise aren't able to change preferences that are set through this configuration profile. If exclusions were added through the managed configuration profile, they can only be removed through the managed configuration profile. The command line works for exclusions added locally. -This section describes the structure of the Defender for Endpoint on Linux configuration profile, includes a recommended starter profile, and explains how to deploy it.+The following configuration profile guidance describes the structure of the Defender for Endpoint on Linux configuration profile, includes a recommended starter profile, and explains how to deploy it. #### Configuration profile structure @@ -71,7 +73,7 @@ The top level of the configuration profile includes product-wide preferences and #### Recommended configuration profile -This section includes two configuration profile examples:+The following recommended configuration profile guidance includes two configuration profile examples: - **Sample profile** to help you get started with recommended settings. - **Full configuration profile example** for organizations who want more granular control over security settings.@@ -116,7 +118,7 @@ The following configuration profile helps you take advantage of important protec ##### Full configuration profile example -The following configuration profile contains entries for all settings described in this article and can be used for more advanced scenarios where you want more control.+The following complete managed configuration example contains entries for all settings described in this article, including antivirus engine, scheduled scan, cloud service, advanced feature, network protection, EDR, and exclusion settings. You can use this profile for advanced scenarios where you want granular control over each setting. ```json {@@ -262,43 +264,40 @@ The *antivirusEngine* section of the configuration profile manages the preferenc |Description|JSON Value|Defender portal value| |---|---|---|-|**Key**|`antivirusEngine`|Antivirus Engine|-|**Data type**|Dictionary (nested preference)|Collapsed Section|+|**Key**|`enforcementLevel`|Enforcement level|+|**Data type**|String|Drop down|+|**Possible values**|`real_time`<br/>`audit`<br/>`on_demand`<br/>`passive`|Not configured<br/>Real-time<br/>Audit<br/>On-demand<br/>Passive| For descriptions of the dictionary contents and policy properties, see [Enforcement level for Microsoft Defender Antivirus](#enforcement-level-for-microsoft-defender-antivirus), [Scan exclusions](#scan-exclusions), [Threat type settings](#threat-type-settings), and [Exclusion merge policy](#exclusion-merge-policy). #### Enforcement level for Microsoft Defender Antivirus -Specifies the enforcement preference of the antivirus engine. There are three values for setting enforcement level:+Specifies the enforcement preference of the antivirus engine. There are four values for setting enforcement level: > [!IMPORTANT]-> Only one enforcement level can be configured at a time. You can configure either `passive` or `real-time` mode, but not both.--- **Real-time** (`real_time`): Real-time protection (scan files as they're modified) is enabled.+> By default, Microsoft Defender Antivirus is set to `passive`. You can change the enforcement level based on your requirements. -- **On-demand** (`on_demand`): Files are scanned only on demand:- - Real-time protection is off.- - Definition updates occur only when a scan starts, even if `automaticDefinitionUpdateEnabled` is set to `true` in on-demand mode.+|Enforcement level|Description|+|---|---|+|**Real-time**|Actively monitors, detects, and remediates threats in real time.|+|**Audit**(Preview)|Actively monitors and detects threats in real time without automatically remediating them.|+|**On-demand**|Detects and remediates threats only during manual or scheduled scans.|+|**Passive**|Doesn't provide real-time threat detection. Threats can still be detected during manual or scheduled scans.| -- **Passive** (`passive`): Runs the antivirus engine in passive mode:- - Real-time protection is off. Microsoft Defender Antivirus doesn't remediate threats.- - On-demand scanning is on. Scan capabilities are still available on the device.- - Automatic threat remediation is off. No files are moved and your security administrator is expected to take required action.- - Security intelligence updates are on. Alerts are available in the security administrator's organization.- - Definition updates occur only when a scan starts, even if `automaticDefinitionUpdateEnabled` is set to `true`.- - [Endpoint detection and response (EDR)](overview-endpoint-detection-response.md) is on. The output of the `mdatp health` command on the device shows `engine not loaded` for the `engine_load_version` property. The engine is related to antivirus, not EDR.+##### Verify the enforcement level -To verify whether real-time protection is enabled on the device, run:+To verify the active antivirus enforcement level, run: ```bash-mdatp health --field real_time_protection_enabled+mdatp health --field antivirus_enforcement_level ``` +The command returns the active enforcement level (`real_time`, `audit`, `on_demand`, or `passive`).+ > [!NOTE] >-> - Available in Defender for Endpoint version `101.10.72` or later.-> - In version `101.23062.0001` or later, the default value is `passive`. In previous versions, the default was `real_time`.-> - We also recommended using [scheduled scans](schedule-antivirus-scans-linux.md) as per requirement.+> - Audit mode is available in Defender for Endpoint version `101.26062.0007` or later.+> - Before enabling real-time protection, we recommend running a full scan to identify and remediate any existing threats. This helps ensure the device is in a clean state before real-time monitoring and protection are enabled. For information about scheduling scans, see [Schedule antivirus scans on Linux (preview)](schedule-antivirus-scans-linux.md). #### Enable or disable behavior monitoring (if RTP is enabled) @@ -379,7 +378,8 @@ Specifies whether to use user-defined exclusions on the device. Valid values are > [!NOTE] > Available in Defender for Endpoint version `100.83.73` or later. -### Scan exclusions+<a name="scan-exclusions"></a>+### Configure scan exclusions Entities excluded from scans. You specify exclusions as an array of items. Admins can specify as many elements as necessary, in any order. You specify exclusions using full paths, extensions, or file names. @@ -486,6 +486,7 @@ When you add or remove a filesystem from the unmonitored list, Microsoft validat - `ramfs` - `reiserfs` - `tmpfs`+ - `udf` - `vfat` - `xfs` - By default, the following filesystems are unmonitored by RTP:@@ -499,7 +500,7 @@ When you add or remove a filesystem from the unmonitored list, Microsoft validat <sup>\*</sup> Currently, RTP monitoring of this filesystem is in Preview. -For example, to remove `nfs` and `nfs4` from the list of unmonitored filesystems (which means `nfs` and `nfs4` are monitored by RTP after validation), update the managed config file with the following entry:+To configure the `unmonitoredFilesystems` setting, add it to the `antivirusEngine` section of your managed configuration file. Filesystems included in this array are excluded from real-time protection (RTP) monitoring. For example, to remove `nfs` and `nfs4` from the unmonitored list so that RTP monitors them after validation, update the managed config file with the following entry: ```json {@@ -509,7 +510,7 @@ For example, to remove `nfs` and `nfs4` from the list of unmonitored filesystems } ``` -To remove all entries from the list of unmonitored filesystems, use the following entry:+To clear the unmonitored filesystems list so that RTP monitors all supported filesystem types, set `unmonitoredFilesystems` to an empty array. This configuration ensures that no filesystems are excluded from real-time protection monitoring: ```json {@@ -532,7 +533,8 @@ Enables or disables file hash computation for files scanned by Defender for Endp > [!NOTE] > Available in Defender for Endpoint version `101.85.27` or later. -### Allowed threats+<a name="allowed-threats"></a>+### Configure allowed threats Specifies the names of threats that aren't blocked by Defender for Endpoint. Instead, these threats are allowed to run. @@ -541,7 +543,8 @@ Specifies the names of threats that aren't blocked by Defender for Endpoint. Ins |**Key**|`allowedThreats`|Allowed threats| |**Data type**|Array of strings|Dynamic String List| -### Disallowed threat actions+<a name="disallowed-threat-actions"></a>+### Configure disallowed threat actions Restricts the allowed actions by the device user when threats are detected. The actions included in this list aren't displayed in the user interface. @@ -682,7 +685,7 @@ Entities excluded from scans. You specify exclusions as an array of items. Admin |**Key**|`exclusions`| |**Data type**|Dictionary (nested preference)| -See the following subsections for a description of the dictionary contents.+The exclusion dictionary includes entries for type of exclusion, scope of exclusion, path to excluded content, path type (file or directory), file extension, and process name. #### Type of exclusion @@ -772,10 +775,29 @@ You can configure the following settings to enable certain advanced scanning fea > [!IMPORTANT] > Enabling these features might affect device performance. We recommended the default values unless recommended otherwise by Microsoft Support. +### Configure Memory Scan scanning (Preview)++Specifies whether Microsoft Defender for Endpoint scans process memory for known malicious behaviors and memory-resident threats.++> [!NOTE]+> The level of protection provided by Memory Scan depends on the Behavior Monitoring and Antivirus configuration:+> - **Protection**: Behavior Monitoring enabled + Antivirus Enforcement Level set to Realtime+> - **Detection(without remediation)**: Behavior Monitoring enabled + Antivirus Enforcement Level set to Audit+> - **EDR visibility(without AV scan)**: Antivirus Enforcement Level set to Passive or On-demand, regardless of the Behavior Monitoring state++|Description|JSON Value|Microsoft Defender portal value|+|---|---|---|+|**Key**|`MemoryScan`|Memory scan (inside Advanced Settings)|+|**Data type**|Boolean|Dropdown|+|**Possible values**|`Disabled` (default) <br/>`Enabled`|Not Configured<br/>Disabled(default)<br/>Enabled|++> [!NOTE]+> Available in Defender for Endpoint version `101.26071.0005` or later in Insiders-slow channel.+ #### Configure scanning of file modify permissions events Specifies whether Defender for Endpoint scans files when their permissions changed to set the executed bits.-+nnng > [!NOTE] > This setting is meaningful only when `enableFilePermissionEvents` is enabled. For more information, see [Configure monitoring of file modify permissions events](#configure-monitoring-of-file-modify-permissions-events). @@ -837,7 +859,7 @@ The `scheduledScan` section of the configuration profile configures built-in sch |**Key**|`scheduledScan`| |**Data type**|Dictionary (nested preference)| -See the following subsections for a description of the dictionary contents.+For a description of the scheduled scan dictionary contents, see [Enable scheduled scans](#enable-scheduled-scans), [Weekly scan configuration](#weekly-scan-configuration), [Daily scan configuration](#daily-scan-configuration), and [Advanced scheduled scan settings](#advanced-scheduled-scan-settings). For the full details on scheduled scan configuration, including how to use Security Settings Management policies and the command line, see [Schedule antivirus scans on Linux (preview)](schedule-antivirus-scans-linux.md). @@ -976,7 +998,8 @@ Randomizes the scan start time within a defined window (in hours) to avoid simul |**Data type**|Integer| |**Possible values**|`0`–`23`. Default: `0` (no randomization)| -### Cloud-delivered protection preferences+<a name="cloud-delivered-protection-preferences"></a>+### Configure cloud-delivered protection preferences The *cloudService* entry in the configuration profile configures the cloud-driven protection feature. @@ -1106,7 +1129,8 @@ Specifies whether infected processes that open or load infected files get remedi > [!NOTE] > Available in Defender for Endpoint version `101.24122.0001` or later. -### Supplementary sensor configurations+<a name="supplementary-sensor-configurations"></a>+### Configure supplementary sensor settings Use the following settings to configure certain advanced supplementary sensor features. @@ -1286,7 +1310,8 @@ Specifies whether suspicious events from Antivirus are reported to EDR. > [!NOTE] > Available in Defender for Endpoint version `101.23062.0010` or later. -### Network protection configurations+<a name="network-protection-configurations"></a>+### Configure network protection settings > [!NOTE] >@@ -1368,9 +1393,11 @@ When you first run the `mdatp health` command, the tag and group ID values are b ## Configuration profile validation +Before you deploy the configuration profile, validate that the managed JSON file is correctly formatted and confirm that Defender for Endpoint applies the settings as expected.+ ### Validate the managed JSON file -The configuration profile must be a valid JSON-formatted file. Many tools are available for you to verify the configuration profile. For example, run the following command if you have `python` installed on your device:+The configuration profile must be a valid JSON-formatted file. Before you deploy the profile, verify that the JSON syntax is correct and the file can be parsed without errors. Many tools are available for this validation. For example, the following command uses the Python `json.tool` module to check the file for valid JSON syntax and pretty-print its contents for inspection. Run this command if you have `python` installed on your device: ```bash python -m json.tool mdatp_managed.json@@ -1396,4 +1423,4 @@ To verify that your `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json` is wor ## Configuration profile deployment -After you create the configuration profile for your organization, you can deploy it using your current management tools. Defender for Endpoint on Linux reads the managed configuration from `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json`.+After you create the configuration profile for your organization, you can deploy it using your current management tools. Defender for Endpoint on Linux reads the managed configuration from `/etc/opt/microsoft/mdatp/managed/mdatp_managed.json`.\ No newline at end of file 