Skip to main content

A library to gather and generate several fingerprints about the execution environment

Project description

fingerhost

Trying to find an easy and unprivileged way to obtain fingerprints from the execution environments, I realised there was no single, easy way to obtain those fingerprints.

This software project provides the machinery to gather several kind of host fingerprints:

  • gethostid / hostid. This is the most ancient standardised method to obtain a host fingerprint, which is currently deprecated in favour of machine-id, so most of the hosts are returning 007f0100.

  • machine-id. The file /etc/machine-id contains the value initialised by either systemd-machine-id-setup or dbus-uuidgen. There are more details available at https://wiki.debian.org/MachineId . This system is the current de-facto standard, but it is unreliable on containerised environments (like docker or singularity instances) and high availability host environments, where the hosts are cloned from a based one and the contents of the file are not re-generated.

  • Location: in several scenarios executions can happen both at the host and singularity containerised environments, giving the very same values for the machine-id, so it is worth detecting whether the execution happened within a container instance.

  • Fingerprints derived from block devices and mounted filesystems: These fingerprints are both cheap and accurate, because they are based on disk ids, disk uuids and partition uuids located at /dev/disk/. Depending on the isolation of the location, they could be unavailable.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fingerhost-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fingerhost-1.0.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file fingerhost-1.0.0.tar.gz.

File metadata

  • Download URL: fingerhost-1.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for fingerhost-1.0.0.tar.gz
Algorithm Hash digest
SHA256 377611ed0a8bf7a9218e62b4dfe9ba9e1c26d3fdef81c6ea053ddee836aed9c4
MD5 faca0f7dc31c0150e8fa78bb4697a3e4
BLAKE2b-256 ac780d0778a016d752d01e949d9fb949ce605a0ddf682286331e7f8055a15e8a

See more details on using hashes here.

File details

Details for the file fingerhost-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fingerhost-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for fingerhost-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4bda6d2b7a81fa57247d691cef6271155800d12921694505c7e784e38df5510
MD5 9088347af5c12ae3726dfea1ffca1977
BLAKE2b-256 b975c83d3392a37ca57718dd3db3493c52c490dd4fb9491598c177aac2c68947

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page