SecBoard
Zurück zur CVE-Übersicht

CVE-2018-8174

HIGH(7.5)KEV — Aktiv ausgenutzt

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

Risk Signal Score75/100 — KRITISCH
  • CVSS 7.5 — Hoch
  • EPSS 89% — sehr wahrscheinlich ausgenutzt
  • Im CISA KEV-Katalog (aktiv ausgenutzt)

CISA KEV

Bestätigt ausgenutzt

EPSS-Score

88.5%

Exploit-Wahrscheinlichkeit (30 Tage)

CVSS Score

7.5

Technische Schwere

SecBoard-Einordnung

CVE-2018-8174 ist eine () Schwachstelle in der VBScript-Engine von Microsoft Windows. Sie ermöglicht es Angreifern, beliebigen Code auszuführen, indem sie die Art und Weise ausnutzen, wie die VBScript-Engine Objekte im Speicher handhabt. Diese Schwachstelle betrifft verschiedene Windows-Versionen, darunter Windows 7, 8.1, 10 und Windows Server 2008/2012/2016.

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

Beschreibung

A remote code execution vulnerability exists in the way that the VBScript engine handles objects in memory, aka "Windows VBScript Engine Remote Code Execution Vulnerability." This affects Windows 7, Windows Server 2012 R2, Windows RT 8.1, Windows Server 2008, Windows Server 2012, Windows 8.1, Windows Server 2016, Windows Server 2008 R2, Windows 10, Windows 10 Servers.

Erkennung & Indikatoren

Ausnutzung

Aktiv ausgenutzt (CISA KEV). Exploit wurde von Kaspersky und 360 Security Firms entdeckt. Ein Proof-of-Concept (PoC) und ein Exploit für Internet Explorer 11 (Windows 7 x86/x64) sind öffentlich verfügbar.

Behobene Versionen

  • Updates vom Mai 2018

Threat-Hunting-Queries

Die Schwachstelle betrifft die VBScript-Engine und wird durch eine 'Use-After-Free'-Bedingung in der Class_Terminate-Methode ausgelöst, die zu einem Absturz von wscript.exe in oleaut32.dll's VariantClear-Funktion führen kann. Die Detektion sollte auf ungewöhnliche VBScript-Ausführungsmuster abzielen, insbesondere auf Skripte, die Objekte in Arrays manipulieren und Class_Terminate-Methoden verwende

Sentinel/Defender KQL

DeviceProcessEvents
| where FileName =~ "wscript.exe" or FileName =~ "cscript.exe" or FileName =~ "mshta.exe" or FileName =~ "iexplore.exe"
| where ProcessCommandLine contains "Class_Terminate" or ProcessCommandLine contains "Erase" and ProcessCommandLine contains "Dim ArrA" // Beispiel für PoC-Muster
| where InitiatingProcessFileName !in ("explorer.exe", "cmd.exe", "powershell.exe") // Filtert typische interaktive Ausführungen
| project Timestamp, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine

Splunk SPL

index=windows (sourcetype=WinEventLog:Microsoft-Windows-Sysmon/Operational EventID=1) OR (sourcetype=WinEventLog:Security EventID=4688)
| where (NewProcessName="wscript.exe" OR NewProcessName="cscript.exe" OR NewProcessName="mshta.exe" OR NewProcessName="iexplore.exe")
| where CommandLine LIKE "%Class_Terminate%" OR CommandLine LIKE "%Erase%" AND CommandLine LIKE "%Dim ArrA%"
| where ParentProcessName!="explorer.exe" AND ParentProcessName!="cmd.exe" AND ParentProcessName!="powershell.exe"
| table _time, Host, NewProcessName, CommandLine, ParentProcessName, ParentCommandLine

Sigma

title: VBScript Engine RCE CVE-2018-8174 Behavioral Detection
status: experimental
description: Detects potential exploitation attempts of CVE-2018-8174 by monitoring VBScript engine processes for suspicious command-line arguments related to object manipulation and termination.
references:
    - https://blog.0patch.com/2018/05/a-single-instruction-micropatch-for.html
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\wscript.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\iexplore.exe'
        CommandLine|contains:
            - 'Class_Terminate'
            - 'Erase'
            - 'Dim ArrA'
    condition: selection
fields:
    - Image
    - CommandLine
    - ParentImage
    - ParentCommandLine
tags:
    - attack.execution
    - attack.t1059.005
    - cve.2018-8174
    - exploit.rce

Elastic ES|QL

from process where
  (process.executable.name : ("wscript.exe", "cscript.exe", "mshta.exe", "iexplore.exe")) and
  (process.args : ("*Class_Terminate*", "*Erase*", "*Dim ArrA*")) and
  not (process.parent.executable.name : ("explorer.exe", "cmd.exe", "powershell.exe"))
| select @timestamp, host.name, process.executable.name, process.command_line, process.parent.executable.name, process.parent.command_line

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:o:microsoft:windows_10_1607:-:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_10_1703:-:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_10_1709:-:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_10_1803:-:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_7:-:sp1:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_8.1:-:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_rt_8.1:-:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_server_2008:-:sp2:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_server_2008:r2:sp1:*:*:*:*:itanium:*
  • cpe:2.3:o:microsoft:windows_server_2008:r2:sp1:*:*:*:*:x64:*
  • cpe:2.3:o:microsoft:windows_server_2012:-:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_server_2012:r2:*:*:*:*:*:*:*
  • cpe:2.3:o:microsoft:windows_server_2016:-:*:*:*:*:*:*:*

Referenzen