Skip to content

Commit 98b7a95

Browse files
authored
Merge pull request ComplianceAsCode#14069 from jan-cerny/journal_upload
Add service_systemd-journal-upload_enabled to RHEL 10 CIS
2 parents 6daeb3c + 819c918 commit 98b7a95

File tree

7 files changed

+24
-7
lines changed

7 files changed

+24
-7
lines changed

controls/cis_rhel10.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,8 +2435,9 @@ controls:
24352435
levels:
24362436
- l1_server
24372437
- l1_workstation
2438-
status: pending
2439-
notes: New templated rule is necessary.
2438+
status: automated
2439+
rules:
2440+
- service_systemd-journal-upload_enabled
24402441

24412442
- id: 6.2.2.1.4
24422443
title: Ensure systemd-journal-remote service is not in use (Automated)

linux_os/guide/system/logging/journald/service_systemd-journal-upload_enabled/rule.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,25 @@ documentation_complete: true
33
title: 'Enable systemd-journal-upload Service'
44

55
description: |-
6-
{{{ full_name }}} must offload rsyslog messages for networked systems in real time and
7-
offload standalone systems at least weekly.
6+
The <tt>systemd-journal-upload</tt> service is part of the <tt>systemd-journal-remote</tt> package
7+
and enables centralized logging by uploading local systemd journal entries to a remote log
8+
server via HTTPS. This service acts as a client that pushes journal data to a remote host
9+
running the <tt>systemd-journal-remote</tt> receiver service.
810
{{{ describe_service_enable(service="systemd-journal-upload") }}}
911
1012
rationale: |-
11-
{{{ full_name }}} must offload rsyslog messages for networked systems in real time and
12-
offload standalone systems at least weekly.
13+
Centralized logging through <tt>systemd-journal-upload</tt> is essential for security monitoring,
14+
incident response, and compliance requirements. Storing log data on a remote host protects log
15+
integrity from local attacks. If an attacker gains root access on the local system, they could
16+
tamper with or remove log data stored locally to hide their activities. Remote logging ensures
17+
that audit trails remain intact even if the local system is compromised. Additionally,
18+
centralized logs facilitate correlation of events across multiple systems, enabling better
19+
detection of distributed attacks and security incidents.
1320
1421
severity: medium
1522

1623
identifiers:
24+
cce@rhel10: CCE-86711-9
1725
cce@sle15: CCE-92604-8
1826
cce@slmicro5: CCE-94084-1
1927
cce@slmicro6: CCE-94735-8
@@ -38,3 +46,8 @@ template:
3846
vars:
3947
servicename: systemd-journal-upload
4048
packagename: systemd-journal-remote
49+
50+
warnings:
51+
- general: |-
52+
The <tt>systemd-journal-upload</tt> service will fail to start if the remote server URL is not configured.
53+
Edit <tt>/etc/systemd/journal-upload.conf</tt> to configure the remote server URL.

shared/references/cce-redhat-avail.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ CCE-86707-7
7676
CCE-86708-5
7777
CCE-86709-3
7878
CCE-86710-1
79-
CCE-86711-9
8079
CCE-86712-7
8180
CCE-86713-5
8281
CCE-86726-7

tests/data/profile_stability/rhel10/cis.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ service_cups_disabled
349349
service_firewalld_enabled
350350
service_nfs_disabled
351351
service_rpcbind_disabled
352+
service_systemd-journal-upload_enabled
352353
service_systemd-journald_enabled
353354
set_password_hashing_algorithm_libuserconf
354355
set_password_hashing_algorithm_logindefs

tests/data/profile_stability/rhel10/cis_server_l1.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ service_cups_disabled
253253
service_firewalld_enabled
254254
service_nfs_disabled
255255
service_rpcbind_disabled
256+
service_systemd-journal-upload_enabled
256257
service_systemd-journald_enabled
257258
set_password_hashing_algorithm_libuserconf
258259
set_password_hashing_algorithm_logindefs

tests/data/profile_stability/rhel10/cis_workstation_l1.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ service_crond_enabled
244244
service_firewalld_enabled
245245
service_nfs_disabled
246246
service_rpcbind_disabled
247+
service_systemd-journal-upload_enabled
247248
service_systemd-journald_enabled
248249
set_password_hashing_algorithm_libuserconf
249250
set_password_hashing_algorithm_logindefs

tests/data/profile_stability/rhel10/cis_workstation_l2.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ service_crond_enabled
345345
service_firewalld_enabled
346346
service_nfs_disabled
347347
service_rpcbind_disabled
348+
service_systemd-journal-upload_enabled
348349
service_systemd-journald_enabled
349350
set_password_hashing_algorithm_libuserconf
350351
set_password_hashing_algorithm_logindefs

0 commit comments

Comments
 (0)