Windows Process Creation: Add-PrinterPort Commands with Suspicious File Paths

Flags suspicious Add-PrinterPort usage referencing .exe/.dll/.bat or “Generic / Text Only” in Windows process command lines.

FreeReviewedSigma · High · v5
Product
windows
Category
process_creation
Author
EagleEye Team, Florian Roth (SigmaHQ), DRL 1.1
Published
2020-05-13
Updated
2026-07-31
title: "Windows Process Creation: Add-PrinterPort Commands with Suspicious File Paths"
id: 58b2d86d-6b4f-4aaa-a07c-e4e354e09d77
status: test
description: This rule flags Windows command-line activity that adds printer ports via Add-PrinterPort -Name when the command line includes executable, DLL, or batch file extensions. It also matches printer port creation commands containing the string "Generic / Text Only." These behaviors can matter because attackers may abuse printer port configuration to trigger execution or persistence using crafted targets. The detection relies on process creation telemetry and string matching on the process command line.
references:
  - https://windows-internals.com/printdemon-cve-2020-1048/
  - https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2020/Exploits/CVE-2020-1048/proc_creation_win_exploit_cve_2020_1048.yml
author: EagleEye Team, Florian Roth, Huntrule Team
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
license: DRL-1.1
related:
  - id: cc08d590-8b90-413a-aff6-31d1a99678d7
    type: derived