Skip to main content
Version: 2.1.1-preview

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
SuiteM365 Advisor
CategoryDefender
PowerShell testTest-MtMdeScriptScanning
TagsDefender, M365Advisor, MT.1152

Remediation​

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

Source​

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