Windows SystemNightmare Exploitation Attempt via PrintNightmare Command Lines

Alerts on Windows process command lines matching SystemNightmare/PrintNightmare exploitation indicators that may enable LOCAL_SYSTEM shell access.

FreeReviewedSigma · Critical · v5
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2021-08-11
Updated
2026-07-31
title: Windows SystemNightmare Exploitation Attempt via PrintNightmare Command Lines
id: dca4caf4-c981-4955-a768-3fa38f2cd896
status: test
description: This rule flags Windows process creation events whose command line contains strings associated with the SystemNightmare/PrintNightmare exploitation pattern, including the target host and specific username and printer text. Attackers may use this behavior to try to escalate privileges and gain a highly privileged shell. The detection relies on process creation telemetry with a populated command line field.
references:
  - https://github.com/GossiTheDog/SystemNightmare
  - https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2021/Exploits/SystemNightmare-Exploit/proc_creation_win_exploit_other_systemnightmare.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2021-08-11
modified: 2023-02-04
tags:
  - attack.privilege-escalation
  - attack.t1068
  - detection.emerging-threats
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    CommandLine|contains:
      - printnightmare.gentilkiwi.com
      - " /user:gentilguest "
      - Kiwi Legit Printer
  condition: selection
falsepositives:
  - Unknown
level: critical
license: DRL-1.1
related:
  - id: c01f7bd6-0c1d-47aa-9c61-187b91273a16
    type: derived