Skip to content

Commit

Permalink
Merge pull request #11831 from mpurg/ubuntu_2204_stig_215020_215025
Browse files Browse the repository at this point in the history
Add new rules package_ntp_removed, package_timesyncd_removed
  • Loading branch information
dodys committed May 7, 2024
2 parents 5582fc2 + 08ec2b8 commit 65b2a96
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 7 deletions.
2 changes: 2 additions & 0 deletions components/ntp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ rules:
- ntpd_specify_remote_server
- package_chrony_installed
- package_ntp_installed
- package_ntp_removed
- package_timesyncd_installed
- package_timesyncd_removed
- service_chronyd_enabled
- service_chronyd_or_ntpd_enabled
- service_ntp_enabled
Expand Down
1 change: 1 addition & 0 deletions components/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ rules:
- journald_storage
- package_systemd-journal-remote_installed
- package_timesyncd_installed
- package_timesyncd_removed
- service_debug-shell_disabled
- service_systemd-coredump_disabled
- service_systemd-journald_enabled
Expand Down
24 changes: 24 additions & 0 deletions linux_os/guide/services/ntp/package_ntp_removed/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
documentation_complete: true

title: 'Remove the ntp service'

description: 'The ntpd service should not be installed.'

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.
Sources outside the configured acceptable allowance (drift)
may be inaccurate.
severity: low

references:
disa: CCI-001891
stigid@ubuntu2204: UBTU-22-215025

template:
name: package_removed
vars:
pkgname: ntp
24 changes: 24 additions & 0 deletions linux_os/guide/services/ntp/package_timesyncd_removed/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
documentation_complete: true

title: 'Remove the systemd_timesyncd Service'

description: 'The systemd_timesyncd service should not be installed.'

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.
Sources outside the configured acceptable allowance (drift)
may be inaccurate.
severity: low

references:
disa: CCI-000366
stigid@ubuntu2204: UBTU-22-215020

template:
name: package_removed
vars:
pkgname: systemd-timesyncd
11 changes: 4 additions & 7 deletions products/ubuntu2204/profiles/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -625,13 +625,11 @@ selections:
# UBTU-22-654190 The Ubuntu operating system must generate audit records for all events that affect the systemd journal files
- audit_rules_var_log_journal

### TODO (rule needed)
# Analogous to package_telnetd_removed
# UBTU-22-215025 The Ubuntu operating system must not have the "ntp" package installed

### TODO (rule needed)
# Analogous to package_telnetd_removed
# UBTU-22-215020 The Ubuntu operating system must not have the "systemd-timesyncd" package installed
- package_timesyncd_removed

# UBTU-22-215025 The Ubuntu operating system must not have the "ntp" package installed
- package_ntp_removed

### TODO (reevaluate directory permissions)
# UBTU-22-232027 The Ubuntu operating system must generate system journal entries without revealing information that could be exploited by adversaries
Expand Down Expand Up @@ -666,4 +664,3 @@ selections:
### TODO (rule needed)
# Similar to file_permissions_var_log_audit
# UBTU-22-232140 The Ubuntu operating system must be configured so that the "journalctl" command is not accessible by unauthorized users

0 comments on commit 65b2a96

Please sign in to comment.