The Ubuntu operating system must record time stamps for audit records that can be mapped to Coordinated Universal Time (UTC) or Greenwich Mean Time (GMT).

STIG ID: UBTU-20-010230  |  SRG: SRG-OS-000359-GPOS-00146 |  Severity: low |  CCI: CCI-001890 |  Vulnerability Id: V-238308 | 

Vulnerability Discussion

If time stamps are not consistently applied and there is no common time reference, it is difficult to perform forensic analysis.

Time stamps generated by the operating system include date and time. Time is commonly expressed in Coordinated Universal Time (UTC), a modern continuation of Greenwich Mean Time (GMT), or local time with an offset from UTC.

Check

To verify the time zone is configured to use UTC or GMT, run the following command.

$ timedatectl status | grep -i "time zone"
Timezone: UTC (UTC, +0000)

If "Timezone" is not set to UTC or GMT, this is a finding.

Fix

To configure the system time zone to use UTC or GMT, run the following command, replacing [ZONE] with UTC or GMT:

$ sudo timedatectl set-timezone [ZONE]