Learn how to use KQL to detect PowerShell downgrades to version 2 in Defender. This guide covers best practices for boosting system security by identifying vulnerabilities caused by outdated PowerShell versions.

Tutorial Defender – Using KQL to detect a PowerShell Downgrade to version 2

Access the Microsoft Defender portal.

Copy to Clipboard

Access the Advanced hunting option.

defender-advanced-hunting

The path to Advanced hunting.

Copy to Clipboard

On the Advanced hunting screen, create a new query.

defender-advanced-hunting-new-query

he KQL query to detect a PowerShell Downgrade to version 2.

Copy to Clipboard

This KQL query is designed to detect devices that started an older version of Powershell.

Copy to Clipboard

Implementing Defender’s KQL queries effectively detects PowerShell downgrades to version 2, enhancing cybersecurity measures and ensuring robust system protection.