On-line Anomaly Detection and Qualification of Random Bit Streams
Cesare Gerolimetto Fabrello, Valeria Rossi, Kamil Witek, Alberto Trombetta, Massimo Caccia
TL;DR
This paper tackles the challenge of online randomness quality assessment for true random/quantum random bit streams by implementing a low-latency anomaly-detection pipeline that combines Monobit and RUNS tests with NIST DRBG-based Repetition Count Test (RCT) and Adaptive Proportion Test (APT). The approach is FPGA-implemented to run in parallel with bit generation, producing instantaneous bias alerts and a lower-bound entropy estimate. Experimental validation on a silicon-based QRNG demonstrates consistent detection power, with Monobit/RUNS identifying short-term biases and RCT/APT providing entropy quantification (min-entropy near 3.99–4 for 4-bit symbols). This work delivers a practical, online framework for maintaining high-quality randomness in security-critical deployments, enabling rapid responses to potential entropy-source degradations. The methodology supports on-line monitoring without compromising throughput, addressing real-world needs highlighted by NIST guidelines for health tests in TRNG/QRNG systems. The online entropy estimation, backed by retrospective ISN analysis, offers a robust foundation for validating randomness quality in large-scale, distributed security applications.
Abstract
Generating random bit streams is required in various applications, most notably cyber-security. Ensuring high-quality and robust randomness is crucial to mitigate risks associated with predictability and system compromise. True random numbers provide the highest unpredictability levels. However, potential biases in the processes exploited for the random number generation must be carefully monitored. This paper reports the implementation and characterization of an on-line procedure for the detection of anomalies in a true random bit stream. It is based on the NIST Adaptive Proportion and Repetition Count tests, complemented by statistical analysis relying on the Monobit and RUNS. The procedure is firmware implemented and performed simultaneously with the bit stream generation, and providing as well an estimate of the entropy of the source. The experimental validation of the approach is performed upon the bit streams generated by a quantum, silicon-based entropy source.
