Detect CVE-2026-65400 — Apple macOS Screen Sharing Improper Authentication Exploitation in Google Chronicle
Detects exploitation attempts and successful abuse of CVE-2026-65400, an improper authentication vulnerability (CWE-287) in Apple macOS Screen Sharing / Remote Management. An unauthenticated remote attacker can bypass authentication on the Screen Sharing (VNC/ARD) service to gain interactive access to a macOS host. This CVE is on the CISA KEV catalog (BOD 26-04). Detection focuses on anomalous inbound Screen Sharing / ARD connections, screensharingd authentication events, unexpected launches of remote-management daemons, and connections from macOS hosts running vulnerable, unpatched builds.
MITRE ATT&CK
- Tactic
- Initial Access Lateral Movement
YARA-L Detection Query
rule cve_2026_65400_macos_screensharing_auth_bypass {
meta:
author = "Argus"
description = "Inbound Screen Sharing/ARD from public IP to macOS host (CVE-2026-65400)"
severity = "HIGH"
events:
$net.metadata.event_type = "NETWORK_CONNECTION"
$net.target.port in %remote_mgmt_ports
$net.network.direction = "INBOUND"
net.principal.ip."is_private" = false
$net.target.hostname = $host
match:
$host over 5m
condition:
$net
} Chronicle YARA-L rule matching inbound VNC/ARD connections from public IPs to macOS hosts for CVE-2026-65400.
Data Sources
Required Tables
False Positives & Tuning
- Authorized Apple Remote Desktop sessions
- Approved remote support software
- Security assessment scanning of remote-management ports
Other platforms for CVE-2026-65400
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Enable macOS Screen Sharing service
Expected signal: launchd loads com.apple.screensharing; screensharingd process starts and begins listening on TCP 5900.
- Test 2Enable Apple Remote Desktop / Remote Management
Expected signal: ARDAgent process activity and a listener on TCP 3283/5900; Remote Management enabled in system preferences.
- Test 3Simulate inbound VNC connection to Screen Sharing port
Expected signal: Inbound TCP connection accepted on port 5900 recorded by host firewall / network sensor with the external source IP.
References (6)
- https://support.apple.com/en-us/148170
- https://support.apple.com/en-us/148171
- https://support.apple.com/en-us/148172
- https://nvd.nist.gov/vuln/detail/CVE-2026-65400
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://thehackernews.com/2026/08/apple-macos-screen-sharing-flaw.html
Response Playbook
Triage
- Confirm the target macOS host's OS build against the patched builds in Apple advisories HT148170/148171/148172; unpatched builds are exploitable.
- Determine whether the source IP of the inbound Screen Sharing/ARD connection is an approved management host or an external/unexpected address.
- Review screensharingd unified logs (log show --predicate 'process == "screensharingd"') around the connection time for authentication success without a preceding credential prompt.
- Check whether Screen Sharing / Remote Management was expected to be enabled on this host at all.
Containment
- Immediately disable Screen Sharing and Remote Management (sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop; sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.screensharing.plist).
- Block inbound TCP 5900 and 3283 at the host and perimeter firewall for affected hosts.
- Isolate the host from the network if unauthorized interactive access is confirmed.
Evidence Collection
- Preserve unified logs: sudo log collect --output /tmp/cve65400.logarchive and export screensharingd/ARDAgent entries.
- Capture firewall and NetFlow records showing the inbound 5900/3283 session, source IP, and byte counts.
- Collect /Library/Logs, /var/log/, current process listing, and any new/modified LaunchAgents/LaunchDaemons for post-access persistence.
Escalation Criteria
- !Escalate to IR if authentication succeeded from an unapproved or external source IP.
- !Escalate if post-connection activity shows new user accounts, persistence, credential access, or lateral movement from the host.
- !Escalate if the affected host is unpatched and internet-exposed on 5900/3283.
Investigation Guide
Related Techniques
Forensic Artifacts
- >
screensharingd and ARDAgent entries in the macOS unified log (log archive) - >
com.apple.screensharing.plist / com.apple.RemoteManagement launchd state and preferences - >
Firewall/NetFlow records of inbound 5900/3283 sessions - >
/var/db/dslocal and account records for any newly created local users
Tuning Guidance
Baseline the set of approved Apple Remote Desktop management hosts and their subnets, then allowlist those source IPs to reduce noise. Prioritize alerts where the source IP is external/public or where screensharingd reports authentication success without an interactive credential prompt. On networks where Screen Sharing is never legitimately used, treat any 5900/3283 inbound acceptance as high fidelity. Confirm affected hosts are unpatched per Apple advisories before raising severity to critical.
Hunting Queries
Hunts for all inbound Screen Sharing/ARD activity across macOS fleet over 30 days to baseline expected admin sources and surface anomalies.
DeviceNetworkEvents | where Timestamp > ago(30d) | where LocalPort in (5900,3283) and ActionType == "InboundConnectionAccepted" | summarize count(), makeset(RemoteIP) by DeviceName | order by count_ desc index=macos (dest_port=5900 OR dest_port=3283 OR process_name=screensharingd) earliest=-30d | stats count values(src_ip) as src_ips by host | sort - count Atomic Red Team Tests
Enables the Screen Sharing (VNC) service on a lab macOS host to generate screensharingd startup telemetry.
Command
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist Cleanup
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.screensharing.plist Expected Telemetry
launchd loads com.apple.screensharing; screensharingd process starts and begins listening on TCP 5900.
Expected Detection
Process start of screensharingd and a new listener on port 5900 are observed.
Activates Remote Management via kickstart on a lab macOS host, exercising ARDAgent and port 3283.
Command
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -allUsers -privs -all -restart -agent Cleanup
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop Expected Telemetry
ARDAgent process activity and a listener on TCP 3283/5900; Remote Management enabled in system preferences.
Expected Detection
ARDAgent execution and new remote-management listeners are detected.
From a second lab host, opens a TCP connection to the target's Screen Sharing port to generate an inbound connection event.
Command
nc -vz TARGET_MAC_IP 5900 Cleanup
echo 'no cleanup required — connection is transient' Expected Telemetry
Inbound TCP connection accepted on port 5900 recorded by host firewall / network sensor with the external source IP.
Expected Detection
Inbound Screen Sharing connection from a non-approved source IP triggers the detection.