[Paper Review] An Analysis of the CAVES Attestation Protocol using CPSA
This paper presents a formal verification of the CAVES attestation protocol using the Cryptographic Protocol Shape Analyzer (CPSA), demonstrating that the protocol achieves its security goals—freshness, comprehensiveness, constrained disclosure, semantic explicitness, and trustworthiness—through rely-guarantee annotations. The analysis uncovered a man-in-the-middle vulnerability in an earlier version, leading to a design fix that strengthened authentication and integrity guarantees.
This paper describes the CAVES attestation protocol and presents a tool-supported analysis showing that the runs of the protocol achieve stated goals. The goals are stated formally by annotating the protocol with logical formulas using the rely-guarantee method. The protocol analysis tool used is the Cryptographic Protocol Shape Analyzer.
Motivation & Objective
- To formally verify that the CAVES attestation protocol satisfies key security principles such as freshness, comprehensive evidence, and constrained disclosure.
- To identify and resolve vulnerabilities in the protocol’s design through automated analysis, particularly in message authentication and session integrity.
- To demonstrate the effectiveness of the CPSA tool in verifying complex cryptographic protocols with application-specific semantics.
- To establish a methodology for modeling private channels and hash functions within formal protocol analysis using long-term keys and logical annotations.
- To validate the trustworthiness of the attestation mechanism by formally verifying the role of the TPM quote and verifier authentication.
Proposed method
- The protocol was modeled in the CPSA framework using S-expression syntax to define roles, messages, and execution strands.
- Rely-guarantee annotations were applied to each message transmission and reception, specifying logical formulas that ensure trust and consistency across protocol runs.
- Shapes were generated by CPSA under various problem statements, representing minimal, distinct execution paths compatible with assumptions about uncompromised keys and fresh values.
- The analysis evaluated authentication and confidentiality by verifying that all shapes satisfy the required rely and guarantee conditions.
- A man-in-the-middle attack was discovered in a prior version of the protocol by analyzing shapes where the client and server disagreed on session keys and identities.
- The protocol was refined by adding the verifier session ID $N_V$ outside the encrypted blob, which was formally verified to prevent replay and impersonation attacks.
Experimental results
Research questions
- RQ1Does the CAVES protocol ensure that attestation evidence is fresh and up to date, as required by the attestation architecture principles?
- RQ2Can the protocol enforce constrained disclosure so that only authorized verifiers receive measurement evidence?
- RQ3How can the rely-guarantee method be used to formally express and verify application-specific trust properties in cryptographic protocols?
- RQ4What vulnerabilities exist in the protocol when critical identifiers like the verifier session ID are omitted from message structure?
- RQ5Can automated shape analysis detect and prevent man-in-the-middle attacks in attestation protocols?
Key findings
- A prior version of the CAVES protocol was vulnerable to a man-in-the-middle attack due to the omission of the verifier session ID $N_V$ from the message outside the encrypted blob, allowing an adversary to manipulate session keys and identities.
- The addition of $N_V$ outside the blob in Message 7 successfully prevented the attack by ensuring consistency between the client and server on the verifier identity and session key.
- All shapes generated under the final protocol design satisfied the rely-guarantee conditions, confirming that the protocol achieves its stated goals of authentication, confidentiality, and integrity.
- The CPSA analysis confirmed that evidence is fresh because attester nodes are positioned between verifier nodes in the protocol flow, ensuring real-time measurement reporting.
- The use of the TPM quote in the initial message provides a root of trust, and the rely-guarantee formulas formally capture the trust model for verifier authorization and data release.
- The analysis revealed that the protocol supports comprehensive information gathering through configurable measurement queries $J$, enabling detailed state inspection by the verifier.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.