Database Configuration Hardening
Database settings diverging from benchmark without creating direct exposure.
- Remediation SLA
- 90 days
- Tier
- 3 · Best Practices
- Domain
- Data
- Escalation
- Reviewed at quarterly planning; may be formally deferred
What this finding is
Database configuration departs from CIS Benchmark or vendor hardening guidance — sample schemas retained, verbose error messages returned to clients, audit logging disabled, unnecessary extensions or stored procedures enabled, or default ports retained where the benchmark advises otherwise.
Why it is Tier 3
These settings determine how much an attacker gains from a partial compromise. Verbose errors accelerate injection exploitation; disabled audit logging removes the record of what was accessed; unnecessary extensions provide privilege-escalation paths. None is exploitable alone, all reduce the effort required once another finding is exploited.
Most common misclassification
How to detect it
- 1Run a CIS Benchmark assessment for the specific database engine and version.
- 2Confirm error verbosity is suppressed for client-facing responses.
- 3Check whether database audit logging is enabled and forwarded to central storage.
- 4Inventory enabled extensions and stored procedures against actual application requirements.
How to remediate it
Steps are ordered. The first step is the one that reduces exposure fastest, which is not always the one that closes the finding.
- 1Apply the benchmark to a non-production instance first to identify application breakage before touching production.
- 2Suppress detailed errors to clients while retaining full detail in server-side logs.
- 3Enable audit logging for administrative actions and regulated-data access, forwarding to the central store.
- 4Remove sample schemas, unused extensions, and unnecessary stored procedures.
- 5Encode the hardened configuration in the provisioning template so new instances inherit it.
How to verify the fix
A benchmark assessment reports the target pass rate, client-facing errors reveal no schema detail, and audit events appear in central log storage.
Mappings
Attacker techniques
- T1213Data from Information Repositories
Weakness
- CWE-209Generation of Error Message Containing Sensitive Information
Compliance mappings
- CIS Benchmarksdatabase engine benchmark
- PCI DSS v4.02.2.1 — configuration standards
- ISO/IEC 27001:2022A.8.9 — configuration management