- Category
- Cybersecurity
- Rank
- No. 4091Tools index
Previous survey · No. 3847 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Security & Identity
- GitHub
- 2 stars
- Date
About
tpmlsm is an eBPF-based Linux kernel guard that lets only allowlisted binaries open the TPM devices /dev/tpm0 and /dev/tpmrm0. By default, any root process or member of the tss group can open them and use TPM-protected keys, such as mTLS private keys. Allowed binaries are identified by path and SHA-256 hash, so modifying or copying a file removes it from the list. The author describes it as a prototype.
At a glance
tpmlsm uses a Linux kernel hook to restrict which executables can open the TPM device, based on executable path and hash. It is worth studying when you need an extra restriction on how processes reach TPM-backed keys.
Good fit
Linux security engineers evaluating a narrow TPM access policy on a disposable host.
Consider something else when
Pass if your threat model requires protection from an administrator who controls the kernel or boot process.
Start here
On a disposable machine with a test TPM, compare an allowlisted utility with an unlisted one. Replace the allowed binary and check what changes before planning upgrades.
Cost and requirements
The BSD-licensed Go component needs Linux with BPF LSM support, a TPM device and privileges to attach the policy.
Limits to know
Updates can change the binary hash. The policy can stay active when the watcher exits, and an administrator may still be able to remove it or boot another kernel.
Sources checked 2026-11-05. Source-based assessment.
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.