Sigma rule: Clipboard Data Collection Via Pbpaste
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-f4ac8ffcd341, updated 2024-07-30T00:00:00.000Z.
Rule
- Title
- Clipboard Data Collection Via Pbpaste
- Status
- test
- Level
- medium
- Author
- Daniel Cortez
- Date
- 2024-07-30
- File
- rules-threat-hunting/macos/process_creation/proc_creation_macos_pbpaste_execution.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects execution of the "pbpaste" utility, which retrieves the contents of the clipboard (a.k.a. pasteboard) and writes them to the standard output (stdout).
The utility is often used for creating new files with the clipboard content or for piping clipboard contents to other commands.
It can also be used in shell scripts that may require clipboard content as input.
Attackers can abuse this utility in order to collect data from the user clipboard, which may contain passwords or sensitive information.
Use this rule to hunt for potential abuse of the utility by looking at the parent process and any potentially suspicious command line content.
Log source
- product
- macos
- category
- process_creation
Detection
selection:
Image|endswith: '/pbpaste'
condition: selectionFalse positives (as the rule lists them)
- Legitimate administration activities
Tags
- attack.collection
- attack.credential-access
- attack.t1115
- detection.threat-hunting
MITRE ATT&CK ids this rule names
References
- https://www.loobins.io/binaries/pbpaste/
- https://medium.com/@NullByteWht/hacking-macos-how-to-dump-1password-keepassx-lastpass-passwords-in-plaintext-723c5b1c311b
- https://media.defense.gov/2021/Jul/19/2002805003/-1/-1/1/CSA_CHINESE_STATE-SPONSORED_CYBER_TTPS.PDF
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/macos/process_creation/proc_creation_macos_pbpaste_execution.yml
Sources and licences
SigmaHQ
"Clipboard Data Collection Via Pbpaste" by Daniel Cortez (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/macos/process_creation/proc_creation_macos_pbpaste_execution.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Clipboard Data Collection Via Pbpaste",
entity page, dataset version ref-f4ac8ffcd341, updated 2024-07-30T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d8af0da1-2959-40f9-a3e4-37a6aa1228b7 (accessed 2026-11-03).
Underlying source: SigmaHQ rule d8af0da1-2959-40f9-a3e4-37a6aa1228b7, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.