Sherman, Alan T.Lanus, ErinLiskov, MosesZieglar, EdwardChang, RichardGolaszewski, EnisWnuk-Fink, RyanBonyadi, Cyrus J.Yaksetig, MarioBlumenfeld, Ian2020-04-092020-04-092020-03-16Sherman, Alan T., et al. "Formal Methods Analysis of the Secure Remote Password Protocol" Logic, Language, and Security (2020). https://www.springerprofessional.de/en/formal-methods-analysis-of-the-secure-remote-password-protocol/18531710.http://hdl.handle.net/11603/17914We analyze the Secure Remote Password (SRP) protocol for structural weaknesses using the Cryptographic Protocol Shapes Analyzer (CPSA) in the first formal analysis of SRP (specifically, Version 3). SRP is a widely deployed Password Authenticated Key Exchange (PAKE) protocol used in 1Password, iCloud Keychain, and other products. As with many PAKE protocols, two participants use knowledge of a pre-shared password to authenticate each other and establish a session key. SRP aims to resist dictionary attacks, not store plaintext-equivalent passwords on the server, avoid patent infringement, and avoid export controls by not using encryption. Formal analysis of SRP is challenging in part because existing tools provide no simple way to reason about its use of the mathematical expression v+gᵇ modq. Modeling v+gᵇ as encryption, we complete an exhaustive study of all possible execution sequences of SRP. Ignoring possible algebraic attacks, this analysis detects no major structural weakness, and in particular no leakage of any secrets. We do uncover one notable weakness of SRP, which follows from its design constraints. It is possible for a malicious server to fake an authentication session with a client, without the client's participation. This action might facilitate an escalation of privilege attack, if the client has higher privileges than does the server. We conceived of this attack before we used CPSA and confirmed it by generating corresponding execution shapes using CPSA.23 pagesen-USThis work was written as part of one of the author's official duties as an Employee of the United States Government and is therefore a work of the United States Government. In accordance with 17 U.S.C. 105, no copyright protection is available for such works under U.S. Law.Public Domain Mark 1.0UMBC Cyber Defense LabFormal Methods Analysis of the Secure Remote Password ProtocolText