-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11841 from mpurg/ubuntu_2204_stig_232105
Add rule file_groupowner_journalctl
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
linux_os/guide/system/logging/journald/file_groupowner_journalctl/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
documentation_complete: true | ||
|
||
title: 'Verify Groupowner on the journalctl command' | ||
|
||
description: |- | ||
Verify that the "journalctl" command is group-owned by "root" by | ||
using the following command: | ||
<pre> | ||
$ sudo find /usr/bin/journalctl -exec stat -c "%n %G" {} \; | ||
</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-232105 | ||
|
||
severity: medium | ||
|
||
fixtext: | | ||
Configure "journalctl" to be owned by "root": | ||
<pre> | ||
$ sudo chown :root /usr/bin/journalctl | ||
</pre> | ||
template: | ||
name: file_groupowner | ||
vars: | ||
filepath: /usr/bin/journalctl | ||
gid_or_name: '0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters