STIGQter STIGQter: STIG Summary:

Crunchy Data PostgreSQL Security Technical Implementation Guide

Version: 1

Release: 1 Benchmark Date: 20 Nov 2020

CheckedNameTitle
SV-233511r617335_rulePostgreSQL must be configured to prohibit or restrict the use of organization-defined functions, ports, protocols, and/or services, as defined in the PPSM CAL and vulnerability assessments.
SV-233512r617333_rulePostgreSQL must produce audit records containing sufficient information to establish the outcome (success or failure) of the events.
SV-233513r617333_ruleSecurity-relevant software updates to PostgreSQL must be installed within the time period directed by an authoritative source (e.g., IAVM, CTOs, DTMs, and STIGs).
SV-233514r617333_ruleThe audit information produced by PostgreSQL must be protected from unauthorized modification.
SV-233515r617333_rulePostgreSQL must integrate with an organization-level authentication/access mechanism providing account management and automation for all users, groups, roles, and any other principals.
SV-233516r617333_rulePostgreSQL must provide non-privileged users with error messages that provide information necessary for corrective actions without revealing information that could be exploited by adversaries.
SV-233517r617333_rulePrivileges to change PostgreSQL software modules must be limited.
SV-233518r617333_rulePostgreSQL must limit privileges to change functions and triggers, and links to software external to PostgreSQL.
SV-233519r617333_ruleIf passwords are used for authentication, PostgreSQL must transmit only encrypted representations of passwords.
SV-233520r617333_rulePostgreSQL must enforce approved authorizations for logical access to information and system resources in accordance with applicable access control policies.
SV-233521r617333_rulePostgreSQL must associate organization-defined types of security labels having organization-defined security label values with information in transmission.
SV-233522r617333_rulePostgreSQL must limit the number of concurrent sessions to an organization-defined number per user for all accounts and/or account types.
SV-233523r617333_ruleThe role(s)/group(s) used to modify database structure (including but not necessarily limited to tables, indexes, storage, etc.) and logic modules (functions, trigger procedures, links to software external to PostgreSQL, etc.) must be restricted to authorized users.
SV-233524r617333_rulePostgreSQL must uniquely identify and authenticate non-organizational users (or processes acting on behalf of non-organizational users).
SV-233525r617333_rulePostgreSQL must associate organization-defined types of security labels having organization-defined security label values with information in storage.
SV-233526r617333_rulePostgreSQL must check the validity of all data inputs except those specifically identified by the organization.
SV-233527r617333_rulePostgreSQL and associated applications must reserve the use of dynamic code execution for situations that require it.
SV-233528r617333_rulePostgreSQL and associated applications, when making use of dynamic code execution, must scan input data for invalid values that may indicate a code injection attack.
SV-233529r617333_rulePostgreSQL must allocate audit record storage capacity in accordance with organization-defined audit record storage requirements.
SV-233530r617333_rulePostgreSQL must enforce discretionary access control policies, as defined by the data owner, over defined subjects and objects.
SV-233531r617333_ruleThe audit information produced by PostgreSQL must be protected from unauthorized deletion.
SV-233532r617333_rulePostgreSQL must record time stamps, in audit records and application data that can be mapped to Coordinated Universal Time (UTC, formerly GMT).
SV-233533r617333_rulePostgreSQL must reveal detailed error messages only to the ISSO, ISSM, SA, and DBA.
SV-233534r617333_rulePostgreSQL must allow only the Information System Security Manager (ISSM), or individuals or roles appointed by the ISSM, to select which auditable events are to be audited.
SV-233535r617333_rulePostgreSQL must provide an immediate alert to appropriate support staff of all audit log failures.
SV-233536r617333_rulePostgreSQL must be configurable to overwrite audit log records, oldest first (First-In-First-Out [FIFO]), in the event of unavailability of space for more audit log records.
SV-233537r617333_rulePostgreSQL must by default shut down upon audit failure, to include the unavailability of space for more audit log records; or must be configurable to shut down upon audit failure.
SV-233538r617333_rulePostgreSQL must maintain the confidentiality and integrity of information during reception.
SV-233539r617333_ruleDatabase objects (including but not limited to tables, indexes, storage, trigger procedures, functions, links to software external to PostgreSQL, etc.) must be owned by database/DBMS principals authorized for ownership.
SV-233540r617333_ruleThe PostgreSQL software installation account must be restricted to authorized users.
SV-233541r617333_ruleDatabase software, including PostgreSQL configuration files, must be stored in dedicated directories separate from the host OS and other applications.
SV-233542r617333_rulePostgreSQL must include additional, more detailed, organization-defined information in the audit records for audit events identified by type, location, or subject.
SV-233543r617333_ruleExecution of software modules (to include functions and trigger procedures) with elevated privileges must be restricted to necessary cases only.
SV-233544r617333_ruleWhen invalid inputs are received, PostgreSQL must behave in a predictable and documented manner that reflects organizational and system objectives.
SV-233545r617333_rulePostgreSQL must utilize centralized management of the content captured in audit records generated by all components of PostgreSQL.
SV-233546r617333_rulePostgreSQL must isolate security functions from non-security functions.
SV-233547r617333_rulePostgreSQL must produce audit records of its enforcement of access restrictions associated with changes to the configuration of PostgreSQL or database(s).
SV-233548r617333_rulePostgreSQL must disable network functions, ports, protocols, and services deemed by the organization to be nonsecure, in accord with the Ports, Protocols, and Services Management (PPSM) guidance.
SV-233549r617333_ruleThe audit information produced by PostgreSQL must be protected from unauthorized read access.
SV-233550r617333_ruleWhen updates are applied to PostgreSQL software, any software components that have been replaced or made unnecessary must be removed.
SV-233551r617333_rulePostgreSQL must generate audit records when categorized information (e.g., classification levels/security levels) is accessed.
SV-233552r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to access security objects occur.
SV-233553r617333_rulePostgreSQL must generate audit records when unsuccessful logons or connection attempts occur.
SV-233554r617333_rulePostgreSQL must generate audit records showing starting and ending time for user access to the database(s).
SV-233555r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to modify security objects occur.
SV-233556r617333_rulePostgreSQL must generate audit records when privileges/permissions are added.
SV-233557r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to delete categorized information (e.g., classification levels/security levels) occur.
SV-233558r617333_rulePostgreSQL must generate audit records when successful logons or connections occur.
SV-233559r617333_rulePostgreSQL must generate audit records when security objects are deleted.
SV-233560r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to retrieve privileges/permissions occur.
SV-233561r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to delete privileges/permissions occur.
SV-233562r617333_rulePostgreSQL must be able to generate audit records when privileges/permissions are retrieved.
SV-233563r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to modify categorized information (e.g., classification levels/security levels) occur.
SV-233564r617333_rulePostgreSQL must generate audit records when unsuccessful accesses to objects occur.
SV-233565r617333_rulePostgreSQL must generate audit records for all privileged activities or other system-level access.
SV-233566r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to access categorized information (e.g., classification levels/security levels) occur.
SV-233567r617333_rulePostgreSQL must be able to generate audit records when security objects are accessed.
SV-233568r617333_rulePostgreSQL must generate audit records when privileges/permissions are deleted.
SV-233569r617333_rulePostgreSQL must generate audit records when concurrent logons/connections by the same user from different workstations occur.
SV-233570r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to delete security objects occur.
SV-233571r617333_rulePostgreSQL must generate audit records when privileges/permissions are modified.
SV-233572r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to execute privileged activities or other system-level access occur.
SV-233573r617333_rulePostgreSQL must generate audit records when security objects are modified.
SV-233574r617333_rulePostgreSQL must generate audit records when categories of information (e.g., classification levels/security levels) is modified.
SV-233575r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to modify privileges/permissions occur.
SV-233576r617333_rulePostgreSQL must generate audit records when unsuccessful attempts to add privileges/permissions occur.
SV-233577r617333_rulePostgreSQL, when utilizing PKI-based authentication, must validate certificates by performing RFC 5280-compliant certification path validation.
SV-233578r617333_rulePostgreSQL must produce audit records containing sufficient information to establish where the events occurred.
SV-233579r617333_rulePostgreSQL must maintain the confidentiality and integrity of information during preparation for transmission.
SV-233580r617333_rulePostgreSQL must be configured to provide audit record generation for DoD-defined auditable events within all DBMS/database components.
SV-233581r617333_rulePostgreSQL must generate time stamps, for audit records and application data, with a minimum granularity of one second.
SV-233582r617333_rulePostgreSQL must produce audit records containing sufficient information to establish the identity of any user/subject or process associated with the event.
SV-233583r617333_rulePostgreSQL must implement NIST FIPS 140-2 validated cryptographic modules to generate and validate cryptographic hashes.
SV-233584r617333_rulePostgreSQL must use NSA-approved cryptography to protect classified information in accordance with the data owner’s requirements.
SV-233585r617333_rulePostgreSQL must implement NIST FIPS 140-2 validated cryptographic modules to protect unclassified information requiring confidentiality and cryptographic protection, in accordance with the data owner’s requirements.
SV-233586r617333_rulePostgreSQL must protect the confidentiality and integrity of all information at rest.
SV-233587r617333_rulePostgreSQL must prohibit user installation of logic modules (functions, trigger procedures, views, etc.) without explicit privileged status.
SV-233588r617333_rulePostgreSQL must separate user functionality (including user interface services) from database management functionality.
SV-233589r617333_rulePostgreSQL must initiate session auditing upon startup.
SV-233590r617333_rulePostgreSQL must implement cryptographic mechanisms to prevent unauthorized modification of organization-defined information at rest (to include, at a minimum, PII and classified information) on organization-defined information system components.
SV-233591r617333_rulePostgreSQL must produce audit records containing sufficient information to establish the sources (origins) of the events.
SV-233592r617333_ruleUnused database components, PostgreSQL software, and database objects must be removed.
SV-233593r617333_ruleAccess to external executables must be disabled or restricted.
SV-233594r617333_ruleUnused database components that are integrated in PostgreSQL and cannot be uninstalled must be disabled.
SV-233595r617333_rulePostgreSQL must associate organization-defined types of security labels having organization-defined security label values with information in process.
SV-233596r617333_ruleIf passwords are used for authentication, PostgreSQL must store only hashed, salted representations of passwords.
SV-233597r617333_rulePostgreSQL must enforce access restrictions associated with changes to the configuration of PostgreSQL or database(s).
SV-233598r617333_rulePostgreSQL must protect against a user falsely repudiating having performed organization-defined actions.
SV-233599r617333_ruleThe system must provide a warning to appropriate support staff when allocated audit record storage volume reaches 75 percent of maximum audit record storage capacity.
SV-233600r617339_rulePostgreSQL must provide the means for individuals in authorized roles to change the auditing to be performed on all application components, based on all selectable event criteria within organization-defined time thresholds.
SV-233601r617333_rulePostgreSQL must require users to reauthenticate when organization-defined circumstances or situations require reauthentication.
SV-233602r617333_rulePostgreSQL must enforce authorized access to all PKI private keys stored/utilized by PostgreSQL.
SV-233603r617340_rulePostgreSQL must only accept end entity certificates issued by DoD PKI or DoD-approved PKI Certification Authorities (CAs) for the establishment of all encrypted sessions.
SV-233604r617333_rulePostgreSQL must produce audit records containing sufficient information to establish what type of events occurred.
SV-233605r617333_rulePostgreSQL must implement cryptographic mechanisms preventing the unauthorized disclosure of organization-defined information at rest on organization-defined information system components.
SV-233606r617333_rulePostgreSQL must invalidate session identifiers upon user logout or other session termination.
SV-233607r617333_rulePostgreSQL must protect its audit features from unauthorized access.
SV-233608r617333_rulePostgreSQL must produce audit records containing time stamps to establish when the events occurred.
SV-233609r617333_rulePostgreSQL must protect its audit features from unauthorized removal.
SV-233610r617333_rulePostgreSQL must off-load audit data to a separate log management facility; this must be continuous and in near real time for systems with a network connection to the storage facility and weekly or more often for stand-alone systems.
SV-233611r617333_rulePostgreSQL must maintain the authenticity of communications sessions by guarding against man-in-the-middle attacks that guess at Session ID values.
SV-233612r617333_rulePostgreSQL must uniquely identify and authenticate organizational users (or processes acting on behalf of organizational users).
SV-233613r617333_rulePostgreSQL must automatically terminate a user session after organization-defined conditions or trigger events requiring session disconnect.
SV-233614r617333_rulePostgreSQL must prevent non-privileged users from executing privileged functions, to include disabling, circumventing, or altering implemented security safeguards/countermeasures.
SV-233615r617333_rulePostgreSQL must map the PKI-authenticated identity to an associated user account.
SV-233616r617333_ruleDatabase contents must be protected from unauthorized and unintended information transfer by enforcement of a data-transfer policy.
SV-233617r617333_ruleAccess to database files must be limited to relevant processes and to authorized, administrative users.
SV-233618r617333_rulePostgreSQL must protect its audit configuration from unauthorized modification.
SV-233619r617333_rulePostgreSQL must use NIST FIPS 140-2 validated cryptographic modules for cryptographic operations.
SV-233620r617333_ruleAudit records must be generated when categorized information (e.g., classification levels/security levels) is deleted.
SV-233621r617333_rulePostgreSQL must generate audit records when successful accesses to objects occur.
SV-233622r617333_rulePostgreSQL must generate audit records for all direct access to the database(s).
SV-233623r617333_ruleThe DBMS must be configured on a platform that has a NIST certified FIPS 140-2 installation of OpenSSL.