TL;DR: API security issues hit 99% of organisations in the past 12 months, and 55% delayed releases because of them, according to StackHawk. Continuous API security testing is now a development control, not a post-release safeguard, because broken authentication and authorization failures are exploitable before teams notice them.
At a glance
What this is: StackHawk’s guide says API security testing finds broken authentication, broken authorization, and misconfiguration before deployment, using Intel’s exposed internal APIs as the concrete example.
Why it matters: For IAM, NHI, and application security teams, the message is that auth failures move from theory to exploitable exposure when APIs are tested too late or not at all.
By the numbers:
- 99% of organisations experienced API security issues in the past 12 months.
- 55% delayed application releases because of security concerns.
- The cost of fixing vulnerabilities in production is 100x higher than catching them during development.
Context
API security testing is the practice of probing live or pre-production APIs for weaknesses in authentication, authorization, input handling, and data exposure. The issue matters because APIs now sit directly on business logic and sensitive data, so a single exposed endpoint can create an access-control failure without any traditional user interface barrier.
The article’s identity angle is straightforward: APIs often authenticate people, services, or tokens, and weak verification turns a technical flaw into unauthorized access. That makes API testing relevant not only to application teams, but also to IAM and NHI governance where API keys, OAuth tokens, and service access are part of the control surface.
Key questions
Q: What fails when API authentication is bypassed or broken?
A: The control that fails is the API’s ability to confirm that the caller is entitled to reach the endpoint at all. When authentication is bypassed, every downstream authorization check becomes unreliable because the system is making access decisions on an untrusted caller. In practice, this can expose records, tokens, and internal functions before anyone notices.
Q: Why do broken API authorization flaws create such a broad risk to customer data and operations?
A: Broken authorization is risky because the API often becomes the enforcement point for sensitive business data and actions. If an attacker can alter object IDs, parameters, or function calls, they may read private records, change shipments, or invoke privileged operations. That can expose regulated data, disrupt services, and create downstream financial and reputational damage.
Q: What are the signs that API penetration testing is missing real risk?
A: If a programme only tests a supplied endpoint list, reports many alerts without proof of exploit, or misses undocumented APIs, it is probably under-covering the true attack surface. Another warning sign is treating authorization failures as low-priority because they are not injection issues. Real risk shows up when testing can prove cross-user access or workflow abuse.
Q: Should teams rely on gateway controls or API testing to prevent exposure?
A: Gateway controls and API testing solve different problems. Gateways can reduce exposure and centralize policy, but they do not prove that each endpoint, object, and field is enforced correctly at runtime. Teams should use gateway policy as a guardrail and API security testing as the validation step that confirms the backend actually behaves as intended.
Technical breakdown
How API security testing finds broken authentication
API security testing works by sending controlled requests that mimic attacker behavior against authentication flows, token handling, and session assumptions. In a DAST-style workflow, the tool checks whether missing, expired, invalid, or manipulated credentials still gain access. That is important because broken authentication is often not a coding error in isolation, but a runtime failure in how the API enforces identity at the endpoint. For IAM practitioners, the key point is that authentication assurance has to be verified where the API executes, not only where the identity provider is configured.
Practical implication: validate authentication at the API boundary, not only in upstream identity controls.
Why authorization failures expose more than one user’s data
Broken object level authorization and broken object property level authorization both come from the same failure pattern: the API trusts a caller more than it should. One flaw lets an authenticated user switch object identifiers and retrieve someone else’s record. The other lets the caller see or change fields that should remain hidden, such as account flags or personal data attributes. These are not just application bugs. They are governance failures where the access policy is either missing, inconsistent, or not enforced per object and per property.
Practical implication: test object and field-level access decisions separately, because one control does not prove the other works.
How misconfiguration turns API exposure into direct compromise
Security misconfiguration in APIs can include unsafe methods, overly verbose errors, missing access checks, or endpoints left reachable without the intended protections. The Intel example in the article shows how a login page can give a false sense of control while the underlying API remains reachable. That is why API security testing is effective in development: it tests the running service, not the assumption that the front end or gateway is enforcing the policy. For teams managing machine or service access, this is also where secrets and tokens become risky if the runtime boundary is wrong.
Practical implication: test the exposed API path itself, not just the UI or gateway that sits in front of it.
Threat narrative
Attacker objective: The attacker’s objective is to access data or functions that the API should have restricted, often without needing valid credentials.
- Entry occurs when an attacker reaches an exposed API endpoint or bypasses a login page that should have protected the resource.
- Credential or authentication failure follows when the API accepts missing, invalid, or improperly verified tokens and still serves data.
- Impact occurs when the caller retrieves unauthorized records or sensitive fields, turning an access-control bug into data exposure.
Breaches seen in the wild
- DeepSeek database exposure 2025: An unauthenticated DeepSeek ClickHouse database exposed over a million log lines with plaintext chat history and API keys in 2025.
- Firebase misconfiguration exposure 2024: Missing Firebase security rules on 916 websites exposed 125 million user records and 19.87 million plaintext passwords; a quarter were fixed.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
API security testing has become an access-control control, not just a quality control. The article’s core finding is that authentication and authorization flaws now show up as exploitable runtime conditions, not merely coding defects. That shifts API testing into the same governance conversation as IAM, because the real question is whether a caller can prove identity and be constrained correctly at the moment the API decides.
Broken authentication and broken authorization are different failure modes and should not be managed as one problem. Authentication decides who or what the caller is, while authorization decides what that caller can do once identified. Mixing them leads teams to overestimate coverage. A single successful login test does not prove object-level or property-level authorization is sound, which is exactly where many API exposures persist.
Security misconfiguration is the named concept teams should track: policy exists on paper, but the exposed API path behaves differently in practice. That gap is especially dangerous in environments with gateways, SPAs, microservices, and token-based service access, because the front door can look controlled while the backend remains reachable. Practitioners should treat runtime API path testing as evidence of whether access policy actually holds.
For identity programmes, API testing is now part of secrets and token governance. API keys, OAuth tokens, JWTs, and service credentials only matter if the endpoint enforces them correctly. That means IAM and NHI teams need shared visibility with developers over where authentication is enforced, where it is bypassed, and how access decisions are verified during CI/CD.
The market signal is that shift-left security only works when it is execution-aware. Static review can catch obvious mistakes, but the article shows that many API flaws emerge only when the service is running and the access path is real. The implication for practitioners is to move from periodic review to continuous runtime validation, especially where APIs carry sensitive or identity-linked data.
From our research library:
- 73% of vaults are misconfigured, leading to unauthorised access and exposure of sensitive data, according to the Ultimate Guide to NHIs.
- Secrets management is a top five cybersecurity priority for only 33% of organisations, behind cloud security (45%), API security (42%), and endpoint security (36%), according to the 2024 State of Secrets Management Survey.
- Read next: Secrets Management Buyer's Guide
What this signals
API exposure is increasingly an identity problem, not only an application problem. When authentication is weak or bypassed, the access decision fails at the runtime boundary and every downstream control inherits that weakness. IAM and NHI teams should treat API testing as evidence about whether tokens, service credentials, and caller identity are actually enforced where the API runs.
Security misconfiguration becomes more dangerous when the API is the control plane for data. A front-end login page or gateway can create false confidence while the real service remains callable in a way that ignores the intended policy. Continuous runtime validation is the only practical way to prove that the endpoint, not just the interface, is constrained correctly.
Broken object access is the clearest signal that test coverage must move beyond authentication success. Once a caller can change an identifier and retrieve another record, the programme has failed at authorization, not login. That means teams should prioritise object-level and property-level checks wherever APIs carry personal data or service-sensitive fields.
For practitioners
- Inventory every exposed API path Map REST, GraphQL, gRPC, SOAP, internal service calls, and third-party APIs so security testing covers the full attack surface, not just the documented public endpoints.
- Test authentication failure states Use missing, expired, invalid, and manipulated credentials in your test suite to confirm the API rejects requests when identity proof is absent or broken.
- Separate object and property authorization checks Validate that callers cannot change object IDs to reach other users’ data and cannot read or modify restricted properties that the API should suppress.
- Run scans in CI/CD on pull requests Integrate API security testing into the pipeline so developers get results while the code is still fresh, with severity thresholds that block high-risk flaws before merge.
- Treat production exposure as a misconfiguration signal If an endpoint works in production without the intended authentication or method constraints, treat it as evidence that the access boundary is wrong, not as a minor defect.
Key takeaways
- API security testing matters because many exposure events happen when the running service accepts requests it should reject, not when the code merely looks risky on review.
- The article’s strongest evidence is that broken authentication, broken authorization, and misconfiguration are runtime failures that automated testing can surface before attackers exploit them.
- For practitioners, the operational lesson is to validate endpoint, object, and property access in CI/CD and treat any successful bypass as a governance failure, not a nuisance bug.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API2 — Broken Authentication | The article centers on API login bypass and token failures that let callers in without proper verification. |
| API1 — Broken Object Level Authorization | The guide highlights object-level access failures as a major API exposure pattern. | |
| API3 — Broken Object Property Level Authorization | The article calls out excessive data exposure through fields the caller should not access or modify. | |
| Recommendation — Test API authentication paths for bypasses, expired tokens, and invalid credentials before release. Verify every object ID and access path is enforced per caller, not just per session. Restrict sensitive fields in API responses and requests at the property level. | ||
| MITRE ATT&CK | TA0006 — Credential Access | Broken authentication and token compromise map directly to attacker credential access and reuse. |
| Recommendation — Map API authentication failures to credential-access techniques and prioritize exposed token paths. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article is fundamentally about whether APIs enforce access permissions correctly at runtime. |
| Recommendation — Align API tests to entitlement checks so access decisions match policy at the endpoint. | ||
Key terms
- API security testing: API security testing is the process of checking whether application programming interfaces can be abused, exposed, or manipulated by unauthorized users or software. It examines authentication, authorization, input handling, rate limits, data exposure, and business logic, using manual review and automated tests to find weaknesses before attackers or faulty integrations exploit them.
- Broken Authentication: Broken authentication is a failure in how a system proves that a caller is who or what it claims to be. For APIs, that often means weak token handling, replayable credentials, or poor validation of delegated access, which allows unauthorised callers to act as trusted integrations.
- Broken Object-Level Authorization: A failure to check whether an authenticated identity may access a specific object, record, or device. The request succeeds because the credential is valid, but the application does not enforce per-object entitlement. In NHI environments, this turns a legitimate token into cross-resource exposure.
- Security Misconfiguration: Security misconfiguration is a control failure caused by unsafe defaults, incorrect settings, or overly broad permissions in systems and pipelines. In NHI environments, it often shows up as exposed secrets, persistent roles, or permissive cloud templates. The risk is that routine automation becomes a durable access path.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, secrets management, and workload identity for practitioners who need to connect identity controls to real-world access risk. It helps security and identity teams align governance, operations, and assurance across machine and human identity programmes.
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 13, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org