You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,17 +52,34 @@ In this demonstration article, you have two engine choices to test AMSI:
52
52
```powershell
53
53
$testString = "AMSI Test Sample: " + "7e72c3ce-861b-4339-8740-0ac1484c1386"
54
54
Invoke-Expression $testString
55
-
```
55
+
```powershell
56
56
57
-
2. On your device, open PowerShell as an administrator.
57
+
1. On your device, open PowerShell as an administrator.
58
58
59
-
3. Type `Powershell -ExecutionPolicy Bypass AMSI_PoSh_script.ps1`, and then press **Enter**.
59
+
1. Type `Powershell -ExecutionPolicy Bypass AMSI_PoSh_script.ps1`, and then press **Enter**.
60
60
61
61
The result should be as follows:
62
62
63
-
:::image type="content" source="media/mde-demonstrations-amsi/test-amsi-powershell-results.png" alt-text="Screenshot showing the results of the AMSI test sample. It should show a threat was detected." lightbox="media/mde-demonstrations-amsi/test-amsi-powershell-results.png":::
63
+
```powershell
64
+
Invoke-Expression : At line:1 char:1
65
+
66
+
+ AMSI Test Sample: 7e72c3ce-861b-4339-8740-8ac1484c1386
1. Save the following VBScript as `AMSI_vbscript.vbs`:
@@ -74,20 +91,63 @@ In this demonstration article, you have two engine choices to test AMSI:
74
91
WScript.Echo result
75
92
```
76
93
77
-
2. On your Windows Device, open Command Prompt as an administrator.
94
+
1. On your Windows Device, open Command Prompt as an administrator.
78
95
79
96
1. Type `wscript AMSI_vbscript.vbs`, and then press **Enter**.
80
97
81
98
The result should be as follows:
82
99
83
-
:::image type="content" source="media/mde-demonstrations-amsi/test-amsi-vbscript-results.png" alt-text="Screenshot showing the AMSI test results. It should show that antivirus software blocked the script." lightbox="media/mde-demonstrations-amsi/test-amsi-vbscript-results.png":::
In your protection history, you should be able to see the following information:
89
119
90
-
:::image type="content" source="media/mde-demonstrations-amsi/verifying-results.png" alt-text="Screenshot showing the AMSI test results. The information should show that a threat was blocked and cleaned." lightbox="media/mde-demonstrations-amsi/verifying-results.png":::
### Get the list of Microsoft Defender Antivirus threats
93
153
@@ -101,17 +161,68 @@ You can view detected threats by using the Event log or PowerShell.
101
161
102
162
3. Look for `event ID 1116`. You should see the following information:
103
163
104
-
:::image type="content" source="media/mde-demonstrations-amsi/eventid1116.png" alt-text="Screenshot showing Event ID 1116, which says malware or unwanted software was detected." lightbox="media/mde-demonstrations-amsi/eventid1116.png":::
164
+
```powershell
165
+
166
+
Microsoft Defender Antivirus has detected malware or other potentially unwanted software.
167
+
168
+
For more information please see the following: https://go.microsoft.com/fwlink/?linkid=37020&name=Virus:Win32/MpTest!amsi&t
169
+
170
+
Name: Virus:Win32/MpTest!amsi
171
+
172
+
ID: 2147694217
173
+
174
+
Severity: Severe
175
+
176
+
Category: Virus
177
+
178
+
Path: \Device\HarddiskVolume3\Windows\System32\WindowsPowerShell\v1.0\powershell.exe or C:\Users\Admin\Desktop\AMSI_jscri
179
+
180
+
Detection Origin: Local machine or Unknown
181
+
182
+
Detection Type: Concrete
183
+
184
+
Detection Source: System
185
+
186
+
User: NT AUTHORITY\SYSTEM
105
187
106
-
##### Use PowerShell
188
+
Process Name: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe or C:\Windows\System32\cscript.exe or C:\Windows\Sy
:::image type="content" source="media/mde-demonstrations-amsi/get-mpthreat-results.png" alt-text="Screenshot showing the results of the Get-MpThreat command. It should show that an AMSI threat was detected." lightbox="media/mde-demonstrations-amsi/get-mpthreat-results.png":::
0 commit comments