-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rule file_permissions_journalctl
- New rule for auditing permissions of journalctl command - Satisfies STIG requirement UBTU-22-232140 - Based on file_permissions_system_journal
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 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
34 changes: 34 additions & 0 deletions
34
linux_os/guide/system/logging/journald/file_permissions_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,34 @@ | ||
documentation_complete: true | ||
|
||
title: 'Verify Permissions on the journal command' | ||
|
||
description: |- | ||
Verify that the "journalctl" command has a permission set of "740" by | ||
using the following command: | ||
<pre> | ||
$ sudo find /usr/bin/journalctl -exec stat -c "%n %a" {} \; | ||
</pre> | ||
If "journalctl" is not set to "740", this is a finding. | ||
rationale: |- | ||
Any operating system providing too much information in error messages risks | ||
compromising the data and security of the structure, and content of error messages | ||
needs to be carefully considered by the organization. | ||
references: | ||
disa: CCI-001312 | ||
stigid@ubuntu2204: UBTU-22-232140 | ||
|
||
severity: medium | ||
|
||
fixtext: | | ||
Configure "journalctl" to have a permission set of "740": | ||
<pre> | ||
$ sudo chmod 740 /usr/bin/journalctl | ||
</pre> | ||
template: | ||
name: file_permissions | ||
vars: | ||
filepath: /usr/bin/journalctl | ||
filemode: '0740' |
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