Claude Code Spotted a Cryptominer on Mac While Building a Temperature App
Anthropic's Claude Code flagged an unauthorized XMRig cryptominer driving a Mac processor to 112°C and 1175% CPU during a local temperature app project.
By Dillip Chowdary • Oct 21, 2026 • Source: gadgetreview.com
Anthropic deployed local debugging capabilities in Claude Code that allow the command-line agent to inspect running system telemetry, which recently surfaced an unauthorized XMRig cryptocurrency miner on a developer machine. While assisting Reddit user UntilHEX with debugging a custom macOS temperature monitoring project, the assistant linked severe hardware heat directly to an obscure background process rather than an error in the user codebase. The incident, detailed in gadgetreview.com's report, demonstrated how local agentic tooling can trace abnormal environmental conditions to persistent background software.
This report examines how local process inspection operates inside terminal coding workflows, the exact operational metrics flagged during the investigation, and the containment steps coordinated through the CLI interface. It is written for macOS software engineers, systems programmers, and engineering managers evaluating automated developer tools and local permission boundaries. Understanding how agentic assistants handle process discovery, confirmation dialogues, and manual file quarantine enables teams to maintain secure development workstations while integrating artificial intelligence into day-to-day diagnostic and development routines.
What shipped in Claude Code Spotted a Cryptominer on Mac
Anthropic provided Claude Code with the ability to interact directly with host system utilities, execute shell commands, and read diagnostic feedback during software builds. During the reported session, the tool investigated severe machine throttling and determined that an open-source XMRig binary was running in the background without explicit user authorization. Instead of limiting its troubleshooting to the application source code under development, the CLI inspected active process lists and identified that the unauthorized program was actively driving processor temperatures up to 112°C.
The CLI also identified persistence configurations embedded within the operating system that re-executed the cryptominer across hardware restarts. Telemetry inspected by the assistant revealed a startup item potentially dated August 29 that initiated the unauthorized mining payload upon system boot. Rather than terminating executables or altering system paths unilaterally, the interface presented the diagnostic findings directly to the developer and requested affirmative confirmation before staging containment commands, demonstrating structured execution gates inside terminal-based agent interactions.
What improved in Claude Code Spotted a Cryptominer on Mac
Diagnostic visibility inside coding sessions improved by correlating external hardware metrics with live operating system process tables. macOS calculates processor utilization by aggregating capacity across distinct execution cores, meaning high-concurrency tasks exceed standard baseline percentages. In this incident, the assistant highlighted an extraordinary load of roughly 1175% CPU, representing approximately twelve fully saturated processor cores. Correlating that utilization with elevated thermal sensor records allowed the tool to separate application logic defects from unrelated background hardware exhaustion.
| System Parameter | Active Mining State | Remediated State |
|---|---|---|
| Reported CPU Load | 1175% across approximately 12 cores | Normal idle baseline |
| Processor Temperature | 112°C peak thermal reading | Standard operating temperature |
| Startup Persistence | Active background item dated August 29 | Removed from Login Items |
| Process Execution Status | Unchecked background execution | Terminated and quarantined |

Remediation workflows improved through structured, interactive operational proposals rather than immediate automated deletion. Claude Code staged an orderly sequence that prioritized disabling the persistent startup item first, terminating the active execution thread second, and shifting suspicious dependencies into quarantine third. This staged methodology prevented destructive file operations on system-critical directories while isolating the rogue binary, allowing the developer to maintain oversight throughout the multi-step recovery sequence.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
What you gain from Claude Code Spotted a Cryptominer on Mac
Engineers gain an auxiliary layer of contextual awareness when developing resource-sensitive applications on local machines. When sensor data reports extreme conditions, developers often assume sensor mock failures, incorrect calibration math, or API bugs in their newly written application code. A terminal assistant equipped with process awareness can cross-check hardware observations against live environment tables, quickly identifying external system contention that would otherwise consume hours of manual diagnostic effort in separate profiling utilities.
Teams also gain a validated template for terminal agent permission models that require human approval before mutating system state. Because Claude Code paused to request explicit confirmation before terminating the background process and moving files, the user retained absolute control over the intervention. While one file ultimately required manual administrative deletion due to operating system access permissions, the structured interactive prompts minimized operational risk and established clear auditability during an unexpected workstation recovery procedure.
How to get Claude Code Spotted a Cryptominer on Mac
Developers access Claude Code by installing or updating the official package through the Node package manager and executing command updates inside their preferred terminal emulator. Anthropic distributes the command-line tool as an interactive binary that integrates with authenticated developer accounts and project directories.
npm install -g @anthropic-ai/claude-code
claude updateTo configure model variants or switch backends during an active development session, users invoke model switching syntax directly from the interactive prompt, launch a session pinned to a specific engine, or define a persistent default model across projects.
/model claude-fable-5-1
claude --model fable
export ANTHROPIC_MODEL=fableWhat to watch after Claude Code Spotted a Cryptominer on Mac
Developers must monitor endpoint hygiene and avoid treating development assistants as comprehensive cybersecurity platforms. The analyzed incident represents an isolated, unverified user report that did not document the original infection vector or verify whether secondary exploits remained. While the user executed a subsequent scan using Malwarebytes to verify endpoint stability, coding assistants do not offer real-time kernel monitoring, heuristic malware detection, or enterprise endpoint protection capabilities.
Engineering organizations must also scrutinize local agent permissions to prevent automated tools from executing privileged operations without oversight. Unchecked shell agents that delete binaries or terminate daemons independently introduce serious stability and security liabilities into enterprise environments. Developers experiencing unexplained heat or battery drain should inspect Activity Monitor sorted by processor consumption and examine Login Items and Extensions within macOS System Settings before initiating automated agent workflows.
Developer Action Items
- ☐ Diff the official changelog for Anthropic / Claude / macOS before you bump — APIs, defaults, and removed flags only.
- ☐ Install through the vendor's documented channel in staging; keep a one-command rollback and time-box the canary.
- ☐ Grep your repo for old flag names, lockfile pins, and plugin versions that the notes mark as breaking.
- ☐ Prefer the first patch cut over the day-zero tag unless you have a reason to be on the leading edge.
- ☐ If HN Claude/Codex/Fable did not name a region, plan, or SKU, screenshot the official availability line before you promise it to users.
Claude Code Spotted a Cryptominer on Mac FAQ
Which cryptominer did Claude Code discover running on the Mac?
Claude Code detected XMRig, an open-source cryptocurrency mining program frequently repurposed for unauthorized background mining, which was consuming approximately 1175% CPU.
How did Claude Code remediate the unauthorized mining process?
The assistant proposed a structured sequence that disabled the persistent startup item dated August 29, terminated the active process, and quarantined related files after obtaining user confirmation.
Can AI coding agents replace dedicated endpoint antivirus software?
No, an assistant flagging suspicious background activity provides early diagnostic visibility but lacks real-time threat detection, requiring dedicated scanners like Malwarebytes for thorough endpoint security.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement