SV-224160r508023_rule
V-224160
SRG-APP-000141-DB-000090
EP11-00-003700
CAT II
10
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.).
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.
V-224160
False
EP11-00-003700
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.
M
4107