CYBER LIBRARY
Explore the bootcamp
Connected systemsIntermediate

Database hardening

Reduce database exposure through narrowly scoped application identities, protected administration, maintained configuration, and tested data recovery.

3 min readUpdated 12 Oct 20265 connections
Markdown

What it means

Database hardening reduces unnecessary exposure and authority in the systems storing application data. It covers network reachability, identity, permissions, secure transport, configuration, and maintenance. Injection defenses remain an application concern even when the database itself is configured carefully.

A practical example

An application connects through a dedicated identity with only the operations it needs. Database administration is restricted to approved management paths, backups receive appropriate protection, and the service does not expose its management interface publicly.

What to check

Review supported versions, network access, authentication, service permissions, and backup handling. Remove unused features and verify that diagnostic or maintenance paths do not bypass the intended access restrictions.

A common pitfall

A database reachable only from an internal network can still be abused through a compromised application or overprivileged service identity.

Think it through

Why separate application and administrator accounts?

Answer: The application should not inherit broad management authority when its ordinary work requires only specific data operations.

Begin with the operations the application needs

Imagine a fictional academy application reads courses and updates learner progress. Its database identity needs those operations, but it does not normally need to create administrators or alter every schema. Write the required operations before granting a role.

A separate migration workflow can use different, controlled authority when schema changes are needed. Combining routine application work and powerful maintenance in one permanent credential makes a compromised application more consequential.

Internal reachability is not the whole threat model

Suppose the database accepts connections only from the application network. That removes some direct paths, but an attacker controlling the application may still use its legitimate database identity. Review network restrictions and effective database permissions together.

The database also has backup, replication, administration, and diagnostic paths. Protecting the primary listener while leaving a backup export widely accessible can expose the same data through another route.

Maintenance should preserve a recoverable service

Track supported software, configuration changes, and credential replacement. A security update can affect compatibility or availability, so test the application's important operations and keep an appropriate recovery plan. Recovery needs access to the necessary keys and credentials as well as the data files.

For a lab exercise, define three identities: the application, a migration job, and a database administrator. List only the operations each requires and identify how each is authenticated. Then describe a compromised application and state which actions remain blocked by the separation.

Finish with a restore test using non-sensitive sample data. Explain how the team verifies both data integrity and application behavior after recovery. This demonstrates that hardening is an ongoing operational design, not a one-time checklist or an assumption that an internal address makes the stored information safe.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

OWASP: Database Security
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

5 notes · 4 connections
100%
Database hardening · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (5)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.