Detections · Harmful behavior
Mac clipboard hijacking: a copied address quietly swapped for another
A clipboard hijacker, or “clipper”, watches what you copy and replaces it before you paste. Its usual target is a cryptocurrency wallet address: you copy the right one, you paste the attacker’s, and the payment cannot be taken back.
Updated November 25, 2026 · 31 detections in this category
In short
Replacing what was copied with something else, typically a cryptocurrency address swapped for another.
MacVigil has 31 detections in this category. It reads the file to find them and never runs it.
What clipboard hijacking is
On a Mac, any program running in your account can read and write the general pasteboard, the system clipboard behind Copy and Paste. A clipper uses that freedom to wait for a value worth stealing, such as a wallet address, a bank account number or a payment link, and to put its own value in its place.
The swap is silent. Long wallet addresses look alike at a glance, so most people check only the first and last few characters, if at all. The attacker gains every payment made after the swap, and the victim usually notices only when the money never arrives.
How Mac malware does it
- A shell script or AppleScript reads the clipboard with
pbpaste, tests whether the text looks like a wallet address, and writes its own address back withpbcopy. - A native program polls the pasteboard’s change counter, reads the new content and writes a replacement, all in one function.
- A timer or loop keeps checking the clipboard every few seconds, often from a program kept in a hidden file or folder.
- A browser extension that handles copied text carries a wallet address pattern, a clipboard write and one specific address written out in full.
- Variants target a bank account number such as an IBAN instead of a crypto address.
- Some keep the visible label of a copied link while changing the address behind it.
- Others change the payee of a payment form or QR code while leaving the amount untouched, or show one recipient while signing a transaction for another.
What MacVigil looks for
MacVigil reads the file and never runs it. Its strongest findings tie the pieces together in the code: a value read from the clipboard, tested for an address shape, with a different value written back to the clipboard inside that same branch. When those steps sit in one function or one script and no accountable publisher stands behind the file, the combination is rated at the top of the scale.
For extensions, the engine links the manifest that grants clipboard access to the code file that holds the address pattern and the replacement address. Weaker combinations, where clipboard reading, an address format, a replacement value, a timer and a hidden file appear only as separate mentions, are reported with that caveat: nothing shows they are linked or that any of them ran.
A single word like pbcopy or pbpaste alone is only an informational mention. Many honest tools copy text, so one ingredient is never enough for a dangerous verdict.
When it is normal
Clipboard managers, text expanders, password managers and developer tools read and write the clipboard all day. Some even rewrite what you copy on purpose, for example to strip formatting or tracking parameters from links. What sets a clipper apart is the test for a payment value followed by a fixed replacement.
How to check your Mac
- Before sending any payment, compare the pasted address with the original over its whole length, not just the first and last characters.
- Copy an address, paste it into a note, wait a few seconds and paste again: two different results mean something is rewriting your clipboard.
- Open System Settings > General > Login Items & Extensions and look for items you do not recognize, both in “Open at Login” and “Allow in the Background”.
- In Activity Monitor, sort by name and look for unfamiliar processes that keep running when no app of yours is open.
- Review browser extensions (Safari > Settings > Extensions, or the extensions page of Chrome or Firefox) and remove any you did not install on purpose.
Related categories
- Persistence: How a program arranges to start again on its own: launch agents and daemons, login items, scheduled jobs.
- Credential theft: What touches the places where passwords, keys and sessions are kept: keychains, browser profiles, wallets, SSH and cloud credentials.
- Screen or keyboard capture: Recording what happens on this Mac: the screen, the keyboard, the microphone or the camera.
- Hidden payload: A second program carried out of sight: encoded, encrypted, appended after the file's end or tucked into resources.
Know what a file does before you open it
MacVigil reads any app, disk image, installer or script without running it, and shows the evidence behind every finding. Nothing leaves your Mac.
Free for 7 days, then $29.95 a year for 2 Macs, a launch price: the regular price will be $59 a year. Requires macOS 15 Sequoia or later on a Mac with Apple silicon.
More: all detection categories · what MacVigil detects · the blog