Detection rules › Sigma

Screen Capture with Xwd

Status
test
Severity
low
Log source
product linux, service auditd
Author
Pawel Mazur
Source
github.com/SigmaHQ/sigma

Detects adversary creating screen capture of a full with xwd. Highly recommended using rule on servers, due high usage of screenshot utilities on user workstations

MITRE ATT&CK coverage

TacticTechniques
CollectionT1113 Screen Capture

Event coverage

Rule body yaml

title: Screen Capture with Xwd
id: e2f17c5d-b02a-442b-9052-6eb89c9fec9c
status: test
description: Detects adversary creating screen capture of a full with xwd. Highly recommended using rule on servers, due high usage of screenshot utilities on user workstations
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1113/T1113.md#atomic-test-3---x-windows-capture
    - https://linux.die.net/man/1/xwd
author: 'Pawel Mazur'
date: 2021-09-13
modified: 2022-12-18
tags:
    - attack.collection
    - attack.t1113
logsource:
    product: linux
    service: auditd
detection:
    selection:
        type: EXECVE
        a0: xwd
    xwd_root_window:
        a1: '-root'
        a2: '-out'
        a3|endswith: '.xwd'
    xwd_no_root_window:
        a1: '-out'
        a2|endswith: '.xwd'
    condition: selection and 1 of xwd_*
falsepositives:
    - Legitimate use of screenshot utility
level: low

Stages and Predicates

Stage 0: condition

selection and 1 of xwd_*

Stage 1: selection

selection:
    type: EXECVE
    a0: xwd

Stage 2: xwd_root_window

xwd_root_window:
    a1: '-root'
    a2: '-out'
    a3|endswith: '.xwd'

Stage 3: xwd_no_root_window

xwd_no_root_window:
    a1: '-out'
    a2|endswith: '.xwd'

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
a0eq
  • xwd
a1eq
  • -out
  • -root
a2ends_with
  • .xwd
a2eq
  • -out
a3ends_with
  • .xwd
typeeq
  • EXECVE