Possible Screen Capture with Xwd (via auditd)

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

SigmalowLinuxv1
sigma
title: Possible Screen Capture with Xwd (via auditd)
id: 770507ec-3661-5412-a7ad-574b879757d1
status: stable
description: This rule detects adversary creating screen capture of a full with xwd. Highly recommended using rule on servers, due high use of screenshot utilities on user workstations
references:
    - https://attack.mitre.org/techniques/T1113/
    - 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: 'Huntrule Team'
date: 2026-02-23
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:
    - Unknown
level: low

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.