Suspicious PrinterPorts Creation (CVE-2020-1048)


Description

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

Query · sigma

selection1:
  CommandLine|contains: Add-PrinterPort -Name
selection2:
  CommandLine|contains:
  - .exe
  - .dll
  - .bat
selection3:
  CommandLine|contains: Generic / Text Only
condition: (selection1 and selection2) or selection3

Known false positives

  • New printer port install on host
Raw source Suspicious PrinterPorts Creation (CVE-2020-1048) · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
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

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.