TL;DR: Application security testing is moving beyond traditional scanning as AI-driven development, complex supply chains, and expanding API surfaces create more exposure than manual review can track, according to Apiiro. The practical shift is toward correlated code-to-runtime visibility and guided remediation, where teams prioritise reachable risk instead of chasing noisy findings.
At a glance
What this is: This is an analysis of how modern application security testing is evolving from point-in-time scanning into exposure management across code, dependencies, APIs, and runtime behaviour.
Why it matters: It matters to IAM practitioners because software risk increasingly intersects with identity, secrets, privilege paths, and service-to-service access in production systems.
By the numbers:
- In 2024, the average data breach cost increased 10% year over year to $4.88 million.
👉 Read Apiiro's full guide to application security testing tools for 2026
Context
Application security testing is a governance problem as much as a tooling problem. Development velocity now outpaces manual review, while AI-generated code, dependency churn, and expanding API surfaces make it harder to see which issues are actually reachable or exploitable. In that environment, scanning alone is not enough because it produces findings without enough context to decide what matters first.
The identity angle is real even in a broader application security article. Modern applications depend on service accounts, tokens, secrets, certificates, and API authentication paths, which means exposure often sits at the boundary between code security and identity governance. That makes the topic relevant to IAM, PAM, and NHI programmes as well as application security teams.
This is a mature operational problem rather than a niche edge case. The article’s starting position is typical of organisations trying to scale security with software delivery, but the challenge becomes acute once teams are responsible for multiple pipelines, runtimes, and third-party dependencies at once.
Key questions
Q: How can teams prioritise AppSec findings more effectively?
A: Prioritise findings by exploitability, reachability, and privilege. A low-severity issue that exposes a valid credential or reaches a sensitive API is often more urgent than a high-volume category of theoretical findings. This approach reduces noise and focuses remediation on the issues that can actually change access or impact.
Q: Why do APIs and secrets create security testing gaps in modern DevSecOps pipelines?
A: APIs and secrets move with release velocity, which means they often exist before teams have complete governance around them. Shadow APIs, hardcoded credentials, and ephemeral build artefacts can bypass review if testing is not tied to discovery and lifecycle controls. The result is that access risk appears faster than traditional control cycles can absorb it.
Q: What do security teams get wrong about AI-generated code risk?
A: They often focus on catching insecure output after code is written, which is too late for AI-native workflows. The more important control point is the moment the agent is allowed to initiate the action. If that step is not governed, testing becomes a detection layer rather than a prevention layer.
Q: How can organisations tell whether security testing is actually reducing risk?
A: Look for shorter time to fix, fewer repeat findings, and direct routing of issues into remediation workflows. Strong programmes also show that security tests are covering the systems with the highest blast radius, not just generating large volumes of findings. If release decisions change because of testing, the control is working.
Technical breakdown
Why code-to-runtime correlation changes application risk decisions
Traditional application security testing often produces isolated findings from static analysis, dynamic testing, or software composition analysis. The problem is not discovery alone, but deciding whether a weakness is reachable in the running system. Code-to-runtime correlation ties source paths, dependency use, API behaviour, and deployment state together so teams can distinguish theoretical exposure from practical exploitability. That is especially important in modern architectures where a vulnerability in a library may never be invoked, while a small misconfiguration in an exposed service can create immediate risk. This shifts security from volume management to risk prioritisation.
Practical implication: build triage around reachability and runtime context, not scan counts alone.
How AI-driven development expands the attack surface
AI-assisted coding increases output, but it also increases the number of changes that can introduce subtle weaknesses. Generated functions, scaffolded services, and rapid refactoring can all create insecure defaults, inconsistent authentication paths, or dependency drift that manual review cannot reliably catch at scale. The issue is not that AI-generated code is uniquely dangerous, but that it compresses the review window while increasing architectural complexity. Security testing platforms therefore need to operate earlier in the SDLC and correlate findings with actual service behaviour, otherwise teams will simply inherit more noise.
Practical implication: place security checks where generated code enters the pipeline, not only at release gates.
Why APIs and secrets are now part of application security testing
APIs are no longer a side channel in modern software delivery. They are often the primary orchestration layer between services, data stores, and external consumers, which means authentication flows, token handling, and request validation become core security concerns. At the same time, applications depend on secrets and machine credentials that can expose entire service paths if they are leaked or over-scoped. Application security testing therefore has to inspect configuration, identity trust, and operational behaviour together, rather than treating code vulnerabilities as a separate problem from access control.
Practical implication: include API auth paths and secret usage in testing scope, not just source code flaws.
Threat narrative
Attacker objective: The attacker’s objective is to turn a reachable application weakness into data access, service compromise, or a broader production foothold.
- Entry begins when developers ship fast-moving code, dependencies, or APIs that expand the externally reachable attack surface faster than manual review can track.
- Escalation occurs when a reachable weakness, exposed secret, or misconfigured service gives an attacker a path from code-level flaw to broader application access.
- Impact follows when the attacker uses that path to steal data, manipulate application behaviour, or move into adjacent services and production workloads.
NHI Mgmt Group analysis
Application security testing is becoming an exposure-management discipline, not a scan-centric discipline. The article reflects a wider market shift: the value is no longer in finding more issues, but in correlating what is reachable, exploitable, and operationally meaningful. That aligns with NIST-CSF and NIST SP 800-53 Rev 5 Security and Privacy Controls, where governance depends on prioritisation and control effectiveness rather than raw alert volume. Practitioners should measure whether security decisions are based on actual application exposure, not on scanner output alone.
Code-to-runtime context is the named concept that separates modern AST from legacy scanning. In practice, this means understanding whether a flaw exists in code, whether it is deployed, whether it is reachable, and whether the runtime path makes exploitation realistic. Without that chain, teams end up remediating low-value findings while leaving high-value exposure untouched. Practitioners should treat correlation as the control objective, because context determines whether a vulnerability matters.
Application security testing now has a direct identity boundary. The article’s discussion of APIs, services, and secrets shows that application risk often depends on service account scope, token handling, and machine authentication paths. That is where NHI governance enters the picture: a weak API or leaked secret is not just an appsec issue, it is a machine-identity control failure. Practitioners should align application security tooling with NHI lifecycle, secrets governance, and privilege review.
AI-assisted development changes the control economics of application security. As code volume rises, the cost of manual triage and point-in-time review rises faster than the security team’s capacity. That pushes the market toward platforms that combine detection, context, and fix guidance in one workflow. Practitioners should expect engineering-friendly remediation to become a governance requirement, because controls that developers cannot adopt at speed will not hold in practice.
Unified platforms are winning attention because the security problem spans multiple layers at once. The article’s category grouping is a signal that teams are no longer buying single-purpose scanners to solve a multi-surface risk problem. Code, dependencies, APIs, and runtime signals now need to sit in one decision model. Practitioners should re-evaluate whether their current stack can support a single risk view across those layers, or whether fragmented tooling is still hiding the real exposure picture.
What this signals
Code-to-runtime correlation is becoming the operational bar for application security programmes. Teams that still rely on disconnected SAST, DAST, and SCA outputs will continue to over-triage low-value findings while missing exposure that only appears when services are deployed and reachable. The governing question is not how many issues a tool finds, but whether it changes remediation priority in a way engineering can act on.
Machine credentials are the hidden bridge between application security and identity governance. When secrets, tokens, and service accounts are embedded in application workflows, appsec findings become NHI findings as well. That means IAM and PAM teams need shared visibility into service identity scope, secret age, and runtime use, not just human access reviews.
The control boundary is moving toward a combined view of code, identity, and runtime behaviour. Programmes that continue to separate appsec from NHI governance will struggle to explain why a technically valid fix still leaves exploitable access paths in place.
For practitioners
- Map findings to reachable exposure Prioritise issues only after checking whether the vulnerable code path, dependency, or API endpoint is actually reachable in production or pre-production.
- Extend testing into API and secret flows Include authentication paths, token handling, and secret references in application security testing so machine credentials are assessed as part of app risk.
- Adopt correlation-based triage Use tooling that links source, dependency, runtime, and deployment data so remediation decisions reflect business impact rather than alert volume.
- Shift checks left into CI and build stages Run security validation on changed code and dependency updates before merge, then reserve deeper testing for high-risk services and externally exposed APIs.
Key takeaways
- Application security is moving from finding vulnerabilities to understanding which exposures are actually reachable.
- AI-assisted development and fragmented delivery pipelines are increasing risk faster than manual review can scale.
- Teams need correlated code, runtime, and identity context to prioritise fixes that reduce real application exposure.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC-4 | APIs, service access, and application exposure are central to this article. |
| NIST SP 800-53 Rev 5 | RA-5 | The article is about vulnerability discovery and exposure prioritisation. |
| CIS Controls v8 | CIS-16 , Application Software Security | The post focuses on securing application code, APIs, and release workflows. |
| MITRE ATT&CK | TA0006 , Credential Access; TA0010 , Exfiltration | The threat narrative centres on leaked secrets and downstream data access. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Secrets and service accounts connect application security to non-human identity governance. |
Map application and service access paths to PR.AC-4 and restrict privileges to actual runtime need.
Key terms
- Code-to-Runtime Matching: The process of connecting source files and repository findings to the live services they power. This makes exposure triage more accurate because a snippet in source control can be evaluated against the operational systems that would be impacted if it were abused.
- Dynamic Application Security Testing: Dynamic Application Security Testing evaluates a running application from the outside to identify weaknesses that only appear under real execution conditions. It is useful for validating authentication, session handling, and API behaviour, especially where configuration and integrations change how the system actually responds to attack.
- Reachability analysis: Reachability analysis checks whether a vulnerability can actually be exploited in the application’s real code paths and dependency graph. It helps teams distinguish theoretical findings from issues that an attacker can reach, which makes prioritisation far more accurate for both AppSec and identity risk management.
- Machine Credential: A machine credential is a secret or identity artifact used by software rather than a person. It includes service account credentials, API keys, tokens, and certificates. In practice, the main risk is not just exposure, but unmanaged lifecycle, unclear ownership, and overbroad access.
What's in the full article
Apiiro's full article covers the operational detail this post intentionally leaves for the source:
- Side-by-side category breakdown of ASPM, SAST, SCA, and DAST tools for different delivery models
- Vendor-by-vendor feature comparisons for code-to-runtime correlation, reachability, and AI-assisted remediation
- Implementation cues for integrating testing into CI/CD, IDEs, and pull-request workflows
- Category guidance for choosing between developer-first scanning, supply chain control, and runtime validation
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, secrets management, and workload identity in practical terms. It helps security and IAM practitioners connect machine identity controls to the broader programme they run.
Published by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org