By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: terraPublished September 3, 2025

TL;DR: An unauthenticated SQL injection was found during continuous penetration testing, then proved to expose live customer endpoint records in a high-risk application, according to terra. The case shows that traditional scanners and manual testing can still miss exploitable flaws when business context and chained proof-of-impact matter.


At a glance

What this is: This is an analysis of how an AI agent in continuous penetration testing identified an unauthenticated SQL injection that traditional scanners missed and then demonstrated customer data exposure.

Why it matters: It matters because AppSec teams must decide whether AI-assisted testing is merely faster validation or a different class of coverage for exploitable web flaws, especially where the impact reaches sensitive operational data.

👉 Read terra’s analysis of how an AI agent found a critical SQL injection


Context

SQL injection remains a familiar web vulnerability, but the governance problem is not familiarity. The real gap is whether testing workflows can still surface flaws that are technically obvious yet operationally missed because they require contextual exploitation, proof of impact, and safe execution under human oversight.

For identity and security programmes, the relevance is indirect but real: the exposed endpoint data in this case could support downstream targeting, reconnaissance, or access abuse. That makes the issue less about one flaw type and more about whether testing, prioritisation, and remediation can keep pace with modern attack paths and business risk.


Key questions

Q: What breaks when SQL injection is not blocked at the application layer?

A: When SQL injection is not blocked, the application boundary between user input and database instructions collapses. Attackers can bypass authentication, enumerate data, modify records, or trigger downstream access through the service account behind the app. The real failure is not only data exposure but the overreach of the database identity that the application uses.

Q: When should teams prioritise exploit validation over scanner alerts?

A: Teams should prioritise exploit validation whenever a scanner flags a public-facing path that can reach sensitive records, authentication logic, or database operations. Validation matters most when the business impact could be large even if the vulnerability looks ordinary. In those cases, proof of exploitability is what separates noise from risk.

Q: How do security teams know whether continuous pentesting is actually working?

A: They know it is working when the programme produces repeatable evidence: blocked actions are logged, approvals are traceable, scope changes are controlled, and test behaviour stays within policy. If the only proof is that testing happened, the programme is not yet governed. Effective continuous testing leaves a clear control trail.

Q: What should teams do after a critical injection flaw is proven in testing?

A: Teams should isolate the vulnerable path, confirm whether similar query logic exists elsewhere, and retest the fix with the same exploit conditions that demonstrated impact. They should also review logging, detection, and data exposure scope so that a single flaw cannot reveal operational records across environments.


Technical breakdown

Why traditional scanners miss exploitable SQL injection

Static scanners and many commercial tools excel at pattern detection, but SQL injection often depends on request context, parameter handling, and how the application assembles database queries at runtime. A scanner may flag suspicious input without proving exploitability, or it may miss the issue when the vulnerable path is only reachable through a specific sequence of requests, headers, or public API behaviour. Continuous penetration testing adds the missing step: controlled exploitation attempts that validate whether the flaw is actually usable.

Practical implication: treat scanner output as triage data, not final evidence, and require exploit validation for high-risk findings.

How human-in-the-loop guardrails change agentic testing

An AI agent can enumerate endpoints, test variations, and adapt payloads faster than a manual tester, but the governance value comes from constrained execution. Human approval gates separate reconnaissance from exploitation and keep proof-of-concept activity bounded to authorised conditions. That matters because agentic systems can chain steps quickly, and without oversight they can move from finding a weakness to demonstrating harmful impact in the same workflow. The control question is not whether the agent can act, but whether it can act safely and auditably.

Practical implication: define explicit approval points before exploitation, data access, or any step that could create production risk.

Why business-context testing matters more than technical severity alone

A critical SQL injection is not just a vulnerability classification. Its real severity depends on what data or systems it can expose, whether the application sits on a sensitive trust boundary, and how that exposure could support downstream compromise. In this case, the ability to extract customer endpoint records changed the finding from a classic web flaw into a potential operational security issue. That is why modern testing increasingly evaluates business impact, not just CVSS-style technical severity.

Practical implication: rank findings by business reach and downstream abuse potential, not by vulnerability type alone.


Threat narrative

Attacker objective: The attacker objective is to extract operational customer endpoint data and use it to support broader compromise or targeting.

  1. Entry occurred through an unauthenticated public API endpoint that accepted query input and exposed a SQL injection path.
  2. Credential access was not required because the attacker could execute arbitrary SQL directly through the vulnerable endpoint and retrieve table names and records.
  3. Impact would be exposure of customer endpoint inventories, enabling reconnaissance, targeting, and follow-on attacks against downstream environments.

NHI Mgmt Group analysis

Agentic testing is becoming a coverage model, not just a speed model. The value in this case was not that an AI agent found a familiar flaw, but that it combined enumeration, exploitation, and business-context reasoning in one controlled workflow. That expands what continuous validation can cover when scanners stop at detection. For AppSec leaders, the practical conclusion is that coverage depth now matters as much as scan volume.

Context-aware validation is the real differentiator in modern pentesting. Many programmes still optimise for issue counts, false positive reduction, or compliance evidence. This case shows that the more relevant question is whether a finding can be converted into a credible attack path against a real business asset. That aligns more closely with risk-based testing than with checkbox assessment, and it pushes teams to prioritise exploitability over theoretical severity.

Business-critical data exposure changes the governance conversation. Once a vulnerability can reveal live customer endpoint records, the issue is no longer isolated to the web tier. It becomes a broader control failure across application design, data minimisation, and validation of trust boundaries. The named concept here is proof-of-impact pentesting: testing that proves operational consequence, not just technical existence. Practitioners should treat that as the standard for high-risk applications.

AI agents will pressure the assumptions behind manual review queues. Traditional workflows assume a tester will discover, then separately exploit, then separately explain impact. Agentic systems compress those steps, which means governance must keep pace with how quickly proof can be generated. For teams, the lesson is to align testing policies with rapid, auditable escalation paths rather than static review windows.

Scanner coverage and attacker coverage are not the same metric. A tool can be accurate on known signatures and still miss the exploit path that matters most. This case reinforces the need to combine automated detection, human judgment, and continuous validation against the actual attack surface. For security leaders, the practical conclusion is to measure whether tests can produce attacker-relevant evidence, not just whether they produce findings.

What this signals

Proof-of-impact testing is becoming a baseline requirement for high-risk applications. Teams that still rely on scanner output alone will keep underestimating the difference between theoretical flaws and exploitable paths. The operational signal here is that AppSec programmes need testing methods that can demonstrate consequence, not just detect anomalies.

AI-assisted pentesting will push governance toward tighter scope control and auditability. The faster a testing system can chain discovery to exploitation, the more important it becomes to define approval gates, evidence handling, and safe execution boundaries. That shift matters even outside identity programmes because the same control logic applies wherever automation can cross from finding to proving.

Continuous validation should be tied to the business assets it protects, not to tool throughput. If a customer endpoint inventory, exposed database table, or similar sensitive store is in scope, the test programme should explicitly measure whether it can reach that asset class. For readers who also govern identity-heavy environments, the lesson aligns with OWASP NHI Top 10: exposure is only meaningful when you can trace it to a real abuse path.


For practitioners

  • Define exploit-validation thresholds for high-risk web findings Require proof-of-exploit for unauthenticated inputs, database-linked endpoints, and any issue that could expose operational customer data. Separate low-confidence scanner alerts from findings that can be demonstrated safely in a controlled test.
  • Insert human approval gates before destructive or data-revealing steps Use explicit guardrails for any action that could query live records, enumerate tables, or move from reconnaissance to exploitation. Keep every escalation step auditable and tied to authorised scope.
  • Prioritise business-impact testing over raw vulnerability counts Rank web findings by the sensitivity of the data they can reach, the downstream systems they can expose, and the business consequence of disclosure. Tie remediation urgency to operational blast radius, not just severity labels.
  • Review public API surfaces for unauthenticated SQL execution paths Audit endpoints that accept query parameters, dynamic filters, or request bodies that may flow into database logic. Focus on public APIs first because they often sit outside the deeper review path and are easiest to overlook.
  • Update pentest reporting to capture exploit narrative Document the exact entry path, validation steps, proof-of-impact evidence, and business consequence in the final report. That makes remediation decisions easier for engineering leaders and gives security teams a clearer basis for retesting.

Key takeaways

  • This case shows that a familiar vulnerability can still be missed when testing stops at detection instead of proving exploitability.
  • The business impact was the decisive factor, because access to customer endpoint records turned a classic SQL injection into an operational exposure problem.
  • Continuous pentesting is most useful when it combines agentic discovery, human guardrails, and remediation evidence that engineering teams can act on.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

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
MITRE ATT&CKTA0007 , Discovery; TA0006 , Credential Access; TA0010 , ExfiltrationThe article centers on public endpoint discovery, database abuse, and potential data extraction.
NIST CSF 2.0PR.AC-3Public API exposure and unauthenticated access are core access-control concerns.
NIST SP 800-53 Rev 5SI-10Input validation failure is the immediate root cause of SQL injection.
CIS Controls v8CIS-16 , Application Software SecurityThis case is a classic application security validation failure in a public web service.

Map exposed query paths to discovery and exfiltration tactics, then validate whether public APIs can reach sensitive records.


Key terms

  • SQL Injection: SQL injection is a flaw where untrusted input is interpreted as part of a database query. In practice, it lets an attacker read, change, or delete data by manipulating the application’s request handling rather than by logging in with valid credentials.
  • Penetration Testing: Penetration testing is an authorised adversarial exercise that tries to exploit weaknesses the way a real attacker would. It validates whether a vulnerability, misconfiguration, or access weakness can become actual reach, escalation, or lateral movement.
  • Proof of Impact: Proof of impact is evidence that a vulnerability can be used to create real business consequence, not merely technical anomaly. In security testing, it means demonstrating what an attacker could actually reach, expose, or disrupt so remediation can be prioritised on operational risk.
  • Human-in-the-loop Guardrails: Approval and review controls that keep a person accountable for AI-supported decisions. These guardrails do not eliminate automation. They constrain it so that recommendations, evidence handling, and workflow actions remain auditable and can be stopped before they create compliance or access risk.

What's in the full article

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

  • The exact request path and payload progression that turned an anonymous API probe into a working SQL injection proof of concept.
  • The business-impact demonstration showing how exposed endpoint records mapped to operational risk in a customer environment.
  • The guardrail workflow used to keep the test safe while still allowing controlled exploitation and evidence capture.
  • The disclosure and remediation sequence that followed the validation step.

👉 terra’s full post covers the exploit chain, proof-of-impact, and remediation context

Deepen your knowledge

NHI Mgmt Group’s NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, and secrets management. It gives security practitioners a practical foundation for governing identity risk across modern programmes.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org