Linux screen capture using xwd saving a .xwd file

Flags xwd screen capture executions that write captured output to a .xwd file on Linux.

FreeReviewedSigma · Low · v3
Product
linux
Service
auditd
Author
Pawel Mazur (SigmaHQ), DRL 1.1
Published
2021-09-13
Updated
2026-07-31

ATT&CK techniques

Collection
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies executions of the xwd utility used to capture the root (full screen) window and write the output to a file ending in .xwd. Screen capture is a common capability for collecting visual information from a compromised system, which can help attackers with reconnaissance or further targeting. The detection relies on Linux auditd EXECVE telemetry showing the xwd command-line arguments (-root or -out) and the presence of a .xwd output file.

Related detections9 linkedT1113 — drag to rearrange
Suspicious Keylog and Screenshot Files in windows-cache Directory (OtterCookie)
Suspicious RDP Shadow Session Started - Native (via rdp)
Malicious RDP Shadow Session Configuration Enabled - Registry (via registry_event)
Suspicious GoGRPC Screen Capture Log File Creation (via file_event)
Suspicious Screen Capture via PowerShell Graphics API (via process_creation)
Malicious RDP Shadow Session Started - Command (via process_creation)
Windows Registry: EnablePeriodicBackup value set for periodic system hive backups
Windows Recall Enabled by Deleting DisableAIDataAnalysis Registry Value
Windows Recall Enabled by Registry: DisableAIDataAnalysis Set to 0 (Windows)
Linux screen capture using xwd saving a .xwd file
Pivot detection · T1113 · 9 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. v1
    No changelog recorded for this version.2026-07-30

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