Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule file_owner_journalctl #11835

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rules:
- file_groupowner_etc_crypttab
- file_groupowner_system_journal
- file_owner_etc_crypttab
- file_owner_journalctl
- file_owner_system_journal
- file_permissions_etc_crypttab
- file_permissions_system_journal
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
documentation_complete: true

title: 'Verify Owner on the journalctl Command'

description: |-
Verify that the "journalctl" command is owned by "root" by
using the following command:
<pre>
$ sudo find /usr/bin/journalctl -exec stat -c "%n %U" {} \;
</pre>
If any output returned is not owned by "root", this is a finding.

rationale: |-
Only authorized personnel should be aware of errors and the details of the errors.
Error messages are an indicator of an organization's operational state or can
identify the operating system or platform. Additionally, personally identifiable
information (PII) and operational information must not be revealed through error
messages to unauthorized personnel or their designated representatives.

references:
disa: CCI-001314
stigid@ubuntu2204: UBTU-22-232100

severity: medium

fixtext: |
Configure "journalctl" to be owned by "root":
<pre>
$ sudo chown root /usr/bin/journalctl
</pre>

template:
name: file_owner
vars:
filepath: /usr/bin/journalctl
fileuid: '0'
3 changes: 1 addition & 2 deletions products/ubuntu2204/profiles/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,8 @@ selections:
# Analogous to file_group_ownership_var_log_audit
# UBTU-22-232095 The Ubuntu operating system must configure the files used by the system journal to be group-owned by "systemd-journal"

### TODO (rule needed)
# Similar to file_ownership_var_log_audit
# UBTU-22-232100 The Ubuntu operating system must be configured so that the "journalctl" command is owned by "root"
- file_owner_journalctl

### TODO (rule needed)
# Similar to file_group_ownership_var_log_audit
Expand Down
Loading