Docs / Start here / Security review
PDF325 KBGPWarden 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
| Component | Runs as | Confinement | Purpose |
|---|---|---|---|
gpwardend | root | SELinux 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 user | the user's own context | Reads the user's policy with the user's Kerberos ticket, as Windows reads user policy as the user. |
| Scripts and scheduled tasks from GPOs | root (startup, shutdown, SYSTEM tasks) or the user (logon, logoff, user tasks) | separate transient systemd units, unconfined | Administrator-supplied code, as on Windows. |
pam_gpwarden.so | in the PAM stack | n/a | Reports sign-ins and sign-outs to gpwardend. Optional, always returns success: it cannot block or grant a logon. |
gpwardenctl | the caller | the caller's own context | CLI; 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:
| To | Port | What | Authentication and protection |
|---|---|---|---|
| Domain controllers | 53 | DNS (DC location) | – |
| Domain controllers | 88, 464 | Kerberos | the computer's keytab; the user's ticket for user policy |
| Domain controllers | 389 | LDAP: GPOs, group membership, LAPS, certificate templates, recovery passwords | Kerberos, sealed (works with LDAP server signing requirements = Require signing) |
| Domain controllers | 445 | SYSVOL (GPO files) | SMB 3 with Kerberos |
| Domain controllers | 135 + dynamic | MS-GKDI (encrypted LAPS) | Kerberos, RPC packet privacy |
| Enterprise CAs | 135 + dynamic | MS-ICPR (certificate enrollment) | Kerberos, RPC packet privacy |
| Time sources | 123 | NTP via chrony (the DCs by default) | – |
| Package repositories | 443 / as configured | dnf | GPG signature check always on; the GPWarden repository uses the license key as password |
| File shares named in GPOs | 445 | published .rpm files, Files preference, mapped drives, printers | the 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
| Secret | Where | Protection |
|---|---|---|
| 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_machine | root only (0600), SELinux type gpwardend_var_lib_t |
| LAPS password | Not 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 password | In 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_license | root only. When set by GPO, readable by anyone who can read that GPO, like any GPO value. |
| Wi-Fi user passwords and smart-card PINs | not 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.lockcommitted; 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, signedSHA256SUMS, signed git tags, one SPDX 2.3 SBOM per RPM (every crate with version, license and checksum; the RHEL libraries it loads). Release key fingerprint243B 7030 A727 5950 90E1 9BEC 3F29 63BB AB79 16A7. - Reproducible builds:
packaging/rpm/build-rpm.sh --verifybuilds 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
/etclabeledetc_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).