Detection of Unauthorized Clipboard Utility Execution on Linux
This brief details a detection strategy for identifying unauthorized collection of clipboard data on Linux systems by monitoring the execution of common clipboard utilities from uncommon parent processes.
Adversaries often target user clipboard data to steal sensitive information such as passwords, personal identifiers, or cryptographic keys copied by users between applications. On Linux systems, this collection is frequently facilitated by command-line clipboard utilities. This threat intelligence focuses on a detection methodology designed to identify potential abuse of these utilities. By monitoring for the execution of common tools such as xclip, xsel, wl-clipboard, clipman, copyq, pbcopy, and wl-copy, and filtering out known benign or common parent processes, security teams can detect anomalous collection behavior. This detection is critical for identifying unauthorized exfiltration attempts or reconnaissance activities where an attacker may be programmatically polling the clipboard to capture data in real time.
Impact
Successful exploitation of clipboard data allows attackers to capture sensitive information residing in a user's clipboard buffer, which frequently contains credentials, session tokens, or PII. While individual instances may be limited, this technique provides adversaries with immediate access to cleartext data without needing to bypass complex filesystem permissions or interact with specific application memory.
Recommendation
Deploy the provided Sigma rules to your SIEM and tune the parent process allowlist based on your specific environment baseline. Monitor for alerts generated by these rules, specifically investigating instances where clipboard utilities are spawned by shell processes or unusual background services.
Immediate actions
Deploy the Sigma rule to SIEM
Threat Hunt
Search for infrequent execution of xclip or xsel in process logs
Data: Process creation events
Detection coverage 1
Linux Clipboard Activity Detected
lowDetects the execution of common clipboard utilities by parent processes other than known benign ones like bwrap or micro.
Detection queries are available on the platform. Get full rules →