| name | cis-ubuntu1804-v220-2-1-2-1 |
| description | Ensure chrony is configured with authorized timeserver |
| category | cis-networking |
| version | 2.2.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu","linux","ubuntu-18.04","services","chrony"] |
| cis_id | 2.1.2.1 |
| cis_benchmark | CIS Ubuntu Linux 18.04 LTS Benchmark v2.2.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
2.1.2.1 Ensure chrony is configured with authorized timeserver (Manual)
Profile
- Level 1 - Server
- Level 1 - Workstation
Description
- server - The server directive specifies an NTP server which can be used as a time source. The client-server relationship is strictly hierarchical: a client might synchronize its system time to that of the server, but the server's system time will never be influenced by that of a client. This directive can be used multiple times to specify multiple servers. The directive is immediately followed by either the name of the server, or its IP address.
- pool - The syntax of this directive is similar to that for the server directive, except that it is used to specify a pool of NTP servers rather than a single NTP server. The pool name is expected to resolve to multiple addresses which might change over time. This directive can be used multiple times to specify multiple pools. All options valid in the server directive can be used in this directive too.
Rationale
Time synchronization is important to support time sensitive security mechanisms and to ensure log files have consistent time records across the enterprise to aid in forensic investigations.
Audit Procedure
Command Line
IF chrony is in use on the system, run the following command to display the server and/or pool directive:
Verify that at least one pool line and/or at least three server lines are returned, and the timeserver on the returned lines follows local site policy.
Expected Result
Output examples:
pool directive:
pool time.nist.gov iburst maxsources 4 #The maxsources option is unique to the pool directive
server directive:
server time-a-g.nist.gov iburst
server 132.163.97.3 iburst
server time-d-b.nist.gov iburst
Remediation
Command Line
Edit /etc/chrony/chrony.conf or a file ending in .sources in /etc/chrony/sources.d/ and add or edit server or pool lines as appropriate according to local site policy:
<[server|pool]> <[remote-server|remote-pool]>
Examples:
pool directive:
pool time.nist.gov iburst maxsources 4 #The maxsources option is unique to the pool directive