Detection rules › Sigma

Suspicious PrinterPorts Creation (CVE-2020-1048)

Status
test
Severity
high
Log source
product windows, category process_creation
Author
EagleEye Team, Florian Roth
Source
github.com/SigmaHQ/sigma

Detects new commands that add new printer port which point to suspicious file

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Suspicious PrinterPorts Creation (CVE-2020-1048)
id: cc08d590-8b90-413a-aff6-31d1a99678d7
status: test
description: Detects new commands that add new printer port which point to suspicious file
references:
    - https://windows-internals.com/printdemon-cve-2020-1048/
author: EagleEye Team, Florian Roth
date: 2020-05-13
modified: 2021-11-27
tags:
    - attack.persistence
    - attack.execution
    - attack.t1059.001
    - cve.2020-1048
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection1:
        CommandLine|contains: 'Add-PrinterPort -Name'
    selection2:
        CommandLine|contains:
            - '.exe'
            - '.dll'
            - '.bat'
    selection3:
        CommandLine|contains: 'Generic / Text Only'
    condition: (selection1 and selection2) or selection3
falsepositives:
    - New printer port install on host
level: high

Stages and Predicates

Stage 0: condition

(selection1 and selection2) or selection3

Stage 1: selection1

selection1:
    CommandLine|contains: 'Add-PrinterPort -Name'

Stage 2: selection2

selection2:
    CommandLine|contains:
        - '.exe'
        - '.dll'
        - '.bat'

Stage 3: selection3

selection3:
    CommandLine|contains: 'Generic / Text Only'

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
CommandLinematch
  • .bat corpus 11 (sigma 9, elastic 1, kusto 1)
  • .dll corpus 16 (sigma 16)
  • .exe corpus 5 (sigma 5)
  • Add-PrinterPort -Name
  • Generic / Text Only