How to Test the Randomness From the Wireless Channel for Security?

Zhe Qu, Shangqing Zhao, Jie Xu, Zhuo Lu, Yao Liu

Abstract

Wireless Secret Key Generation (SKG) relies on the inherent randomness of the wireless channel to derive shared cryptographic keys between two parties. Traditionally, the security of these keys is validated using standard statistical suites like the NIST test. However, these tests assume data is independent and identically distributed (IID), ignoring the temporal and spatial correlations present in physical wireless channels. This paper demonstrates that passing standard randomness tests does not guarantee security against a "smart" adversary. We introduce the Maximum Likelihood Tree Search (MLTS) model to quantify these security risks and propose an optimization framework that dynamically tunes test thresholds and privacy amplification rates. Our approach eliminates security loss in existing SKG models while significantly improving key generation efficiency.

Introduction

Wireless Secret Key Generation (SKG) allows devices (Alice and Bob) to create shared keys by measuring reciprocal channel characteristics such as Received Signal Strength (RSSI) or Channel State Information (CSI). To ensure these keys are cryptographically secure, researchers typically employ the NIST statistical test suite.

A critical oversight in current literature is the assumption that passing these tests implies security. In reality, wireless channels possess "memory," meaning measurements taken in close succession are correlated. If an eavesdropper (Eve) understands this correlation, she can employ search strategies far more efficient than brute force. This paper rethinks the role of randomness testing, moving from a simple pass/fail metric to a tool for "security by denial."

The MLTS Adversary Model

To quantify the threat posed by channel correlation, we propose the Maximum Likelihood Tree Search (MLTS) adversary. Unlike a brute-force attacker who guesses bit sequences randomly, an MLTS adversary leverages the wireless bit generation model. By treating the bit generation as a Markov process, Eve can traverse a "generation tree" to test the most probable bit sequences first.

The MLTS adversary model compared to physical attacks and exhaustive searches.

As shown in the figure above, while a physical attack requires proximity and an exhaustive search requires up to $2^M$ attempts, the MLTS adversary performs a "smarter" search of up to $2^L$ attempts (where $L$ is the length of the correlated sequence before privacy amplification). This model bridges the gap between physical channel properties and cryptographic security strength.

Optimization Framework

We propose an optimization guideline to balance Efficiency (key generation rate) and Security Loss (the advantage Eve gains over random guessing). The framework involves two primary tuning parameters:

  1. P-value Threshold ($\alpha$): The strictness of the randomness test.
  2. Privacy Amplification Rate ($R_{privacy}$): The compression ratio used to distill entropy and remove correlation.

By mathematically linking these parameters to the channel's correlation coefficient ($\rho$), we can ensure that the final secret bit sequence is short enough to be unpredictable but long enough to maintain high throughput.

Experimental Evaluation and Results

The study utilized over 1 billion data points collected via USRP X310 radios across diverse environments, including laboratories, public lobbies, and libraries. We applied our optimization framework to six existing SKG models to evaluate its impact.

Comparison of different SKG models and their optimized test settings.

Key findings include:

  • Eliminating Security Loss: In models like Radio-telepathy (RT) and Zero Reconciliation (ZR), we eliminated security leaks that previously allowed Eve to guess 4-7 bits of the key.
  • Boosting Efficiency: For the ASBG method, efficiency loss was reduced from 0.883 to 0.487, nearly doubling the effective throughput of secure bits.
  • Domain Specificity: Our results confirm that randomness testing should ideally occur in the wireless domain to accurately quantify the raw entropy source before it is obscured by cryptographic post-processing.

Conclusion

Passing a NIST test is a necessary but insufficient condition for wireless security. By adopting the MLTS adversary model and the proposed optimization framework, developers can create SKG systems that are both highly efficient and mathematically resilient against attackers who exploit the physical nature of the wireless medium.

Summary updated

Abstract

We revisit the traditional framework of wireless secret key generation, where two parties leverage the wireless channel randomness to establish a secret key. The essence in the framework is to quantify channel randomness into bit sequences for key generation. Conducting randomness tests on such bit sequences has been a common practice to provide the confidence to validate whether they are random. Interestingly, despite different settings in the tests, existing studies interpret the results the same: passing tests means that the bit sequences are indeed random. In this paper, we investigate how to properly test the wireless channel randomness to ensure enough security strength and key generation efficiency. In particular, we define an adversary model that leverages the imperfect randomness of the wireless channel to search the generated key, and create a guideline to set up randomness testing and privacy amplification to eliminate security loss and achieve efficient key generation rate. We use theoretical analysis and comprehensive experiments to reveal that common practice misuses randomness testing and privacy amplification: (i) no security insurance of key strength, (ii) low efficiency of key generation rate. After revision by our guideline, security loss can be eliminated and key generation rate can be increased significantly.
BibTeX
@article{qu2021how,
  author = {Zhe Qu and Shangqing Zhao and Jie Xu and Zhuo Lu and Yao Liu},
  title = {{How to Test the Randomness From the Wireless Channel for Security?}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2021},
  url = {https://openreview.net/forum?id=01yckXg0yI},
}
Figure