Abstract
This paper presents a robust, firmware-based framework for the real-time monitoring and health qualification of random number generators. By implementing statistical diagnostics directly into FPGA logic, the authors enable the detection of cryptographic vulnerabilities at the moment of occurrence. The methodology combines adapted NIST health tests with a novel statistical interpretation of Monobit and RUNS tests, allowing for the identification of subtle hardware biases and the calculation of a real-time lower bound on source entropy without impacting bit production rates.
Introduction
In modern cybersecurity, randomness is the fundamental bedrock of encryption. True Random Number Generators (TRNGs) and Quantum Random Number Generators (QRNGs) leverage physical phenomena to produce unpredictable bitstreams; however, these physical sources are not infallible. Environmental factors, hardware degradation, or active tampering can introduce statistical bias, compromising the security of the generated keys.
Standard validation suites, such as the NIST Statistical Test Suite, typically require massive datasets and significant computational overhead, rendering them "off-line" processes. This latency creates a window of vulnerability where weak cryptographic keys could be issued for hours or days before a failure is detected. This research addresses the critical need for high-speed, on-line health tests that provide immediate diagnostics alongside the generation process.
Methodology
The researchers developed a four-part diagnostic suite integrated into FPGA (Field-Programmable Gate Array) firmware to ensure zero-latency monitoring:
- Monobit & RUNS Tests: Traditionally used for large-batch offline analysis, these tests were adapted for short sequences (e.g., 32 bits). The authors introduced a "pull function" to monitor the shift in the average value of these tests over time, enhancing sensitivity to long-term drift.
- NIST Health Tests: The system implements the Repetition Count Test (RCT) and Adaptive Proportion Test (APT) as specified in NIST SP 800-90B.
- Inter-failure Sequence Number (ISN): A primary innovation of this work is the analysis of the distribution of intervals between test failures. For a truly random source, this interval follows a predictable exponential distribution. Deviations from this distribution serve as a high-level indicator of non-random behavior.
- Entropy Estimation: The authors proposed a method to calculate a conservative lower bound for min-entropy ($H$) based on the frequency of failures in the RCT and APT tests, providing a concrete metric for source quality.
Experimental Validation
The framework was validated using a silicon-based QRNG that generates entropy by measuring the inter-arrival times of sub-nanosecond pulses from p-n junctions in the Geiger-Muller regime. The authors evaluated the procedure using over 100 Gb of raw random bits generated across four distinct QRNG boards.
Key Insights
- Sensitivity through Aggregation: While a single Monobit test on a 32-bit sequence is statistically weak, analyzing the mean shift over $2^{17}$ sequences allows the system to detect a bias as subtle as one forced bit every ten sequences with 99.7% confidence.
- Hardware-Efficient Implementation: The authors utilized an "observer symbol" perspective for the RCT, treating it as a requirement for symbols to differ from their predecessors, which results in a more hardware-efficient threshold calculation than standard sequential implementations.
- Live Entropy Metrics: By measuring the ISN, the system provides a statistically backed estimate of min-entropy (e.g., 3.99 bits per 4-bit symbol), giving operators a real-time assessment of the source's cryptographic strength.
Results
The experimental results demonstrated high alignment between theoretical models and hardware performance. In tests on 1 Gb of data, the observed number of failures (74.6 ± 2.6) matched the expected theoretical value (77) for an unbiased source. The QRNG boards consistently maintained min-entropy values between 3.989 and 3.998 (out of a theoretical maximum of 4.0). Crucially, because the tests are implemented in parallel within the FPGA firmware, the health checks introduce zero latency and do not bottleneck the bit generation rate.
Conclusion and Future Work
This work provides a scalable solution for the real-time qualification of high-speed random bit streams. While the current system is highly effective, the authors identify several areas for refinement. The current Adaptive Proportion Test (APT) primarily monitors the first symbol in the alphabet; future iterations will expand this to evaluate every symbol. Additionally, while the current entropy estimation assumes Independent and Identically Distributed (IID) bits, future work will explore non-IID modeling to account for complex correlations inherent in physical entropy sources.
Summary updated