DBMS Security Facilities: Protecting Database Data Integrity and Confidentiality

A DBMS security facility encompasses the mechanisms, policies, and controls that protect database confidentiality, integrity, and availability (CIA triad).

Core Security Components

1. Authentication

  • Verifies user identity: passwords, MFA, biometrics, certificates, Kerberos, SSO integration.
  • Account lockout, password complexity, rotation policies.

2. Authorization

  • Grants permissions post-authentication: GRANT/REVOKE on objects (tables, views, procs).
  • Role-Based Access Control (RBAC): roles = job functions; users assigned roles.
  • Privilege levels: SELECT, INSERT, UPDATE, DELETE, EXECUTE, ALTER, ADMIN.

3. Access Control Models

  • DAC (Discretionary): Owner grants access (standard SQL).
  • MAC (Mandatory): Security labels (Top Secret, etc.) – military/gov.
  • RBAC (Role-Based): Most common enterprise model.
  • ABAC (Attribute-Based): Dynamic policies (time, location, data sensitivity).

4. Encryption

  • At rest: TDE (Transparent Data Encryption), column-level, tablespace.
  • In transit: TLS 1.2+ for client-server, replication, backup.
  • Key management: HSM, KMS, rotation, separation of duties.

5. Auditing and Monitoring

  • Audit trails: logins, DDL/DML, failed attempts, privilege changes.
  • Fine-grained auditing (FGA) for sensitive columns.
  • SIEM integration (Splunk, QRadar, Sentinel) for real-time alerts.

6. Backup and Recovery

  • Automated full/differential/log backups.
  • Point-in-time recovery (PITR).
  • Offsite/immutable storage (ransomware protection).
  • Regular restore testing.

7. Network Security

  • Private subnets, VPCs, security groups, NACLs.
  • Database firewalls / SQL injection prevention (WAF, parameterized queries).
  • Private endpoints, no public IP.

8. Vulnerability Management

  • Patch management (CPU/PSU for Oracle, CU for SQL Server, etc.)
  • Configuration hardening (CIS Benchmarks, STIGs).
  • Penetration testing, vulnerability scanning.

9. Data Masking / Redaction

  • Dynamic (query-time) or static (copy) masking for non-prod, dev, analytics.
  • Format-preserving encryption, tokenization.

10. Compliance Alignment

  • PCI DSS (Req 3, 7, 8, 10), HIPAA (164.312), GDPR (Art 32), SOX.
  • Audit reports, attestations, certifications.

A defense-in-depth approach combining these layers is essential for modern data protection.

HMOs - Related Articles