The clearest signs are functions still running older runtime versions, functions not appearing in routine asset reviews, and a gap between platform deprecation schedules and internal upgrade cycles. Teams should also watch for third party libraries that are left unchanged, because those dependencies can compound the risk. A stable serverless estate depends on repeated verification, not one time setup.
How to tell when Lambda runtime drift is becoming unsafe
Unsafe drift is usually visible before it becomes a failure. The clearest warning signs are functions still pinned to older runtime versions, inventory gaps that leave functions out of routine review, and internal upgrade work that lags behind platform deprecation notices. Treat unchanged third party libraries as part of the same drift pattern, because runtime age and dependency age often move together.
What drift looks like in the function estate
Runtime drift is not only a version number problem. It also shows up when the function estate becomes hard to account for, hard to update, or hard to explain during a review. That usually means the estate has grown faster than the operational process around it, so the platform, codebase, and dependency chain are no longer moving in step.
The practical signal is inconsistency. Some functions may be current while others remain on earlier runtimes for months. Some owners may update regularly, while others rely on manual reminders. In a healthy serverless estate, runtime upgrades, library refreshes, and asset review should move through the same control loop, not as separate tasks that can quietly diverge.
Where drift is persistent, the problem is often visibility rather than intent. A function that is not appearing in routine asset reviews is effectively outside normal governance, even if it still works. That makes it much easier for an unsafe runtime to survive long past the point where the team thinks it has already standardised the environment. NIST Cybersecurity Framework 2.0 is useful here because it reinforces asset visibility, maintenance, and recovery as ongoing duties rather than one-off events.
Why older runtimes and stale dependencies matter
Older Lambda runtimes become unsafe when they outlive the support window, because the gap between supported and deployed versions widens operational exposure. Even if the function logic has not changed, the runtime may have accumulated known weaknesses, reduced vendor support, or incompatibilities with current libraries and security controls. Once that happens, the issue is no longer just technical debt, it becomes a maintenance and resilience problem.
Third party libraries are a second pressure point. A library can keep a function operational while quietly carrying the same problems as the runtime itself, such as unpatched defects, outdated cryptography, or insecure defaults. In serverless environments, teams sometimes focus on the function body and forget the dependency layer, which means the real upgrade burden is larger than the runtime label suggests.
That is why runtime drift should be reviewed alongside the deployment package, not in isolation. For containerised or packaged workloads, NIST SP 800-190 Container Security is a useful analogue because it treats image contents, runtime behaviour, and update discipline as a connected risk surface. The same logic applies to functions: the execution environment and the shipped dependencies both need continuous attention.
Where runtime drift turns into operational risk
Unsafe drift matters because it creates a narrow but real path to failure. A function can keep running long after the organisation has lost confidence in its runtime, which means the team may discover the problem only during a deprecation event, an incident, or a compliance review. The longer the drift persists, the more likely it is that multiple functions share the same stale baseline.
Once that happens, remediation becomes a batch problem instead of a routine one. Teams may have to upgrade many functions at once, retest dependencies under time pressure, and deal with breakage that could have been spread across normal release cycles. The strongest indicator that the risk is moving from theoretical to material is when the internal upgrade cadence is visibly behind the platform’s deprecation schedule.
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 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | ID.AM-01 — Physical Devices and Systems Inventoried | Runtime drift is easier to miss when functions are absent from asset review. |
| GV.OV-01 — Cybersecurity Oversight | Unsafe runtime drift is a governance gap when upgrades lag deprecation schedules. | |
| PR.IP-12 — A maintenance process is in place and managed. | Unsafe drift reflects weak maintenance cadence for runtimes and dependencies. | |
| Recommendation — Maintain an accurate inventory of all Lambda functions and their runtime versions. Track runtime upgrade posture as an overseen control, not an ad hoc task. Use a managed maintenance cycle to keep runtimes and libraries current. | ||
| NIST SP 800-53 Rev 5 | CM-2 — Baseline Configuration | Runtime versions and dependency sets need a current baseline to detect drift. |
| CM-6 — Configuration Settings | Drift becomes unsafe when functions diverge from approved runtime settings. | |
| SI-2 — Flaw Remediation | Older runtimes and stale libraries require timely remediation to reduce exposure. | |
| Recommendation — Define and enforce a baseline for approved Lambda runtimes and libraries. Standardise approved runtime settings and verify they remain in force. Patch or upgrade runtimes and dependencies on a repeatable remediation schedule. | ||
| ISO/IEC 27001:2022 | A.8.9 — Configuration management | Lambda runtime drift is a configuration-management issue requiring controlled change. |
| A.8.8 — Management of technical vulnerabilities | Unsupported runtimes and stale libraries create technical vulnerability exposure. | |
| Recommendation — Control function runtime changes through formal configuration management. Track and remediate runtime and dependency vulnerabilities before support lapses. | ||
| CIS Controls v8 | CIS-4 — Secure Configuration of Enterprise Assets and Software | Lambda runtime baselines and dependencies are secure-configuration concerns. |
| Recommendation — Harden and verify Lambda runtime configurations against a standard baseline. | ||
Practitioner Guidance
What to verify: Confirm that every Lambda function is mapped to an owner, current runtime version, and dependency inventory. If any function cannot be matched to a recent review record, treat it as a governance gap rather than a harmless omission.
Implementation sequence: Review runtime version first, then compare the function’s dependency set against the supported runtime path, then check whether the function appears in the normal asset and exception review cycle. This sequence helps separate simple ageing from functions that are already outside control.
Common mistake: Teams often assume that a successful invocation means the runtime is acceptable. Operational success does not prove safety when the function is sitting on an unsupported or near-deprecated platform version.
Practitioner takeaway: The key question is not whether the function still works, but whether it is still being governed on the same schedule as the platform it depends on.
Related resources from NHI Mgmt Group
- What are the signs that GKE RBAC is drifting into an unsafe state?
- What is the difference between managing Lambda functions manually and managing them through Terraform state?
- What are the signs that an MCP deployment is drifting into unsafe privilege and visibility gaps?
- What are the signs that API definitions and runtime behaviour are drifting apart?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org