← All rules
SOCLE-RUN-NTP-001// Time synchronizationmediumeffective runtime

A time-synchronization service is active

Ensures at least one time-synchronization daemon (chrony, chronyd, systemd-timesyncd, ntp or ntpsec) is active so the system clock stays accurate.

Checked against the resolved running state (e.g. sshd -T, sysctl, systemctl show), catches drop-ins and Includes a file read would miss. Caveat: runtime ≠ persistence; a value correct now may not survive a reboot.

A pass proves✓ running now? on disk? survives rebootthe qualified verdict →

This domain is thinly covered by Pavois today, see coverage.

Debian 12CIS 1.1.0Debian 13CIS 1.0.0FedoraRHEL 10 / Rocky 10 / AlmaLinux 10RHEL 8 / Rocky 8 / AlmaLinux 8CIS 4.0.0RHEL 9 / Rocky 9 / AlmaLinux 9CIS 2.0.0Ubuntu 22.04CIS 3.0.0Ubuntu 24.04CIS 1.0.0Ubuntu 26.04
One check, maps to 5 standards

Pavois asserts the effective configuration, the live, resolved state, not a file. File-based scanners (OVAL/SCAP, Lynis) miss Includes, drop-ins and runtime defaults; this check sees what is actually applied.

A mapping is a cross-reference to where each standard places this requirement, anchored and cross-validated, not a claim of equivalence. A passing check is evidence toward these references, how to read it.

Why this rule matters

Accurate, synchronized clocks are a prerequisite for trustworthy security. Without time sync, log timestamps drift across hosts, making incident correlation and forensics unreliable; TLS/Kerberos authentication breaks (certificate validity windows, ticket lifetimes); scheduled jobs and certificate renewals fire at the wrong time; and PCI-DSS / ANSSI auditing requirements that depend on a common time reference cannot be met.

What Pavois checks

Pavois asks systemd for the live unit state with systemctl is-active, iterating over every known time daemon and passing if any one is running. This audits the effective service status, not the presence of a config file or an installed package: a daemon can be installed and configured yet masked, failed or simply stopped. Only is-active reflects whether the clock is actually being disciplined right now.

describe command('for s in chrony chronyd systemd-timesyncd ntp ntpsec; do systemctl is-active --quiet "$s" && { echo ok; exit 0; }; done; echo ko') do
  its('stdout.strip') { should eq 'ok' }
end

How to verify it is applied

Check the running daemon, e.g. systemctl is-active chrony (expected active), and confirm it is actually tracking a source:

# chrony
chronyc tracking

# systemd-timesyncd
timedatectl status   # "System clock synchronized: yes"

Inspect & investigate

Use systemctl show <unit> for the unit state and journalctl -u chrony (or -u systemd-timesyncd) for sync events, source selection and step/slew messages. timedatectl status summarizes whether the clock is synchronized and which service is in charge; chronyc sources -v lists upstream peers and their reachability.

Remediation

The harden plan uses a choose resource: by default it installs and enables chrony (package chrony, service chrony), with timesyncd (systemd-timesyncd) as an alternative. pavois harden apply installs the chosen package and activates its service so a synchronization daemon is running. Pick timesyncd on minimal/container-adjacent hosts where chrony is undesirable.

Pavois applies this with its own harden engine, the plan below, not a shell script:

defaultchrony
optionschrony: package: chrony, service: chrony.service, timesyncd: package: systemd-timesyncd, service: systemd-timesyncd
resourcechoose
pavois harden plan local

where the target is local, a user@host SSH alias, or a container , Docs

Impact & precautions

Enabling a time daemon is low-risk. Two cautions: (1) only one daemon may discipline the clock - chrony, ntp/ntpsec and systemd-timesyncd conflict, so enabling chrony should be paired with disabling/masking timesyncd to avoid them fighting over the clock; (2) on first sync a large offset can cause a clock step (a sudden jump), which can confuse long-running jobs, databases or TLS sessions - on sensitive hosts prefer slewing (chrony's default) and ensure the host can reach its NTP servers (outbound UDP/123) before relying on it. Inside containers that share the host clock, no in-container daemon is needed.

Standards mapping

StandardReferenceTypeVersionConfidence
ANSSI BP-028R71direct2.0high
CIS2.3.1.1, 2.3.2, 2.3.1directper OS, see the benchmark tablehigh
NIST3.3.7, SC-45supporting800-53 Rev 5 · 800-171 Rev 2 (pinned)medium
PCI DSS10.6.1supporting4.0.1medium
DISA STIGUBTU-22-215020, UBTU-24-100010directper OS STIG releasehigh

Each reference is a cross-reference anchored in the upstream benchmark and cross-validated against the SCAP Security Guide and ansible-lockdown, not a claim of equivalence. Direct = a prescriptive, line-level requirement; supporting = an abstract control family (NIST) the check provides evidence toward. How to read a mapping.

Sources & references