They should treat each database integration as an entitlement path with its own owner, logging requirements, and offboarding step. Central identity can authenticate the user, but the resource still needs explicit policy, review, and revocation controls. The goal is to prevent access from drifting away from the directory of record.
Why This Matters for Security Teams
active directory is often treated as the source of truth for authentication, but database access still becomes risky when entitlements are copied, broadened, or left behind after the original business need ends. That is especially true for service accounts, app connectors, and automation paths that do not follow human joiner-mover-leaver workflows. The practical risk is entitlement drift across systems that security teams review too late.
Current guidance from the OWASP Non-Human Identity Top 10 and Ultimate Guide to NHIs is clear: each access path needs its own ownership, review cadence, and revocation process. NHI Management Group research shows only 20% of organisations have formal offboarding and revocation processes for API keys, while 71% of NHIs are not rotated within recommended time frames. That gap matters because database permissions rarely fail loudly; they usually persist silently until an audit, breach, or decommissioning effort exposes them.
In practice, many security teams discover overbroad database access only after a forgotten integration has already inherited production-level privileges.
How It Works in Practice
Security teams should govern Active Directory to database access as an entitlement chain, not a single login event. AD can authenticate the user or workload, but the database still needs explicit authorization logic, scope limits, and revocation controls. The operational model is closer to Zero Trust than perimeter trust: verify identity at each hop, assign only the minimum database role needed, and re-evaluate access when the business context changes. The NIST Cybersecurity Framework 2.0 supports this by tying access decisions to governance, inventory, and continuous risk management.
A practical control set usually includes:
- One named owner for every AD-to-database integration, including app teams and data owners.
- Separate records for authentication, authorization, and offboarding, rather than one shared ticket.
- Role-based access only where the database role is narrow and reviewed; otherwise, use explicit policy checks.
- Credential rotation and expiration for service accounts, certificates, and secrets tied to the integration.
- Logging that records who accessed what database, through which AD principal, and for which application path.
This is where Top 10 NHI Issues becomes operationally relevant: excessive privilege, weak rotation, and poor visibility are the same failure modes that turn directory trust into database exposure. The right question is not whether AD can authenticate the request, but whether the database entitlement still matches the current use case. These controls tend to break down when legacy applications share one directory account across multiple databases because the team cannot isolate ownership, scope, or revocation cleanly.
Common Variations and Edge Cases
Tighter entitlement controls often increase operational overhead, so organisations have to balance auditability against deployment speed. That tradeoff becomes visible when multiple databases share one application, one pipeline, or one report server, because teams are tempted to reuse a broad AD group instead of creating separate access paths.
Guidance is evolving, but current best practice is to avoid treating AD groups as permanent database entitlements unless the access pattern is stable and low risk. For ephemeral workloads, a shorter-lived model is better: issue time-bound credentials, bind them to a specific database purpose, and revoke them automatically when the task completes. Where this is not possible, compensating controls should include stronger logging, tighter review cycles, and explicit exception approval. The Ultimate Guide to NHIs — Regulatory and Audit Perspectives is useful here because auditors care less about whether AD was the entry point and more about whether access was reviewable, revocable, and tied to business necessity.
Edge cases include cross-domain trusts, delegated admin models, and databases that support shared service principals rather than per-application identities. Those environments can still be governed, but they need sharper exception tracking and faster offboarding than standard human access models. When database permissions are embedded in old scripts, ETL jobs, or reporting tools, the control model often fails because nobody can confidently say which AD identity still needs the access.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Database access drift is usually a credential rotation and revocation problem. |
| NIST CSF 2.0 | PR.AC-4 | This question is about governing and reviewing access rights across systems. |
| OWASP Agentic AI Top 10 | Shared access paths can behave like autonomous workloads when entitlements sprawl. |
Inventory each AD-linked database identity and enforce rotation, expiry, and offboarding on a fixed cadence.
Related resources from NHI Mgmt Group
- How should security teams govern MongoDB users with roles across multiple databases?
- How should security teams govern Active Directory service accounts?
- How should security teams govern MySQL user access across many instances?
- How should teams govern PostgreSQL access when Active Directory is the identity source?