Docs / Start here / Security review

PDF325 KB

GPWarden security review

On this page

For security and compliance reviewers: what GPWarden runs with which privileges, what it sends where, where secrets live, where its cryptography comes from, and how releases are built. Statements here are about GPWarden as released; the design reasons are in RATIONALE.md, the vulnerability process in SECURITY.md.

Summary

  • One root service, gpwardend, confined by SELinux (gpwardend_t). It does what the Windows Group Policy client does as SYSTEM, and no more.
  • It talks only to the organization's own infrastructure: domain controllers, the enterprise CA, and the package repositories the organization configures. There is no telemetry and no license check-in.
  • All cryptography comes from RHEL's OpenSSL and MIT Kerberos, so RHEL security updates and RHEL's FIPS module cover it. No bundled cryptography is compiled in.
  • Releases are signed, reproducible and ship an SPDX SBOM per package.

Components and privileges

ComponentRuns asConfinementPurpose
gpwardendrootSELinux gpwardend_t; systemd hardening (NoNewPrivileges, ProtectHome=read-only, ProtectKernelModules, PrivateTmp, ...)Reads policy from AD, applies it, LAPS, certificate enrollment.
User policy helper (gpwardenctl user-policy)the userthe user's own contextReads the user's policy with the user's Kerberos ticket, as Windows reads user policy as the user.
Scripts and scheduled tasks from GPOsroot (startup, shutdown, SYSTEM tasks) or the user (logon, logoff, user tasks)separate transient systemd units, unconfinedAdministrator-supplied code, as on Windows.
pam_gpwarden.soin the PAM stackn/aReports sign-ins and sign-outs to gpwardend. Optional, always returns success: it cannot block or grant a logon.
gpwardenctlthe callerthe caller's own contextCLI; talks to gpwardend over a local socket.

Local interface. gpwardend listens only on a Unix socket, /run/gpwarden/gpwardend.sock, and has no network listener. It identifies callers by the kernel's peer credentials (SO_PEERCRED), never by what a request claims. Any user may refresh policy, read their own results, and install or remove the programs published to them. Acting for another user, reporting sign-ins and rotating disk recovery passwords are root only.

What policy can change. Group Policy is administrator authority, as on Windows, and GPWarden applies it with root's reach where Windows would have SYSTEM's: installing packages, running scripts, enabling, masking and starting services, editing configuration files under /etc (Ini Files), granting sudo. Whoever can edit a GPO linked to the workstations controls them, exactly as for Windows clients. Protect GPO edit rights and SYSVOL accordingly.

Network

All connections are outbound, to hosts the domain or the GPOs name:

ToPortWhatAuthentication and protection
Domain controllers53DNS (DC location)–
Domain controllers88, 464Kerberosthe computer's keytab; the user's ticket for user policy
Domain controllers389LDAP: GPOs, group membership, LAPS, certificate templates, recovery passwordsKerberos, sealed (works with LDAP server signing requirements = Require signing)
Domain controllers445SYSVOL (GPO files)SMB 3 with Kerberos
Domain controllers135 + dynamicMS-GKDI (encrypted LAPS)Kerberos, RPC packet privacy
Enterprise CAs135 + dynamicMS-ICPR (certificate enrollment)Kerberos, RPC packet privacy
Time sources123NTP via chrony (the DCs by default)–
Package repositories443 / as configureddnfGPG signature check always on; the GPWarden repository uses the license key as password
File shares named in GPOs445published .rpm files, Files preference, mapped drives, printersthe computer's or the user's Kerberos ticket

GPWarden sends nothing to GPWarden (the company) or any third party. The license key is verified on the computer, offline.

Secrets at rest

SecretWhereProtection
Machine account key/etc/krb5.keytab (written by the join, not by GPWarden)root only, as for any RHEL member
Machine Kerberos tickets/var/lib/gpwarden/krb5cc_machineroot only (0600), SELinux type gpwardend_var_lib_t
LAPS passwordNot stored on the workstation. It is set on the local account and written to AD (encrypted with DPAPI-NG to the configured principal by default). laps.json holds only the account name, encryption flag, principal and rotation time.–
Disk recovery passwordIn a LUKS keyslot and in AD (msFVE-RecoveryInformation, readable by Domain Admins as for BitLocker). Written to a 0600 file in /run only for the moment cryptsetup reads it.–
Computer certificate keys/etc/pki/gpwarden/private/root only
User certificate keys~/.cert/gpwarden/the user only (0600), SELinux home_cert_t
License key/etc/dnf/vars/gpwarden_licenseroot only. When set by GPO, readable by anyone who can read that GPO, like any GPO value.
Wi-Fi user passwords and smart-card PINsnot stored by GPWarden: asked by GNOME and kept in the user's keyring, or asked every time–

Cryptography

GPWarden implements protocols, not algorithms. Every cryptographic operation goes to:

  • OpenSSL 3 from RHEL (AES-GCM, AES key wrap, SP 800-108 and SP 800-56C KDFs, ECDH, RSA, X.509, CMS, random numbers);
  • MIT Kerberos from RHEL (GSSAPI: Kerberos authentication and the sealing of LDAP and RPC).

deny.toml (cargo-deny) bans bundled cryptography crates without exception. GPWarden follows the host's FIPS mode and crypto policy and never changes them (nor TLS settings or Kerberos encryption types); it loads no crypto provider of its own. In FIPS mode, GPWarden uses RHEL's validated module, and it refuses rather than works around what FIPS forbids: PEAP-MSCHAPv2 (MD4, DES) is reported, not configured, and an LAPS key agreement with a non-approved group is reported. Verified on RHEL 9 in FIPS mode: LAPS (encrypted), certificate enrollment and renewal, 802.1X EAP-TLS, disk recovery escrow.

Supply chain

  • Cargo.lock committed; builds use --locked; RPMs build offline from vendored, checksummed crates.
  • cargo-deny checks RustSec advisories daily and on every release: vulnerable, unmaintained and yanked crates, licenses, sources (crates.io and two pinned git revisions).
  • Code taken from upstream records its source revision and license; one patched third-party crate lives in third_party/ with its patch alongside.
  • GitHub Actions pinned to commit SHAs; gitleaks scans the history for secrets.
  • Releases: RPMs signed with rpmsign, signed SHA256SUMS, signed git tags, one SPDX 2.3 SBOM per RPM (every crate with version, license and checksum; the RHEL libraries it loads). Release key fingerprint 243B 7030 A727 5950 90E1 9BEC 3F29 63BB AB79 16A7.
  • Reproducible builds: packaging/rpm/build-rpm.sh --verify builds twice and requires identical RPMs, so anyone can rebuild a release from its source and compare.

Audit trail

Every refresh, failure, LAPS rotation, administrator-group change, software installation and script result is a journal event with a stable MESSAGE_ID, and where Windows has the same event, its Windows event ID (EVENTS.md). gpwardenctl result and its HTML report show which GPO set what. Forwarding uses the RHEL log pipeline you already have.

Residual risks and limits

  • GPO edit rights are root on every workstation in scope (as SYSTEM on Windows).
  • Scripts and scheduled tasks from GPOs run unconfined, as on Windows.
  • The Ini Files preference can edit files under /etc labeled etc_t; other files are refused by SELinux.
  • Smart-card PIN prompts and hardware readers are covered by design and SELinux policy, but were verified with a software token (SoftHSM), not with a reader.
  • An independent security review is planned before general availability (issue #7).
Questions about this page? Ask in the chat or write to support@gpwarden.com.