Is your Mac mining crypto for a stranger? The check guide and the exact prompt
The short version
A developer (Redditor UntilHEX, r/claude) asked Claude Code to help build a temperature monitor app for their Mac. The raw sensor readings looked far too high: the CPU was peaking at 112°C. Claude checked what was using the CPU and said:
"Your Mac is running a crypto miner that I didn't put there. … I saw xmrig using about 1175% CPU, roughly 12 cores."
The miner (XMRig) was set to relaunch at every startup, probably since 29 August. Claude didn't kill or delete anything on its own. It asked first: "Can I clean it up now? I'd stop the startup item and the miner, and move the files into a quarantine folder." Claude hit an access issue on one file, so the developer deleted that one by hand, then ran a Malwarebytes scan to make sure the Mac was clean. The developer blames cracked audio plugins; that part is unconfirmed.
A miner doesn't steal your files. It steals your CPU, your battery and your electricity, and the only symptom is a Mac that runs hot and slow, which most people just live with.
| Check | What you do | What a miner looks like |
|---|---|---|
| 1. CPU | Close your apps, wait a minute, run command 1 below (or Activity Monitor > CPU) | A process near or above 100% while you're doing nothing, with a name you don't recognise (xmrig, or a random-looking name in a hidden folder) |
| 2. Startup list | Run command 2 below, and look in System Settings > General > Login Items & Extensions | A launch agent or daemon you never installed, pointing at a file in a hidden or odd folder |
| 3. The prompt | Open Claude Code in any folder and paste the prompt below | Claude reports suspects with evidence and asks before it changes anything |
Sources: Tom's Hardware, Mark Tyson, 19 Oct 2026 · Cyber Kendra, 19 Oct 2026 · the original r/claude post
The two commands
Command 1: what's eating the CPU
ps -Ao pid,pcpu,comm -r | head -15
pcpu is per core, so 100% is one full core and 1,175% is about twelve. Spotlight (mds, mdworker) and kernel_task can spike for a while after a restart; that's normal. Something you don't know, pinned high for minutes, isn't.
Command 2: what launches with your Mac
ls -la ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons
launchctl list | grep -v com.apple
Each file is a startup item. Open any you don't recognise (cat <file>) and look at ProgramArguments: that's the program it starts at boot.
Copy these prompts
The exact prompt: look first, ask me, quarantine, never delete
My Mac runs hot and slow. Investigate it read-only first: do not kill, delete, move or change anything yet.
1. List the top CPU processes, with the full path of each binary.
2. List my LaunchAgents, LaunchDaemons and Login Items, and what program each one starts.
3. Flag anything that looks like a crypto miner or malware: xmrig or other miners, unsigned binaries in hidden or temp
folders, startup items I probably didn't install, connections to mining pools.
For each suspect, show the evidence, what you think it is and how sure you are. Then ask me.
If I say yes: unload the startup item, stop the process, and MOVE the files into ~/Desktop/Quarantine instead of
deleting them. Tell me about anything you couldn't access so I can handle it by hand.
Before you run it
- Quarantine, never delete. If Claude flags something that turns out to be yours, you can move it back.
- Read before you approve. Don't accept a
sudocommand you don't understand; ask Claude to explain it first. - Finish with a scanner. Like the developer did, run a malware scanner (Malwarebytes for Mac has a free scan) after the cleanup.
- Then close the door. Most Mac miners arrive inside cracked apps and plugins. If you installed one, that's your likely way in.
If you are building an agent that touches a real machine
- The agent found this because it was looking at real numbers (sensor values, process lists) instead of guessing. Give your agent read access to the evidence before you ask it to fix anything.
- Copy the "ask first, then quarantine" pattern: a read-only scan, a report with evidence, an explicit yes, and a reversible action.
- Make the agent say what it couldn't do. "1 file: access denied" is what let the developer finish the job by hand.
Run this on your codebase
The same pattern works on a repo: ask Claude Code to list every script that runs on install or at build time (postinstall hooks, CI steps, git hooks), flag anything that downloads or runs a binary, show the evidence and ask before changing anything.