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
Copy file name to clipboardExpand all lines: defender-endpoint/mde-demonstration-amsi.md
+72-12Lines changed: 72 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ audience: ITPro
11
11
ms.collection:
12
12
- m365-security
13
13
ms.topic: how-to
14
-
ms.date: 08/19/2025
14
+
ms.date: 09/01/2025
15
15
search.appverid: met150
16
16
ms.custom:
17
17
- partner-contribution
@@ -60,8 +60,6 @@ In this demonstration article, you have two engine choices to test AMSI:
60
60
61
61
The result should be as follows:
62
62
63
-
### Attempt to execute the AMSI Test Sample
64
-
65
63
```powershell
66
64
Invoke-Expression : At line:1 char:1
67
65
+ AMSI Test Sample: 7e72c3ce-861b-4339-8740-8ac1484c1386
@@ -107,14 +105,36 @@ In this demonstration article, you have two engine choices to test AMSI:
107
105
Source:MicrosoftVBScriptruntimeerror
108
106
```
109
107
110
-
:::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":::
111
-
112
-
113
108
### Verifying the test results
114
109
115
110
In your protection history, you should be able to see the following information:
116
111
117
-
:::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
120
140
@@ -128,18 +148,58 @@ You can view detected threats by using the Event log or PowerShell.
128
148
129
149
3. Look for `event ID 1116`. You should see the following information:
130
150
131
-
:::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":::
151
+
```powershell
152
+
153
+
Microsoft Defender Antivirus has detected malware or other potentially unwanted software.
154
+
155
+
For more information please see the following: https://go.microsoft.com/fwlink/?linkid=37020&name=Virus:Win32/MpTest!amsi&t
132
156
133
-
##### Use PowerShell
157
+
Name: Virus:Win32/MpTest!amsi
158
+
159
+
ID: 2147694217
160
+
161
+
Severity: Severe
162
+
163
+
Category: Virus
164
+
165
+
Path: \Device\HarddiskVolume3\Windows\System32\WindowsPowerShell\v1.0\powershell.exe or C:\Users\Admin\Desktop\AMSI_jscri
166
+
167
+
Detection Origin: Local machine or Unknown
168
+
169
+
Detection Type: Concrete
170
+
171
+
Detection Source: System
172
+
173
+
User: NT AUTHORITY\SYSTEM
174
+
175
+
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