{
  "schemaVersion": 1,
  "title": "LUKS header lifetime and identity controls",
  "date": "2026-10-21",
  "classification": "Controlled native userspace experiment",
  "scope": "LUKS1 and LUKS2 with Ubuntu cryptsetup-bin 2:2.7.0-1ubuntu4.2; no claim about the latest cryptsetup release.",
  "sources": [
    {
      "id": "luks-backup-v270",
      "title": "cryptsetup v2.7.0: header backup and retained access",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/cryptsetup-luksHeaderBackup.8.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "luks-change-v270",
      "title": "cryptsetup v2.7.0: passphrase replacement",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/cryptsetup-luksChangeKey.8.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "luks-restore-v270",
      "title": "cryptsetup v2.7.0: header replacement and compatibility checks",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/cryptsetup-luksHeaderRestore.8.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "luks-dump-v270",
      "title": "cryptsetup v2.7.0: volume-key recovery and exposure",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/cryptsetup-luksDump.8.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "luks-options-v270",
      "title": "cryptsetup v2.7.0: test-passphrase and key options",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/common_options.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "luks-erase-v270",
      "title": "cryptsetup v2.7.0: erase all keyslots",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/cryptsetup-erase.8.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "luks-add-v270",
      "title": "cryptsetup v2.7.0: adding a credential-protected slot",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/cryptsetup-luksAddKey.8.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "luks-kill-v270",
      "title": "cryptsetup v2.7.0: removing a selected keyslot",
      "url": "https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/man/cryptsetup-luksKillSlot.8.adoc",
      "accessed": "2026-10-21"
    },
    {
      "id": "wei2011",
      "title": "Wei, Grupp, Spada and Swanson. Reliably Erasing Data from Flash-Based Solid State Drives. FAST 2011, sections 2.1, 3.1-3.2 and Table 1.",
      "url": "https://www.usenix.org/events/fast11/tech/full_papers/Wei.pdf",
      "accessed": "2026-10-21"
    }
  ],
  "artifacts": [
    "probe.py",
    "test_probe.py",
    "summarize.py",
    "results.json",
    "summary.json",
    "duplicate_slots.py",
    "test_duplicate_slots.py",
    "duplicate-slots-results.json",
    "duplicate-slots-summary.json"
  ],
  "method": "Two repetitions per format; nine states and three credential fixtures per state. Fresh random volume keys are recovered to private temporary files and compared through SHA-256 hashes. Raw results include exit codes and command arguments. The summary is generated only after validation.",
  "limits": [
    "No encrypted user payload or mounted device was used.",
    "Final-MiB hashes check only that region, not the entire payload.",
    "No hardware erasure, reencryption, timing or field failure rates were measured."
  ],
  "reproduction": [
    "python3 probe.py --output replay.json",
    "python3 -O test_probe.py",
    "python3 summarize.py",
    "python3 duplicate_slots.py --output duplicate-replay.json --summary duplicate-replay-summary.json",
    "python3 -O test_duplicate_slots.py"
  ],
  "initialValidationCorrection": "The first validator incorrectly expected exit 2 for every rejected credential. After keyslot erasure the actual exit is 1 (no usable keyslot). Raw retained results were not changed; the stage-specific expectation was corrected and regression-tested.",
  "rights": "Original Hesela code and observations; third-party source documents are linked, not republished.",
  "duplicateSlotSupplement": "Separate cohort: two formats x two repetitions x four states x three credential fixtures x three scopes (automatic, slot 0, slot 1) = 144 native checks. The same old credential is installed in slots 0 and 1; slot 0 is changed to a new credential; slot 1 is removed. Explicit-slot checks identify the accepting slot. Successful automatic key recovery then checks the key remains unchanged. No mounted device, encrypted payload or hardware erasure."
}
