Skip to content

Commit 8f1edfe

Browse files
committed
convert image to code snippet
1 parent 27e15f7 commit 8f1edfe

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

defender-endpoint/mde-demonstration-amsi.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ In this demonstration article, you have two engine choices to test AMSI:
7474
+ FullyQualifiedErrorId : ScriptContainedMaliciousContent,Microsoft.PowerShell.Commands.InvokeExpressionCommand
7575
```
7676

77-
78-
:::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":::
79-
80-
8177
### Testing AMSI with VBScript
8278

8379
1. Save the following VBScript as `AMSI_vbscript.vbs`:
@@ -89,12 +85,28 @@ In this demonstration article, you have two engine choices to test AMSI:
8985
WScript.Echo result
9086
```
9187

92-
2. On your Windows Device, open Command Prompt as an administrator.
88+
1. On your Windows Device, open Command Prompt as an administrator.
9389

9490
1. Type `wscript AMSI_vbscript.vbs`, and then press **Enter**.
9591

9692
The result should be as follows:
9793

94+
```vbscript
95+
Windows Script Host
96+
97+
Script: C:\Users\Admin\Desktop\AMSI_vbscript.vbs
98+
99+
Line: 3
100+
101+
Char: 1
102+
103+
Error: This script contains malicious content and has been blocked by your antivirus software.: 'eval'
104+
105+
Code: 800A802D
106+
107+
Source: Microsoft VBScript runtime error
108+
```
109+
98110
:::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":::
99111

100112

0 commit comments

Comments
 (0)