Skip to content

Commit ed38ff8

Browse files
committed
Learn Editor: Update validate-antimalware.md
1 parent 6683f41 commit ed38ff8

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

defender-endpoint/validate-antimalware.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,38 +50,38 @@ Run an AV detection test to verify that the device is properly onboarded and rep
5050
1. Prepare for the EICAR test file:
5151

5252
1. Use an EICAR test file instead of real malware to avoid causing damage. Microsoft Defender Antivirus treats EICAR test files as malware.
53-
53+
5454
1. Create the EICAR test file:
5555

5656
1. Copy the following string: `X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*`
57-
57+
5858
1. Paste the string into a .TXT file and save it as EICAR.txt
59-
59+
6060
### Linux/macOS
6161

62-
1. Ensure that real-time protection is enabled (denoted by a result of "true" from running the following command):
62+
1. Ensure that real-time protection is enabled. Run the following command and confirm the output is `"true"`:
6363

64-
```bash
64+
```
6565
mdatp health --field real_time_protection_enabled
6666
```
6767
68-
2. Open a Terminal window. Copy and execute the following command:
69-
70-
71-
Linux
68+
2. Download the EICAR test file. Open a Terminal window and execute the appropriate command for your operating system:
7269
73-
```bash
74-
```bash
75-
curl -o eicar.com.txt https://secure.eicar.org/eicar.com.txt
76-
```
77-
```macOS
70+
Linux:
71+
72+
```
73+
curl -o eicar.com.txt https://secure.eicar.org/eicar.com.txt
74+
```
75+
76+
macOS:
77+
78+
```
79+
curl -o ~/Downloads/eicar.com.txt https://secure.eicar.org/eicar.com.txt
80+
```
7881
79-
```
80-
```bash
81-
curl -o ~/Downloads/eicar.com.txt https://secure.eicar.org/eicar.com.txt
82-
```
83-
```3. Execute the following command and verify the file has been quarantined by Defender for Endpoint. The command will list all detected threats:
82+
3. Verify that the file has been quarantined by Defender for Endpoint.** Run the following command to list all detected threats:
8483
85-
```bash
84+
```
8685
mdatp threat list
8786
```
87+

0 commit comments

Comments
 (0)