Detection rules › Sigma

Possible CVE-2021-1675 Print Spooler Exploitation

Status
test
Severity
high
Log source
product windows, service printservice-admin
Author
Florian Roth (Nextron Systems), KevTheHermit, fuzzyf10w, Tim Shelton
Source
github.com/SigmaHQ/sigma

Detects events of driver load errors in print service logs that could be a sign of successful exploitation attempts of print spooler vulnerability CVE-2021-1675

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1569 System Services

Event coverage

Rule body yaml

title: Possible CVE-2021-1675 Print Spooler Exploitation
id: 4e64668a-4da1-49f5-a8df-9e2d5b866718
status: test
description: Detects events of driver load errors in print service logs that could be a sign of successful exploitation attempts of print spooler vulnerability CVE-2021-1675
references:
    - https://web.archive.org/web/20210629055600/https://github.com/hhlxf/PrintNightmare/
    - https://web.archive.org/web/20210701042336/https://github.com/afwu/PrintNightmare
    - https://twitter.com/fuzzyf10w/status/1410202370835898371
author: Florian Roth (Nextron Systems), KevTheHermit, fuzzyf10w, Tim Shelton
date: 2021-06-30
modified: 2022-11-15
tags:
    - attack.execution
    - attack.t1569
    - cve.2021-1675
    - detection.emerging-threats
logsource:
    product: windows
    service: printservice-admin
detection:
    selection:
        EventID: 808
        ErrorCode:
            - '0x45A'
            - '0x7e'
    keywords:
        - 'The print spooler failed to load a plug-in module'
        # default file names used in PoC codes
        - 'MyExploit.dll'
        - 'evil.dll'
        - '\addCube.dll'
        - '\rev.dll'
        - '\rev2.dll'
        - '\main64.dll'
        - '\mimilib.dll'
        - '\mimispool.dll'
    falsepositive:
        - ' registration timed out' # ex: The print spooler failed to load a plug-in module PrintConfig registration timed out
    condition: (selection or keywords) and not falsepositive
falsepositives:
    - Problems with printer drivers
level: high

Stages and Predicates

Stage 0: condition

(selection or keywords) and not falsepositive

Stage 1: selection

selection:
    EventID: 808
    ErrorCode:
        - '0x45A'
        - '0x7e'

Stage 2: keywords

keywords:
    - 'The print spooler failed to load a plug-in module'
    - 'MyExploit.dll'
    - 'evil.dll'
    - '\addCube.dll'
    - '\rev.dll'
    - '\rev2.dll'
    - '\main64.dll'
    - '\mimilib.dll'
    - '\mimispool.dll'

Stage 3: not falsepositive

falsepositive:
    - ' registration timed out'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ErrorCodeeq
  • 0x45A corpus 2 (sigma 1, splunk 1)
  • 0x7e