STIGUI
V-259176CAT I — High severitySV-259176r1264160_rule

The vCenter PostgreSQL service must encrypt passwords for user authentication.

Rule version VCPG-80-000038 · STIG v2 · 2026-08-26

Discussion

The DoW standard for authentication is DoW-approved PKI certificates.

Authentication based on User ID and Password may be used only when it is not possible to employ a PKI certificate and requires AO approval.

In such cases, database passwords stored in clear text, using reversible encryption, or using unsalted hashes would be vulnerable to unauthorized disclosure. Database passwords must always be in the form of one-way, salted hashes when stored internally or externally to the database management system (DBMS).

Check

At the command prompt, run the following command:

$ /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW password_encryption;"

Expected result:

scram-sha-256

If the output does not match the expected result, this is a finding.

Note: Prior to Update 2, "md5" is the expected result.

Fix

A script is included with vCenter to generate a PostgreSQL STIG configuration.

At the command prompt, run the following commands:

# chmod +x /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py
# /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py --action stig_enable --pg-data-dir /storage/db/vpostgres
# chmod -x /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py

Restart the PostgreSQL service by running the following command:

# vmon-cli --restart vmware-vpostgres

Identifiers

Group ID
V-259176
Group title
SRG-APP-000171-DB-000074
Rule ID
SV-259176r1264160_rule
Check ID
C-62916r935430_chk
Fix ID
F-62825r935431_fix