Skip to main content
QUICK REVIEW

[Paper Review] Formal verification of the YubiKey and YubiHSM APIs in Maude-NPA

Antonio González-Burgueño, Damián Aparicio|arXiv (Cornell University)|Jun 19, 2018
Advanced Authentication Protocols SecurityComputer Science13 references6 citations
TL;DR

This paper presents a fully automated formal verification of the YubiKey and YubiHSM cryptographic APIs using Maude-NPA, successfully proving secrecy and authentication properties for YubiKey and discovering both known attacks on YubiHSM—previously undetected due to limited exclusive-or support in prior tools—by modeling Lamport clocks, mutable memory, and event ordering through protocol composition and symbolic reasoning modulo exclusive-or.

ABSTRACT

In this paper, we perform an automated analysis of two devices developed by Yubico: YubiKey, designed to authenticate a user to network-based services, and YubiHSM, Yubicos hardware security module. Both are analyzed using the Maude-NPA cryptographic protocol analyzer. Although previous work has been done applying automated tools to these devices, to the best of our knowledge there has been no completely automated analysis to date. This is not surprising, because both YubiKey and YubiHSM, which make use of cryptographic APIs, involve a number of complex features: (i) discrete time in the form of Lamport clocks, (ii) a mutable memory for storing previously seen keys or nonces, (iii) event-based properties that require an analysis of sequences of actions, and (iv) reasoning modulo exclusive-or. In this work, we have been able to both prove properties of YubiKey and find the known attacks on the YubiHSM, in a completely automated way beyond the capabilities of previous work in the literature.

Motivation & Objective

  • To perform a fully automated formal analysis of the YubiKey and YubiHSM cryptographic APIs using Maude-NPA, overcoming limitations of prior tools.
  • To address the challenge of modeling Lamport clocks, mutable memory, event ordering, and exclusive-or reasoning in a protocol analyzer not natively supporting these features.
  • To demonstrate that Maude-NPA can handle complex, real-world cryptographic APIs with rich state and symbolic reasoning, including full support for exclusive-or.
  • To extend prior formal analyses by achieving termination of the search space and detecting previously missed attacks on YubiHSM due to incomplete exclusive-or support.

Proposed method

  • Modeling Lamport clocks using constraints in Presburger Arithmetic, extending Maude-NPA’s existing support for equality and disequality constraints.
  • Representing mutable memory through synchronization messages in protocol composition, enabling stateful behavior modeling without native state support.
  • Encoding event-based properties via sequences of actions using Maude-NPA’s protocol composition mechanisms to track execution order.
  • Leveraging Maude-NPA’s native support for symbolic reasoning modulo exclusive-or to analyze protocols relying on XOR operations.
  • Formalizing YubiKey and YubiHSM APIs in Maude-NPA to match the specifications of prior work [14] for direct comparison.
  • Achieving fully automated analysis without human-guided lemmas or auxiliary assumptions, ensuring termination with finite search graphs.

Experimental results

Research questions

  • RQ1Can Maude-NPA fully automate the verification of real-world cryptographic APIs like YubiKey and YubiHSM, including complex features such as mutable state and Lamport clocks?
  • RQ2To what extent can Maude-NPA’s support for exclusive-or reasoning improve the detection of cryptographic attacks compared to tools with limited XOR support?
  • RQ3How can Lamport clocks, mutable memory, and event ordering be modeled in Maude-NPA despite the absence of native support for these features?
  • RQ4Can the combination of protocol composition and symbolic reasoning modulo exclusive-or enable termination in otherwise stateful and unbounded protocol analyses?
  • RQ5Does Maude-NPA’s automated analysis surpass prior work in detecting both known and previously undetected attacks on YubiHSM?

Key findings

  • The analysis of YubiKey successfully proved secrecy and authentication properties in a fully automated manner, without requiring any user-defined lemmas.
  • The analysis discovered both known attacks on YubiHSM, including the second attack previously undetected due to limited exclusive-or support in earlier tools.
  • Maude-NPA achieved termination of the search space for all analyzed properties, indicating that no further attacks of the specified kind exist.
  • The modeling techniques for Lamport clocks, mutable memory, and event sequences were effective and reusable, enabling formal analysis of complex, real-world protocols.
  • This work is the first to provide a complete, fully automated formal verification of YubiKey and YubiHSM APIs with full support for exclusive-or reasoning.
  • The results demonstrate that Maude-NPA can handle complex cryptographic APIs with rich state and symbolic features, extending the scope of automated protocol verification beyond prior tools.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.