Linux Clipboard Data Collection via xclip -sel clip -o
Alerts on Linux processes running xclip to output clipboard content using -sel clip -o.
- 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
ATT&CK techniques
CollectionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
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.
Reporting behind it
Changelog
v3- v3Candidate ingested via manual entry.2026-07-31
- v2Candidate ingested via manual entry.2026-07-31
- v1No 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.
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