Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information in this article relates to a prereleased product which may be substantially modified before it's commercially released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.
Tamper protection in audit mode for Microsoft Defender for Endpoint on Linux detects unauthorized modifications to Defender for Endpoint assets, including configuration files, directories, processes, and services, even when changes are made by the root user.
Audit mode detects and alerts on the following tampering activities:
- Modification of Defender for Endpoint configuration files.
- Deletion of Defender for Endpoint configuration files, state files, and binaries.
- Renaming or moving Defender for Endpoint configuration files, state files, and binaries.
- Termination of Defender for Endpoint processes, including restarting Defender for Endpoint services.
Audit mode provides visibility into tampering attempts through alerts and Advanced Hunting in the Microsoft Defender portal without blocking the activity.
Prerequisites
Before you use tamper protection in audit mode, make sure your device meets the following requirements:
- Defender for Endpoint version
101.26072.0004or later from the Insiders-Slow ring. - Allow access to
https://config.edge.skype.com/config/v1. For more information, see Microsoft Defender for Endpoint streamlined connectivity URLs - commercial. - Use a supported Linux distribution and kernel version.
| Distribution | Supported version | Minimum kernel version |
|---|---|---|
| Ubuntu LTS | 20.04 | 5.15.0* |
| Ubuntu LTS | 22.04 | 5.15.0* |
| Ubuntu LTS | 24.04 | 6.8.0 |
| Ubuntu Pro | 22.04 | 5.15.0* |
| Ubuntu Pro | 24.04 | 6.8.0 |
| CentOS Stream | 8 | 4.18.0-553 |
| CentOS Stream | 9 | 5.14.0 |
| CentOS Stream | 10 | 6.12.0 |
| RHEL 8 | 8.4+ | 4.18.0-305 |
| RHEL 9 | 9.x | 5.14.0-70 |
| RHEL 10 | 10.x | 6.12.0-55 |
| SLES 15 | 15.5+ | 5.14.21-150500 |
| SLES 16 | 16 | 6.12.0-160000 |
| Debian | 12 | 6.1.0-9 |
| Debian | 13 | 6.12 |
| Oracle Linux 8 | 8.10 (UEK7) | 5.15.0 |
| Oracle Linux 8 | 8.10 (RHCK) | 4.18.0-553 |
| Oracle Linux 9 | 9.x (UEK7) | 5.15.0 |
| Oracle Linux 9 | 9.x (UEK8) | 6.12.0 |
| Oracle Linux 9 | 9.x (RHCK) | 5.14.0-70 |
| Oracle Linux 10 | 10.x (UEK8) | 6.12.0 |
| Oracle Linux 10 | 10.x (RHCK) | 6.12.0-55 |
| Mariner 2 | 2 | 5.15 |
| Fedora | x86_64: 33-43 | 5.8.15 |
| Fedora | arm64: 40-43 | 6.8.5 |
| Alma Linux 8 | 8.8+ | 4.18.0-477 |
| Alma Linux 9 | 9.2+ | 5.14.0-284 |
| Alma Linux 10 | 10.x | 6.12.0-55 |
| Amazon Linux | 2023 | 6.1.132-147.221.amzn2023 |
| Rocky Linux 8 | 8.9+ | 4.18.0-513 |
| Rocky Linux 9 | 9.3+ | 5.14.0-362 |
| Rocky Linux 10 | 10.x | 6.12.0-55 |
| Azure Linux 3 | 3 | 6.6.78.1-3.azl3 |
Important
For Ubuntu 20.04 and Ubuntu 22.04, the following generic kernel versions aren't supported: 5.15.0-144, 5.15.0-150, 5.15.0-151, and 5.15.0-152.
Tamper protection support is limited to kernel versions that support extended Berkeley Packet Filter (eBPF) with BPF Type Format (BTF). BTF provides enhanced event enrichment that enables Defender for Endpoint to capture the file and process context required to detect tampering attempts.
Enable tamper protection in audit mode
During preview, tamper protection in audit mode is enabled by default. No manual configuration is required.
The feature rolls out gradually over two weeks to eligible devices in the Insiders-Slow ring that meet the prerequisites.
After audit mode is enabled, the tamper_protection_enforcement_level field is available in the mdatp health output.
Verify audit mode enablement
To verify that tamper protection is enabled in audit mode:
Run the following command:
mdatp healthLocate
tamper_protection_enforcement_levelin the output.Verify that the value is set to
audit:tamper_protection_enforcement_level : "audit"Alternatively, run the following command to check the tamper protection status:
mdatp health --details tamper_protectiontamper_protection_enforcement_level : "audit" tamper_protection_errors : []If
tamper_protection_errorsis empty, tamper protection is successfully enabled in audit mode.If tamper protection can't be enabled,
tamper_protection_enforcement_levelis displayed asdisabled.The following errors can indicate why audit mode isn't enabled:
Error Description tamper_protection_unsupported_kernel_versionThe device kernel version doesn't support tamper protection. not_supported_in_the_current_configurationTamper protection can't be enabled because a required internal configuration isn't available.
Troubleshoot audit mode enablement
If the device meets the prerequisites but tamper_protection_enforcement_level is set to disabled:
Run the following command:
mdatp health --details cloudLocate
ecs_configuration_versionin the output.Check whether the value is
unavailable:ecs_configuration_version : unavailableIf the value is
unavailable, verify thathttps://config.edge.skype.com/config/v1is allowlisted. For more information, see Microsoft Defender for Endpoint streamlined connectivity URLs - commercial.
View tampering alerts in the Microsoft Defender portal
On the device page in the Microsoft Defender portal, tampering alerts are available in Timeline and Incidents and alerts.
Open a tampering alert to review more information about the activity, including the process tree and alert timeline.
Query tampering attempts with Advanced Hunting
You can use Advanced Hunting to investigate tampering events and alerts.
Query tampering events for a device
To query tampering attempts for a specific device:
Sign in to the Microsoft Defender portal.
Select Hunting > Advanced hunting.
Find the ID of the device you want to investigate in the device inventory, or run the following command on the device:
mdatp health --field edr_device_idRun the following query, replacing
<DeviceId>with the device ID:DeviceEvents | where Timestamp > ago(10d) | where ActionType == "TamperingAttempt" | where DeviceId == "<DeviceId>"Adjust the
Timestampvalue in the query as needed.
Query tampering alerts
To query generated tampering alerts:
Sign in to the Microsoft Defender portal.
Select Hunting > Advanced hunting.
Run the following query:
AlertInfo | where Timestamp > ago(10d) | where Title == "Tampering with the Microsoft Defender for Endpoint sensor" | where DetectionSource == "EDR"Adjust the
Timestampvalue in the query as needed.
Test a tampering scenario
You can generate a test tampering attempt to verify that audit mode detects the activity.
For example, run the following command:
sudo vim /etc/opt/microsoft/mdatp/managed/mdatp_managed.json
The activity generates a tampering alert in the Microsoft Defender portal. The alert includes information about the initiating process and the target file.
Tune alerts for legitimate tampering activity
If known and approved activity generates tampering alerts, you can tune the alerts to reduce unnecessary noise in the Microsoft Defender portal.
For more information about creating alert tuning rules, see Tune an alert.