SecBoard
Zurück zur CVE-Übersicht

CVE-2026-77605

HIGH(7.8)

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

Risk Signal Score20/100 — NIEDRIG
  • CVSS 7.8 — Hoch

EPSS-Score

0.2%

Exploit-Wahrscheinlichkeit (30 Tage)

CVSS Score

7.8

Technische Schwere

Beschreibung

Notepad++ is a free and open-source source code editor. Prior to 8.9.8, the Folder as Workspace Run by system action in Notepad++ can resolve a different sibling file than the file selected by the user. When an attacker places a command script whose name is the selected text-file path with .cmd appended, and the user invokes Run by system on the text file on Windows 10 or Windows 11, Notepad++ can execute the sibling script as the current user instead of opening the selected file. This issue is fixed in version 8.9.8.

Erkennung & Indikatoren

Ausnutzung

In den geprüften Quellen nicht genannt

Behobene Versionen

  • 8.9.8

Threat-Hunting-Queries

Detects the creation of a .cmd file with the same name as a .txt file in the same directory, followed by Notepad++ executing a .cmd file. This is a behavioral detection and may require tuning to reduce false positives.

Sentinel/Defender KQL

DeviceFileEvents
| where FileName endswith ".cmd"
| where InitiatingProcessFileName == "notepad++.exe"
| join kind=inner (DeviceFileEvents
    | where FileName endswith ".txt"
    | extend BaseFileName = FileName
    | extend CmdFileName = strcat(BaseFileName, ".cmd")
    | project FolderPath, CmdFileName, Timestamp
) on $left.FolderPath == $right.FolderPath and $left.FileName == $right.CmdFileName
| where Timestamp between (ago(1h) .. now())
| project-reorder Timestamp, DeviceName, FolderPath, FileName, InitiatingProcessFileName

Splunk SPL

(index=* OR index=*) sourcetype=WinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1 Image="*\\notepad++.exe" CommandLine="*.cmd" | join type=inner _time
    [ (index=* OR index=*) sourcetype=WinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1 TargetFilename="*.txt.cmd" | eval BaseFileName=replace(TargetFilename, ".cmd", "") | eval TxtFileName=BaseFileName | eval CmdFileName=TargetFilename | fields _time, Directory, TxtFileName, CmdFileName ]
    on Directory, CmdFileName
| where _time >= relative_time(now(), "-1h@h")
| table _time, Host, Directory, TxtFileName, CmdFileName, Image, CommandLine

Sigma

title: Notepad++ Run by System Target Confusion
id: 00fa5df0-da1d-4f6b-3343-17aa979db13ac77ee24d
status: experimental
description: Detects Notepad++ executing a .cmd file that shares a base name with a .txt file in the same directory, indicating potential exploitation of CVE-2026-77605.
author: SecBoard
date: 2026/08/23
logsource:
  category: process_creation
  product: windows
detection:
  selection_cmd_creation:
    EventID: 11 # File creation event (Sysmon)
    TargetFilename|endswith: '.cmd'
    TargetFilename|contains: '.txt.cmd'
  selection_npp_execution:
    EventID: 1 # Process creation event (Sysmon)
    Image|endswith: '\notepad++.exe'
    CommandLine|contains: '.cmd'
  condition: selection_cmd_creation and selection_npp_execution
  timeframe: 1h
falsepositives:
  - Legitimate scripts with similar naming conventions (unlikely for .txt.cmd)
level: high

Elastic ES|QL

file where event.type == "creation" and file.extension == "cmd" and file.name : "*.txt.cmd"
| join kind=inner (process where event.type == "start" and process.executable : "*\\notepad++.exe" and process.command_line : "*.cmd")
  on file.directory == process.working_directory and file.name == process.command_line
| where @timestamp >= NOW() - INTERVAL 1 HOUR
| select @timestamp, host.name, file.directory, file.name, process.executable, process.command_line

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

Indikatoren

Datei-Hashes (13)

  • 3ac2c91245e980c4fd0991e5c1971439e234c0713e994d1dae532c70b7528587
  • 9753e2eba8f0ff056d60c52a917f7760ea81227e41b1786260e1ac76db398434
  • 7b2a949bf460fb37a3888c9048698f43222a185a48323023df1c51e78a3ca1c2
  • c29cbe1a9aaef322cc3f316ceeabe8a8071b18441a5e3c3ec348069739e59e80
  • 4c54090b8906508fe404e65e9209949f2edb2788a35830cc59b9464ef92522f7
  • 48f1e1fd1b241df4a37487ef67b3e59210bd03c74d6bcdb4ef9561111de023d2
  • 06b047b6c07ee32f2b685af42a7312c62e7f6eeda747e6102cb48936fd91c4ee
  • 6bc4af5512488476af2497c81adda24a4a034ca65ef21e4b7644581bd48f272d
  • 677fc978772df2a4d771582f5eb6933f0d4bb6bb94b09d3f504341c5b9d08c61
  • 624579cee4d9082f5f3945ceb2474ab5aeb222c2003b503b3df8f1dde60e4def
  • b13d98c81253fc6c05563f82af651b8a18fd47d9f4430f325dc2c2a576b7ddc2
  • b269383239464a945d17cfabfccf53935b83d80d907922310fdfd50d80274c66
  • 880c5c5323305154aaed3fa5238d6186cda3bcfa3a82645243c1e7999e35602a

Übernommen wurden nur Indikatoren, die wörtlich in einer Hersteller- oder Research-Quelle standen.

Referenzen