Skip to main content
QUICK REVIEW

[Paper Review] T/Key: Second-Factor Authentication From Secure Hash Chains

Dmitry Kogan, Nathan Manohar|arXiv (Cornell University)|Aug 28, 2017
User Authentication and Security SystemsComputer Science44 references10 citations
TL;DR

T/Key is a time-based one-time password system that eliminates server-side secrets by using secure hash chains, enabling second-factor authentication without exposing user secrets even if the server is compromised. It achieves this by having the client precompute a long hash chain and send only the final value to the server, with the client deriving one-time passwords sequentially from the chain, ensuring security through a new theoretical lower bound on inverting hash chains composed of independent random functions.

ABSTRACT

Time-based one-time password (TOTP) systems in use today require storing secrets on both the client and the server. As a result, an attack on the server can expose all second factors for all users in the system. We present T/Key, a time-based one-time password system that requires no secrets on the server. Our work modernizes the classic S/Key system and addresses the challenges in making such a system secure and practical. At the heart of our construction is a new lower bound analyzing the hardness of inverting hash chains composed of independent random functions, which formalizes the security of this widely used primitive. Additionally, we develop a near-optimal algorithm for quickly generating the required elements in a hash chain with little memory on the client. We report on our implementation of T/Key as an Android application. T/Key can be used as a replacement for current TOTP systems, and it remains secure in the event of a server-side compromise. The cost, as with S/Key, is that one-time passwords are longer than the standard six characters used in TOTP.

Motivation & Objective

  • To address the security flaw in existing TOTP systems where server-side storage of secrets leads to exposure in case of a breach.
  • To modernize the classic S/Key system by making it time-based and practical for real-world deployment.
  • To formalize the security of hash chains built from independent random functions through a new theoretical lower bound on inverting them.
  • To design a client-side algorithm that efficiently generates hash chain elements with minimal memory usage.
  • To implement and evaluate T/Key as a functional Android application, demonstrating feasibility and security in practice.

Proposed method

  • The system constructs a long hash chain of length ~2 million using a seed stored only on the client, with the final element sent to the server during setup.
  • The client computes the chain in reverse, displaying one element every 30 seconds, which the user enters during login.
  • The server stores only the final hash value of the chain, never any secrets, and verifies the one-time password by recomputing the chain forward from the stored value.
  • A new theoretical lower bound is established for inverting k-step chains composed of independent random functions, proving that inverting the k-th preimage is hard under standard assumptions.
  • A near-optimal client-side algorithm is developed that computes the chain backwards with O(1) memory and O(k) time, enabling efficient implementation on mobile devices.
  • The security model assumes the hash functions are independent and random, and the analysis uses a reductionist proof to show that breaking T/Key implies breaking a random function with non-negligible probability.

Experimental results

Research questions

  • RQ1Can a time-based one-time password system be built without storing any secrets on the server?
  • RQ2What is the computational hardness of inverting a k-step hash chain composed of independent random functions?
  • RQ3Can a client efficiently generate elements of a long hash chain with minimal memory and computational cost?
  • RQ4How does the security of such a system compare to existing TOTP and S/Key schemes in the face of server compromise?
  • RQ5What is the minimal password length required to achieve 128-bit security in this construction?

Key findings

  • T/Key achieves 128-bit security with a 130-bit one-time password, significantly longer than the standard 6-digit TOTP but secure against server compromise.
  • The system is provably secure under the assumption that inverting a k-step chain of independent random functions is computationally hard, with a lower bound showing that any adversary making T queries can invert the k-th preimage with probability at most Õ(ε³/²N/k) for security parameter N.
  • The theoretical analysis proves that breaking T/Key implies breaking a random function with non-negligible advantage, establishing a strong security foundation.
  • A near-optimal client-side algorithm is developed that computes the chain backwards using only O(1) memory and O(k) time, making it practical for mobile deployment.
  • The implementation as an Android app demonstrates that T/Key is feasible for real-world use, with no secrets stored on the server and full compatibility with existing login workflows.
  • The system remains secure even if an attacker gains access to the server and learns the final hash value, as recovering earlier values in the chain remains computationally infeasible.

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.