Claude Code identified a hidden XMRig cryptominer on a developer's Mac, consuming 1175% CPU—nearly 12 fully loaded cores—and pushing the processor temperature to 112°C. The AI agent assisted in stopping the miner and removing its autostart mechanism, according to the developer's post.

AI agent checked sensors instead of process list

The developer noticed the Mac overheating and experiencing slowdowns. Instead of the standard process check, they asked Claude Code to write a program to monitor the computer's temperature. The agent analyzed sensor readings and identified miner activity based on this data.

XMRig is widely used for Monero XMR mining

XMRig is commonly used to mine Monero (XMR), which explains the high CPU load and extreme device temperatures in this case.