Raw entropy source auditYour randomness passed. Here’s what the pass didn’t check.
- Scope
- Raw TRNG output, before conditioning
- Baseline
- NIST SP 800-90B RCT and APT, same data
- False alarms
- Measured on clean data, both sides
- Reference data
- 10 × nRF52840, 24 h, about 10 GB raw output
- Control data
- About 3.5 GB of bias-corrected output, examined on-chip
- Records
- 4,553,540, all checksum-verified
1 Description
RawGauge is an independent audit of a hardware random number generator’s raw output. Conditioning makes a weak source look statistically perfect, and the mandated health tests fire only on gross failure. We run those tests and our own deep scan side by side, each calibrated to the device’s own baseline, at a comparable false-alarm rate. We measure the source, not the mask.
2 Features
- Detects bias of ±0.5 percentage points that the health tests pass
- Detects serial correlation and periodic structure in balanced output
- Detects entropy shared between devices, which single-channel tests cannot see
- Reports both false-alarm rates, measured on the same clean data
- Reproducible report with a hashed evidence pack
Table 1. Detection rate on anomalies injected into real device output, with both false-alarm rates measured (last row)
| Injected anomaly | Trials | NIST RCT / APT | RawGauge |
|---|---|---|---|
| 2 × 300 | 0.7–2.3 % | 100 % | |
| Share of ones shifted up or down by 0.5 percentage points from the device’s own level. Both directions, 300 trials each. | |||
| 300 | 14 % | 100 % | |
| The same injection at 2 percentage points. With APT also set to a 1 % false-alarm target (Table 3), the standard tests caught 26 %. | |||
| 300 | 1.7 % | 100 % | |
| Bit-to-bit flips 2 points rarer, share of ones unchanged, so the output stays balanced. | |||
| 90 | 0 % | 100 % | |
| 2 % of bits follow a balanced 8-bit pattern. The standard tests caught 0 of 90 whether run on bits or on bytes. | |||
| 300 | ≤ 3.3 % | 100 % | |
| One byte value over-represented in 0.5 % of bytes. Standard tests run on 8-bit samples with cutoffs chosen in their favour, at no more than 1 % false alarms: at most 10 of 300. | |||
| 90 | Blind: single-channel | 100 % | |
| One device repeats 2 % of another device’s bits. Each stream passes on its own; only a pairwise test can see it. | |||
| False alarms, clean segments | 300 | 1.0 % (3) | 1.7 % (5) |
Known anomalies were injected into real raw output of nRF52840 chips, 4,000,000-bit segments; detection rate is the share of trials that raised an alarm. 100 % means every trial; the 95 % lower confidence bound is 98.7 % for 300 trials and 95.9 % for 90. The standard tests run with APT at its SP 800-90B cutoff and RCT raised from the nominal 22 to 30–31, because the nominal cutoff fired on 62 % of clean segments; that makes RCT less sensitive than nominal. Our detectors are set for a 1 % false-alarm target; on clean data we measured 1.7 % in the 10-device runs and 0.8 % in an independent repeat (Table 2). Real, un-injected deficits are reported in Section 5 and Section 8. Full conditions in Section 5. Select a row to see how its anomaly was injected.
3 Ordering information
Send a raw sample and what you need to prove. Scoped with you under NDA.
4Why a passing health test proves little
Cryptographic conditioning makes a biased or correlated source look statistically perfect. The mandated health tests, NIST SP 800-90B’s Repetition Count Test (RCT) and Adaptive Proportion Test (APT), fire only on gross failure. A subtle per-device deficit passes straight through, and would keep passing if the raw source degraded in the field.
Weak randomness has shipped at scale before: the Debian OpenSSL bug (2008) and the repeated keys found in the “Mining your Ps and Qs” study (2012). Those came from software seeding and boot-time entropy starvation, not from a degrading hardware source, but they show the cost once it ships. A failing raw source is the class we measure.
5Test conditions and false-alarm rates
Every figure we show comes with the false-alarm rate measured on clean data, for us and for the standard tests alike. Where we change a standard cutoff, we say so and why.
Table 2. False alarms on clean segments
| Run | Clean segments | NIST RCT / APT | RawGauge |
|---|---|---|---|
| 10-device runs | 300 | 3 (1.0 %) | 5 (1.7 %) |
| 3-device runs | 90 | 0 | 0 |
| Independent repeat | 600 | 6 (1.0 %) | 5 (0.8 %) |
Nine of our ten false alarms were one borderline excursion on a single unit, counted repeatedly because the test segments overlap. On 18 hours of continuous on-chip counters from each of the ten units, our block-level bit-balance monitor raised no false alarm.
Table 3. Standard tests with APT also set to a 1 % false-alarm target
| Injected anomaly | NIST RCT / APT, re-tuned |
|---|---|
| Bias, 0.5 points, either direction | 1–3 % |
| Bias, 2 points | 26 % |
| Serial correlation | 2 % |
Same trials as Table 1. Table 1 keeps APT at its SP 800-90B cutoff (α = 2−20); here APT is loosened to 1 % false alarms as well (RCT already is at 30–31), which is why the standard tests catch more.
How the standard tests were set. APT uses the SP 800-90B cutoff (α = 2−20). RCT’s nominal cutoff, 22 on these chips, fired on 62 % of clean segments of this length, so we raised it to 30–31: at most 1 % expected false alarms per segment. That makes RCT less sensitive than nominal.
Byte-symbol bias. With one byte value over-represented in 2 % of bytes, RawGauge caught 90 of 90. The standard tests run on single bits caught 0 of 90, but run on 8-bit samples (window 512) they caught 90 of 90. For a byte-oriented source that is not a gap, and we run both. At 0.5 % of bytes RawGauge caught 300 of 300 and the standard tests on 8-bit samples at most 10 of 300 (3.3 %), even with cutoffs chosen in their favour, at no more than 1 % false alarms.
Spot-checks. A 1 MiB min-entropy spot-check cannot resolve the real deficits we measured either. Between ideal 1 MiB samples the official NIST estimate already varies by about ±0.26 bits per byte (one standard deviation over 32 runs), more than those deficits (0.03–0.11 bits per byte, 0.4–1.4 % below full). They become visible only with larger samples and a targeted, calibrated test.
6Audit procedure
Send the raw source, get a result you can re-run.
| Step | Stage | Detail |
|---|---|---|
| 1 | You send the raw source | Raw TRNG output, before conditioning. Only noise: no keys or secrets. If you can’t export it, that gap is itself a finding, and we help you scope it. |
| 2 | We run both, side by side | The NIST SP 800-90B tests and our deep scan, calibrated to each device’s own baseline. The false-alarm rate of both is measured on clean data, so the comparison is like for like. |
| 3 | You get a reproducible report | A report you can reproduce, plus an evidence pack that records the hash of every input file and the engine version, so your auditor can confirm the audit ran on exactly your data. |
7What single-channel tests cannot see
Some failure classes are not a question of sensitivity. A single-channel test cannot see them even in principle.
- Shared entropy across devices
- Two units drawing on correlated entropy each pass single-channel tests, because each stream looks fine on its own. Our pairwise monitor detects the correlation between them. Randomness shared across devices produced the repeated keys in the “Mining your Ps and Qs” study, there in software at boot; we look for the same pattern at the raw source.
- Structure a balanced stream hides
- A periodic leak can leave both bit and byte statistics near ideal. At 2 % of bits the standard tests caught 0 of 90, run on bits or on bytes. We caught 90 of 90 without relaxing the alarm.
8Validation
Validated on third-party hardware we don’t own: a 10-unit nRF52840 fleet on the FIT IoT-LAB open testbed, and an IBM Heron quantum processor. On the Heron (156 qubits, 1,000,000 shots) we measured a real, un-injected min-entropy deficit of about 8.7 bits per 156-bit readout beyond the statistical floor. NIST’s own estimator, run on ideal random bits of the same length as a control, confirms a deficit there too.
- Written validation criteria
- Our validation criteria and pre-registered analysis plans are kept in a written record, available to customers and evaluators under NDA.
- Control-calibrated
- Each deficit is measured against what the same estimator gives on ideal random data of the same length, so estimator noise is never mistaken for a deficit.
- Measured false-alarm rate
- We measure the false-alarm rate of our detectors and of the standard tests on the same clean data and report both.
- Per-device baseline
- Each unit is judged against its own fingerprint, not a population average. The deficit that hides in the aggregate shows up per device.
9Limits
What RawGauge does not claim. The boundary is part of the product.
- Not an accredited certificate
- An independent technical audit. Where you need FIPS 140-3 or Common Criteria, we pre-screen and complement it; we don’t replace it.
- No prediction
- We report what is present now, which you can verify yourself. We make no early-warning or forecasting claim.
- The source, not the whole system
- We detect anomalies that show up in the raw source. Attacks that don’t touch it, such as key theft, a backdoored conditioner or side channels, are out of scope.
10Products
One method, three ways to deliver it.
Table 4. Delivery options
| Product | Form | Description |
|---|---|---|
| RawGauge Audit | Service, online | A deep audit of your raw source, delivered online. One-off or repeatable, with the report and evidence pack. |
| RawGauge Monitor | Embedded firmware / IP licence | A compact on-device health monitor: bit- and byte-level min-entropy and a repetition check, running continuously next to the built-in RCT/APT. The full deep scan runs off-device.Measured footprint on a Cortex-M4, without the math library: about 0.8–0.9 KB of code, 1.3 KB of RAM. |
| RawGauge Attest | Fleet, SaaS | A deep audit sets each model’s golden baseline. Every production unit then gets a fast per-unit screen, an authenticated (HMAC) health token and a fleet dashboard: a record for your SP 800-90B, FIPS 140-3 or CRA audit trail. |
Applications: where the whole system’s trust rests on the RNG
- Secure-silicon and TRNG / PQC vendors
- IoT and embedded makers
- HSM, PKI, KMS and CA operators
- Fleet operators
- Defense and regulated sectors
11Request an audit
Send a raw sample and what you need to prove. We scope it with you under NDA, with encrypted transfer and a defined retention and destruction policy. Quick screen, full audit or continuous monitoring.