Check: CD12-00-008900
Crunchy Data PostgreSQL STIG:
CD12-00-008900
(in versions v3 r1 through v1 r1)
Title
Unused database components, PostgreSQL software, and database objects must be removed. (Cat II impact)
Discussion
Information systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions). It is detrimental for software products to provide, or install by default, functionality exceeding requirements or mission objectives. PostgreSQL must adhere to the principles of least functionality by providing only essential capabilities.
Check Content
To get a list of all extensions installed, use the following commands: $ sudo su - postgres $ psql -c "select * from pg_extension where extname != 'plpgsql'" If any extensions exist that are not approved, this is a finding.
Fix Text
To remove extensions, use the following commands: $ sudo su - postgres $ psql -c "DROP EXTENSION <extension_name>" Note: It is recommended that plpgsql not be removed.
Additional Identifiers
Rule ID: SV-233592r960963_rule
Vulnerability ID: V-233592
Group Title: SRG-APP-000141-DB-000091
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000381 |
Configure the system to provide only organization-defined mission essential capabilities. |
Controls
Number | Title |
---|---|
CM-7 |
Least Functionality |