Hardware Security

Welcome to the Hardware Security course as taught at University Padeborn. It consists of 15 lectures and 5 hands-on tutorials using hardware: cryptographic smartcards, card readers, and the ChipWhisperer-Nano. The course also included 3 homework assignments which are not published here. Two guest lectures that happened during the course are also not published here.

All of the content listed here is published under the CC BY-SA license, unless stated otherwise. Feel free to get inspired and use these materials in your teaching. If you have any questions about the content, feel free to reach out to me.

Document Size
1. Intro

Introduces and motivates the course: secure hardware, side-channel attacks, and cryptography.

35.7M
1. Intro (tutorial)

Hands-on experience with cryptographic code: AES, RSA, and ECC.

152.4K
2. Smartcards

Smartcards: ISO 7816, JavaCard, protocols, and applications (EMV, eID, eMRTD).

3.0M
3. Authenticators

Authenticators: The need for them, from U2F to FIDO2, and evil-maid attacks.

4.9M
4. TPMs

TPMs: API, principles, applications (boot integrity, remote attestation), and attacks.

12.2M
5. HSMs,TEEs

HSMs: Properties, tamper resistance, applications. TEEs: threat model, applications, and attacks.

16.9M
5. Smartcards (tutorial)

Hands-on experience breaking and reverse-engineering MIFARE Classic.

1.1M
6. Timing and cache attacks

Timing attacks: Principles, remote/local, noise. Cache attacks: Caches, Evict+Time, Flush+Reload, Prime+Probe.
Constant-time programming: Principles, tools.

997.1K
7. Microarchitectural attacks

Microarchitecture: state, speculation, branch prediction, SMT, pre-fetching. Microarchitectural attacks: transient execution, Meltdown, Spectre, and defences.

792.8K
8. Physical side channel attacks 1

Invasive attacks: Micro-probing, circuit editing, and reverse-engineering. Non-invasive passive attacks: dynamic/static, vertical/horizontal. Side-channels: power, EM, leakage models. SPA and DPA.

10.3M
8. SCA (tutorial)

Hands-on experience breaking and fixing a password check with ChipWhisperer-Nano.

2.4M
9. Physical side channel attack defences 1

Countermeasures: algorithmic/hardware/cell level. Hiding: time domain/amplitude domain, random delays, noise generation, current flattening, DPA-resistant logic styles. Masking: boolean/arithmetic/multiplicative. Blinding.

668.9K
10. Physical side channel attacks 2

DPA: generalized. CPA. MIA. Higher-order attacks: pre-processing, trace explosion. Profiled attacks: template attacks, deep-learning. Horizontal attacks. Tools and metrics: alignment, TVLA, correlations, SNR, success rate, guessing entropy.

1.8M
11. Physical side channel attacks 3

Fault injection: timing, voltage glitching, clock glitching, EMFI, laser, software (Plundervolt/Rowhammmer). Fault attacks: DFA, SFA, SIFA, Bellcore attack, attacks on ECDSA, safe-error attacks.

503.3K
12. Physical side channel attack defences 2

Fault attack killchain. Countermeasures: prevention, detection + response, redundancy, randomness, infection.

341.3K
12. FA (tutorial)

Hands-on experience voltage glitching with the ChipWhisperer-Nano.

1.9M
13. Guest lecture (Thomas Roche)

A talk on: "A Side Journey to Titan" and "EUCLEAK".

(not available)
14. Guest lecture (Lukasz Chmielewski)

A talk on: "SCA-secure ECC in software".

(not available)
15. Certifications and recap

Security certifications: Common Criteria, EUCC, FIPS 140, EMVCo, sec-certs. Recap of the course.

540.3KK
15. Exam questions (tutorial)

Preparing and discussing exam questions.

186.7K
All presentations zip | tar.gz 93.1M / 93.1M