Join our Newsletter — 33% off our NHI Course

Why do scratch-built identity systems create audit and lifecycle problems?

Because custom workflows often bury approval logic, provisioning rules, and deprovisioning steps inside local code or isolated tools. That makes it harder to prove who approved access, whether it was removed on time, and whether the same control is applied everywhere. Lifecycle governance becomes fragmented long before the organisation notices a security issue.

Why Scratch-Built Identity Logic Becomes an Audit Problem

Scratch-built identity systems usually feel efficient at first because teams can tailor approval flows, service account creation, and key rotation to a local process. The problem is that identity becomes embedded in application code, scripts, and ad hoc tooling instead of a governed control plane. Once that happens, it is difficult to prove who approved what, when access changed, or whether deprovisioning actually occurred. Guidance from the OWASP Non-Human Identity Top 10 and Top 10 NHI Issues both points to the same operational gap: unmanaged identity logic creates blind spots faster than review teams can compensate.

This is why audit evidence often becomes reconstructed after the fact from tickets, logs, and code changes instead of coming from a consistent identity record. NHI Management Group’s Ultimate Guide to NHIs — Regulatory and Audit Perspectives frames lifecycle governance as a repeatable control, not a one-off workflow. In practice, many security teams encounter missing approvals and stale access only after an incident review has already begun, rather than through intentional control testing.

How Fragmented Lifecycle Design Breaks Traceability

Identity lifecycle problems emerge when provisioning, rotation, and revocation are implemented differently across apps, environments, or teams. One service may create tokens in code, another may rely on a shared vault, and a third may use manual admin actions. That means the organisation no longer has a single source of truth for entitlements, ownership, or expiry. The result is inconsistent enforcement of least privilege and unreliable evidence for auditors.

Current best practice is to centralise lifecycle decisions while keeping application integrations lightweight. NHI Management Group recommends treating lifecycle as a governed process documented in the NHI Lifecycle Management Guide and aligning that process with the NIST Cybersecurity Framework 2.0. Practically, that means:

  • issuing each identity from a recorded owner and business purpose
  • storing approvals outside local code so they can be reviewed
  • automating expiry, rotation, and revocation with explicit timestamps
  • linking every secret or token to an application, environment, and human sponsor

In the field, this is where the numbers matter. NHI Management Group reports that only 20% of organisations have formal processes for offboarding and revoking API keys, and 71% of NHIs are not rotated within recommended time frames. That kind of gap is exactly what scratch-built systems tend to hide until a credential is exposed or a project is decommissioned. These controls tend to break down when multiple teams independently own identity code paths because no single group can prove the full lifecycle state.

Common Exceptions, Tradeoffs, and Edge Cases

Tighter identity governance often increases delivery overhead, so organisations must balance development speed against the cost of fragmented control. That tradeoff is especially visible in legacy estates, developer platforms, and internal automation where teams argue that bespoke identity code is faster than platform standardisation. There is no universal standard for every implementation detail yet, but the direction of travel is clear: identity state should be visible, testable, and revocable outside the application runtime.

Edge cases usually appear in environments that mix human and non-human access, or where third-party integrations create temporary identities that are not owned by a clear internal team. The Guide to the Secret Sprawl Challenge is useful here because many audit failures are really inventory failures: if teams cannot enumerate credentials, they cannot prove lifecycle closure. The NIST SP 800-53 Rev 5 Security and Privacy Controls reinforces the need for accountable access control, but current guidance suggests the operational challenge is less about policy intent and more about keeping implementation consistent across tools.

Scratch-built systems also struggle when rotation, offboarding, and exception handling are done manually during outages or release freezes. That creates a recurring pattern of temporary access becoming permanent. In practice, teams usually discover the weakest link after a failed deprovisioning step, not during design review.

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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Addresses weak lifecycle and ownership controls for non-human identities.
OWASP Agentic AI Top 10 Identity workflows in autonomous systems need runtime governance and traceability.
CSA MAESTRO Covers lifecycle governance for machine and agent identities in AI systems.
NIST CSF 2.0 PR.AC-1 Identity management and access accountability are central to traceable controls.
NIST AI RMF GOVERN Governance is needed where automated identity workflows create hidden risk.

Inventory every NHI, assign ownership, and enforce documented lifecycle steps outside application code.