By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: StackHawkPublished July 29, 2026

TL;DR: AI-accelerated development and API-first architectures are widening web application risk in 2025, with StackHawk highlighting broken access control, injection, misconfiguration, and authentication failures alongside emerging prompt injection and SSRF threats. The real issue is not just finding more flaws, but governing faster-changing application and identity boundaries before they are exploited.


At a glance

What this is: This is a 2025 web application risk обзор that argues API-first systems, AI-assisted development, and expanding integration points are making classic OWASP-style weaknesses harder to control.

Why it matters: It matters to IAM and security teams because broken access control, authentication failures, and token abuse now sit directly inside application and API governance, where identity decisions determine exposure.

By the numbers:

👉 Read StackHawk's analysis of critical web application security risks in 2025


Context

Web application security in 2025 is less about a single class of bug and more about governance across identity, API, code, and runtime boundaries. AI-assisted development is increasing code production, while API-first architectures expand the number of places where access control, authentication, logging, and integrity can fail. That makes identity decisions part of the application security problem, not a separate discipline.

StackHawk frames the article around the OWASP Top 10 and newer risks such as AI prompt injection and SSRF, which gives practitioners a useful map of where modern apps break down. The main takeaway is that traditional testing alone cannot keep pace with the volume and speed of change, especially when developer workflows, secrets, and API credentials move continuously through delivery pipelines.


Key questions

Q: How should security teams implement API authentication without creating brittle access controls?

A: Use short-lived credentials, strong token validation, and clear scoping so each API call is tied to a narrow trust boundary. Avoid treating a shared secret as sufficient proof on its own. The goal is to reduce the value of any single stolen credential while preserving traceable access for normal service-to-service traffic.

Q: Why do prompt injection attacks create governance risk for AI agents?

A: Prompt injection creates governance risk because the model often sits in the control path between text input and tool execution. If attackers can change what the model treats as authoritative, they can influence access decisions, data exposure, or downstream actions without compromising a traditional account. That makes prompt provenance and instruction hierarchy part of AI identity governance.

Q: What do organisations get wrong about secrets in web applications?

A: They often treat secrets as a deployment problem instead of a lifecycle problem. Secrets appear in code, logs, pipelines, and runtime systems, so one scan is never enough. Organisations need inventory, rotation, least privilege, and alerts for exposed or overused credentials across the whole delivery path.

Q: How do security teams know if business application controls are working?

A: Look for three signals: fewer standing exceptions, cleaner SoD outcomes after role combination tests, and access review results that consistently remove unused permissions. If the same people keep receiving broad access across projects or system changes, the control model is drifting. Effective governance should narrow access over time, not accumulate it.


Technical breakdown

Broken access control in API-first environments

Broken access control happens when authenticated users can reach data or functions they should not be able to use. In API-first systems, the failure often shifts from visible URL tampering to weak object-level authorisation, token abuse, and over-trusted microservice calls. That means the check is not only whether a user is authenticated, but whether each request is authorised for that exact object, action, and context. OpenID Connect and OAuth 2.0 can support federation, but they do not replace application-side authorisation logic.

Practical implication: enforce object-level authorisation on every API request, not only at login or gateway layers.

Injection risks now include AI prompt injection

Injection remains a broad class of attacks where untrusted input changes application behaviour. In 2025, that includes SQL injection, NoSQL injection, XSS, and AI prompt injection, where malicious instructions alter model outputs or bypass intended guardrails. The key architectural lesson is that input validation must be paired with output handling and context isolation. For AI systems, prompt controls, tool permission boundaries, and retrieval hygiene matter as much as prepared statements do for databases.

Practical implication: treat model prompts, retrieved content, and tool calls as untrusted inputs that need policy and validation.

Secrets, logging, and SSRF as identity-adjacent failure modes

Cryptographic failures, logging mistakes, and SSRF are often treated as separate control families, but they intersect with identity because they expose credentials, tokens, and metadata used for trust. A leaked secret can become an identity event within minutes if it grants cloud or API access. SSRF can also reach metadata endpoints and internal services, turning an application flaw into credential theft or lateral movement. Monitoring must therefore cover both application behaviour and the identity material the application can reach.

Practical implication: monitor for secret exposure, token misuse, and metadata access as a combined control problem.


Threat narrative

Attacker objective: The attacker aims to bypass application trust boundaries and turn user input, secrets, or service calls into unauthorized access and control.

  1. Entry occurs through exposed application input paths such as web forms, API parameters, prompt fields, or SSRF-capable URL handlers.
  2. Escalation follows when the attacker abuses weak authorisation, injected instructions, or stolen secrets to reach data, tools, or internal services.
  3. Impact is unauthorized data access, workflow manipulation, credential theft, or downstream compromise of connected systems.

NHI Mgmt Group analysis

Broken access control is now an identity governance problem, not just an application flaw. When APIs and microservices carry business-critical actions, authorisation becomes the real control plane. Session management, object-level access checks, and token scope design determine whether a user or service can reach data it should never see. Practitioners should treat access control failures as identity boundary failures, not only as code defects.

Prompt injection creates a governance gap between model intent and execution authority. When AI systems can interpret untrusted instructions and also call tools, the security question becomes who can cause the system to act. That is where identity, NHI, and agentic AI security intersect most clearly: the model may not be the identity, but the agentic workflow often behaves like one. Teams should isolate tool permissions from prompt content and constrain delegation chains.

API credential sprawl: the combination of tokens, keys, and service identities moving through modern delivery pipelines creates a persistent exposure surface. Once secrets exist in code, logs, build systems, and runtime environments, remediation becomes a lifecycle issue rather than a one-time fix. This is where NHI governance matters most, because service accounts and API keys are often the practical identities behind application access. Practitioners should align secrets handling with lifecycle control, not just scanner output.

Security misconfiguration and weak monitoring are symptoms of operating at cloud speed without enough control automation. As containers, APIs, and third-party integrations multiply, manual review cannot keep up with permission drift, logging gaps, and policy exceptions. Frameworks such as NIST CSF, NIST SP 800-53, and OWASP NHI become most useful when they are translated into continuous checks, not annual reviews. Practitioners should measure whether controls are keeping pace with release velocity, not whether they exist on paper.

What this signals

API trust is becoming identity trust. As application teams rely more heavily on service accounts, tokens, and delegated API permissions, the boundary between application security and identity governance continues to blur. That means access reviews, secret rotation, and runtime policy enforcement need to be measured as operational controls, not just engineering hygiene. The NHI Lifecycle Management Guide is useful here because it translates lifecycle discipline into practical control expectations.

StackHawk’s framing also shows why AI features and traditional appsec can no longer be separated. Prompt injection, credential leakage, and SSRF all turn on whether untrusted input can influence execution or reach internal resources. For teams aligning to external guidance, the MITRE ATT&CK Enterprise Matrix and NIST SP 800-53 Rev 5 Security and Privacy Controls remain relevant reference points for mapping detection and access control coverage.

When application delivery speeds up, secrets governance becomes the bottleneck. The real operational signal is not whether a secrets policy exists, but whether exposed credentials can still survive long enough to be abused. That is the same pattern explored in the Guide to the Secret Sprawl Challenge, where lifecycle control and inventory discipline determine whether developers are shipping safely or creating hidden access paths.


For practitioners

  • Enforce object-level authorization on every API route Map each sensitive endpoint to the exact user, service, and object context it may access. Use policy checks at the application layer, then verify them with runtime testing for direct object references, broken session handling, and token misuse.
  • Separate model input from tool authority Treat prompts, retrieved documents, and agent instructions as untrusted input. Constrain tool execution with explicit allowlists, short-lived credentials, and step-up approval for high-impact actions.
  • Rotate and scope secrets as lifecycle assets Inventory API keys, tokens, certificates, and service credentials across code, CI/CD, logs, and runtime. Rotate exposed secrets immediately, reduce scope to the minimum required, and remove credentials that no longer map to an active workload.
  • Monitor for metadata and internal-service access patterns Alert on SSRF-like behaviour, unusual calls to metadata services, and requests from applications to internal endpoints that are not part of the normal workload profile. Tie those alerts to identity evidence so you can identify which service account or workload was used.

Key takeaways

  • Web application security in 2025 is increasingly an identity problem because API access, service credentials, and authorisation logic now drive most meaningful exposure.
  • The biggest operational weakness is not a lack of tooling, but the gap between fast-changing delivery systems and controls that still depend on slow review cycles.
  • Teams need runtime enforcement, credential lifecycle control, and stricter tool permissions for AI features if they want application security to keep pace with development.

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 and MITRE ATT&CK 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.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Secrets exposure and lifecycle failure are central to the article's identity-adjacent risks.
MITRE ATT&CKTA0006 , Credential Access; TA0008 , Lateral MovementThe article highlights token abuse, SSRF, and credential theft as common attack paths.
NIST CSF 2.0PR.AC-4API authorization and least privilege are directly relevant to the broken access control section.
NIST SP 800-53 Rev 5AC-6Least-privilege enforcement is a repeated control theme across APIs, secrets, and service identities.
CIS Controls v8CIS-5 , Account ManagementSecret and account lifecycle management align with account governance and cleanup requirements.

Tie credential inventory and offboarding to account management so stale secrets and service identities are removed promptly.


Key terms

  • Broken Access Control: Broken access control occurs when a system fails to restrict what an authenticated user, service, or workload can do. The issue often appears as missing checks, inconsistent enforcement, or excessive permissions. It is a structural weakness because attacks exploit the gap between verified identity and permitted action.
  • Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads — causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
  • Secrets Sprawl: The uncontrolled proliferation of sensitive credentials — API keys, tokens, passwords, certificates — across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.
  • Server-Side Request Forgery: An attack pattern where a vulnerable server is tricked into making requests on the attacker’s behalf. In application exploitation, SSRF can be used to reach internal resources, fetch malicious payloads, or amplify a flaw into full code execution.

What's in the full article

StackHawk's full article covers the operational detail this post intentionally leaves for the source:

  • Step-by-step breakdown of each OWASP Top 10 risk in web application terms and how it shows up in API-first systems
  • Mitigation guidance for preparing statements, OAuth 2.0, OpenID Connect, runtime monitoring, and CI/CD testing
  • Concrete examples for SSRF, prompt injection, and authentication failures that implementation teams can map to their own stack
  • Developer-focused recommendations for building security into fast release cycles without relying on manual review

👉 StackHawk's full post covers the OWASP Top 10 mapping, mitigation examples, and emerging AI-specific risks.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and access lifecycle control. It is designed for practitioners who need to connect identity governance to the broader security programmes their environments depend on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 1, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org