Skip to content

2FA loop: Apple no longer honors the Xcode 11.2 client identity (com.apple.dt.Xcode/3594.4.19) #1772

Open

Description

@sshane

Sign-in gets stuck in a loop that looks like a 2FA bug. Apple accepts the verification code
(HTTP 200), but the next SRP login is challenged again with hsc=409 / au=secondaryAuth, so
re-entering codes never helps. Same symptom as #1737 and SideStore#1247.

Cause

X-MMe-Client-Info describes Xcode 11.2 (2019) on macOS 13.1. Apple appears to validate that the
triple is internally consistent before granting HSA2 trust, and Xcode 11.2 / a current Xcode on
macOS 13.1 is not a combination that can exist.

Measured on macOS 27 with the PR #1770 anisette VM:

X-MMe-Client-Info result
<MacBookPro13,2> <macOS;13.1;22C65> … (com.apple.dt.Xcode/3594.4.19)> — current behaviour 409 secondaryAuth; code accepted, retry still 409
<MacBookPro13,2> <macOS;13.1;22C65> … (com.apple.dt.Xcode/25183.54.10)> 409 secondaryAuth; same loop
<Mac17,3> <macOS;27.0;26A5416b> … (com.apple.dt.Xcode/25183.54.10)> 200, au absent, Xcode token issued

The stale value reaches Apple because anisette sources report it and
ALTAnisetteData(anisetteServerResponse:) copies X-MMe-Client-Info verbatim:

Fix

One file. AnisetteDataManager.swift:249 already derives the model, OS version, and build from
ProcessInfo for the AOSKit path. Using that same derived string for the VM/anisette-server path,
with the Xcode version bumped, is sufficient:

<Mac17,3> <macOS;27.0;26A5416b> <com.apple.AuthKit/1 (com.apple.dt.Xcode/25183.54.10)>

Only the Xcode version is pinned; model and OS come from the machine.

Notes

  • No AltSign change is needed. Verified with AltSign stock — X-Xcode-Version: 11.2 (11B41)
    and User-Agent: akd/1.0 CFNetwork/978.0.7 Darwin/18.7.0 unchanged. Stale, but not
    load-bearing.
  • The SMS fallback is a symptom, not a separate bug. On a fresh, untrusted machine (deleted
    adi.pb/identifier, let the guest re-provision), a coherent identity made Apple return
    trustedDeviceSecondaryAuth instead of secondaryAuth. The existing
    requestTrustedDeviceTwoFactorCode path handled it unmodified and the retry returned 200.
  • iOS needs a different form of the same fix. FetchAnisetteDataOperation on classic also
    takes the server's client info verbatim, but has no local Mac to derive from, so it would need a
    pinned coherent triple. iSideload does this (isideload/src/anisette/remote_v3/mod.rs).
  • Confirmed on AltServer (macOS 27) and AltStore Classic 2.3b2 with a remote anisette server.
  • Tested with a sign-in-only harness — no device, certificates, or install — so each field could
    be varied independently.

Happy to open a PR against marketplace if this looks like the right approach.

Investigated with Claude Code.

Activity

  1. eva3si0n commented on Sep 3, 2026

    @eva3si0n

    A problem that has become widespread since the beginning of September. As if Apple began to watch that she was still being put on the signature

  2. patrickwilliams2345 commented on Nov 4, 2026

    @patrickwilliams2345

    Another data point for the stale identity and SMS loop described here: nxnative Easy 1.30.3 on macOS 27.2, using its bundled isideload helper and ani.iloader.app, repeatedly requested SMS codes after the SMS endpoint was changed to use a Mac identity. The service advertised macOS 10.12.6.

    Using a consistent current Mac client identity and user agent for both GrandSlam and SMS requests let the helper retrieve developer teams, and the user then signed in through nxnative Easy. Earlier SMS verification attempts preceded the successful run, so this does not establish that clean first-time 2FA works. This is one account and one Mac, and the change has not been tested in AltStore.

    Exact patch and sequence: nalancer08/nxnative-easy#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions