TPM simplified
The secret hardware-backed encryption key
Trusted Platform Module | Hardware Cryptography
Cryptography is the process of protecting information using ciphers. Trusted Platform Module or TPM is one of its very interesting applications. It is a microcontroller (a dedicated crypto processor) that is integrated into the hardware of a computer system.
TPM offers secure generation of keys, random numbers, remote attestation, and data binding and sealing to authenticate the platform (your PC) and ensure its integrity.
A TPM has a unique secret RSA key burnt into the hardware at the time of manufacture. This unique key allows TPM to perform:
● hardware authentication to detect unauthorized hardware changes to a system.
● remote attestation to authenticate the platform’s software and hardware configurations to some remote system, allowing the remote system to determine the integrity of the remote platform.
● data binding and sealing to derive or calculate a unique key and use it to encrypt data. To decrypt, TPM must be in a specified state i.e. sealing, with an extension to data binding.
TPM can be implemented as a discrete hardware chip, integrated into any chip in the system, in firmware, or virtualized using a hypervisor. Discrete TMP is the most secure type of TPM implementation. Firmware-based TPM runs in a CPU’s TEE (Trusted Execution Environment). Virtual TPM runs inside a virtual machine, in an isolated execution environment.
Hardware-based cryptography utilizes a dedicated processor that ensures faster speed and also provides better protection from software bugs and external software attacks. Digital signatures and certifications can be made more secure using TPM. Misconfigured PCs can be detected at the boot time. In such cases, access to the secured applications will be blocked until the issue gets resolved or the desired state of system configurations is satisfied, depending upon the policies in use. Hardware-based security can improve protection for VPNs, wireless networks, file encryption (such as BitLocker, dm-crypt, and FileVault), and password management.
Several technologies support TPM. Some of them are:
Get Moro’s stories in your inbox
Join Medium for free to get updates from this writer.
● Anti hammering: it is a protection feature used in TPM to prevent brute force attacks, rainbow table attacks, or more complex types of dictionary attacks. TPMs globally lockout instead of locking individual keys when a certain limit of authentication failure gets hit
● TPM cmdlets: the PowerShell supports TPM. Tasks like assigning variables, generating key protectors, setting key protectors, enabling virtual TPM on VMs, etc., can be achieved using PowerShell cmdlets.
● TPM key attestation: it is a process through which certification authorities can verify the TPM-protected private keys and TPM itself. The user certificate with a TPM attested key has properties such as anti-hammering, non-exportability, and isolation of keys that assure higher security of the keys.
● TPM-based certificate storage: the TPM also extends protection to RSA keys and certificates, including the imported ones. The TPM Key Storage Provider (KSP) protects the private keys. It also generates keys whenever it receives certification requests from organizations, etc. TPM-based certificates are no different than standard certificates but have the additional functionality of not detaching from the TPM from which the keys were generated.
TPM-based Smart Card: the TPM-based smart cards are the virtual smart cards used to sign in to the system using a TPM-based key with an authorization value. If the authentication failure threshold hits, the users have to wait for about two hours for TPM to get unlocked.





