Runtime call stacks improve triage by showing exactly where vulnerable code was invoked and which path led there. That context helps teams confirm impact, route work to the right owners, and automate follow-up through APIs. It also reduces back-and-forth with developers because the finding is tied to concrete execution rather than severity scores alone.
Why This Matters for Security Teams
Runtime call stacks turn a finding from “something is vulnerable” into “this vulnerable path was actually executed here.” That changes triage from abstract severity scoring to evidence-led prioritisation, which matters when security teams are sorting through large codebases, shared libraries, and noisy scanner output. It also helps answer the questions that usually slow remediation: which service owned the call, whether the code path is reachable, and whether the issue belongs in a product backlog or an incident queue.
This is especially useful in environments with heavy secrets exposure and supply chain churn. NHIMG research on the Ultimate Guide to Non-Human Identities shows how often organisations struggle with visibility, rotation, and offboarding for machine identities, while the Guide to the Secret Sprawl Challenge highlights how fragmented secret handling makes remediation slower and less reliable. Runtime evidence helps teams focus on the paths that actually matter instead of treating every finding as equally urgent. In practice, many security teams discover the real owner only after a vulnerable call path has already been exercised in production.
How It Works in Practice
At a workflow level, runtime call stacks add execution context to a vulnerability record. Instead of only storing package name, version, and severity, the finding includes the concrete stack trace or span chain that reached the vulnerable function. That lets triage teams confirm whether the issue is reachable, identify the service boundary where it surfaced, and route it to the correct engineer without extended manual investigation. Current guidance suggests pairing this with change metadata, deployment IDs, and workload identity so the finding is tied to both code and runtime ownership.
Operationally, the pattern is strongest when runtime telemetry is fed into ticketing or SOAR workflows. For example:
- the scanner or sensor records the vulnerable function, call site, and execution path;
- the platform matches the stack to the deployed artifact and owning team;
- the ticket includes proof of reachability, environment, and last-seen timestamp;
- remediation can be auto-routed to the correct repository or service owner;
- follow-up APIs can reopen, suppress, or close the issue when the vulnerable path disappears.
That approach aligns well with evidence-based controls in CIS Controls v8 and the control emphasis in NIST SP 800-53 Rev 5 Security and Privacy Controls, particularly where organisations need traceability from detection to remediation. It also complements NHIMG’s Top 10 NHI Issues perspective, because machine-driven services often generate the most confusing ownership chains. These controls tend to break down when tracing is unavailable in ephemeral serverless workloads because the vulnerable execution path disappears before the stack can be captured.
Common Variations and Edge Cases
Tighter runtime tracing often increases telemetry volume and operational overhead, requiring organisations to balance richer evidence against cost, performance, and privacy constraints. Best practice is evolving here, because there is no universal standard for how much stack detail should be retained, especially when traces may expose internal code structure or sensitive request data.
Some teams use sampled stacks only for high-risk packages, while others retain full call-chain detail for internet-facing services and redact user input. That tradeoff is usually reasonable, but it means the workflow must distinguish between “verified reachable” and “insufficient telemetry.” In microservices, a single vulnerable request may cross several services, so ownership should be assigned to the service that actually invoked the vulnerable code, not simply the team that owns the package. In legacy monoliths, the opposite issue appears: stacks are often available but too coarse to pinpoint a responsible team without additional code ownership mapping.
For machine identities and agentic workloads, runtime stacks are most valuable when paired with workload identity and secret provenance, because execution context alone does not explain why a service had access in the first place. That is where runtime triage intersects with secret hygiene and identity governance, not just vulnerability management. Where stack collection is incomplete, highly distributed, or blocked by short-lived execution contexts, the method loses precision and remediation reverts to slower manual investigation.
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 AI RMF and 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 | Runtime traces help confirm which NHI path actually exercised vulnerable code. |
| OWASP Agentic AI Top 10 | A2 | Agentic workloads need runtime context to trace unsafe tool and code execution. |
| CSA MAESTRO | MAESTRO-1 | MAESTRO emphasises visibility into runtime behaviour for agent and workload risk. |
| NIST AI RMF | AI RMF supports governance decisions based on observable system behaviour. | |
| NIST CSF 2.0 | RS.AN-3 | Call stacks improve analysis by tying findings to concrete execution evidence. |
Instrument runtime paths to identify, contain, and remediate risky execution flows.
Related resources from NHI Mgmt Group
- How do automation workflows improve vulnerability remediation governance?
- Why do disconnected code scanning and runtime testing workflows slow down vulnerability remediation?
- How do remediation workflows reduce vulnerability management noise?
- Why do exploited-vulnerability trackers improve remediation decisions?