STIGUI
V-261865CAT II — Medium severitySV-261865r1000600_rule

PostgreSQL must initiate session auditing upon startup.

Rule version CD16-00-000900 · STIG v1 · 2026-06-08

Discussion

Session auditing is for use when a user's activities are under investigation. To ensure the capture of all activity during those periods when session auditing is in use, it needs to be in operation for the whole time PostgreSQL is running.

Check

As the database administrator (shown here as "postgres"), check the current settings by running the following SQL:

$ sudo su - postgres 
$ psql -c "SHOW shared_preload_libraries" 

If pgaudit is not in the current setting, this is a finding.

As the database administrator (shown here as "postgres"), check the current settings by running the following SQL:

$ psql -c "SHOW log_destination" 

If stderr or syslog are not in the current setting, this is a finding.

Fix

Configure PostgreSQL to enable auditing.

To ensure logging is enabled, review supplementary content APPENDIX-C for instructions on enabling logging.

For session logging, using pgaudit is recommended. For instructions on how to setup pgaudit, refer to supplementary content APPENDIX-B.

Identifiers

Group ID
V-261865
Group title
SRG-APP-000092-DB-000208
Rule ID
SV-261865r1000600_rule
Check ID
C-65719r1000598_chk
Fix ID
F-65627r1000599_fix