SecBoard
Zurück zur CVE-Übersicht

CVE-2021-42321

HIGH(8.8)KEV — Aktiv ausgenutzt

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Risk Signal Score80/100 — KRITISCH
  • CVSS 8.8 — Hoch
  • EPSS 92% — sehr wahrscheinlich ausgenutzt
  • Im CISA KEV-Katalog (aktiv ausgenutzt)

CISA KEV

Bestätigt ausgenutzt

EPSS-Score

91.7%

Exploit-Wahrscheinlichkeit (30 Tage)

CVSS Score

8.8

Technische Schwere

SecBoard-Einordnung

CVE-2021-42321 ist eine () Schwachstelle in Microsoft Exchange Server. Ein erfolgreicher ermöglicht es einem Angreifer, beliebigen Code auf dem betroffenen Server auszuführen, was zu einer vollständigen Kompromittierung des Systems führen kann. Diese Schwachstelle betrifft spezifische Cumulative Updates von Exchange Server 2016 und 2019.

KI-gestützte Einordnung auf Basis der NVD-Daten.

Beschreibung

Microsoft Exchange Server Remote Code Execution Vulnerability

Erkennung & Indikatoren

Ausnutzung

Aktiv ausgenutzt (CISA KEV). Ein authentifizierter Angreifer könnte unsachgemäße Validierung in Cmdlet-Argumenten innerhalb von Microsoft Exchange ausnutzen, um Remote Code Execution durchzuführen. Die Schwachstelle ist bekannt dafür, in Ransomware-Kampagnen verwendet zu werden.

Threat-Hunting-Queries

Die Schwachstelle ermöglicht Remote Code Execution durch unsachgemäße Validierung in Cmdlet-Argumenten. Die Detektion sollte sich auf ungewöhnliche oder nicht autorisierte Cmdlet-Ausführungen auf Exchange-Servern konzentrieren, insbesondere solche, die zu Prozess-Spawns oder Netzwerkverbindungen führen, die nicht dem normalen Betrieb entsprechen.

Sentinel/Defender KQL

DeviceProcessEvents
| where InitiatingProcessCommandLine contains "Exchange" and ProcessCommandLine contains "powershell" and ProcessCommandLine contains "-command"
| where not (ProcessCommandLine contains "Get-" or ProcessCommandLine contains "Set-" or ProcessCommandLine contains "New-" or ProcessCommandLine contains "Remove-") // Filter out common legitimate cmdlets
| where FileName !in ("powershell.exe", "cmd.exe") or (FileName in ("powershell.exe", "cmd.exe") and ProcessCommandLine contains "-EncodedCommand") // Look for encoded commands or unusual executables
| project TimeGenerated, DeviceName, InitiatingProcessCommandLine, ProcessCommandLine, FileName, InitiatingProcessParentFileName, InitiatingProcessFileName, InitiatingProcessIntegrityLevel, InitiatingProcessAccountName
| extend Anomaly = "Potential RCE via Exchange Cmdlet Argument Manipulation (CVE-2021-42321)"

Splunk SPL

index=windows sourcetype=WinEventLog:Security EventCode=4688 (CommandLine="*Exchange*" AND CommandLine="*powershell*" AND CommandLine="*-command*") NOT (CommandLine="*Get-*" OR CommandLine="*Set-*" OR CommandLine="*New-*" OR CommandLine="*Remove-*") | where not match(NewProcessName, "(?i)(powershell.exe|cmd.exe)") OR (match(NewProcessName, "(?i)(powershell.exe|cmd.exe)") AND CommandLine="*-EncodedCommand*") | table _time, Host, Process, CommandLine, ParentProcess, User | rename Process as NewProcessName, CommandLine as NewProcessCommandLine, ParentProcess as ParentProcessName | eval Anomaly = "Potential RCE via Exchange Cmdlet Argument Manipulation (CVE-2021-42321)"

Sigma

title: Exchange RCE CVE-2021-42321 Behavioral Detection
status: experimental
description: Detects potential exploitation of CVE-2021-42321 on Microsoft Exchange servers by looking for unusual cmdlet execution patterns.
references:
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-42321
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith:
            - '\Exchange\Bin\*' # Adjust based on actual Exchange process paths
        Image|endswith:
            - '\powershell.exe'
            - '\cmd.exe'
        CommandLine|contains:
            - '-command'
    filter_legitimate:
        CommandLine|contains:
            - 'Get-'
            - 'Set-'
            - 'New-'
            - 'Remove-'
    condition: selection and not filter_legitimate
fields:
    - CommandLine
    - ParentCommandLine
    - User
level: high

Elastic ES|QL

from process where event.category == "process" and event.type == "start" and process.parent.executable.path : "*Exchange*" and process.executable.path : ("*powershell.exe", "*cmd.exe") and process.args : "*-command*" and not (process.args : ("*Get-*", "*Set-*", "*New-*", "*Remove-*"))
| project @timestamp, host.name, process.executable.path, process.args, process.parent.executable.path, user.name
| append { from process where event.category == "process" and event.type == "start" and process.parent.executable.path : "*Exchange*" and process.executable.path : ("*powershell.exe", "*cmd.exe") and process.args : "*-EncodedCommand*" }
| set anomaly = "Potential RCE via Exchange Cmdlet Argument Manipulation (CVE-2021-42321)"

SecBoard-generated · behavioral · requires customizationVon SecBoard erzeugt und nicht in einer Zielumgebung validiert. Vor dem Einsatz an die eigene Protokollierung anpassen.

Betroffene Produkte

  • cpe:2.3:a:microsoft:exchange_server:2016:cumulative_update_21:*:*:*:*:*:*
  • cpe:2.3:a:microsoft:exchange_server:2016:cumulative_update_22:*:*:*:*:*:*
  • cpe:2.3:a:microsoft:exchange_server:2019:cumulative_update_10:*:*:*:*:*:*
  • cpe:2.3:a:microsoft:exchange_server:2019:cumulative_update_11:*:*:*:*:*:*

Referenzen