# Hackers exploit a critical macOS flaw to take control of Macs and mine Monero

> Hackers exploit a critical macOS vulnerability to mine Monero (XMR) on Mac machines exposed to the internet and not updated
> By Covadonga Fernandez · Cybersecurity · 2026-08-17

Hackers are using a critical macOS vulnerability to install Monero (XMR) miners on Mac computers. The flaw allows access without valid credentials to machines with the Screen Sharing feature exposed to the internet and, in the attacks detected, cybercriminals managed to gain root access to the system. In all the attacks reported to the National Cyber Security Centre of the Netherlands (NCSC-NL), the cybercriminals gained root access to the system and used it to install software designed to mine Monero.

The flaw, identified as CVE-2026-65400, affects Screen Sharing, the tool built into macOS for remotely controlling another computer. Its severity has been raised to 9.8 out of 10, critical level, after its exploitation was confirmed and its characteristics were reassessed.

Apple has already fixed the [vulnerability](https://support.apple.com/en-us/148170) in macOS Tahoe 26.6.1, Sequoia 15.7.9 and Sonoma 14.8.9. The updates were published on August 6. The company explains that the problem was related to state management during authentication and could allow an attacker to authenticate to Screen Sharing without valid credentials.

## Macs exposed directly to the internet

The known attacks have one element in common: the compromised computers kept port 5900 accessible from the internet, used by screen sharing and VNC services. The NCSC updated its alert on August 12 after receiving information about attacks against several systems. It also confirmed the public availability of proof of concept (PoC) code, which makes it easier for other attackers to try to exploit machines that remain unpatched.

Any vulnerable system whose service can be reached from the internet may be potentially exposed, regardless of the country in which it is located. That does not mean, however, that attacks have been confirmed worldwide. The NCSC has not published the number of victims or the location of the compromised Macs.

Security researchers have warned that the potential surface is considerable. An analysis cited by Huntress based on Censys searches identified tens of thousands of hosts potentially exposed to the internet. These are potentially vulnerable machines, not tens of thousands of confirmed infections.

## Root access to install Monero

In the incidents reported to the NCSC, the attackers obtained root privileges, the highest level of system access, and subsequently installed software to mine Monero. The attack is a case of cryptojacking: criminals use the victim's computer processor and electricity without authorization to generate cryptocurrencies.

Monero frequently appears in this type of attack because of its privacy characteristics and because it can be mined using conventional processors. The vulnerability, however, does not affect Monero or its blockchain. XMR is simply the asset chosen by the attackers to monetize the compromised machines.

The risk does not end with the installation of a miner either. Gaining root access means obtaining a high degree of control over the computer, so Monero mining is the activity observed in these incidents, but it does not necessarily represent everything a compromised Mac would allow.

## Update macOS

The solution is to install the fixed versions published by Apple: Tahoe 26.6.1, Sequoia 15.7.9 or Sonoma 14.8.9, depending on the system used. Apple credits the discovery of CVE-2026-65400 to Alfredo Pesoli, of Bynario Atlas. Administrators should also avoid keeping Screen Sharing unnecessarily accessible directly from the internet, especially through port 5900.

Apple has already fixed the vulnerability in the updated versions of macOS. The risk is now concentrated on machines that remain unpatched and keep the service exposed to the internet.
