Skip to content

Commit b405500

Browse files
authored
Merge pull request #3517 from joshgingras/docs-editor/validate-antimalware-1744984849
Fixed multiple issues -- real_time_protection_enabled return value, Linux command line, bad assumption about existence of ~/tmp directory, numbering issue
2 parents cbc157c + 707702a commit b405500

File tree

1 file changed

+39
-41
lines changed

1 file changed

+39
-41
lines changed
Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: AV detection test for verifying device's onboarding and reporting services
3-
description: AV detection test to verify the device's proper onboarding and reporting to the service.
2+
title: Antivirus detection test for verifying device's onboarding and reporting services
3+
description: Run an antivirus detection test to verify the device's proper onboarding and reporting to the service.
44
ms.service: defender-endpoint
55
ms.subservice: reference
66
ms.author: ewalsh
@@ -15,10 +15,10 @@ ms.collection:
1515
ms.custom: admindeeplinkDEFENDER
1616
ms.topic: conceptual
1717
search.appverid: met150
18-
ms.date: 03/04/2025
18+
ms.date: 04/18/2025
1919
---
2020

21-
# AV detection test for verifying device's onboarding and reporting services
21+
# Antivirus detection test for verifying device's onboarding and reporting services
2222

2323
**Applies to:**
2424

@@ -30,60 +30,58 @@ ms.date: 03/04/2025
3030
Scenario requirements and setup
3131

3232
- Windows 11, Windows 10, Windows 8.1, Windows 7 SP1
33-
3433
- Windows Server 2025, Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012, and Windows Server 2008 R2
35-
3634
- Linux
37-
3835
- macOS
39-
40-
- Microsoft Defender Real-time protection is enabled
36+
- [Real-time protection](/defender-endpoint/configure-real-time-protection-microsoft-defender-antivirus) is enabled
4137

4238
## EICAR test file to simulate malware
4339

44-
After you enable Microsoft Defender for Endpoint or Microsoft Defender for Business or Microsoft Defender Antivirus, you can test the service and run a proof of concept to familiarize yourself with its feature and validate the advanced security capabilities effectively protect your device by generating real security alerts.
40+
After you enable Defender for Endpoint, Microsoft Defender for Business, or Microsoft Defender Antivirus, you can test the service by using an EICAR test file. Running a proof of concept like this can help you get familiar with the features, and validate the advanced security capabilities that protect your device by generating real security alerts.
4541

46-
Run an AV detection test to verify that the device is properly onboarded and reporting to the service. Perform the following steps on the newly onboarded device:
42+
You can run an antivirus detection test to verify that the device is properly onboarded and reporting to the service.
4743

4844
### Windows
4945

50-
1. Prepare for the EICAR test file:
51-
52-
1. Use an EICAR test file instead of real malware to avoid causing damage. Microsoft Defender Antivirus treats EICAR test files as malware.
53-
54-
1. Create the EICAR test file:
55-
56-
1. Copy the following string: `X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*`
57-
58-
1. Paste the string into a .TXT file and save it as EICAR.txt
46+
1. Prepare for the EICAR test file. Use an EICAR test file instead of real malware to avoid causing damage. Microsoft Defender Antivirus treats EICAR test files as malware.
47+
48+
2. Create the EICAR test file by following these steps:
5949

50+
1. Copy the following string: `X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*`.
51+
52+
2. Paste the string into a `.TXT` file and save it as `EICAR.txt`.
53+
6054
### Linux/macOS
6155

62-
1. Ensure that real-time protection is enabled (denoted by a result of 1 from running the following command):
63-
64-
```bash
65-
mdatp health --field real_time_protection_enabled
66-
```
67-
68-
1. Open a Terminal window. Copy and execute the following command:
69-
70-
71-
Linux
56+
1. Ensure that real-time protection is enabled. Run the following command and confirm the output is `"true"`:
7257

58+
```
59+
mdatp health --field real_time_protection_enabled
60+
```
7361

74-
```bash
75-
curl -o ~/tmp/eicar.com.txt https://secure.eicar.org/eicar.com.txt
76-
```
62+
2. Download the EICAR test file. Open a Terminal window and execute the appropriate command for your operating system:
7763

78-
macOS
64+
Linux:
65+
66+
```
67+
curl -o eicar.com.txt https://secure.eicar.org/eicar.com.txt
68+
```
69+
70+
macOS:
71+
72+
```
73+
curl -o ~/Downloads/eicar.com.txt https://secure.eicar.org/eicar.com.txt
74+
```
7975

76+
3. Verify that the file is quarantined. Run the following command to list all detected threats:
8077

81-
```bash
82-
curl -o ~/Downloads/eicar.com.txt https://secure.eicar.org/eicar.com.txt
83-
```
78+
```
79+
mdatp threat list
80+
```
8481

85-
3. The file has been quarantined by Defender for Endpoint on Mac. Use the following command to list all the detected threats:
82+
## See also
8683

87-
```bash
88-
mdatp threat list
89-
```
84+
- [Microsoft Defender for Endpoint - demonstration scenarios](defender-endpoint-demonstrations.md)
85+
- [Microsoft Defender Antivirus in Windows Overview](microsoft-defender-antivirus-windows.md)
86+
- [Microsoft Defender for Endpoint on Linux](microsoft-defender-endpoint-linux.md)
87+
- [Microsoft Defender for Endpoint on macOS](microsoft-defender-endpoint-mac.md)

0 commit comments

Comments
 (0)