SV-261861r1000588_rule
V-261861
SRG-APP-000089-DB-000064
CD16-00-000500
CAT II
10
Configure PostgreSQL to generate audit records for at least the DOD minimum set of events.
Using "pgaudit", PostgreSQL can be configured to audit these requests. Refer to supplementary content APPENDIX-B for documentation on installing pgaudit.
To ensure logging is enabled, see the instructions in the supplementary content APPENDIX-C.
Note: The following instructions use the PGLOG environment variables. Refer to supplementary content APPENDIX-I for instructions on configuring PGVER.
Check PostgreSQL audit logs to determine whether organization-defined auditable events are being audited by the system.
For example, if the organization defines 'CREATE TABLE' as an auditable event, issuing the following command should return a result:
$ sudo su - postgres
$ psql -c "CREATE TABLE example (id int)"
$ grep 'AUDIT:.*,CREATE TABLE.*example' ${PGLOG?}/<latest_log>
$ psql -c 'DROP TABLE example;'
If organization-defined auditable events are not being audited, this is a finding.
V-261861
False
CD16-00-000500
Note: The following instructions use the PGLOG environment variables. Refer to supplementary content APPENDIX-I for instructions on configuring PGVER.
Check PostgreSQL audit logs to determine whether organization-defined auditable events are being audited by the system.
For example, if the organization defines 'CREATE TABLE' as an auditable event, issuing the following command should return a result:
$ sudo su - postgres
$ psql -c "CREATE TABLE example (id int)"
$ grep 'AUDIT:.*,CREATE TABLE.*example' ${PGLOG?}/<latest_log>
$ psql -c 'DROP TABLE example;'
If organization-defined auditable events are not being audited, this is a finding.
M
5598