Detect CVE-2026-138286: AutoCua ComputerUseAgent Authentication Bypass in _is_owner_chat (Telegram Remote-Control Service, macOS) in Splunk
Detects potential exploitation of CVE-2026-138286, an improper authentication (CWE-287, CVSS 10.0) vulnerability in the ComputerUseAgent AutoCua project up to version 0.1.9. The flaw is in the `_is_owner_chat` function of `AutoCua/mac/remote_connection/telegram/service.py`, part of the Telegram Remote-Control Service, which checks whether an inbound control message comes from the authorized owner before accepting remote-control commands on the macOS host. When the stored owner is missing, the check treats the sender as the first owner and accepts the message. An unauthenticated remote attacker can then issue commands to the AutoCua agent and drive the computer-use automation (keystrokes, clicks, shell and screen actions) as the owner. Exploit status is theoretical; no public proof of concept was listed as of disclosure on 2026-11-29. The fix shipped in v0.2.0 (commit c3191fa). Detection focuses on AutoCua process execution on macOS, inbound network sessions, owner-identity mismatches, and automation command bursts following remote connections.
MITRE ATT&CK
- Tactic
- Initial Access Lateral Movement
SPL Detection Query
``` df00tech DF00-f220245cc4 · https://df00tech.com/detections/CVE-2026-138286 · licence: https://df00tech.com/detections/licence ```
index=macos (sourcetype="osquery:results" OR sourcetype="macos:unifiedlog" OR sourcetype="macos:process")
| search (process_name="remote_connect" OR process_name="*autocua*" OR cmdline="*remote_connect*" OR cmdline="*AutoCua*")
| join type=inner host max=0 [
search index=network sourcetype="*:firewall" direction=inbound action=allowed
| fields host, src_ip, dest_port, _time
| rename _time as net_time ]
| eval delta=abs(_time-net_time)
| where delta<120
| table _time host user process_name cmdline src_ip dest_port
| sort -_time Joins AutoCua process activity with inbound allowed firewall connections per host to flag remote-control sessions potentially abusing the _is_owner_chat bypass.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Authorized owner remotely driving their own AutoCua agent
- Developer or QA testing of the remote-control module
- Benign inbound probes from vulnerability scanners
Other platforms for CVE-2026-138286
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 further down this page.
- Test 1 Simulate AutoCua remote_connect execution on macOS
Expected signal: ProcessRollup2 / DeviceProcessEvents record with FileName or CommandLine containing remote_connect on a Mac host.
- Test 2 Simulate inbound remote-control connection to AutoCua listener
Expected signal: NetworkConnectIP4 / DeviceNetworkEvents inbound connection event on port 8765 on the macOS host.
- Test 3 Simulate owner-identity mismatch control message
Expected signal: Log entry in the AutoCua log containing a control message from a sender that is not the owner.
References (7)
- https://github.com/ComputerUseAgent/AutoCua/
- https://github.com/ComputerUseAgent/AutoCua/commit/c3191faadf0922f0a446196a0f4aec6877431a6f
- https://github.com/ComputerUseAgent/AutoCua/issues/85
- https://github.com/ComputerUseAgent/AutoCua/pull/87
- https://github.com/ComputerUseAgent/AutoCua/releases/tag/v0.2.0
- https://vuldb.com/cve/CVE-2026-138286
- https://vuldb.com/vuln/445111
Response Playbook
Triage
- Confirm the AutoCua version running on the affected macOS host by inspecting the installed package or git tag. Versions up to 0.1.9 are vulnerable; v0.2.0 (commit c3191fa) contains the fix.
- Identify the source IP(s) that connected to the AutoCua agent and determine whether they belong to the legitimate owner's known devices or networks.
- Review AutoCua agent logs for control messages accepted around the connection time and check whether _is_owner_chat validation passed for a non-owner identity.
- Correlate the inbound session with any later automation actions (keystrokes, clicks, shell commands, screenshots) to assess whether commands ran.
Containment
- Isolate the affected macOS host from the network to stop any active remote-control session.
- Stop the AutoCua agent and block the listening port at the host and perimeter firewall until patched.
- Upgrade AutoCua to v0.2.0 or later, which fixes the _is_owner_chat authentication check.
Evidence Collection
- Preserve AutoCua application logs, the Telegram Remote-Control Service logs, and macOS Unified Log entries covering the suspected session window.
- Capture process execution records (osquery/EDR) and network connection records for the AutoCua process, including source IPs and ports.
- Snapshot any files, scripts, or screen captures created or modified by the agent during the session.
Escalation Criteria
- !Escalate to incident response if the connecting source IP is external or untrusted and automation commands ran after the session.
- !Escalate if evidence shows an owner-identity mismatch (a non-owner message accepted by _is_owner_chat) or if credentials, sensitive files, or additional hosts were accessed via the agent.
Investigation Guide
Forensic Artifacts
- >
AutoCua Telegram Remote-Control Service logs and control message records on macOS - >
macOS Unified Log entries and EDR process and network telemetry for the AutoCua process - >
Artifacts of automation actions: shell history, created files, screenshots, and accessibility or keystroke events
Tuning Guidance
Baseline the legitimate owner's source IP ranges and known management networks for AutoCua hosts, then exclude them to reduce noise. If AutoCua is only used locally, alert on any inbound external connection to its port. Narrow the process match to the exact AutoCua binary or script path in your environment, and tighten the correlation window if owner sessions are long-lived. Treat alerts as high-fidelity on hosts still running versions up to 0.1.9.
Hunting Queries
Hunts for external hosts connecting to AutoCua agents across the fleet over the last 30 days to spot unauthorized remote-control attempts.
// df00tech DF00-f220245cc4 · https://df00tech.com/detections/CVE-2026-138286 · licence: https://df00tech.com/detections/licence
DeviceNetworkEvents | where Timestamp > ago(30d) | where InitiatingProcessCommandLine has_any ("remote_connect","AutoCua") | where RemoteIPType == "Public" | summarize count() by DeviceName, RemoteIP, RemotePort | order by count_ desc ``` df00tech DF00-f220245cc4 · https://df00tech.com/detections/CVE-2026-138286 · licence: https://df00tech.com/detections/licence ```
index=network sourcetype="*:firewall" direction=inbound ("remote_connect" OR "AutoCua") | stats count by host src_ip dest_port | sort -count Atomic Red Team Tests
Launches a stub process named remote_connect to generate the process-execution telemetry the detection keys on.
Command
cp /bin/sleep /tmp/remote_connect && /tmp/remote_connect 30 & Cleanup
pkill -f /tmp/remote_connect; rm -f /tmp/remote_connect Expected Telemetry
ProcessRollup2 / DeviceProcessEvents record with FileName or CommandLine containing remote_connect on a Mac host.
Expected Detection
Process-match portion of the detection fires on the remote_connect process name.
Opens a local listener mimicking the AutoCua port and connects to it to generate inbound network telemetry correlated with the agent process.
Command
python3 -c "import socket,threading,time;s=socket.socket();s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1);s.bind(('0.0.0.0',8765));s.listen(1);threading.Thread(target=lambda:(time.sleep(1),socket.create_connection(('127.0.0.1',8765)).close())).start();c,_=s.accept();c.close();s.close()" Cleanup
lsof -ti tcp:8765 | xargs -r kill 2>/dev/null; true Expected Telemetry
NetworkConnectIP4 / DeviceNetworkEvents inbound connection event on port 8765 on the macOS host.
Expected Detection
Network-correlation portion of the detection matches the inbound session when paired with the AutoCua process within the time window.
Writes a mock AutoCua control message bearing a non-owner sender id, emulating an _is_owner_chat bypass attempt for log-based detection validation.
Command
mkdir -p /tmp/autocua && printf '{"sender":"attacker-not-owner","type":"control","action":"shell","cmd":"whoami"}\n' >> /tmp/autocua/remote_connect.log Cleanup
rm -rf /tmp/autocua Expected Telemetry
Log entry in the AutoCua log containing a control message from a sender that is not the owner.
Expected Detection
Log-review or hunting step identifies the owner-identity mismatch indicative of the _is_owner_chat authentication bypass.