VMware Postgres log files must contain required fields.
DISA Rule
SV-256592r887562_rule
Vulnerability Number
V-256592
Group Title
SRG-APP-000089-DB-000064
Rule Version
VCPG-70-000002
Severity
CAT II
CCI(s)
- CCI-000130 - Ensure that audit records containing information that establishes what type of event occurred.
- CCI-000131 - Ensure that audit records containing information that establishes when the event occurred.
- CCI-000132 - Ensure that audit records containing information that establishes where the event occurred.
- CCI-000133 - Ensure that audit records containing information that establishes the source of the event.
- CCI-000134 - Ensure that audit records containing information that establishes the outcome of the event.
- CCI-000135 - Generate audit records containing the organization-defined additional information that is to be included in the audit records.
- CCI-000169 - Provide audit record generation capability for the event types the system is capable of auditing as defined in AU-2 a. on organization-defined information system components.
- CCI-001487 - Ensure that audit records containing information that establishes the identity of any individuals, subjects, or objects/entities associated with the event.
- CCI-001889 - Record time stamps for audit records that meet organization-defined granularity of time measurement.
Weight
10
Fix Recommendation
At the command prompt, run the following commands:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "ALTER SYSTEM SET log_line_prefix TO '%m %c %x %d %u %r %p %l ';"
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "SELECT pg_reload_conf();"
Check Contents
At the command prompt, run the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW log_line_prefix;"
Expected result:
%m %c %x %d %u %r %p %l
If the output does not match the expected result, this is a finding.
Vulnerability Number
V-256592
Documentable
False
Rule Version
VCPG-70-000002
Severity Override Guidance
At the command prompt, run the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW log_line_prefix;"
Expected result:
%m %c %x %d %u %r %p %l
If the output does not match the expected result, this is a finding.
Check Content Reference
M
Target Key
5521