1.114 UBTU-24-700020

Information

The operating system must generate system journal entries without revealing information that could be exploited by adversaries.

GROUP ID: V-270757
RULE ID: SV-270757r1066760

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.

Organizations carefully consider the structure/content of error messages. The extent to which information systems are able to identify and handle error conditions is guided by organizational policy and operational requirements. Information that could be exploited by adversaries includes, for example, erroneous logon attempts with passwords entered by mistake as the username, mission/business information that can be derived from (if not stated explicitly by) information recorded, and personal information, such as account numbers, social security numbers, and credit card numbers.

Solution

Configure the operating system to set the appropriate permissions to the files and directories used by the systemd journal:

Add or modify the following lines in the "/usr/lib/tmpfiles.d/systemd.conf" file:

z /run/log/journal 2750 root systemd-journal - -
Z /run/log/journal/%m ~2750 root systemd-journal - -
z /var/log/journal 2750 root systemd-journal - -
z /var/log/journal/%m 2750 root systemd-journal - -
z /var/log/journal/%m/system.journal 0750 root systemd-journal - -

Restart the system for the changes to take effect.

See Also

https://workbench.cisecurity.org/benchmarks/22775

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-11a., 800-53|SI-11b., CAT|II, CCI|CCI-001312, CSCv7|14.6, Rule-ID|SV-270757r1066760_rule, STIG-ID|UBTU-24-700020, Vuln-ID|V-270757

Plugin: Unix

Control ID: 3d841ac5ba83ece2b0a20964eadb54f5f26eaa954f5ab83285aa8bdb64be77a4