STIGQter STIGQter: STIG Summary: EDB Postgres Advanced Server v11 on Windows Security Technical Implementation Guide Version: 2 Release: 1 Benchmark Date: 23 Oct 2020:

Default, demonstration and sample databases, database objects, and applications must be removed.

DISA Rule

SV-224160r508023_rule

Vulnerability Number

V-224160

Group Title

SRG-APP-000141-DB-000090

Rule Version

EP11-00-003700

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Remove any unused sample databases or sample objects within a database from the DBMS.

To remove a database, execute the follow SQL:

DROP DATABASE <database>;

To remove objects within a database, use the appropriate DROP statement (DROP TABLE, DROP VIEW, etc.).

Check Contents

If EDB Postgres Advanced Server (EPAS) is hosted on a server that does not support production systems, and is designated for the deployment of samples and demonstrations, this is not applicable (NA).

Review documentation and websites from EnterpriseDB and any other relevant vendors for vendor-provided demonstration or sample databases, database applications, schemas, objects, and files.

Review the EPAS DBMS to determine if any of the demonstration and sample databases, schemas, database applications, or objects are installed in the database or are included with the DBMS application. If any are present in the database or are included with the DBMS application, this is a finding.

Check for the existence of EDB Postgres sample databases: postgres and edb. To check Execute the following SQL as enterprisedb:

SELECT datname FROM pg_database WHERE datistemplate = false;

If any databases are listed here that are not documented as being used by the application, this is a finding.

EDB Postgres provides the ability to install a set of sample tables and related objects in a postgres database via the installer or via the edb-sample.sql script installed with EDB Postgres Advanced Server (located in the <EDB Postgres Installation Directory>\installer\server directory by default). To check whether these sample tables have been installed, execute the following SQL as enterprisedb:

SELECT * FROM dba_tables WHERE table_name IN ('EMP', 'DEPT', 'JOBHIST');

If any rows are returned that do not correspond to application tables, this is a finding.

Postgres provides the ability to install a set of tables for benchmark purposes using the pgbench utility. To check whether these pgbench tables have been installed, execute the following SQL as enterprisedb:

SELECT * FROM dba_tables WHERE table_name LIKE 'PGBENCH%';

If any rows are returned that do not correspond to application tables, this is a finding.

Vulnerability Number

V-224160

Documentable

False

Rule Version

EP11-00-003700

Severity Override Guidance

If EDB Postgres Advanced Server (EPAS) is hosted on a server that does not support production systems, and is designated for the deployment of samples and demonstrations, this is not applicable (NA).

Review documentation and websites from EnterpriseDB and any other relevant vendors for vendor-provided demonstration or sample databases, database applications, schemas, objects, and files.

Review the EPAS DBMS to determine if any of the demonstration and sample databases, schemas, database applications, or objects are installed in the database or are included with the DBMS application. If any are present in the database or are included with the DBMS application, this is a finding.

Check for the existence of EDB Postgres sample databases: postgres and edb. To check Execute the following SQL as enterprisedb:

SELECT datname FROM pg_database WHERE datistemplate = false;

If any databases are listed here that are not documented as being used by the application, this is a finding.

EDB Postgres provides the ability to install a set of sample tables and related objects in a postgres database via the installer or via the edb-sample.sql script installed with EDB Postgres Advanced Server (located in the <EDB Postgres Installation Directory>\installer\server directory by default). To check whether these sample tables have been installed, execute the following SQL as enterprisedb:

SELECT * FROM dba_tables WHERE table_name IN ('EMP', 'DEPT', 'JOBHIST');

If any rows are returned that do not correspond to application tables, this is a finding.

Postgres provides the ability to install a set of tables for benchmark purposes using the pgbench utility. To check whether these pgbench tables have been installed, execute the following SQL as enterprisedb:

SELECT * FROM dba_tables WHERE table_name LIKE 'PGBENCH%';

If any rows are returned that do not correspond to application tables, this is a finding.

Check Content Reference

M

Target Key

4107

Comments