By NHI Mgmt Group Editorial TeamBased on Cerbos: “Modernizing legacy application authorization: why it’s your biggest security blind spot” (April 14, 2026)

TL;DR: Legacy systems often retain weak or inconsistent authorization because teams cannot safely modify them, leaving audit gaps, local accounts, and unchecked access paths in place, according to Cerbos. The practical shift is moving governance to a gateway layer so identity, policy, and audit coverage can extend to applications that cannot be rewritten.


At a glance

What this is: This is an analysis of how gateway-level authorization can govern legacy applications that cannot be rewritten, with the key finding that application changes are not required to extend policy and audit coverage.

Why it matters: It matters because IAM and security teams still need enforceable authorization, auditability, and lifecycle control over older business-critical systems that remain in production long after their original design assumptions expired.

By the numbers:

  • Credential abuse accounted for 22% of all confirmed breaches in the Verizon 2025 DBIR, cited by Cerbos.
  • SANS named authorization sprawl one of the top five most dangerous emerging attack techniques at RSAC 2025, cited by Cerbos.

Context

Legacy application authorization becomes a governance problem when the business still depends on software that cannot be safely rewritten. In those environments, access rules are often embedded in old code, spread across local accounts, or left inconsistent across many systems, which leaves IAM teams with control objectives they cannot satisfy inside the application itself.

The article argues that the real gap is not understanding how authorization should work, but the inability to impose modern policy and audit discipline on systems that were built before centralized identity governance was expected. For security and IAM teams, that turns legacy apps into long-lived exceptions that undermine JML, audit evidence, and Zero Trust enforcement.


Key questions

Q: What breaks when legacy applications cannot support modern authentication methods?

A: Organisations often create permanent exceptions, alternate login paths, or password-based recovery for those systems. Over time, those exceptions become the real control plane for access. That is why legacy compatibility has to be tracked as an identity risk, not just a project dependency.

Q: Why do legacy applications create a governance gap for IAM teams?

A: Legacy applications often keep authorization logic, local accounts, and audit trails inside the application itself, which means central IAM cannot consistently enforce policy or prove access removal. The gap appears when the identity programme can change roles in the IdP but cannot reach the real access path. That is why governance looks complete on paper but fails in practice.

Q: How should security teams add authorization to legacy applications without changing code?

A: Security teams should place authorization at the request boundary, usually through a gateway or reverse proxy that evaluates policy before the application sees traffic. This lets identity, device, and risk signals control access without refactoring old code. The key is to make the boundary the enforcement point so the legacy app no longer owns the decision.

Q: What is the difference between authorization visibility and authorization control for legacy apps?

A: Visibility tells you which requests, routes, and identities are being used. Control lets you allow or deny those requests based on policy. Legacy environments usually fail because teams have neither, while modern governance needs both to support Zero Trust and compliance.


Technical breakdown

Why legacy authorization becomes ungovernable

Legacy applications often combine hardcoded access logic, local accounts, and undocumented routes or roles that predate modern identity integration. That makes authorization governance brittle because the policy state is trapped inside the application rather than expressed in a central control plane. When engineering cannot change the code, the organisation loses its ability to standardise decisions, review entitlements, and prove who accessed what. The result is not just technical debt but governance debt, because the access model cannot be inspected or enforced consistently across the estate.

Practical implication: Treat embedded authorization logic as a governance boundary that must be externalised before it can be reliably controlled.

How gateway-level authorization changes the enforcement path

A gateway pattern places policy enforcement in front of the application, so requests are authenticated and authorised before the legacy system processes them. In practice, that means an envoy or reverse proxy can call an external policy engine and allow or block traffic without requiring application code changes. This shifts the control point from static application logic to runtime decisioning, which is especially useful for systems that cannot absorb SDKs, refactoring, or new authorization libraries. The application becomes the target of enforcement, not the place where enforcement must be implemented.

Practical implication: Move enforcement to the request path when the application cannot host modern authorization logic itself.

How audit coverage extends to systems that were previously dark

Observe mode turns every request into an authorization event, which gives teams a record of who accessed which route, from which device, and under which policy outcome. That matters because legacy systems often sit outside central logging or produce evidence too weak for audit use. A consistent decision trail also reveals access patterns that role reviews alone would miss, such as sensitive routes being hit from unmanaged devices or by accounts that no longer match the expected business function. In identity governance terms, visibility becomes the prerequisite for control maturity.

Practical implication: Use request-level auditing first so you can see legacy access patterns before you try to tighten policy.


Threat narrative

Attacker objective: The objective is to retain or abuse access paths in business-critical legacy systems that central governance cannot reliably see or revoke.

  1. Entry occurs through a legacy application that still relies on local access paths, inconsistent role checks, or weak authentication hooks that central IAM cannot fully govern.
  2. Credential abuse then persists because old accounts or unmanaged routes remain reachable even after identity changes elsewhere in the environment.
  3. Impact follows as auditors, security teams, and engineering all inherit an access model that cannot be consistently proved, revoked, or reviewed.
  • Poland ArcGIS password leak 2023: An ArcGIS login emailed in 2020 was published from stolen mail in 2023 and still worked, exposing Polish military and infrastructure maps.
  • Indian government breach 2021: Sakura Samurai found exposed .git and .env files across Indian government sites, leaking 35 credential pairs, private keys and personal data.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Legacy authorization debt is a governance failure, not just technical debt. The article shows that business-critical systems can keep running for years with access logic that central IAM cannot inspect or replace. When those systems hold payroll, HR, or financial data, the governance problem is the inability to make policy portable across the estate. The practitioner implication is that authorization controls must be judged by enforceability, not by whether the application still functions.

Externalized authorization is a control-plane pattern for legacy estates. The meaningful shift here is not the proxy itself, but the relocation of authorization decisions out of code that teams cannot safely touch. That creates a consistent decision point for runtime policy, identity context, and audit evidence. For practitioners, this validates a governance model where access control is operated externally to the application lifecycle.

Identity dark matter is what auditors find after organisations confuse application ownership with access ownership. Local accounts, undocumented routes, and fragmented role logic mean the IdP can be the source of truth for authentication while the application still runs an unsupervised authorization model. That split is why JML often stops at the directory boundary. The practitioner implication is that identity governance must extend to the last mile of authorization, not stop at login.

Authorization observability becomes the first remediation step in legacy environments. Before policy can be tightened, teams need to know which routes are used, by whom, and under what conditions. A single audit trail across modern and legacy services creates the evidence base for remediation priorities and compliance response. The practitioner implication is to establish decision visibility first, then reduce access scope with evidence.

From our research library:

What this signals

Legacy estates will keep creating governance exceptions until teams stop treating authorization as an application-local concern and start treating it as a request-path control. The practical shift is from hoping old systems can be modernised in place to enforcing policy at the boundary where identity, device, and route context can still be evaluated.

Authorization observability gap: In legacy environments, the first control problem is often not denial logic but the absence of trustworthy decision records. Once teams can see who accessed what, they can decide where to tighten policy, where to retire local accounts, and where the application itself must remain a governed exception.


For practitioners

  • Map legacy applications to authorization control gaps Inventory which systems still rely on local accounts, embedded role checks, or undocumented access paths that central IAM cannot govern.
  • Externalize authorization at the request boundary Place policy enforcement in front of legacy applications so runtime decisions happen before the application processes the request.
  • Use observe mode to establish an audit baseline Collect route-level authorization decisions, user context, and device signals before changing policy so you can prove what is actually in use.
  • Reconnect JML to application-level access Make role changes in the IdP affect legacy access on the next request rather than leaving local accounts to be removed manually later.

Key takeaways

  • Legacy applications become identity governance blind spots when authorization remains embedded in code that no longer changes safely.
  • Gateway-level enforcement and request-level audit trails give IAM teams a way to govern old systems without waiting for rewrites.
  • The control objective shifts from modernising every application to making access decisions visible, enforceable, and revocable at the boundary.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5, OWASP ASVS and NIST Zero Trust (SP 800-207) set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about governing access permissions across legacy applications.
Recommendation — Apply PR.AA-05 to centralize authorization decisions and review legacy entitlements regularly.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeLegacy apps in the article retain broad access paths and manual entitlements.
Recommendation — Use AC-6 to reduce legacy application access to the minimum permissions required.
ISO/IEC 27001:2022A.5.15 — Access controlThe article focuses on access control governance for systems that cannot be rewritten.
Recommendation — Align legacy access governance with A.5.15 to make authorization decisions explicit and reviewable.
OWASP ASVSV8 — AuthorizationThe topic concerns runtime authorization controls and decision enforcement.
Recommendation — Use V8 to define authorization requirements outside legacy application code where possible.
NIST Zero Trust (SP 800-207)Policy enforcement point — Policy enforcement pointThe article centers on moving decisions to a gateway policy enforcement layer.
Recommendation — Place a policy enforcement point in front of legacy applications to enforce Zero Trust decisions.

Key terms

  • Externalized Authorization: A design pattern where access decisions are removed from application code and handled by a separate policy layer. This makes authorization easier to govern, test, audit, and reuse across services, especially when roles, attributes, and request context change frequently.
  • Authorization Observability: Authorization observability is the ability to inspect how access decisions are made and used in production. It combines metrics, trends, and decision outcomes so teams can understand policy behavior, spot anomalies, and support troubleshooting. In practice, it turns authorization from hidden application logic into a measurable operational control.
  • Identity Dark Matter: Identity dark matter is the hidden mass of old grants, unused credentials, and inherited access that exists in an environment but is not actively understood. In NHI programmes it becomes dangerous because autonomous systems can discover and reuse it at machine speed.
  • Gateway-based authorization: A pattern where access decisions are enforced at the network or API gateway rather than inside each application. For AI agents, this means the gateway becomes the checkpoint for model calls, tool discovery, and tool execution, with a separate policy engine deciding whether each request is allowed.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 10, 2026.
Updated on October 6, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org