Giter Club home page Giter Club logo

luks-tpm-tools's Introduction

LUKS TPM tools (luks-tpm-tools)

Make your backup key on removeable device (USB/MMC) , generate STRONG (BitLocker like 48-digit) recovery key, seal your key on TPM device and enjoy automatic unlocking of your Full Disk Encryption.

This tool is compatible with TPM version 1.2 and 2.

Reqirements

  1. Ubuntu dist.
  2. tpm-tools package or tpm2-tools package (The package should be installed exclusively.)
  3. TPM v1.2/v2.0 device/emulator

Installation

sudo ./install

# Options
# -u, --uninstall    remove from your system.
# -p, --purge        remove and delete /etc/default/luks-tpm-tools
#     --pcrs <list>  define your own TPM_PCRS (e.g. "0,2,4,7,9")

Tools

key_read

You can test readability of your LUKS key in TPM device NVRAM or keyfile. (from terminal; This is actual script to read LUKS key during initramfs procedure.)

key_backup

This command generates an auto unlock USB key. You don't need to enter long passphrase when you unlock your system (if TPM PCR failed) or run key_seal.

key_recovery

Generate strong recovery key. It looks similar with MS BitLocker's 48-digit (20 bytes) recovery password. If your LUKS passphrase length is shorter than 16, it is highly recommended to run at least once. Printed out and save it at physically safe place.

key_seal

Entering Passphrase options when newly generate and seal the keyfile:

  1. (Automatic) use backup USB;
  2. (Manual) use recovery passphrase.

Keyfile will save at the NVRAM area in your TPM device (default).

However, if you set NVRAM="" as a default parameter in /etc/default/luks-tpm-tools, key_seal trying to use /boot partition to save keyfile as an encrypted form, instead of use NVRAM.

NVRAM (Non-Volatile RAM) semiconductors may damage the device if too many writes are performed, but there is little room for a big problem in LUKS key operation, which is mainly read after writing once.

NVRAM has a more security advantage of protecting the key by setting the READ_STCLEEAR flag to refuse to read again after being read once at boot time.

luks-tpm-tools's People

Contributors

dh377 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.