On September 4, 2026, I reported a sandbox escape through InputMethodKit's endpoint broker. An app signed with only com.apple.security.app-sandbox and no other entitlement registered itself as a system input method, read the full contents of the focused text field in another application, and wrote to it.

The broker

imklaunchagent brokers input method XPC endpoints. setIMKXPCEndpoint:forBundleIdentifier: publishes an endpoint under a bundle identifier, and getIMKXPCEndpointForBundle:reply: fetches it. Both arguments come from the caller and imklaunchagent never checks that the caller is the bundle it names.

There is no check to weaken. SecTaskCreateWithAuditToken, SecCodeCopyGuestWithAttributes, sandbox_check, csops, audit_token, xpc_connection_get_audit_token, setCodeSigningRequirement and valueForEntitlement all appear zero times in the binary. The only xpc_connection_get_pid uses are inside os_log format strings.

All four imklaunchagent global names are in the unguarded allow list in application.sb at lines 622 to 625, so an App Sandboxed app reaches it with no entitlement.

The client

The client does not catch it either. In HIToolbox, -[IMKClient_Modern(IMKClientConnection_XPC) setIMKXPCEndpoint:forBundleIdentifier:] tests only the bundle identifier string. An attacker registering under the target identifier passes that by construction. There is no check on who owns the endpoint.

Text input clients hand whatever endpoint the broker returned the IMKXPCSupport interface: 54 methods that act on the document the user is editing. imkxpc_stringFromRange:reply: and imkxpc_attributedSubstringFromRange:reply: read it, imkxpc_insertText:reply: writes to it, and imkxpc_lengthWithReply: sizes it. The client authenticates the endpoint at no point before serving these.

The measurement

The PoC builds and ad hoc signs two apps. poc1038.app declares only com.apple.security.app-sandbox. imkvictim.app is an ordinary AppKit app that puts a unique nonce in its own text view and reports at the end whether anything else changed it. The attacker invalidates com.apple.PressAndHold's registration, publishes its own endpoint under that identifier, and connected clients refetch and are given the attacker's endpoint.

pid=31868 sandbox_check(self,NULL,0)=1
target input method: com.apple.PressAndHold

INBOUND CONNECTION pid=31337 Discord         (other app: logged only, content not touched)
INBOUND CONNECTION pid=746   Microsoft Edge  (other app: logged only, content not touched)
INBOUND CONNECTION pid=31877 imkvictim       <= the PoC's own target app

imkxpc_length -> 71
imkxpc_stringFromRange{0,71} ->
  "HUNT-SECRET-047579A9-DC0F-412E-A222-AA0FE09D150D-31877-000000ED3E98096B"
imkxpc_insertText accepted=1
re-read after write ->
  "HUNT-SECRET-...[INJECTED-BY-SANDBOXED-APP]"

VERDICT SANDBOXED APP READ AND WROTE ANOTHER APP'S FOCUSED TEXT FIELD

The target app independently confirms the modification:

contents modified by another process: YES

Real applications were handed the same endpoint. Discord and Microsoft Edge both connected unprompted during the test window. The PoC names every such application in its output and never requests their contents; document calls are restricted to imkvictim, the app the PoC itself builds.

The same interface also unregisters any input method via requestIMKXPCEndpointInvalid:, which is equally unchecked.

Impact

A Mac App Store app is required to be sandboxed. With no entitlement and no user interaction it reads the note, message, document or form field the user is typing in at that moment, in full, from a process granted no file access, no Accessibility and no Input Monitoring, that the user never approved for anything. It writes to the focused field and unregisters any input method.

Report status

I reported this under OE1107725383418 on September 4, 2026. Apple's Security Research portal records it as addressed in macOS Golden Gate 27 under CVE-2026-112426. Bounty status: Reviewing.

A broker that passes the caller's word for who it is, to a client that accepts the broker's word for who it sent, is not brokering trust. It is laundering it.