| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Heads is a configuration for laptops and servers that tries to bring more security to commodity hardware. Among its goals are:
NOTE: It is a work in progress and not yet ready for non-technical users. If you're interested in contributing, please get in touch. Installation requires disassembly of your laptop or server, external SPI flash programmers, possible risk of destruction and significant frustration.
More information is available in the 33C3 presentation of building "Slightly more secure systems".
The doc/ directory contains technical reference documentation for the Heads codebase. Start here:
| Document | What it covers |
|---|---|
| doc/architecture.md | Component overview: coreboot, Linux payload, initrd, build system, configuration layers |
| doc/security-model.md | Trust hierarchy, measured boot, TOTP/HOTP attestation, GPG boot signing, LUKS DUK, fail-closed design |
| doc/boot-process.md | Step-by-step boot flow: /init → gui-init → kexec-select-boot → OS handoff |
| doc/tpm.md | PCR assignments, sealing policies, SRTM chain, board-specific TPM variations, developer config reference |
| doc/ux-patterns.md | GUI/UX conventions: whiptail wrappers, integrity report, error flows |
| doc/config.md | Board and user configuration system |
| doc/docker.md | Reproducible build workflow using Docker |
| doc/circleci.md | CircleCI pipeline layout, workspace flow, and cache behavior |
| doc/qemu.md | QEMU board targets for development and testing |
| doc/wp-notes.md | Flash write-protection status per board |
| doc/BOARDS_AND_TESTERS.md | Supported boards and their maintainers/testers |
| doc/prerequisites.md | USB security dongles (HOTP/TPMTOTP), OS requirements, flashing methods |
| doc/faq.md | Common questions: UEFI vs coreboot, TPM, LUKS, threat models |
| doc/keys.md | All keys and secrets: TPM owner, GPG PINs, Disk Recovery Key, LUKS DUK |
| doc/development.md | Commit conventions, coding standards, testing checklist |
| doc/build-freshness.md | Debugging stale builds: initrd.cpio.xz composition, verification |
For user-facing documentation and guides, see Heads-wiki.
We welcome contributions to the Heads project! Before contributing, please read our Contributing Guidelines for information on how to get started, submit issues, and propose changes.
Heads builds inside a versioned Docker image. The supported and tested workflow uses the provided Docker wrappers — no host-side QEMU or swtpm installation is needed.
Quick start (requires Docker CE):
./docker_repro.sh make BOARD=x230-hotp-maximized
./docker_repro.sh make BOARD=qemu-coreboot-fbwhiptail-tpm2 runNo hardware required for testing — Docker provides the full build stack and QEMU runtime with software TPM (swtpm) and the bundled canokey-qemu virtual OpenPGP smartcard. Build and test entirely in software before flashing real hardware.
Build targets are the directory names under boards/. For the current set of tested and maintained targets, see doc/BOARDS_AND_TESTERS.md.
For full details — wrapper scripts, Nix local dev, reproducibility verification, and maintainer workflow — see doc/docker.md.
For CI cache/workspace behavior and the CircleCI job graph, see doc/circleci.md.
For QEMU board testing see doc/qemu.md.
For troubleshooting build issues see doc/faq.md and doc/build-freshness.md.
In order to build reproducible firmware images, Heads builds a specific version of gcc and uses it to compile the Linux kernel and various tools that go into the initrd. Unfortunately this means the first step is a little slow since it will clone the musl-cross-make tree and build gcc...
Once that is done, the top level Makefile will handle most of the remaining details -- it downloads the various packages, verifies the hashes, applies Heads specific patches, configures and builds them with the cross compiler, and then copies the necessary parts into the initrd directory.
There are still dependencies on the build system's coreutils in /bin and /usr/bin/, but any problems should be detectable if you end up with a different hash than the official builds.
Heads builds a curated set of packages (from modules/). Key components enabled by most board configs include:
The full build also includes: lvm2, tpm2-tools, flashrom/flashprog, dropbear (SSH), fbwhiptail (GUI), qrencode, and many others. See individual modules/* files and board configs for the complete picture.
We also recommend installing Qubes OS, although there Heads can kexec into any Linux or multiboot kernel.
OS booting can be tested in QEMU using a software TPM. HOTP can be tested by forwarding a USB token from the host to the guest.
For more information and setup instructions, refer to the qemu documentation.
The coreboot console messages are stored in the CBMEM region and can be read by the Linux payload with the cbmem --console | less command. There is lots of interesting data about the state of the system.
| Back | FazBrowse Home | New Git URL |