fingerprint-machine
fingerprint-machine reads what a Windows machine reports about itself and writes it out as one JSON
document: the SMBIOS table, every network adapter with its PCI location and driver settings, disk
and controller serials, every device Windows has seen, the Windows ids and licensing state, and the
TPM and Secure Boot state. It can also compare two such readings field by field.
What it is for:
- You move a machine to other hardware or another hypervisor and want to know which identity values changed: system UUID, serials, MAC addresses, NIC slot numbers, disk ids, the Windows device id. Any of them can break licensing, activation or a driver binding.
- You keep a baseline of a machine and check later that nothing drifted.
- You want a hardware and identity inventory from a script, as JSON rather than screen text.
It works on any Windows machine, physical or virtual. Reading needs Windows; comparing two saved readings also works on Linux and macOS.
Quick start
On the Windows machine, with uv installed:
# Read this machine, show a summary, and save the whole reading
uvx fingerprint-machine collect --out before.json
# Later, or after the move: read again and compare with the saved one
uvx fingerprint-machine check before.json --save after.json --diff-only
# Compare two saved readings anywhere, Linux and macOS included
uvx fingerprint-machine compare before.json after.json --diff-only
Run it from an elevated prompt if you can. Some sources, BitLocker among them, answer only to an administrator. Without elevation those questions are skipped and listed, and the rest of the reading is not affected.
Commands
collect
fingerprint-machine collect [--section NAME ...] [--label TEXT] [--out FILE] [--json | --json-bare]
Reads the machine. Without options it prints a summary table. --json prints the whole reading
inside an envelope, --json-bare prints only the reading. --out also saves the reading to a
file, --label names it (default: the computer name), and --section reads only the sections you
name, e.g. --section network --section smbios.
compare
fingerprint-machine compare ORIGINAL ACTUAL [--diff-only] [--out FILE] [--json | --json-bare]
Compares two saved readings and marks every field as same, different, or present on one side only.
Exits 1 when anything differs. --out saves the comparison.
check
fingerprint-machine check BASELINE [--diff-only] [--save FILE] [--out FILE] [--json | --json-bare]
Reads this machine and compares it with a saved baseline in one step. --save keeps the fresh
reading and --out keeps the comparison. Exits 1 when anything differs.
Exit codes and JSON
| Exit code | Meaning |
|---|---|
| 0 | done; for compare and check, no differences |
| 1 | compare or check found differences |
| 2 | refused: not Windows (collect, check), or a file that is not a reading |
--json wraps the result as {"ok": true, "command": ..., "data": ..., "skipped": [...]}.
skipped lists each question a source could not answer, with the reason, for example a WMI class
the machine does not provide. A failure prints {"ok": false, "command": ..., "error": {"type": ..., "message": ...}}. --json-bare prints only the data, and still prints JSON when it fails.
Warnings go to standard error, so standard output can go straight into jq or a file.
What a reading holds
A reading starts with meta (tool version, schema version, time, label) and a summary of the
values people look for most:
{
"system": {
"manufacturer": "Example Systems",
"product": "Model X",
"serial": "SER-0001",
"uuid": "04030201-0605-0807-090A-0B0C0D0E0F10",
"sku": "SKU-9",
"family": "Family Y",
"bios_version": "V1.2"
},
"nics": [
{
"name": "Ethernet0",
"description": "vmxnet3 Ethernet Adapter",
"mac": "005056000001",
"interface_index": 6,
"pci_serial": "000C29FFFF000001",
"bus": 11, "device": 0, "function": 0, "slot": 160,
"class_key": "0007"
}
],
"windows": {
"edition": "Professional",
"build": "26100.1000",
"product_id": "00330-80000-00000-AA111",
"device_id": "{DDDDDDDD-0000-0000-0000-000000000001}",
"machine_guid": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"machine_sid": "S-1-5-21-1000-2000-3000",
"license_status": 1,
"partial_product_key": "JK7LZ"
},
"security": { "firmware_type": "UEFI", "secure_boot": 1, "tpm_version": "2.0", "vbs_status": 0 }
}
The values above are made up. The summary also has cpu, memory, disks and
scsi_controllers; for a VMware PVSCSI controller the summary works out its SAS WWID from the
controller's PCI serial.
The full sections follow the summary. --section reads any of them alone:
| Section | What it holds |
|---|---|
smbios |
The raw SMBIOS table with every structure; BIOS, system, board, chassis, CPU, slots, memory, OEM strings and onboard devices decoded field by field |
acpi |
ACPI table headers (OEM ids), and whether an MSDM table holds a product key |
platform |
BIOS, computer system (domain or workgroup included), product, baseboard and enclosure from WMI, and the BIOS and system values in the registry |
cpu |
Processors and caches |
memory |
Memory modules and arrays |
disks |
Disks, physical disks, partitions and volumes with their serials and GUIDs, and SAS or Fibre Channel initiator ports |
network |
Per adapter: PCI location, every advanced driver setting, offloads, RSS, power management, bindings, the network class key, addresses, routes, DNS |
hardware |
SCSI, IDE and USB controllers, CD drives, keyboards, mice, sound, monitors, serial ports, video |
devices |
Every device instance under the registry's Enum key, present or not, with hardware ids, location and driver |
windows |
Operating system, the CurrentVersion key, device id, MachineGuid, machine SID, TCP/IP names, time zone, licensing, hotfixes, cloud join |
security |
TPM (WMI and TBS), cached EK certificates (public fields only), Secure Boot, Device Guard and VBS, BitLocker status |
services |
Every service with its state and start mode |
A question that cannot be answered (a missing WMI class, access denied) is recorded as
{"error": "..."} in its place and listed under skipped, and the reading goes on.
What it never writes
- Product keys are cut to their last five characters wherever they turn up: the
OA3xOriginalProductKeyvalue, the ACPI MSDM table, licensing data.DigitalProductIdandDigitalProductId4are left out. - BitLocker: status and method only, never recovery keys or protectors.
- EK certificates: subject, issuer, serial number, validity and thumbprints, not the certificate itself.
A reading still identifies the machine exactly (serials, MACs, SIDs, the Windows device id), so handle it like any other inventory data.
How comparing works
Fields are compared by path, for example smbios.system.serial or
network.adapters[0].hardware[0].BusNumber. Values that change on their own, such as CPU load,
free memory, uptime or the last boot time, are shown but never counted as a difference. When the
two readings come from different schema versions, a field only the newer one collects is marked
newer-probe-only and is not counted either, so an old baseline still compares fairly.
Install - recommended via uv
# One-shot run, no install
uvx fingerprint-machine@latest --help
# Install as a command line tool (isolated environment, added to PATH)
uv tool install fingerprint-machine
uv tool upgrade fingerprint-machine
# As a project dependency
uv pip install fingerprint-machine
For pip, pipx and source builds see INSTALL.md.
Supply-chain protection
This repository commits a uv.lock, which pins every package the project needs, transitive ones
included, to an exact version and to the hashes of its files. The exclude-newer setting under
[tool.uv] in pyproject.toml adds a cooldown: uv leaves any release younger than that out of the
lock. CI installs from the lock, so a hijacked release that is pulled again within the cooldown
never reaches our builds.
The installed package declares only lower bounds (>=) for its dependencies, so a plain
pip install takes the newest release of each dependency at that moment. To install with a
cooldown of your own, or to run the exact tree CI tests:
uv tool install --exclude-newer "7 days" fingerprint-machine
git clone https://github.com/bitranox/fingerprint-machine.git && cd fingerprint-machine && uv sync --locked && uv run fingerprint-machine --help
Configuration and logging
The tool reads layered configuration (defaults, app, host, user, .env, environment) and logs
through lib_log_rich. Reading a machine needs neither;
see CONFIG.md to change log levels or targets. The config, config-deploy,
config-generate-examples, info, logdemo and fail commands belong to this part:
fingerprint-machine info # version and install details
fingerprint-machine config # the merged configuration
fingerprint-machine --set lib_log_rich.console_level=DEBUG collect
Further documentation
Metadata
Release files for fingerprint-machine 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fingerprint_machine-0.1.0.tar.gz | 181.0 kB | With provenance | Details for fingerprint_machine-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fingerprint_machine-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fingerprint_machine-0.1.0-py3-none-any.whl |
Total release size: 295.3 kB
Release files / fingerprint_machine-0.1.0.tar.gz
| Download URL | fingerprint_machine-0.1.0.tar.gz |
|---|---|
| Size | 181.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e9fbfe0d8150cd2fafb10aa58fa5191561548bd994141cb409028da73f49000
|
|
BLAKE2b-256 checksum How to use checksums |
0f197a94c5a9b703cc94e3d7db060783b52d1736c541822b1166a6c7aac035cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / fingerprint_machine-0.1.0-py3-none-any.whl
| Download URL | fingerprint_machine-0.1.0-py3-none-any.whl |
|---|---|
| Size | 114.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1bc4abfb0d8ab346fa1dcbe4585de54b19501c282b9d278384090a4cea44a2b
|
|
BLAKE2b-256 checksum How to use checksums |
028c8166e003cb933b7f5c855a6524a1449bfcb6e7ce183971a596d8d9d9d7ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for fingerprint-machine 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fingerprint_machine-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.