Clipboard Data Collection via xclip (auditd Linux EXECVE)
Alerts on xclip command lines that request clipboard/clip selection output (-o) on Linux systems monitored by auditd.
- Product
- linux
- Service
- auditd
- Author
- Pawel Mazur (SigmaHQ), DRL 1.1
- Published
- 2021-09-24
- 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 execution of the xclip utility with arguments targeting clipboard or primary selection output (e.g., -selection/-sel with clipboard/clip) and using the -o option. Attackers may use xclip to quickly collect or exfiltrate user-accessible clipboard contents. It relies on auditd telemetry capturing process execution events (EXECVE) and the specific command-line arguments passed to xclip.
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: Clipboard Data Collection via xclip (auditd Linux EXECVE)
id: d275714a-5fca-48fe-b03f-dd229f39ed6f
status: test
description: This rule flags execution of the xclip utility with arguments targeting clipboard or primary selection output (e.g., -selection/-sel with clipboard/clip) and using the -o option. Attackers may use xclip to quickly collect or exfiltrate user-accessible clipboard contents. It relies on auditd telemetry capturing process execution events (EXECVE) and the specific command-line arguments passed to xclip.
references:
- https://linux.die.net/man/1/xclip
- https://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/
- https://github.com/SigmaHQ/sigma/blob/master/rules/linux/auditd/execve/lnx_auditd_clipboard_collection.yml
author: Pawel Mazur, Huntrule Team
date: 2021-09-24
modified: 2022-11-26
tags:
- attack.collection
- attack.t1115
logsource:
product: linux
service: auditd
detection:
selection:
type: EXECVE
a0: xclip
a1:
- -selection
- -sel
a2:
- clipboard
- clip
a3: -o
condition: selection
falsepositives:
- Legitimate usage of xclip tools
level: low
license: DRL-1.1
related:
- id: 214e7e6c-f21b-47ff-bb6f-551b2d143fcf
type: derived