Canary Numbers: Design for Light-weight Online Testability of True - - PowerPoint PPT Presentation

canary numbers
SMART_READER_LITE
LIVE PREVIEW

Canary Numbers: Design for Light-weight Online Testability of True - - PowerPoint PPT Presentation

Canary Numbers: Design for Light-weight Online Testability of True Random Number Generators Vladimir Roi, Bohan Yang, Nele Mentens and Ingrid Verbauwhede Acknowledgment This work is supported in part by the European Commission through the


slide-1
SLIDE 1

Canary Numbers:

Design for Light-weight Online Testability of True Random Number Generators

Vladimir Rožić, Bohan Yang, Nele Mentens and Ingrid Verbauwhede

slide-2
SLIDE 2

2

Acknowledgment This work is supported in part by the European Commission through the Horizon 2020 research and innovation program under grant agreement No 644052 HECTOR

slide-3
SLIDE 3

3

Generic TRNG Architecture

Noise Source Digitization Post-processing Health Tests Conditioning OUTPUT ALARM

Entropy Source

Raw numbers

  • False alarm rate vs.

usefulness

  • Better performance for

longer sequences

  • High latency
slide-4
SLIDE 4

4

The role of the canary

  • Early-warning threat

detection

  • Canaries in security:
  • Software: Canary

values, a countermeasure against the buffer overflow attack.

  • Hardware: Canary logic,

redundant logic paths with high propagation delay

slide-5
SLIDE 5

5

Canaries in TRNGs

Conditioning OUTPUT ALARM

Entropy Source

Raw numbers Health Tests Canary numbers

  • GOALS:

– Higher sensitivity to attacks – Early attack detection – Statistical testing on the canary numbers – Low false positive error rate – High usefulness – Low latency – Low area

slide-6
SLIDE 6

6

TRNG parameters

Conditioning OUTPUT ALARM

Entropy Source

Raw numbers Health Tests e1, e2, ... Noise Source Digitization Post-processing n1, n2, ... d1, d2, ... p1, p2, ...

  • Design parameters

– Noise Source (n1, n2,...) – Digitization (d1, d2, …) – Post-processing (p1, p2, ...)

  • Environment parameters

(e1, e2, …) – Critical parameter ec

slide-7
SLIDE 7

7

Entropy and Testability

∂ Hraw ∂ ec

ec=ec,OP

≈0

testability= ∂ f ∂ ece c=ec,OP

slide-8
SLIDE 8

8

Replica-based architecture

Conditioning OUTPUT ALARM

Entropy Source

Raw numbers Health Tests Canary numbers

  • Weaker replica of the noise

source

  • Design space (n1, n2, ...)
  • Detects global changes in

environment

  • Not a stand-alone

countermeasure

Noise Source Digitization Post-processing

Canary Source

Digitization Post-processing

slide-9
SLIDE 9

9

Canary-extraction based architecture

Conditioning OUTPUT ALARM

Entropy Source

Raw numbers Health Tests Canary numbers

  • Weaker processing of the

noise

  • Design space (d1, d2…p1, p2,...)
  • Testing the noise source

Noise Source Digitization Post-processing Canary Digitization Canary Post-processing

slide-10
SLIDE 10

10

Case Study 1: Elementary TRNG

Stochastic model

[2] M. Baudet et. al., On the Security of Oscillator-based Random Number Generators. Journal of Cryptology 24(2), 2011.

Critical parameter: jitter accumulation rate Replica-based architecture

  • RO length
slide-11
SLIDE 11

11

Case Study 1: Elementary TRNG

slide-12
SLIDE 12

12

Case Study 1: Elementary TRNG

Operating point

slide-13
SLIDE 13

13

Case Study 1: Elementary TRNG

EXPERIMENT:

Collect 10000 sequences of 1024b

Compute auto-correlation coefficients

Attack: FPGA cooled down using freezing spray

Compare Distributions

slide-14
SLIDE 14

14

Case Study 1: Elementary TRNG

RAW NUMBERS CANARY NUMBERS

slide-15
SLIDE 15

15

Case Study 2: Delay-chain TRNG

Noise Source: Ring-oscillator

Digitization: Tapped delay lines

Post-processing: Priority encoder

Canary extraction: Time-to-Digital Conversion with lower precision

slide-16
SLIDE 16

16

Case Study 2: Delay-chain TRNG

RAW NUMBERS CANARY NUMBERS

slide-17
SLIDE 17

17

Conclusions

A promising testing strategy for some TRNGs

Improved distinguish-ability for Elementary TRNG and Delay-chain TRNG

1024 bits per sequence is probably not enough

slide-18
SLIDE 18

18

Future work

Challenges:

From operating point to operating range

Exploring other TRNG designs

slide-19
SLIDE 19

Questions?