> Documentation index: https://docs.hodeishield.com/llms.txt

# Install the endpoint agent

You install the **2.23.2 release**. Download only from
`https://downloads.hodeishield.com/agent/2.23.2/` (the `version` field of
`https://downloads.hodeishield.com/agent/stable/agent-update-manifest.json` names the current stable version), never from a link in an e-mail or chat.
Windows updates and macOS updates are manual in this release; Linux
applies updates itself only when your console's signed policy approves them.

One page: from nothing to an enrolled, reporting machine. Beta participants may install the agent from **2026-11-02**.

## Before you start

### What you need

You need, for each machine:

- **Administrator rights** (`root` / Administrator) and outbound HTTPS to your
  platform URL and to `downloads.hodeishield.com`.
- **One enrollment token**, created just before you use it. It works once: two
  machines need two tokens. **Who creates it:** the administrator of your
  organisation creates it in the console. If you take part through an MSSP (a
  managed security provider), the MSSP's administrator creates it. You do not
  create it yourself, and nobody should send it to you through a channel others
  can read.
- **An agent id**, chosen now: letters, digits and `. _ : -`, starting with a
  letter or digit. It becomes the machine's permanent name in the console.
- **The platform URL** shown in the console (`https://…`). For the beta it is
  `https://app.hodeishield.com` (see the Windows beta guide).

| OS | Supported | Also needed to verify the download |
|---|---|---|
| Linux | x86_64 with systemd | OpenSSL 3 (`openssl version`) |
| Windows | x64, `2.13.0` or later | OpenSSL 3 (Git for Windows ships one) and PowerShell |
| macOS | 13 or later, Apple Silicon or Intel | OpenSSL 3 (`brew install openssl@3`); the system `openssl` is LibreSSL and cannot do the check |

No Visual C++ redistributable is required from 2.13.0 on.

On Windows the status window and tray work without a graphics driver (VMs,
VDI, servers): the window uses DirectX 12 and falls back to Windows' built-in
WARP software renderer; the agent runs and reports regardless. MEASURED
2026-10-12 (as recorded in
the Windows beta guide).

### What you install

There is one installer per operating system:

| System                          | Format                                               |
| ------------------------------- | ---------------------------------------------------- |
| Windows (x64)                   | `.msi`, installed as a Windows service               |
| macOS (Apple Silicon and Intel) | universal `.pkg`, installed as a `LaunchDaemon`      |
| Linux (x86_64)                  | compressed archive, installed as a `systemd` service |

Download the installer for your system from **Endpoints** in the console and run it with
administrator privileges. During installation you will be asked for an **enrollment token**: a
one-time credential, generated by your administrator from the same screen, that identifies the
machine to your tenant. The agent starts automatically on system boot.

Before installing, [verify the download signature](https://docs.hodeishield.com/en/agent/verify-download/).

!!! note "Fixed in 2.14.2: fresh macOS installs"
    On a Mac where the agent was never installed, the `.pkg` of agent versions 2.14.0 and
    2.14.1 ended with "Install Failed" and the service did not start. Agent 2.14.2 and later
    include the fix. If you run an older version, upgrade; if you have trouble installing on a
    Mac, write to [info@hodeitek.com](mailto:info@hodeitek.com).

```mermaid
flowchart LR
    A[Administrator<br/>generates a one-time token] --> B[Downloads the installer<br/>for their system]
    B --> C[Runs the installer<br/>with administrator privileges]
    C --> D{Enters the<br/>enrollment token}
    D -->|valid token| E[Endpoint active<br/>in the tenant]
    D -->|invalid or expired token| F[Enrollment rejected]
    E --> G[Sends signed checks<br/>every cycle]
    E -.revoke from the console.-> H[Identity revoked]
```

_The token is generated and consumed once; revoking is an explicit act in the console, not
automatic on uninstall (see "Honest limits" below)._

### The platform certificate bundle

**The platform certificate bundle.** The agent does not use the operating system's trust
store: it trusts only the HodeiShield platform certificate bundle, a PEM file, and the
`enroll` command requires you to point it at that file with `--ca-root`. You do not add
anything to the macOS Keychain or to the Windows certificate store, but the file must be on
the machine before you enroll. The installation steps the console shows under **Endpoints**
download it from your console, check its SHA-256 digest, and pass it to `enroll`. Copy those
steps instead of assembling your own: they already carry the right flags. The Linux archive
also contains the bundle as `platform-ca.pem`. The console's default location is:

| System  | Default path of the bundle                          |
| ------- | --------------------------------------------------- |
| Linux   | `/etc/hodei-shield/platform-ca.pem`                 |
| macOS   | `/etc/hodei-shield/platform-ca.pem`                 |
| Windows | `C:\ProgramData\Hodei-Shield\state\platform-ca.pem` |

### Where the configuration lives

The file has two lines. Use your platform URL; the state folder is the one
below for your OS.

| OS | File | `state_dir` |
|---|---|---|
| Linux | `/var/lib/hodei-shield/hodei-shield.toml` | `/var/lib/hodei-shield` |
| Windows | `C:\Program Files\Hodei-Shield\Agent\hodei-shield.toml` | `C:\ProgramData\Hodei-Shield\state` |
| macOS | `/var/lib/hodei-shield/hodei-shield.toml` | `/var/lib/hodei-shield` |

```toml
platform_url = "https://<platform host>"
state_dir = "/var/lib/hodei-shield"
```

`NOT RUN` for Linux and macOS. On Windows write the `state_dir` value in single
quotes (`'C:\ProgramData\Hodei-Shield\state'`) so the backslashes are literal;
the Windows block is recorded as measured in
the Windows beta guide (2026-10-12).

### Requirements per system

=== "Linux"

    Install the **2.23.2 release** on Linux x86_64 with systemd and OpenSSL 3.
    You need `root`, outbound HTTPS to your platform URL and to
    `downloads.hodeishield.com`, **one enrollment token** (works once;
    your administrator, or your MSSP's, creates it in the console), **an agent id**
    (letters, digits, `. _ : -`; it becomes the machine's permanent name) and the
    **platform URL** (`https://…`). `MEASURED`: the step was run and its output kept;
    `MEASURED` 2026-11-08 on a fresh Debian 13 cloud image (2.21.0, enrolled to the production console, first cycle accepted); `NOT RUN` marks step 6 only. If a step misbehaves, stop and write
    to **info@hodeitek.com**. Error reports are **off unless your administrator enables them** (they go via your console): to force them off
    before the first start, see the end of this guide.

=== "macOS"

    Install the **2.23.2 release** on macOS 13 or later (Apple Silicon or
    Intel). You need an administrator account, outbound HTTPS to your platform URL
    and to `downloads.hodeishield.com`, **one enrollment token**
    (works once; your administrator, or your MSSP's, creates it in the console),
    **an agent id** (letters, digits, `. _ : -`; it becomes the machine's permanent
    name), the **platform URL** (`https://…`), and OpenSSL 3 (`brew install openssl@3`;
    the system `openssl` is LibreSSL and cannot do the check). Error reports are **off unless your administrator enables them** (they go via your console): to force them off, create the marker **before** installing the `.pkg` (end of this guide).

    > **Partly measured on a Mac.** Download, verify, install and upgrade have run on a real Mac; **enrollment,
    > the console check and uninstall are `NOT RUN`** (written from the packaging): you are among the first to follow
    > them. `MEASURED` = run with the output kept. If a step misbehaves, stop and write to **info@hodeitek.com**; do not retry the enrollment.

=== "Windows"

    Install the **2.23.2 release** (Windows needs 2.13.0 or later) on Windows
    10/11 or Server 2016 and later, x64. Use Windows PowerShell 5.1 **as Administrator**.
    You need HTTPS to your platform URL and to
    `downloads.hodeishield.com`, **one enrollment token** (works once;
    your administrator, or your MSSP's, creates it in the console), **an agent id**
    (letters, digits, `. _ : -`; it becomes the machine's permanent name), the
    **platform URL** (`https://…`); OpenSSL 3 (Git for Windows) only for the optional check in step 2.
    `MEASURED`: run on a clean Windows host. If a step misbehaves, stop and write to
    **info@hodeitek.com**. Error reports are **off unless your administrator enables them** (they go via your console): to force them off, create the marker
    right after the `.msi` installs (end of this guide).

## Step 1 of 4: Download

=== "Linux"

    Only from this host, never from a link in an e-mail or chat. The current stable version is the `version` field of
    `https://downloads.hodeishield.com/agent/stable/agent-update-manifest.json` (2.23.0 when this was written; files are under `https://downloads.hodeishield.com/agent/<version>/`); use the current one, or the one you were told to use.
    ```bash
    V=2.23.2   # the release you were given; change it only if told to
    B=https://downloads.hodeishield.com
    mkdir hodei-install && cd hodei-install
    curl -fsSLO "$B/agent/$V/hodei-shield-$V-linux-x86_64-musl.tar.gz"
    curl -fsSLO "$B/agent/$V/SHA256SUMS"
    curl -fsSLO "$B/agent/$V/SHA256SUMS.sig"
    ```
    `MEASURED 2026-11-17` from this host: the earlier runs used the release store behind it, with the same paths.

=== "macOS"

    Only from this host, never from a link in an e-mail or chat. The current stable version is the `version` field of
    `https://downloads.hodeishield.com/agent/stable/agent-update-manifest.json` (2.23.0 when this was written; files are under `https://downloads.hodeishield.com/agent/<version>/`); use the current one, or the one you were told to use. Downloading from this host is `NOT RUN` (earlier runs used the release store behind it, same paths).
    ```bash
    V=2.23.2   # the release you were given; change it only if told to
    B=https://downloads.hodeishield.com
    mkdir hodei-install && cd hodei-install
    curl -fsSLO "$B/agent/$V/hodei-shield-$V-universal.pkg"
    curl -fsSLO "$B/agent/$V/SHA256SUMS"
    curl -fsSLO "$B/agent/$V/SHA256SUMS.sig"
    ```

=== "Windows"

    Only from this host, never from an e-mail or chat link. The current stable version is the `version` field of
    `https://downloads.hodeishield.com/agent/stable/agent-update-manifest.json` (2.23.0 when this was written; files are under `https://downloads.hodeishield.com/agent/<version>/`); use the current one, or the one you were told to use. Downloading from this host is `MEASURED 2026-11-17` (earlier runs used the release store behind it, same paths). The folder may exist from an earlier attempt: delete any old files in `hodei-install` first, so a stale `.msi` is never reused.
    ```powershell
    $V = '2.23.2'
    $B = 'https://downloads.hodeishield.com'
    $file = "hodei-shield-$V-x86_64.msi"
    New-Item -ItemType Directory -Force hodei-install | Out-Null; cd hodei-install
    foreach ($n in $file, 'SHA256SUMS', 'SHA256SUMS.sig') { Invoke-WebRequest "$B/agent/$V/$n" -OutFile $n }
    ```

## Step 2 of 4: Verify and install

=== "Linux"

    **Verify**

    Linux has no OS-native signature; the tarball is covered by the release
    signature (Ed25519) over `SHA256SUMS`. Save as `hodei-shield-release.pub.pem`:
    ```
    -----BEGIN PUBLIC KEY-----
    MCowBQYDK2VwAyEAEUqKd+ot7BESwk+vf6EVBKudMi6F6jmY3dJeHXfCWkQ=
    -----END PUBLIC KEY-----
    ```
    `MEASURED` on a published release. Key fingerprint (details: [verify-release.md](https://docs.hodeishield.com/en/agent/verify-release/);
    `openssl pkey -pubin -in hodei-shield-release.pub.pem -outform DER | tail -c 32 | sha256sum`):
    `8b730d2fcbd90e2656bd9b3f265638f1e8e8ac2379d48b0636feb5efe5a88f07`.

    --8<-- "snippets/agent-release-key-s1.en.md"

    Fingerprint command: `openssl pkey -pubin -in hodei-shield-release-s1.pub.pem -outform DER | tail -c 32 | sha256sum`.

    ```bash
    openssl base64 -d -A -in SHA256SUMS.sig -out SHA256SUMS.sig.raw &&
    test "$(wc -c < SHA256SUMS.sig.raw | tr -d ' ')" -eq 64 &&
    openssl pkeyutl -verify -rawin -pubin -inkey hodei-shield-release.pub.pem \
      -sigfile SHA256SUMS.sig.raw -in SHA256SUMS &&
    sha256sum --ignore-missing -c SHA256SUMS &&   # your .tar.gz must say: OK
    echo "VERIFIED" || echo "STOP: verification failed - try the S1 key as described above; if that also fails, do NOT install"
    ```
    Anything else means **do not install**: delete the files and tell Hodeitek.
    **Key custody:** releases are signed with a dedicated, verifiable key (details).

    **Install**

    > `MEASURED` (Debian 12, 2026-10-29).
    ```bash
    tar xzf "hodei-shield-$V-linux-x86_64-musl.tar.gz"
    cd "hodei-shield-$V-linux-x86_64-musl"
    sudo useradd --system --no-create-home --shell /usr/sbin/nologin hodei-shield
    sudo install -d -o root -g root -m 0755 /usr/lib/hodeishield /usr/lib/hodeishield/bin
    sudo install -o root -g root -m 0755 hodei-shield /usr/lib/hodeishield/bin/hodei-shield
    sudo ln -sfn /usr/lib/hodeishield/bin/hodei-shield /usr/local/bin/hodei-shield   # for typing only
    sudo install -o root -g root -m 0644 hodei-shield.service /etc/systemd/system/
    sudo install -d -o root -g root -m 0755 /etc/hodei-shield
    sudo install -o root -g hodei-shield -m 0640 platform-ca.pem /etc/hodei-shield/
    sudo install -d -o hodei-shield -g hodei-shield -m 0700 /var/lib/hodei-shield
    sudo -u hodei-shield tee /var/lib/hodei-shield/hodei-shield.toml >/dev/null <<'EOT'
    platform_url = "https://<platform host>"
    state_dir = "/var/lib/hodei-shield"
    EOT
    sudo chmod 0600 /var/lib/hodei-shield/hodei-shield.toml   # only the service account may change which platform the agent trusts
    sudo systemctl daemon-reload
    hodei-shield version          # prints: hodei-shield <version>, then a line on error reports
    ```
    Optional, for self-update (step 6; `NOT RUN`): `for u in hodei-shield-update.path hodei-shield-update.service hodei-shield-update-reconcile.service; do sudo install -o root -g root -m 0644 "$u" /etc/systemd/system/; done; sudo systemctl daemon-reload`

=== "macOS"

    **Verify**

    Standalone version of this check: [verify-release.md](https://docs.hodeishield.com/en/agent/verify-release/).
    The `.pkg` is signed with an Apple Developer ID and notarized; `SHA256SUMS.sig` is
    the release signature (Ed25519) over `SHA256SUMS`. Save as
    `hodei-shield-release.pub.pem` (SHA-256 of its raw 32 bytes:
    `8b730d2fcbd90e2656bd9b3f265638f1e8e8ac2379d48b0636feb5efe5a88f07`):
    ```
    -----BEGIN PUBLIC KEY-----
    MCowBQYDK2VwAyEAEUqKd+ot7BESwk+vf6EVBKudMi6F6jmY3dJeHXfCWkQ=
    -----END PUBLIC KEY-----
    ```
    Use the OpenSSL 3 full path (`/usr/local/opt/openssl@3/bin/openssl` on Intel):

    --8<-- "snippets/agent-release-key-s1.en.md"

    ```bash
    SSL=/opt/homebrew/opt/openssl@3/bin/openssl
    $SSL base64 -d -A -in SHA256SUMS.sig -out SHA256SUMS.sig.raw &&
    test "$(wc -c < SHA256SUMS.sig.raw | tr -d ' ')" -eq 64 &&
    $SSL pkeyutl -verify -rawin -pubin -inkey hodei-shield-release.pub.pem \
      -sigfile SHA256SUMS.sig.raw -in SHA256SUMS &&
    grep " hodei-shield-$V-universal\.pkg\$" SHA256SUMS | shasum -a 256 -c - &&
    pkgutil --check-signature "hodei-shield-$V-universal.pkg" &&
    echo "VERIFIED" || echo "STOP: verification failed - try the S1 key as described above; if that also fails, do NOT install"
    ```
    Anything else means **do not install**: delete the files and tell Hodeitek.
    **Key custody:** releases are signed with a dedicated, verifiable key (details).

    **Install**

    ```bash
    sudo installer -pkg "hodei-shield-$V-universal.pkg" -target /
    sudo -u _hodeishield tee /var/lib/hodei-shield/hodei-shield.toml >/dev/null <<'EOT'
    platform_url = "https://<platform host>"
    state_dir = "/var/lib/hodei-shield"
    EOT
    /usr/local/bin/hodei-shield version
    ```
    Commands that run as root use the full path `/Library/Application Support/Hodei-Shield/bin/hodei-shield`, in quotes because it contains a space, because `/usr/local/bin` can be user-writable (Homebrew); `/usr/local/bin/hodei-shield` is only a symlink for typing as yourself.
    The package creates the service account `_hodeishield`, the state folder and the
    CA file, and starts the service, which waits quietly until you enroll. A service
    that restarts over and over is a fault.

=== "Windows"

    The `.msi` carries an Authenticode signature (publisher `Hodeitek S.L.`), and
    `SHA256SUMS.sig` is the release signature (Ed25519) over `SHA256SUMS`.
    Authenticode already authenticates the publisher through the Windows certificate chain, and the `.sig` adds a check independent of that chain, made with the release's own Ed25519 key.
    The `SHA256SUMS` comparison alone authenticates nothing: it only proves that the `.msi` is the file listed in `SHA256SUMS`.
    **Recommended additional check (optional): the release signature**
    Run it before the required block below. It needs OpenSSL 3 from Git for Windows
    ([git-scm.com/download/win](https://git-scm.com/download/win)); if `openssl` is not found, install Git for Windows or skip this optional check.
    Save the release key ([standalone page](https://docs.hodeishield.com/en/agent/verify-release/); SHA-256 of its raw 32 bytes: `8b730d2fcbd90e2656bd9b3f265638f1e8e8ac2379d48b0636feb5efe5a88f07`):
    ```powershell
    @'
    -----BEGIN PUBLIC KEY-----
    MCowBQYDK2VwAyEAEUqKd+ot7BESwk+vf6EVBKudMi6F6jmY3dJeHXfCWkQ=
    -----END PUBLIC KEY-----
    '@ | Set-Content -Encoding ascii hodei-shield-release.pub.pem
    ```

    --8<-- "snippets/agent-release-key-s1.en.md"

    Optional check (paste it whole; it installs nothing):
    ```powershell
    & { $ErrorActionPreference = 'Stop'
      $ssl = 'C:\Program Files\Git\usr\bin\openssl.exe'
      if (-not (Test-Path -LiteralPath $ssl)) { throw "openssl not found at ${ssl}: install Git for Windows or skip this optional check" }
      if (-not (Test-Path -LiteralPath hodei-shield-release.pub.pem)) { throw 'hodei-shield-release.pub.pem is missing: write it first' }
      & $ssl version
      & $ssl base64 -d -A -in SHA256SUMS.sig -out SHA256SUMS.sig.raw
      if ($LASTEXITCODE -ne 0) { throw 'SHA256SUMS.sig is not valid base64' }
      (Get-Item SHA256SUMS.sig.raw).Length
      & $ssl pkeyutl -verify -rawin -pubin -inkey hodei-shield-release.pub.pem -sigfile SHA256SUMS.sig.raw -in SHA256SUMS
      if ($LASTEXITCODE -ne 0) { throw 'Signature Verification Failure: do not install' }
    }
    ```
    Expect `64` and `Signature Verified Successfully`. A `Signature Verification Failure` (under both keys) means **do not install**.
    **Required check and install (stops on any failure)**
    Paste the whole block at once into a PowerShell console (not line by line, not
    the ISE); it installs only if every check passes: a `Valid` Authenticode signature
    by `Hodeitek S.L.` with a timestamp, and the `.msi`'s SHA-256 equal to its line in `SHA256SUMS`.
    ```powershell
    & { $ErrorActionPreference = 'Stop'
      if (-not (Test-Path -LiteralPath $file)) { throw "$file is not in this folder" }
      $auth = Get-AuthenticodeSignature .\$file
      $auth | Format-List Status, SignerCertificate, TimeStamperCertificate
      if ($auth.Status -ne 'Valid' -or $auth.SignerCertificate.Subject -notmatch '(^|, )CN=Hodeitek S\.L\.(,|$)') { throw 'Authenticode: not Valid or not signed by Hodeitek S.L.' }
      if ($null -eq $auth.TimeStamperCertificate) { throw 'Authenticode: no timestamp: do not install' }
      $want = ((Get-Content SHA256SUMS | Where-Object { $_ -match ('  ' + [regex]::Escape($file) + '$') }) -split '\s+')[0]
      if ($file -notmatch '\.msi$' -or -not $want) { throw "$file is not an .msi listed in SHA256SUMS" }
      if ((Get-FileHash $file -Algorithm SHA256).Hash -ieq $want) { 'OK' } else { throw 'checksum mismatch: do not install' }
      $p = Start-Process msiexec.exe -ArgumentList '/i', "`"$PWD\$file`"", '/qn', '/l*v', "`"$PWD\install.log`"" -Wait -PassThru
      if ($p.ExitCode -ne 0) { throw "msiexec exit $($p.ExitCode): see install.log" }
    }
    ```
    Expect `Status : Valid`, a signer `CN=Hodeitek S.L.`, a `TimeStamperCertificate`, and `OK`. `MEASURED` 2026-11-08 (clean Windows 11 Enterprise, `.msi` 2.21.0):
    Authenticode `Valid`, `CN=Hodeitek S.L.`, timestamped by the Microsoft Public RSA TSA.
    `MEASURED` 2026-11-09 (clean Windows 11 Enterprise 10.0.26300, `.msi` 2.21.1, this exact block pasted verbatim and run end to end from a `-File` script): the good package passed (Authenticode `Valid`, `CN=Hodeitek S.L.`, timestamped by the Microsoft Public RSA TSA, `OK`, `msiexec` exit `0`, service `Running`), and each of four tampered cases threw before `msiexec`, with no `install.log` and no service: one byte of the `.msi` flipped (Authenticode `HashMismatch`, threw `Authenticode: not Valid or not signed by Hodeitek S.L.`), one hex digit of the `.msi` line in `SHA256SUMS` changed (Authenticode `Valid`, threw `checksum mismatch: do not install`), no `.msi` line in `SHA256SUMS` (threw `not an .msi listed in SHA256SUMS`), and an unsigned file under the `.msi` name (`UnknownError`, threw the Authenticode error). Not produced: a valid signature with no timestamp could not be made on that host, so that branch of the block is unexecuted.
    Flipping one byte of the `.msi` left Authenticode `Valid` on 2026-10-12 (2.12.3 set), because an MSI signature does not cover every byte; only the `SHA256SUMS` hash caught it. On 2026-11-09 (2.21.1, one byte flipped at offset 5,000,000) Authenticode instead reported `HashMismatch` and the first check threw; so whether Authenticode notices a flipped byte depends on where it falls, and it is not guaranteed to. That is why the hash is in the required block.
    Never run a bare `msiexec` or put the token on an installer line. The service waits quietly until you enroll.
    **Key custody:** releases are signed with a dedicated, verifiable key (details).

## Step 3 of 4: Enroll the machine

Never type the token on a command line: it would be visible to every user on the machine and stay in your shell history.

!!! warning "Pass the token through stdin, not on the command line"
    If you enroll by hand, give the token to the agent through standard input so it never
    appears in your shell history or in the process list:

    ```sh
    printf '%s' "$HODEI_TOKEN" | sudo -u hodei-shield \
      HODEI_PLATFORM_URL='https://<platform-host>' HODEI_STATE_DIR=/var/lib/hodei-shield \
      /usr/local/bin/hodei-shield enroll --token-stdin --ca-root /etc/hodei-shield/platform-ca.pem
    ```

    or the same `enroll` line with `< token-file` instead of the `printf` pipe, with the file
    at mode `0600`. This requires an agent with `--token-stdin` (version 2.12.0 or later),
    which is the form the console proposes. Do not use `enroll --token <value>`. The two
    variables make the command independent of the directory you run it from, and
    `--ca-root` is required: without it `enroll` stops with a usage error. On macOS the
    service account is `_hodeishield`, and on Windows the console gives you the PowerShell
    equivalent.

=== "Linux"

    > `MEASURED` (Debian 12, 2026-10-29). Once per machine; the service starts only after it. The token is
    > typed hidden, never on a command line.
    ```bash
    cd /
    IFS= read -rs HODEI_TOKEN && echo
    printf '%s' "$HODEI_TOKEN" | sudo -u hodei-shield env \
      HODEI_PLATFORM_URL="https://<platform host>" \
      HODEI_STATE_DIR=/var/lib/hodei-shield \
      /usr/lib/hodeishield/bin/hodei-shield enroll --token-stdin --agent-id '<this machine id>'
    unset HODEI_TOKEN
    sudo systemctl enable --now hodei-shield
    ```
    Success prints `enrolled: producer=endpoint_agent:<id> public_key_id=… tenant_id=…`, after a log line
    and before a `pin-update-identity` command for automatic updates: run it only once your administrator confirms its values in the console.
    If it fails, do not reuse the token: ask for a new one. **Certificate or TLS error:** add
    no certificate and turn no check off; the agent trusts only `/etc/hodei-shield/platform-ca.pem`.
    Send the output of `cd / && sudo -u hodei-shield env HODEI_STATE_DIR=/var/lib/hodei-shield /usr/lib/hodeishield/bin/hodei-shield diagnose` (as the service account; a normal user gets UNKNOWN because the state directory is `0700`) to your administrator; other failures:
    [Troubleshooting: endpoint agent](https://docs.hodeishield.com/en/agent/troubleshooting/).

=== "macOS"

    Once per machine. The token is typed hidden, never on a command line.
    ```bash
    cd /
    IFS= read -rs HODEI_TOKEN && echo
    printf '%s' "$HODEI_TOKEN" | sudo -u _hodeishield env \
      HODEI_PLATFORM_URL="https://<platform host>" \
      HODEI_STATE_DIR=/var/lib/hodei-shield \
      "/Library/Application Support/Hodei-Shield/bin/hodei-shield" enroll --token-stdin --agent-id '<this machine id>'
    unset HODEI_TOKEN
    sudo launchctl kickstart -k system/com.hodeitek.hodei-shield
    ```
    Success prints `enrolled: producer=endpoint_agent:<id> public_key_id=… tenant_id=…`.
    If it fails, do not reuse the token: ask your administrator for a new one. **Certificate or TLS
    error:** add no certificate and turn no check off; the agent trusts only
    `/etc/hodei-shield/platform-ca.pem`. Send the output of `hodei-shield diagnose` to your
    administrator; other failures: [Troubleshooting: endpoint agent](https://docs.hodeishield.com/en/agent/troubleshooting/).

=== "Windows"

    `MEASURED`. The token is typed at a prompt and kept in an admin-only file.
    ```powershell
    @'
    platform_url = "https://app.hodeishield.com"
    state_dir = 'C:\ProgramData\Hodei-Shield\state'
    '@ | Set-Content -Encoding ascii 'C:\Program Files\Hodei-Shield\Agent\hodei-shield.toml'
    $ErrorActionPreference = 'Stop'
    New-Item -ItemType Directory C:\ProgramData\Hodei-Shield\token -ErrorAction Stop | Out-Null
    icacls C:\ProgramData\Hodei-Shield\token /inheritance:r /grant:r '*S-1-5-32-544:(OI)(CI)F' '*S-1-5-18:(OI)(CI)F'
    if ($LASTEXITCODE -ne 0) { throw 'icacls failed' }
    $secure = Read-Host -AsSecureString 'Enrollment token for THIS machine'
    [Net.NetworkCredential]::new('', $secure).Password | Set-Content -NoNewline -Encoding ascii C:\ProgramData\Hodei-Shield\token\enroll.token
    $secure.Dispose()
    cd 'C:\Program Files\Hodei-Shield\Agent'
    try {
    Get-Content -Raw C:\ProgramData\Hodei-Shield\token\enroll.token | & '.\hodei-shield.exe' enroll --token-stdin --agent-id '<the id you wrote down for THIS machine>'
    } finally { Remove-Item -Recurse -Force C:\ProgramData\Hodei-Shield\token }
    Restart-Service hodei-shield
    ```
    Success prints `enrolled: producer=... public_key_id=... tenant_id=...`. If it
    fails, do not reuse the token: ask for a new one. **Certificate or TLS error:** add no certificate and
    turn no check off; the agent trusts only `C:\ProgramData\Hodei-Shield\state\platform-ca.pem`. Send the
    output of `hodei-shield.exe diagnose` to your administrator. `MEASURED` (Windows 11, 2026-10-28): a silent install exits `1603` with `Error 1925` in `install.log` if you are not running as Administrator; nothing is installed (not measured on Server). Other failures: [Troubleshooting: endpoint agent](https://docs.hodeishield.com/en/agent/troubleshooting/).

Success prints `enrolled: producer=endpoint_agent:<id> public_key_id=… tenant_id=…`.
If it fails, do not retry with the same token: a rejected token never says why
(unknown, used, expired and revoked look the same). Ask your administrator for a
new token and see [Enrollment token rejected](https://docs.hodeishield.com/en/agent/troubleshooting/#agent-enrollment-token).

## Step 4 of 4: Check in the console

=== "Linux"

    `MEASURED` (Debian 12, 2026-10-29). `systemctl is-active hodei-shield` must say `active`. The machine
    appears under **Endpoints** in the console after its first cycle. Logs:
    `sudo journalctl -u hodei-shield -n 100 --no-pager` (without `sudo`, an account outside the `adm` or `systemd-journal` group sees "No entries").
    **Expected: some checks show "could not be evaluated".** The agent runs with least privilege on purpose: the SSH-server checks need `sshd -T`,
    which must load the root-only (`0600 root`) host keys, so on a default install they cannot run. "Not evaluated" is neither "failed" nor "passed"; nothing is wrong with the install.

=== "macOS"

    `sudo launchctl print system/com.hodeitek.hodei-shield | head`, and this must exit 0:
    `sudo -u _hodeishield sh -c 'cd /var/lib/hodei-shield && exec "/Library/Application Support/Hodei-Shield/bin/hodei-shield" self-test'`.
    The machine appears under **Endpoints** after its first cycle. Logs:
    `/var/log/hodei-shield/hodei-shield.log` and `.err.log`. A Mac with no EDR or
    antivirus reports one **fail** (`Third-party EDR present and active`); that is true, not a fault.

=== "Windows"

    `MEASURED`. `Running` and `self-test` exiting 0 (it prints INFO lines):
    ```powershell
    Get-Service hodei-shield; & 'C:\Program Files\Hodei-Shield\Agent\hodei-shield.exe' self-test
    ```
    The machine appears under **Endpoints** in the console after its first cycle.
    **Expected: some checks show "could not be evaluated".** The agent runs with least privilege on purpose, and some security-policy registry values (for example `LmCompatibilityLevel`)
    are absent on an unmanaged host; the agent does not guess the Windows default. "Not evaluated" is neither "failed" nor "passed"; nothing is wrong with the install.

    The machine appears in the console after its first cycle (on Windows, the first submission was accepted about 2.5 minutes after the restart).

## Update by hand

=== "Linux"

    Do **not** enroll again. From `2.16.0` on, a Linux host can update itself, but only when the self-update units are installed
    (the optional line of step 3; this guide installs only `hodei-shield.service` otherwise), enabled with
    `sudo systemctl enable --now hodei-shield-update.path hodei-shield-update-reconcile.service` (`NOT RUN` as a whole sequence on a real host),
    its update identity is pinned and the console's signed policy approves the release. Only Linux hosts update themselves: on Windows and macOS an administrator installs each new version by hand.
    Without them, or to update yourself, update by hand. `MEASURED` (2.14.0 to 2.14.1, isolated
    container): binary replaced, `version` printed the new number, one cycle accepted, key and identity files
    byte-identical; `systemctl`, `self-test` and rollback were not part of that run. Verify as in steps 1 and 2, then:
    ```bash
    V=<new version>
    tar xzf "hodei-shield-$V-linux-x86_64-musl.tar.gz" && cd "hodei-shield-$V-linux-x86_64-musl"
    sudo systemctl stop hodei-shield
    sudo cp -p /usr/lib/hodeishield/bin/hodei-shield /usr/lib/hodeishield/bin/hodei-shield.prev   # rollback copy
    sudo install -o root -g root -m 0755 hodei-shield /usr/lib/hodeishield/bin/hodei-shield
    sudo install -o root -g root -m 0644 hodei-shield.service /etc/systemd/system/
    sudo systemctl daemon-reload
    sudo -u hodei-shield sh -c 'cd /var/lib/hodei-shield && exec /usr/lib/hodeishield/bin/hodei-shield self-test' \
      && sudo systemctl start hodei-shield
    hodei-shield version                          # the new version
    ```
    A host installed before the /usr/lib/hodeishield layout has the binary at `/usr/local/bin/hodei-shield`, where a `staff` member can write on Debian, and a self-update keeps swapping it there. Ask your administrator to migrate it with `packaging/deploy/deploy-linux.sh --version <a release that ships the new layout>`.

=== "macOS"

    macOS has no update applier: updates are a manual `.pkg`. Do **not** enroll again. `/var/lib/hodei-shield` is untouched.
    Download and verify the new `.pkg` as in steps 1 and 2 (the `SHA256SUMS.sig` check comes first). Installing an older `.pkg` over a newer one is refused by design; a pre-release suffix is ignored for ordering, so `2.21.0-beta.2` to `2.21.0` is an ordinary upgrade (both `MEASURED` 2026-11-03 on a Mac). A refused install prints only a generic "An error occurred while running scripts"; the reason is in the installer log: `grep -i hodei /var/log/install.log | tail -20`. If it says a newer version is already installed, nothing was changed and the agent keeps running. Then:
    ```bash
    V=<new version>
    sudo cp -p "/Library/Application Support/Hodei-Shield/bin/hodei-shield" ~/hodei-shield.prev \
      || sudo cp -p /usr/local/bin/hodei-shield ~/hodei-shield.prev    # rollback copy (the second form: a release that predates the new install path)
    sudo installer -pkg "hodei-shield-$V-universal.pkg" -target /
    /usr/local/bin/hodei-shield version                           # the new version
    sudo -u _hodeishield sh -c 'cd /var/lib/hodei-shield && exec "/Library/Application Support/Hodei-Shield/bin/hodei-shield" self-test'
    ```
    Rollback: `sudo launchctl bootout system/com.hodeitek.hodei-shield`, then
    `sudo install -o root -g wheel -m 0755 ~/hodei-shield.prev "/Library/Application Support/Hodei-Shield/bin/hodei-shield"`,
    then `sudo launchctl bootstrap system /Library/LaunchDaemons/com.hodeitek.hodei-shield.plist`.

=== "Windows"

    Do **not** enroll again. In the stable channel Windows does **not** apply updates itself: update by hand with
    the new `.msi`, no new token. (Beta-channel builds can update themselves, only when the console's signed
    policy approves the new **MSI digest** and an administrator has pinned the update identity once, else
    `identity_unpinned`; `MEASURED` 2026-10-27 by Hodeitek on Windows 11, 2.17.0-beta.1 to beta.3.)
    `MEASURED` (2.12.3 to 2.12.4: configuration and state kept, next submission accepted). Back up the configuration, download the new `.msi` as in step 1, then
    run the step 2 blocks again with the new `$V` and `$file`. The installer refuses
    older versions (exit `1603`).
    ```powershell
    Copy-Item 'C:\Program Files\Hodei-Shield\Agent\hodei-shield.toml' "$HOME\hodei-shield.toml.bak"
    ```
    Afterwards `Get-Service hodei-shield` must say `Running`, `& '.\hodei-shield.exe' version`
    the new version, and `self-test` exit 0. If `hodei-shield.toml` is missing, copy the backup back and `Restart-Service hodei-shield`.

## Uninstall { #uninstall }

Two things, in this order: stop and remove the program, then decide whether to
destroy what it left behind. **Uninstalling keeps the machine's private key**, so
a reinstall does not need a new enrollment. Deleting the state folder is
irreversible: the machine can never report again under the same identity.

**Revoke the machine in the console first.** Your organisation's administrator
(role `platform_admin`, `org_admin` or `tenant_admin`) revokes the producer
there (the producer is named `endpoint_agent:<agent id>`); this stops the
platform from accepting that key and frees the name. In the console (v2.44.x):
open the **Endpoints** menu, open the endpoint's detail page, press **Revoke
enrolment** and confirm in the **Revoke this enrolment** dialog. The inverse is
**Reinstate enrolment**.
Revoking does not by itself delete the observations already received: the
platform keeps a revoked
producer's row and its observations (a platform behaviour that the agent
could not observe). Retention and deletion of data already received
are for the privacy notice and your administrator, not for this agent.

All the commands below are `NOT RUN` on a real host unless a line says
otherwise.

=== "Linux"

    `MEASURED` (Debian 12, 2026-10-29; the `chown` line in a Debian 13 container, without the agent). First ask your
    administrator to revoke the machine (console: **Endpoints**, the endpoint, **Revoke enrolment**); a revoked agent logs "credential rejected" and sends nothing.
    ```bash
    sudo systemctl disable --now hodei-shield-update.path hodei-shield-update-reconcile.service   # NOT RUN: only if you installed the self-update units
    sudo systemctl disable --now hodei-shield
    sudo rm -f /etc/systemd/system/hodei-shield-update.path /etc/systemd/system/hodei-shield-update.service /etc/systemd/system/hodei-shield-update-reconcile.service
    sudo rm -rf /var/lib/hodei-shield-update   # NOT RUN: self-update state, if it exists
    sudo rm -f /etc/systemd/system/hodei-shield.service /usr/lib/hodeishield/bin/hodei-shield /usr/lib/hodeishield/bin/hodei-shield.prev /usr/lib/hodeishield/bin/hodei-shield-gui
    sudo rmdir /usr/lib/hodeishield/bin /usr/lib/hodeishield
    # the convenience symlinks, or the real files of a host installed before the /usr/lib/hodeishield layout
    sudo rm -f /usr/local/bin/hodei-shield /usr/local/bin/hodei-shield.prev /usr/local/bin/hodei-shield-gui && sudo systemctl daemon-reload
    sudo pkill -KILL -u hodei-shield; ! pgrep -u hodei-shield && sudo chown root:root /var/lib/hodei-shield /etc/hodei-shield \
      && sudo chmod 0700 /var/lib/hodei-shield && l="$(sudo find /var/lib/hodei-shield /etc/hodei-shield -xdev ! -type d -links +1 -print -quit)" && [ -z "$l" ] \
      && sudo chown -R root:root /var/lib/hodei-shield /etc/hodei-shield \
      && sudo chmod -R u=rwX,go= /var/lib/hodei-shield && sudo userdel hodei-shield
    ```
    `MEASURED` 2026-11-08, Debian 13, chain exit 0: `pkill`/`pgrep`, the folder lock and the `find`, which stops the chain on a second hard link (with `fs.protected_hardlinks=0`
    the service could plant one to a system file for `chown` to re-own). If `id hodei-shield` still answers, write to Hodeitek. Left behind,
    owned by `root` so no account later given the freed uid can read the key: `/var/lib/hodei-shield` (private key, queue, `hodei-shield.toml`;
    `0700`/`0600`), `/etc/hodei-shield` (CA, and `telemetry-off` or `self-update.disabled` if you created them) and the journal; no log file. **Purge** (irreversible, after revoking): `sudo rm -rf /var/lib/hodei-shield /etc/hodei-shield`.
    `MEASURED` on Debian 13 with 2.21.1 (2026-11-09): the chain exited `0`, and the user, the process, the binary, the unit and the symlinks were gone. What stayed was `/var/lib/hodei-shield` (`root:root`, `0700`, holding `hodei-shield.toml`) and `/etc/hodei-shield` (`root:root`, `0755`, holding `platform-ca.pem` and, where the opt-out marker had been created, `self-update.disabled`).

    **What this leaves:**

    | Leftover | What it is |
    |---|---|
    | `/var/lib/hodei-shield` | the private key, the encrypted offline queue, `hodei-shield.toml`, state files; owned by `root`, `0700`/`0600`, after the step above |
    | `/etc/hodei-shield` | the CA bundle and `telemetry-off` if you created it; owned by `root` |
    | the journal | log lines in `journalctl -u hodei-shield`; the agent writes no log file on Linux. They age out with the journal's own retention |
    | `/usr/share/applications/com.hodeitek.hodei-shield.desktop` and `/usr/share/icons/hicolor/*/apps/com.hodeitek.hodei-shield.png` | only if you installed the desktop window |
    | `~/.config/hodei-shield` (or `$XDG_CONFIG_HOME/hodei-shield`) of each person who ran the window | the window's own preferences and notice record |

    **Full purge** (irreversible; run it only after you have revoked the machine):

    ```bash
    sudo rm -rf /var/lib/hodei-shield /etc/hodei-shield
    sudo rm -f /usr/share/applications/com.hodeitek.hodei-shield.desktop
    sudo rm -f /usr/share/icons/hicolor/*/apps/com.hodeitek.hodei-shield.png
    rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/hodei-shield"   # as each user who ran the window
    ```

=== "macOS"

    First ask your administrator to revoke the machine (console: **Endpoints**, the
    endpoint, **Revoke enrolment**). The package ships an uninstaller (`NOT RUN` on a Mac):
    ```bash
    sudo /usr/local/libexec/hodei-shield/uninstall.sh            # as root; keeps the key and the logs
    sudo /usr/local/libexec/hodei-shield/uninstall.sh --purge    # also deletes key, queue, config, logs and update pins (irreversible)
    ```
    It removes the daemons, the program, the update helper
    (`/Library/PrivilegedHelperTools/com.hodeitek.hodei-shield.update`), the app, the CA bundle and the
    receipt, and the `_hodeishield` account if the package created it. Without `--purge` it keeps
    `/var/lib/hodei-shield` (private key, queue, `hodei-shield.toml`; handed to `root` before the
    account goes, `NOT RUN`; a reinstall gives it back) and `/var/log/hodei-shield`;
    `/private/var/db/hodei-shield-update` (root-owned update pins and journal) is kept too; `--purge`
    deletes it with the other two, and you need it before enrolling the host to another tenant (stale
    pins are refused `pin_differs`). `/etc/hodei-shield` stays if it holds `telemetry-off`. Logs in `/var/log/hodei-shield` are rotated by
    the agent itself (10 MiB, 5 archives); no newsyslog rule is installed. Older `.pkg` files have
    no uninstaller: remove them by hand with the commands in [Uninstall and full purge](https://docs.hodeishield.com/en/agent/install/#uninstall).

    For a `.pkg` older than 2.19.0 (no uninstaller), remove what it laid down by hand :

    ```bash
    sudo launchctl unload -w /Library/LaunchDaemons/com.hodeitek.hodei-shield.plist
    sudo launchctl unload -w /Library/LaunchDaemons/com.hodeitek.hodei-shield.runtime-dir.plist
    sudo rm /Library/LaunchDaemons/com.hodeitek.hodei-shield.plist \
            /Library/LaunchDaemons/com.hodeitek.hodei-shield.runtime-dir.plist
    sudo launchctl bootout system/com.hodeitek.hodei-shield.update   # root update job (2.16.0+); a no-op if it is not loaded
    sudo rm -f /Library/LaunchDaemons/com.hodeitek.hodei-shield.update.plist /Library/PrivilegedHelperTools/com.hodeitek.hodei-shield.update
    sudo rm -f /usr/local/bin/hodei-shield
    sudo rm -rf /Applications/Hodei-Shield.app
    # NOT RUN on a Mac. Before dscl frees the service uid, hand the kept key
    # material to root: an account created later can be given that uid. The find
    # refuses a file with a second hard link (macOS lets the service account link a
    # system file for chown to re-own); pkill/pgrep and the non-recursive chown/chmod
    # first, so no process of that uid can add one between the find and the chown -R.
    # Any failed step stops the chain and keeps the
    # account. No /etc/hodei-shield? Drop it from both the find and the chown.
    # boot out the account's per-user launchd domain first, or launchd respawns
    # its distnoted agent after pkill and pgrep never comes back empty.
    sudo launchctl bootout user/"$(id -u _hodeishield)" 2>/dev/null
    sudo pkill -KILL -u _hodeishield; ! pgrep -u _hodeishield \
      && sudo chown root:wheel /var/lib/hodei-shield /etc/hodei-shield && sudo chmod 0700 /var/lib/hodei-shield \
      && l="$(sudo find /var/lib/hodei-shield /etc/hodei-shield -xdev ! -type d -links +1 -print -quit)" && [ -z "$l" ] \
      && sudo chown -R root:wheel /var/lib/hodei-shield /etc/hodei-shield \
      && sudo chmod -R u=rwX,go= /var/lib/hodei-shield && sudo dscl . -delete /Users/_hodeishield \
      && sudo dscl . -delete /Groups/_hodeishield
    sudo pkgutil --forget com.hodeitek.hodei-shield
    ```

    **What this leaves:**

    | Leftover | What it is |
    |---|---|
    | `/var/lib/hodei-shield` | the private key, the encrypted offline queue, `hodei-shield.toml` |
    | `/etc/hodei-shield` | the CA bundle and `telemetry-off` if you created it |
    | `/var/log/hodei-shield` | the agent's logs (`hodei-shield.log`, `.err.log`) |
    | `/usr/local/share/doc/hodei-shield` | the third-party licence notices |
    | `/var/run/hodei-shield` | the status file; macOS clears `/var/run` on restart |
    | `~/Library/Application Support/Hodei-Shield` of each person who ran the window | the window's own preferences and notice record |

    **Full purge** (irreversible; after revoking; also remove the files above):

    ```bash
    sudo rm -rf /var/lib/hodei-shield /etc/hodei-shield /var/log/hodei-shield \
                /usr/local/share/doc/hodei-shield /var/run/hodei-shield
    rm -rf "$HOME/Library/Application Support/Hodei-Shield"    # as each user who ran the window
    ```

    Delete the account and the state **together or not at all**: a state folder kept
    after the account is deleted is owned by a numeric id that a future account may
    not get.

=== "Windows"

    `MEASURED`. First ask your administrator to revoke the machine (console:
    **Endpoints**, the endpoint, **Revoke enrolment**). Use the absolute path of the
    `.msi` you kept. Left behind: `C:\ProgramData\Hodei-Shield\state` (private key, queue, CA bundle),
    the logs folder `C:\ProgramData\Hodei-Shield\logs` (since 2.23, not yet re-measured; up to 2.22 it was `C:\Program Files\Hodei-Shield\Agent\logs`, `MEASURED`, Windows 11 and Server 2022, 2026-10-28), `Agent\hodei-shield.toml` only if you created one, `telemetry-off`, and `%APPDATA%\Hodei-Shield` per user.
    Also left (`MEASURED`, Windows 11, 2.21.1, 2026-11-09): `C:\ProgramData\Hodei-Shield\projection.json`, `notice-policy.json` and `update-refusal.json`; under `state\`, `update\healthy`, `producer_run_id`, `queue.key.bin` and the `producer.*` identity files; and `Agent\self-update.disabled` where the opt-out marker had been created. The purge below removes all of them (it deletes both `Hodei-Shield` folders).
    ```powershell
    $msi = (Resolve-Path '<folder where you downloaded it>\hodei-shield-<version>-x86_64.msi').Path
    (Start-Process msiexec.exe -ArgumentList '/x', "`"$msi`"", '/qn' -Wait -PassThru).ExitCode
    ```
    **Purge** (`MEASURED` (Windows 11, 2026-10-29), irreversible, only after revoking): use the guarded block in
    beta-tester-quick-start.md, section 8.

    **What this leaves:**

    | Leftover | What it is |
    |---|---|
    | `C:\Program Files\Hodei-Shield\Agent\hodei-shield.toml` and `Agent\logs\*.log` | the configuration and the service logs |
    | `C:\ProgramData\Hodei-Shield\state\` | the private key, the offline queue, `platform-ca.pem`, `agent.lock` |
    | `C:\ProgramData\Hodei-Shield\telemetry-off` | only if you created it |
    | `C:\ProgramData\Hodei-Shield\THIRD-PARTY-NOTICES.txt` | licence notices |
    | `%APPDATA%\Hodei-Shield` of each person who ran the window | the window's own preferences and notice record |

    **Full purge** (irreversible; after revoking; `NOT RUN`). The state folder is
    protected so that only Administrators, SYSTEM and the service account can open
    it, and a protected folder can refuse deletion even to an elevated prompt until
    you take ownership. The guard stops if the folder was replaced by a link:

    ```powershell
    foreach ($p in 'C:\ProgramData\Hodei-Shield', 'C:\Program Files\Hodei-Shield') {
      if (Test-Path -LiteralPath $p) {
        if ((Get-Item -LiteralPath $p -Force).Attributes -band [IO.FileAttributes]::ReparsePoint) { throw "$p is a link: stop and ask for help" }
        Remove-Item -LiteralPath $p -Recurse -Force
      }
    }
    Remove-Item -LiteralPath "$env:APPDATA\Hodei-Shield" -Recurse -Force -ErrorAction SilentlyContinue   # per user
    ```

    If `Remove-Item` reports access denied on `state`, take ownership of that one
    folder first (`takeown /f 'C:\ProgramData\Hodei-Shield\state' /r /d y` and then
    `icacls 'C:\ProgramData\Hodei-Shield\state' /grant Administrators:F /t`), and
    run the purge again. These two lines are not covered by any recorded run.

## Next steps

- [What data leaves the machine](https://docs.hodeishield.com/en/agent/data/): what the agent collects, what it sends and how long it is kept.
- [Verify a release](https://docs.hodeishield.com/en/agent/verify-release/): the independent check of the signature and the hashes.
- [Troubleshooting](https://docs.hodeishield.com/en/agent/troubleshooting/): rejected token, TLS error, clock, service or update.
