Detect Downgrade Attack in Elastic Security
Adversaries may downgrade or use a version of system features that may be outdated, vulnerable, and/or does not support updated security controls. Downgrade attacks typically take advantage of a system's backward compatibility to force it into less secure modes of operation. Adversaries may downgrade and use various less-secure versions of features of a system, such as Command and Scripting Interpreters or even network protocols that can be abused to enable Adversary-in-the-Middle or Network Sniffing. For example, PowerShell versions 5+ include Script Block Logging (SBL), which can record executed script content. However, adversaries may attempt to execute a previous version of PowerShell that does not support SBL to evade detection. Adversaries may similarly target network traffic to downgrade from an encrypted HTTPS connection to an unsecured HTTP connection. On Windows systems, adversaries may downgrade the boot manager to a vulnerable version that bypasses Secure Boot.
MITRE ATT&CK
- Tactic
- Defense Evasion
- Technique
- T1562 Impair Defenses
- Sub-technique
- T1562.010 Downgrade Attack
- Canonical reference
- https://attack.mitre.org/techniques/T1562/010/
Elastic Detection Query
sequence by host.name with maxspan=5m
[
any where (
(
event.category == "process" and
process.name in~ ("powershell.exe", "pwsh.exe") and
process.args : ("-version", "-Version") and
process.command_line : ("*-version 2*", "*-Version 2*", "*-version 1*", "*-Version 1*")
) or
(
event.category == "process" and
process.command_line : ("*SMB1Protocol*", "*SMB1*", "*mrxsmb10*") and
process.command_line : ("*Enable-WindowsOptionalFeature*", "*Set-SmbServerConfiguration*", "*sc config*")
) or
(
event.category == "process" and
process.name =~ "bcdedit.exe" and
process.command_line : ("*bootmgr*", "*winload*") and
process.command_line : ("*testsigning*", "*downgrade*", "*rollback*")
) or
(
event.category == "registry" and
registry.path : "*LANMANSERVER\\Parameters*" and
registry.value == "SMB1" and
registry.data.strings : ("1", "0x00000001")
)
)
] by host.name Detects downgrade attacks including PowerShell version downgrade (bypassing Script Block Logging), SMBv1 re-enablement, and Secure Boot downgrade via bcdedit. Covers process command line patterns and registry modifications associated with T1562.010.
Data Sources
Required Tables
False Positives & Tuning
- Legacy application compatibility testing by IT teams explicitly running PowerShell v2 for validation purposes
- System administrators enabling SMBv1 for legacy device support in environments with older NAS devices or printers that require it
- Security researchers or red team operators conducting authorized downgrade testing in lab environments
Other platforms for T1562.010
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1PowerShell Version 2 Downgrade
Expected signal: Sysmon Event ID 1: Process Create with Image=powershell.exe, CommandLine containing '-Version 2'. Note: Script Block Logging (Event ID 4104) will NOT capture the executed commands if the v2 engine loaded successfully. Security Event ID 4688 will still show the command line.
- Test 2Enable SMBv1 Protocol via PowerShell
Expected signal: Sysmon Event ID 1: Process Create with CommandLine containing 'Set-SmbServerConfiguration' and 'EnableSMB1Protocol'. Sysmon Event ID 13: Registry Value Set for HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\SMB1 set to 1. SMBServer Operational Event ID 3000.
- Test 3Enable SMBv1 via Windows Optional Feature
Expected signal: Sysmon Event ID 1: Process Create with CommandLine containing 'Enable-WindowsOptionalFeature' and 'SMB1Protocol'. DISM operational events may also be generated. The feature state change persists across reboots.
References (8)
- https://attack.mitre.org/techniques/T1562/010/
- https://www.crowdstrike.com/blog/how-falcon-complete-stopped-a-big-game-hunting-ransomware-attack/
- https://www.mandiant.com/resources/bring-your-own-land-novel-red-teaming-technique
- https://nsfocusglobal.com/attack-and-defense-around-powershell-event-logging/
- https://www.safebreach.com/blog/downgrade-attacks-using-windows-updates/
- https://www.praetorian.com/blog/man-in-the-middle-tls-ssl-protocol-downgrade-attack/
- https://www.crowdstrike.com/cybersecurity-101/attack-types/downgrade-attacks/
- https://www.welivesecurity.com/2023/03/01/blacklotus-uefi-bootkit-myth-confirmed/
Unlock Pro Content
Get the full detection package for T1562.010 including response playbook, investigation guide, and atomic red team tests.