File: rule.yml

package info (click to toggle)
scap-security-guide 0.1.76-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 110,644 kB
  • sloc: xml: 241,883; sh: 73,777; python: 32,527; makefile: 27
file content (54 lines) | stat: -rw-r--r-- 1,682 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
documentation_complete: true

{{% if product in ['ubuntu2204', 'ubuntu2404'] -%}}
{{% set step_value = '1 1' -%}}
{{% else -%}}
{{% set step_value = '1 -1' -%}}
{{% endif -%}}

title: 'Synchronize internal information system clocks'

description: |-
    Synchronizing internal information system clocks provides uniformity
    of time stamps for information systems with multiple system clocks and
    systems connected over a network.

rationale: |-
    Inaccurate time stamps make it more difficult to correlate events and
    can lead to an inaccurate analysis. Determining the correct time a
    particular event occurred on a system is critical when conducting
    forensic analysis and investigating system events.

severity: medium

platform: package[chrony]

references:
    disa: CCI-002046,CCI-004926
    srg: SRG-OS-000356-GPOS-00144
    stigid@ubuntu2004: UBTU-20-010436
    stigid@ubuntu2204: UBTU-22-252015

ocil_clause: ''

ocil: |-
    Verify the operating system synchronizes internal system clocks to the
    authoritative time source when the time difference is greater than one
    second. Check the value of "makestep" by running the following command:
    <pre>$ sudo grep makestep {{{ chrony_conf_path }}}
    makestep {{{ step_value }}}</pre>

    If it is not set to the above value, edit the {{{ chrony_conf_path }}} file
    and add:
    <pre>makestep {{{ step_value }}}</pre>
    Restart the chrony service:
    <pre>$ sudo systemctl restart chrony.service</pre>

template:
    name: key_value_pair_in_file
    vars:
        key: "makestep"
        value: {{{ step_value }}}
        sep: ' '
        sep_regex: ' '
        path: {{{ chrony_conf_path }}}