Skip to content

DEF CON 34 talks are here: 354 talks, summarized and searchable.

Browse DEF CON 34

Key Management and Basic Key Usage for Encryption 101

Alain Petit

AppSecTalks38 minBeginnerOpen on YouTube ↗

Where

Talks
RVAsec 14

Duration

38 min

Explains how key types, life cycle stages and key handling decide whether encryption claims in vendor products hold up.

Summary

Alain Petit, an enterprise security architect, opens with the point that a vendor's claim of strong encryption says little on its own. He argues that the questions that matter concern how the keys behind that encryption are created, stored, shared and retired. He uses a house lock and door key as a running analogy, comparing symmetric keys, which both lock and unlock, with asymmetric key pairs, where one key encrypts and a separate private key decrypts. He explains why asymmetric keys are typically used to exchange a symmetric key rather than bulk data, since they are slower.

The middle of the talk walks through the key life cycle: generation, distribution, storage, use, rotation, archival and destruction. Each stage is tied to a house-key comparison, such as keys left in a door, spares hidden under a mat, or a lock whose keys are unaccounted for. Key points include generating keys with enough randomness that they cannot be guessed, limiting access to only the people and services that need a key, storing keys in hardware security modules or vaults, and not reusing one key for several purposes. He notes that regular rotation limits the damage from a lost key, and that archived keys may leave remnants even after deletion.

He closes with a takeaway for anyone evaluating a product or reviewing code: a hardcoded key in a configuration file is effectively exposed. Practitioners should ask vendors or developers how keys are generated, who can access them, how often they rotate, and how they are retired, rather than stopping at the name of the algorithm.

Related talks

Talks·52 min

  • LASCON
  • Policy
  • Date: Oct 2023
  • Location: TX

Shannon Lietz

Reframes software security as a business conversation about adversaries, risk, budget and the skills practitioners need next.

riskmanagementtrust+2