Secure PUF-based Authentication and Key Exchange Protocol using Machine Learning

Amir Ali Pour, Fatemeh Afghah, David Hély, Vincent Beroulle, Giorgio Di NataleISVLSI 2022

Introduction

Physically Unclonable Functions (PUFs) are often described as the "digital fingerprints" of silicon chips. These functions exploit the inherent, uncontrollable manufacturing variations in integrated circuits to produce unique responses to specific mathematical challenges. While PUFs offer a promising path for hardware-based security, they are plagued by two significant issues: environmental noise and the vulnerabilities of traditional error-correction methods.

This paper, presented at ISVLSI 2022, introduces a protocol that transforms the perceived weakness of PUF predictability via Machine Learning (ML) into a strength for secure communication. The researchers propose a protocol that uses an ML model of a PUF to establish secure encryption keys without ever transmitting sensitive "helper data."

The Challenges of PUF Implementation

PUFs face two major hurdles that prevent their widespread adoption in secure key generation:

  1. Noise: Hardware is sensitive to environmental factors like temperature and voltage. A slight variation can flip a response bit, making it impossible to generate bit-perfect cryptographic keys without assistance.
  2. The Helper Data Trap: To combat noise, engineers typically use Error Correction Codes (ECC). This requires storing "helper data" on a public server. Unfortunately, this helper data is often a target for attackers, as it can leak information about the secret key.

The authors set out to create a protocol that provides both authentication and key exchange using "Strong PUFs" while completely eliminating the need for risky public helper data.

Proposed Methodology

The authors' approach, which they call a locally recoverable repetition coding mechanism, involves three main phases: Enrollment, Synchronization, and Authentication/Key Generation.

Enrollment Phase

During enrollment, a Trusted Third Party (TTP) server interacts with the device once to collect a sample of Challenge-Response Pairs (CRPs). It uses this data to train an ML model (a Multi-Layer Perceptron) that mimics that specific chip’s PUF behavior. This model acts as a "soft copy" of the hardware stored securely on the server.

The Enrollment Phase: Collecting CRPs and training the ML model.

Authentication and Key Generation

The core innovation lies in the synchronization process. When the server wants to set up a key, it generates a random bitstring. For every bit in that string, the server uses its ML model to find a "pack" of multiple challenges that are all predicted to produce that same bit.

Authentication and Key Generation: Using challenge packs and majority logic decoding to reconstruct keys without helper data.

The server sends only these "challenge packs" to the device. The device runs them through its physical PUF and uses a Majority Logic Vote Decoder. If most challenges in a pack return a '1', the device decides that bit is a '1'. Because the server used its model to "pre-filter" these challenges, they both arrive at the same secret bitstring without the server ever having to send a single response bit or any ECC helper data over the wire.

Experimental Setup and Datasets

The study relied on simulated data to ensure a controlled environment for testing noise and complexity:

  • XOR Arbiter PUFs: The researchers simulated various structures (4, 5, 6, and 7-XOR Arbiter PUFs) with 64-bit challenge sizes. These are considered "Strong PUFs" and are notoriously difficult to model without sophisticated ML.
  • Noise Profiles: They introduced artificial bit-flipping at levels of 0%, 2%, 5%, and 10% to simulate the environmental instability of real-world hardware.

Key Results

  • High Model Accuracy: The MLP models achieved between 89% and 99% accuracy in predicting PUF responses, even when the training data was noisy.
  • Perfect Reliability: The "Repetition Length" ($l$) is the key variable. The researchers found that with a repetition length of 10 or higher (sending 10 challenges per secret bit), they could recover the encryption key with a 0% failure rate, even when the hardware had a 10% error rate.
  • Stability: As the repetition length increases, the success rate stabilizes at 1.0, proving the protocol is robust against both model mispredictions and hardware noise.

Conclusion

By moving error correction into the communication protocol itself, the authors have created a system that is inherently more secure than traditional ECC methods. Since no response values are ever transmitted, an attacker cannot collect the data needed to build their own ML model of the PUF. Future work will focus on optimizing communication overhead for bandwidth-constrained IoT devices and validating these results on physical FPGA implementations.

Summary updated

BibTeX
@inproceedings{pour2022secure,
  author = {Amir Ali Pour and Fatemeh Afghah and David Hély and Vincent Beroulle and Giorgio Di Natale},
  title = {{Secure PUF-based Authentication and Key Exchange Protocol using Machine Learning}},
  booktitle = {ISVLSI},
  year = {2022},
  doi = {10.1109/isvlsi54635.2022.00086},
}
Figure