Analysis and Vulnerabilities in zkLogin
Analyzes Sui's zkLogin (ZK-based JWT authorization) and finds non-cryptographic vulnerabilities in JWT parsing, credential binding, issuer trust, and centralization/privacy.
Schemes: zkLogin
Findings (quotes checked against the source text)
-
zkLogin's security depends on non-cryptographic assumptions about JWT parsing, issuer trust policy, architectural binding, and execution-environment integrity, none specified or enforced at protocol level.
zkLogin critically depends on non-cryptographic assumptions about JWT/JSON parsing, issuer trust policy, architectural binding, and execution-environment integrity: none of which are specified or enforced as protocol-level properties.
-
Permissive, non-canonical claim extraction admits malformed JWTs.
(i) permissive, non-canonical claim extraction that admits malformed JWTs
-
Short-lived authentication artifacts can be turned into durable authorization credentials without enforcing issuance context, enabling cross-application impersonation, especially in browser deployments.
transformation of short-lived authentication artifacts into durable authorization credentials without enforcing their issuance context (issuer, audience, subject and temporal validity binding), which enables cross-application impersonation and misuse
-
Reliance on a small set of issuers and outsourced proving infrastructure creates centralization and disclosure of user identity attributes to third parties.
systemic centralization and privacy risks arising from reliance on a small set of issuers and outsourced proving infrastructure, including disclosure of user identity attributes to third-party services without consent
-
None of the identified vulnerabilities are cryptographic; the ZKP itself is not the weak point.
We note that none of the vulnerabilities identified are cryptographic in nature.
For builders
If you adopt ZK-based OAuth/JWT login on a PQ chain, specify and enforce canonical JWT parsing, issuer/audience/subject/expiry binding, and proving-service trust as protocol rules, not just the ZKP.
Limits
Analysis is from public documentation, source code, and wallet/endpoint surveys, not a formal or empirical exploit demonstration; abstract-only text was provided, so full details are unverified.
Topics: zk-proofs threat-model wallets-keys chain-design implementation-sidechannel