Detection rules › Sigma

Abusing Print Executable

Status
test
Severity
medium
Log source
category process_creation, product windows
Author
Furkan CALISKAN, @caliskanfurkan_, @oscd_initiative
Source
github.com/SigmaHQ/sigma

Attackers can use print.exe for remote file copy

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Abusing Print Executable
id: bafac3d6-7de9-4dd9-8874-4a1194b493ed
status: test
description: Attackers can use print.exe for remote file copy
references:
    - https://lolbas-project.github.io/lolbas/Binaries/Print/
    - https://twitter.com/Oddvarmoe/status/985518877076541440
author: 'Furkan CALISKAN, @caliskanfurkan_, @oscd_initiative'
date: 2020-10-05
modified: 2022-07-07
tags:
    - attack.stealth
    - attack.t1218
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\print.exe'
        CommandLine|startswith: 'print'
        CommandLine|contains|all:
            - '/D'
            - '.exe'
    filter_print:
        CommandLine|contains: 'print.exe'
    condition: selection and not filter_print
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter_print

Stage 1: selection

selection:
    Image|endswith: '\print.exe'
    CommandLine|startswith: 'print'
    CommandLine|contains|all:
        - '/D'
        - '.exe'

Stage 2: not filter_print

filter_print:
    CommandLine|contains: 'print.exe'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematchprint.exeexcludes:CommandLine field:"CommandLine" value:"print.exe"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • .exe corpus 5 (sigma 5)
  • /D corpus 4 (sigma 3, kusto 1)
field:"CommandLine" kind:match
CommandLinestarts_with
  • print
field:"CommandLine" kind:starts_with value:"print"
Imageends_with
  • \print.exe corpus 2 (sigma 2)
field:"Image" kind:ends_with value:"\print.exe"