Skip to main content
Version: 2.1.0

MT.1152 - Script Scanning should be enabled

Overview​

Verify that script scanning is enabled to block malicious scripts.

Disabled script scanning allows malicious PowerShell, JavaScript, and VBScript execution.

Remediation action:​

  1. Open Microsoft Endpoint Manager > Endpoint Security > Antivirus
  2. Edit the relevant Microsoft Defender Antivirus policy
  3. Enable Allow Script Scanning

Test Metadata​

FieldValue
Test IDMT.1152
SeverityHigh
SuiteM365Advisor
CategoryDefender
PowerShell testTest-MtMdeScriptScanning
TagsDefender, M365Advisor, MT.1152

Source​

  • Pester test: tests/M365Advisor/Defender/Test-MtMdeAntivirusPolicy.Tests.ps1
  • PowerShell source: powershell/public/m365advisor/defender/Test-MtMdeScriptScanning.ps1