Identity Engineering
Identity Attacks

A leaked shared database credential

How do you attribute database actions to a workload and manage its access lifecycle?

Hypothetical scenario · L2 · Analyze · 14 minute investigation

D01 · Identity Fundamentals · D03 · Authorization & Access Control · D07 · Identity Governance & Administration (IGA) · D09 · Non-Human Identity (NHI) · D10 · Cloud & Workload Identity

Scenario

A fictional application uses a shared database login across multiple services. Teams want distinct ownership and less persistent credential exposure.

Learning outcomes

  • Inventory workload and database identities with accountable owners.
  • Design credential issuance, rotation and revocation.
  • Produce a service-to-database permission table and a revocation test plan.

Engineering investigation

  1. Inventory each workload, owner, database role and required operation.
  2. Evaluate supported workload authentication or a credential broker; verify compatibility before choosing a design.
  3. Test renewal, connection pooling, expiry, revocation and the audit trail.

Fictional attack path

A shared service credential leaks and enables database access without clear workload attribution. Inspect secret exposure, database privileges and query audit.

Detection and validation proposal

Collect identity, credential issuance, policy and resource audit events. In an authorized lab, run one allowed request and one denied request. Verify the result and attribution.

Proposed trust flow

  1. Application workload
  2. Identity / credential broker
  3. Database role
  4. Query audit

This flow is an editorial model to investigate, not a verified deployment.

Engineering trade-off

Credential expiry and existing database connection lifetimes are different controls; validate both.

Verified source statement

SPIFFE specifies workload identities and identity documents used in workload authentication. Database integration depends on the selected database and implementation.

Primary reference: SPIFFE · Overview. Reviewed 3 November 2026.

Only the bounded statement above is source-backed. The company context, investigation, controls and flow are teaching proposals. Confirm support and behavior in your chosen environment.

Produce evidence

Produce a service-to-database permission table and a revocation test plan.

Use L1 to explain the mechanism, L2 to analyze trade-offs, L3 to implement and test, and L4 to design and justify. Reading alone does not establish competence.

Follow the same question

On this page