{"id":28471733,"url":"https://github.com/reverseclabs/bitlocker-spi-toolkit","last_synced_at":"2025-07-08T10:10:01.947Z","repository":{"id":48386548,"uuid":"322904267","full_name":"ReversecLabs/bitlocker-spi-toolkit","owner":"ReversecLabs","description":"Tools for decoding TPM SPI transaction and extracting the BitLocker key from them.","archived":false,"fork":false,"pushed_at":"2022-03-08T18:22:29.000Z","size":226,"stargazers_count":303,"open_issues_count":4,"forks_count":40,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-06-04T09:12:35.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ReversecLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-19T17:44:46.000Z","updated_at":"2025-06-01T14:25:19.000Z","dependencies_parsed_at":"2022-09-14T00:01:00.821Z","dependency_job_id":null,"html_url":"https://github.com/ReversecLabs/bitlocker-spi-toolkit","commit_stats":null,"previous_names":["fsecurelabs/bitlocker-spi-toolkit","reverseclabs/bitlocker-spi-toolkit","withsecurelabs/bitlocker-spi-toolkit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ReversecLabs/bitlocker-spi-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReversecLabs%2Fbitlocker-spi-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReversecLabs%2Fbitlocker-spi-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReversecLabs%2Fbitlocker-spi-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReversecLabs%2Fbitlocker-spi-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReversecLabs","download_url":"https://codeload.github.com/ReversecLabs/bitlocker-spi-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReversecLabs%2Fbitlocker-spi-toolkit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263046134,"owners_count":23405140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-07T11:08:40.927Z","updated_at":"2025-07-01T22:31:13.345Z","avatar_url":"https://github.com/ReversecLabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitlocker-spi-toolkit\n\nExtract BitLocker's volume master key (VMK) from an SPI bus. This repository contains the following Saleae Logic 2 [High-Level analyzer](https://support.saleae.com/extensions/high-level-analyzer-quickstart) extensions:\n\n- BitLocker-Key-Extractor:  Extracting BitLocker keys from the SPI bus.\n- TPM-SPI-Transaction: Decoding TPM SPI transactions from the SPI bus. This extension is not required but is a handy tool for TPM transactions.\n\nIn addition, this toolkit includes a Docker container, which can be used to decrypt and mount the drive. For more information, read the following blog [post](https://labs.f-secure.com/blog/sniff-there-leaks-my-bitlocker-key/).\n\n![Extracted BitLocker key](https://raw.githubusercontent.com/FSecureLABS/bitlocker-spi-toolkit/main/doc/extracted-key.png)\n![Mounted drive](https://raw.githubusercontent.com/FSecureLABS/bitlocker-spi-toolkit/main/doc/auto-mount.png)\n\n## Installation\n\n1. Install the High-Level analyzers by selecting `Load Existing Extension` from Logic 2's extensions tab.\n2. Build the docker image: `docker build -t bitlocker-spi-toolkit .`.\n\n## Usage\n\n1. Capture SPI traffic by using Logic 2.\n2. Add the built-in SPI analyzer to decode the SPI byte stream.\n3. Add the BitLocker-Key-Extractor analyzer to find BitLocker keys from the SPI stream.\n4. Decrypt and mount the volume: `./mount-bitlocker /dev/sdXX \u003cVMK\u003e`\n   - This starts the docker container, which all necessary options.\n   - This drops you to a new shell, which can be used to manipulate the volume content.\n   - To unmount the drive, run `exit`.\n\n## Usage without Docker\n\n**Note for macOS users**: It [is not possible](https://github.com/docker/for-mac/issues/3110) to share Mac host devices with the container. So therefore, you have to do this manually:\n\n1. Capture the VMK, as shown above.\n2. Build and install the latest version of [Dislocker](https://github.com/Aorimn/dislocker). \n3. Decrypt and mount the volume: `./run.sh \u003cVMK\u003e /dev/sdXX`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freverseclabs%2Fbitlocker-spi-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freverseclabs%2Fbitlocker-spi-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freverseclabs%2Fbitlocker-spi-toolkit/lists"}