Linux Clipboard Data Collection via xclip -sel clip -o

Alerts on Linux processes running xclip to output clipboard content using -sel clip -o.

FreeReviewedSigma · Low · v3
Product
linux
Category
process_creation
Author
Pawel Mazur, Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTIC (SigmaHQ), DRL 1.1
Published
2021-10-15
Updated
2026-07-31
title: Linux Clipboard Data Collection via xclip -sel clip -o
id: b35832fb-0257-46fe-9fb8-55db34026e9b
status: test
description: This rule flags process executions on Linux where the command line uses xclip with parameters that request clipboard contents (selection and output to standard output). Attackers commonly harvest clipboard data to capture sensitive text copied by users. The detection relies on Linux process creation telemetry, matching the xclip executable name and the presence of the -sel, clip, and -o options in the command line.
references:
  - https://www.packetlabs.net/posts/clipboard-data-security/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_clipboard_collection.yml
author: Pawel Mazur, Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTIC, Huntrule Team
date: 2021-10-15
modified: 2022-09-15
tags:
  - attack.collection
  - attack.t1115
logsource:
  product: linux
  category: process_creation
detection:
  selection:
    Image|contains: xclip
    CommandLine|contains|all:
      - -sel
      - clip
      - -o
  condition: selection
falsepositives:
  - Legitimate usage of xclip tools.
level: low
license: DRL-1.1
related:
  - id: ec127035-a636-4b9a-8555-0efd4e59f316
    type: derived