Abstract
Recent advances in Large Language Models (LLMs) and agent-based architectures have introduced new possibilities for automating web application security testing. Unlike traditional vulnerability scanners that rely mainly on signature-based detection, LLM-powered agents can analyze application context and dynamically adapt testing strategies. This exploratory case study examined two specific laboratory-defined workflows for identifying web application security weaknesses: a human-supervised agent-based workflow and a conventional vulnerability scanner workflow. The evaluation was performed in a controlled laboratory environment against the same target application and predefined ground truth, while each workflow retained its respective application-access, discovery, and authentication mechanisms. The agent-based framework was developed using Claude Code, the Model Context Protocol, and Burp Suite Professional, while the scanner-based approach utilized Qualys Web Application Scanning. Results were mapped to a predefined ground truth covering SQL Injection, Cross-Site Scripting, and Broken Access Control and reported using Recall, Precision, and false-positive counts where estimable. The findings describe what each completed workflow showed under the tested conditions, including coverage, tester effort, and validation workload, and outline directions for further evaluation.
1. Introduction
In today’s digital landscape, web application security remains one of the most critical domains of modern cybersecurity. As the number of Internet-facing services continues to grow and business processes become increasingly digitized, the attack surface expands accordingly, making web applications a primary target for cybercriminals. To address this challenge, organizations increasingly rely on penetration testing and automated security assessment tools to identify vulnerabilities before malicious actors can exploit them [1]. For many years, security testing automation has been primarily driven by vulnerability scanners such as Qualys Web Application Scanning (WAS), Tenable Nessus, and OWASP ZAP. These tools largely depend on signature databases, heuristic analysis, and predefined detection rules to identify known classes of vulnerabilities. While this approach is highly effective for many conventional security issues, its effectiveness is limited when vulnerabilities require an understanding of business logic or complex application workflows. This limitation is particularly evident in vulnerabilities such as Broken Access Control and Insecure Direct Object References (IDOR), whose detection often requires reasoning about relationships between resources, users, and authorization mechanisms [2,3]. In parallel with the evolution of traditional security tools, recent years have seen growing interest in applying Large Language Models (LLMs) to cybersecurity tasks. Initially, these models were primarily used to support data analysis, automate report generation, and assist in interpreting security testing results. More recently, their capabilities have been extended through agent-based architectures that enable the execution of complex tasks involving multi-step planning, interaction with external tools, and adaptive decision-making based on observations gathered during testing [4]. A significant milestone in this evolution was the introduction of the Model Context Protocol (MCP), which provides a standardized communication framework between language models and external tools. Through MCP, LLM-based agents can leverage the functionality of specialized security platforms without requiring dedicated integrations for each tool. Within the penetration testing domain, the integration of LLM agents with Burp Suite Professional has attracted considerable attention, as it provides access to HTTP traffic, session history, and active web application testing capabilities [5]. Despite the growing popularity of LLM-based agentic solutions, the scientific literature contains relatively few studies that directly compare their effectiveness against traditional vulnerability scanners under identical experimental conditions. Existing research has largely focused on individual tools, proof-of-concept implementations, or novel agent architectures. At the same time, objective evaluations of the practical effectiveness of agent-based approaches for web application vulnerability discovery remain scarce. Furthermore, there is a notable lack of empirical studies investigating the use of MCP-enabled architectures in penetration testing environments. This paper presents an exploratory comparison of two specific laboratory-defined web application security testing workflows, representing a scanner-based and an agent-based approach. The experiments were conducted in a controlled laboratory environment using OWASP Juice Shop, a widely adopted benchmark application for web security research and training. The effectiveness of both approaches was evaluated using Recall, Precision, and False-Positive metrics across selected vulnerability categories, including SQL Injection, Cross-Site Scripting (XSS), and Broken Access Control.
The main contributions of the paper are as follows:
- A controlled comparison of an LLM-driven agent workflow and a commercial scanner workflow against the same application and the same balanced ground truth.
- A validation procedure that combines quantitative detection metrics with mandatory proof-of-concept review and separate treatment of confirmed findings outside the predefined ground truth.
- A detailed experimental architecture for connecting Claude Code to Burp Suite Professional through MCP, including the role of the project-level CLAUDE.md file and the human approval process.
- A category-level analysis showing how the agent performed across SQL injection, XSS, and broken access control, together with an explanation of the together with an explanation of the coverage constraints observed in the completed scan, including access-path and authentication conditions. in the completed scan.
- A practical comparison of autonomy, tester effort, determinism, validation workload, and the potential role of hybrid scanner–agent workflows.
The remainder of the paper is organized as follows. Section 2 is reserved for the related-work review. Section 3 describes the research design, laboratory environment, tool configuration, ground truth, metrics, validation rules, and experimental protocol. Section 4 presents the scanner and agent results. Section 5 interprets the results and discusses practical trade-offs. Section 6 identifies threats to validity. Section 7 provides conclusions and directions for future work.
2. Related Work
The evolution of automated web application security testing is currently progressing along two complementary directions. The first is based on conventional vulnerability scanners that rely on predefined signatures, heuristic rules, and active scanning techniques. The second is driven by the rapid advancement of Large Language Models (LLMs) and agentic architectures, which enable more adaptive, context-aware, and reasoning-driven approaches to security assessment. In recent years, increasing attention has been devoted to solutions that integrate LLMs with professional security tools through standardized communication interfaces such as the Model Context Protocol (MCP). This integration allows language models to orchestrate external security tools, execute complex testing workflows, and dynamically adapt their strategies based on intermediate findings.
Despite the growing body of research on both traditional vulnerability scanners and LLM-based cybersecurity applications, there remains a notable lack of studies that directly compare these two approaches under identical experimental conditions. Furthermore, existing evaluations rarely consider the level of human tester involvement as an important factor influencing the effectiveness, efficiency, and practical applicability of the assessment process. Accordingly, this literature review is organized as follows. It first examines conventional automated vulnerability scanning techniques, then recent applications of LLMs in offensive cybersecurity, agentic architectures for penetration testing, and the integration of security tools via the Model Context Protocol. Finally, it identifies the key research gaps that motivate the present study.
2.1. Automated Web Application Vulnerability Scanning
For many years, automated web application vulnerability scanning has been a fundamental component of the web application vulnerability management process. In practice, organizations widely rely on commercial and open-source vulnerability scanners such as Qualys Web Application Scanning (WAS), Nessus, Burp Suite Scanner, Acunetix, and OWASP ZAP. These tools primarily rely on predefined heuristic rules, vulnerability signatures, and fuzzing techniques to identify well-known classes of security weaknesses, including SQL Injection (SQLi), Cross-Site Scripting (XSS), Server-Side Request Forgery (SSRF), and application misconfigurations.
Research conducted over the past several years has consistently demonstrated that modern vulnerability scanners achieve high detection accuracy for vulnerabilities characterized by well-defined detection patterns. Öztürk and Kara conducted a comparative evaluation of Nessus, Qualys, and OpenVAS, demonstrating their effectiveness in identifying known security vulnerabilities and significantly automating the vulnerability assessment process. At the same time, the authors observed that the performance of these tools declines when detecting vulnerabilities that require an understanding of application business logic, complex execution workflows, or the relationships among different user roles and privilege levels [3].
Walkowski et al. [2] reached similar conclusions, emphasizing that conventional vulnerability management systems perform well at identifying security issues documented in vulnerability taxonomies such as the Common Vulnerabilities and Exposures (CVE) and Common Weakness Enumeration (CWE) databases. However, their effectiveness decreases substantially when analyzing more complex vulnerability scenarios. This limitation is particularly evident for vulnerabilities belonging to the Broken Access Control category, including Insecure Direct Object References (IDOR), which have consistently ranked among the most critical risks in the OWASP Top 10 over the past several years.
Another significant limitation of conventional vulnerability scanners is their strong dependence on application coverage during the crawling phase. In modern web applications—particularly Single Page Applications (SPAs), systems employing sophisticated authentication mechanisms, or applications with complex custom business workflows—automated discovery of all accessible functionality is often incomplete. As a result, a substantial portion of the application’s attack surface may remain unexplored, leaving potentially exploitable vulnerabilities outside the scope of the security assessment despite the scanner being correctly configured [6].
2.2. LLMs in Offensive Security
The rapid advancement of Large Language Models (LLMs) in recent years has had a profound impact on the field of cybersecurity. Initially, models such as GPT-3, GPT-4, Claude, and Gemini were primarily used to assist with security incident analysis, security report generation, and interpreting penetration testing results. More recently, however, LLMs have been increasingly adopted for more advanced cybersecurity tasks, including source code analysis, vulnerability identification, exploit generation, security log analysis, and threat intelligence support. Numerous studies have demonstrated that modern language models can recognize vulnerability patterns in source code, achieving performance comparable to certain static application security testing (SAST) tools [7].
At the same time, the scientific literature highlights several important limitations associated with the use of LLMs in cybersecurity applications. The most frequently cited challenge is hallucination, in which language models generate outputs that appear plausible but are factually incorrect. In the context of penetration testing, such behavior may result in both false-positive findings and, more critically, the failure to identify genuine security vulnerabilities.
Furthermore, the quality and reliability of LLM-generated outputs are highly sensitive to prompt formulation, the amount and quality of contextual information provided, and the underlying execution architecture. This inherent non-determinism distinguishes LLM-based approaches from conventional vulnerability scanners, whose behavior is generally more predictable, reproducible, and consistent across repeated executions [8].
Despite these limitations, existing research indicates that LLMs offer a significant advantage in tasks requiring contextual reasoning and semantic understanding. This is particularly evident in the identification of business logic flaws, weaknesses in authorization and access control, and multi-stage attack scenarios that are difficult—or even impossible—to capture with traditional signature-based detection techniques [9,10,11].
2.3. Tool-Augmented and Agentic Penetration Testing
The next stage in the evolution of LLM applications in cybersecurity has been the emergence of agentic architectures. Unlike traditional interactions based on isolated prompts, agentic systems can plan complex workflows, execute multiple intermediate steps, interact with external tools, and dynamically adapt their strategies in response to newly acquired information [12].
The recent literature has introduced numerous security-oriented agent frameworks that integrate LLMs with automation platforms, knowledge bases, and penetration testing tools. Particular attention has been given to approaches based on ReAct, Toolformer, AutoGPT, LangChain Agents, and CrewAI. Existing studies suggest that agentic architectures are better suited than conventional vulnerability scanners for tasks requiring multi-stage exploration of web applications. Rather than executing a predefined sequence of tests, an agent can observe the outcomes of previous actions, formulate hypotheses, and perform additional verification steps to validate its findings. Consequently, this approach more closely resembles the reasoning process of a human penetration tester than traditional signature-based vulnerability scanning.
At the same time, the research community has identified several important challenges associated with agent-based penetration testing. Experimental studies consistently demonstrate that the effectiveness of these systems depends heavily on the quality and completeness of the available context, as well as on carefully designed interaction strategies. Furthermore, many existing implementations still require periodic human intervention to guide decision-making, validate intermediate results, or recover from ineffective exploration paths. As a result, most current solutions should be regarded as human-in-the-loop systems rather than fully autonomous penetration testing agents [13,14].
Accordingly, recent research has increasingly emphasized that evaluations of agentic security systems should extend beyond vulnerability detection performance alone. Equally important metrics include the degree of human involvement, the number of required operator interventions, and the time required to validate and confirm reported findings, as these factors directly influence the practical usability and cost-effectiveness of such systems in real-world security assessments.
2.4. MCP-Based Security Tool Integration
One of the most recent developments in LLM-based agentic systems is the adoption of the Model Context Protocol (MCP). MCP was designed as a standardized communication protocol that enables language models to interact with external tools through a unified interface. Recent studies have described MCP as an integration layer for the AI agent ecosystem, analogous to the role that standardized protocols play in enabling interoperability between conventional software systems. By standardizing context exchange, function invocation, and response handling, MCP significantly reduces the need to develop custom integrations between individual language models and external tools.
Within the cybersecurity domain, particular attention has been paid to integrating MCP with Burp Suite Professional. This approach allows an LLM-based agent to access HTTP traffic, session histories, vulnerability scan results, and active security testing capabilities exposed by the scanner. Consequently, the language model can leverage high-quality data generated by a professional penetration testing platform while autonomously determining subsequent testing actions based on previously observed results [5,15].
Despite the growing interest in MCP, the scientific literature evaluating its application in practical cybersecurity scenarios remains limited. Most existing publications focus on the protocol’s architecture, interoperability mechanisms, and the security implications of enabling AI systems to interact with external tools and services. Comparatively little attention has been devoted to rigorous empirical evaluations of MCP-enabled agents in real-world penetration testing workflows. In particular, there is a lack of studies assessing whether the integration of standardized tools translates into measurable improvements in vulnerability detection effectiveness and testing efficiency, or reductions in the level of human intervention required during security assessments.
2.5. Comparative Evaluations and Research Gap
A review of the existing literature indicates that research on conventional vulnerability scanners is relatively mature, as is the growing body of work exploring the application of Large Language Models (LLMs) in cybersecurity. In contrast, considerably fewer studies have conducted direct comparisons of these two paradigms under identical experimental conditions.
Most published research evaluates individual tools, presents case studies, or describes proof-of-concept architectures without employing a standardized vulnerability dataset or a common validation methodology. Consequently, objectively comparing the effectiveness of LLM-based agents with that of traditional vulnerability scanners remains challenging. Furthermore, the literature contains very few studies that investigate integrating language models with professional security tools via the Model Context Protocol (MCP). This gap is particularly significant because MCP is rapidly emerging as a de facto standard for integrating modern agentic AI systems with external software and services. Another important limitation of the existing literature is the limited consideration of the human factor when evaluating security testing solutions. Most studies focus exclusively on detection-oriented metrics, such as precision, recall, or detection rate, while overlooking equally important practical aspects, including operator workload, the degree of system autonomy, and the effort required to validate reported findings [16].
This study addresses these research gaps by conducting an exploratory comparison of two specific laboratory-defined workflows representing two different paradigms. The evaluation considers not only traditional vulnerability detection metrics but also the level of human involvement required throughout the assessment process, thereby addressing an important dimension that has received limited attention in prior research.
3. Materials and Methods
The objective of the experiment was to examine two completed workflows representing fundamentally different approaches to web application security testing: a conventional vulnerability scanning approach and an agentic approach that employs a Large Language Model integrated with professional security tools. To provide a common basis for comparison, both workflows were evaluated against the same target application and a predefined set of verified vulnerabilities in a controlled laboratory setting. However, the workflows retained their respective access, discovery, and authentication mechanisms, which are treated as part of the evaluated workflow and explicitly considered when interpreting the results. Their performance was assessed using evaluation metrics that are widely adopted in vulnerability detection research. In addition, the study examined the level of human operator involvement required throughout the testing process. The experimental design was carefully developed to ensure reproducibility while minimizing the influence of external factors on the observed results.
3.1. Experimental Methodology
This study follows the Design Science Research Methodology (DSRM) [17,18]. Rather than treating the presence of a research artifact as sufficient justification for DSRM, the study follows its structured process of problem identification and motivation, definition of the objectives for a solution, design and development, demonstration, evaluation, and communication. The artifact developed in this work consists of two closely related components. The first is a technical environment that enables the security assessment of the same target application using both a conventional vulnerability scanner and an LLM-based agentic approach. The second is a comparison protocol that defines the ground truth, outcome categories, validation procedures, quantitative evaluation metrics, and the evidence collected from each experimental execution.
The study combines an engineering component with an empirical evaluation component. The engineering component encompasses deploying the OWASP Juice Shop application with Docker, configuring Qualys Web Application Scanning (WAS), preparing Burp Suite Professional with the Model Context Protocol (MCP) extension, and configuring Claude Code as an MCP client. The empirical component consists of executing both security assessments, validating the identified findings, mapping them to the same ground-truth dataset, and interpreting the resulting evaluation metrics.
The entire experiment was conducted as a controlled exploratory case study. A single complete execution was performed for each of the two evaluated approaches. This decision was motivated by the substantial cost associated with prolonged agentic sessions and the reliance on commercial security tools. At the same time, it represents an important limitation of the study. A conventionally configured vulnerability scanner is inherently designed to produce highly repeatable results across multiple executions.
In contrast, an LLM-based agent may follow different reasoning paths and select different testing strategies in subsequent runs due to its probabilistic nature. Because neither approach was executed repeatedly, the run-to-run stability and variability of the results were not evaluated empirically. Consequently, the research protocol requires comprehensive documentation of every experimental session, and the reported findings should be interpreted as observations from the case under investigation rather than as statistical estimates generalizable to a broader population.
3.2. Scope, Assumptions, and Environment Requirements
The scope of the study was limited to web application vulnerabilities belonging to three categories: SQL Injection (SQLi), Cross-Site Scripting (XSS), and Broken Access Control. Attacks targeting network infrastructure, social engineering techniques, production systems, and vulnerability classes outside the predefined ground-truth dataset were excluded from the primary comparative analysis. Both evaluated approaches were authorized to interact exclusively with a deliberately vulnerable laboratory application.
The experiment was conducted under four principal assumptions. First, all active security assessments were performed within a controlled laboratory environment. Second, the target of the evaluation was the OWASP Juice Shop application, not a production system. Third, both approaches were assessed using the same ground-truth definition and an identical validation methodology to ensure a fair and objective comparison. Fourth, the agentic approach was evaluated as a potential complement to conventional vulnerability scanning rather than as a replacement for established commercial security scanners.
Prior to implementation, a set of functional and non-functional requirements was defined to ensure the comparability, reproducibility, and auditability of the experimental results. Table 1 provides a concise summary of these requirements.
Table 1.
Functional and non-functional requirements of the laboratory environment.
3.3. Laboratory Architecture
The experimental environment consisted of four logical layers: the target layer, the scanner-based workflow, the agent-based workflow, and the evidence collection layer. The common target for both evaluation approaches was a single instance of the OWASP Juice Shop application deployed as a Docker container. The agent accessed the application locally through Burp Suite Professional, whereas Qualys Web Application Scanning (WAS) operated from a cloud-based infrastructure, requiring the locally hosted application to be exposed via a secure HTTPS tunnel. The evidence collection layer comprised vulnerability assessment reports, agent session transcripts, Burp Suite project history, application logs, and records from the manual validation process. Figure 1 illustrates the overall architecture of the experimental environment, including the two independent access paths to the target application.
Figure 1.
Logical architecture of the laboratory environment. Both workflows evaluated separately restarted instances of the same Dockerized target, but used different transport paths.
Before executing each workflow, the OWASP Juice Shop container was stopped, removed, and then redeployed from the official application image. This procedure reduced the risk that the application state left after the first assessment could influence the results of the second evaluation. Although both approaches used the same application image and the same communication port, the access paths to the target application were not identical. The difference between local access via the Burp Suite proxy server and cloud-based access via a vulnerability scanner communicating over an HTTPS tunnel was therefore considered a potential threat to the study’s internal validity rather than disregarded as an insignificant implementation detail. This limitation was explicitly acknowledged in the experimental design to ensure a transparent interpretation of the obtained results.
3.4. Target Application and Docker Deployment
As previously mentioned, the deliberately vulnerable OWASP Juice Shop application was deployed as the target system for the experiment. It served as a common reference target for the two evaluated automation paradigms. The application was deployed using the official Docker image and exposed on port 3000 of the host system. Binding the port to 0.0.0.0 enabled the local Burp Suite-based workflow to access the application via the host interface. It allowed the HTTPS tunnel to forward traffic from the external Qualys infrastructure to the same container instance. The latest available Docker image of the application was used throughout the study.
3.5. Scanner-Based Workflow
The scanner-based approach represents the conventional model of automated web application security testing. Within this paradigm, vulnerability identification is performed by specialized tools that employ automated application crawling, active scanning techniques, and server response analysis mechanisms. Most modern vulnerability scanners rely on predefined signatures, heuristic rules, and databases of known vulnerability patterns, enabling effective detection of numerous common security weaknesses [19,20].
In this study, the scanner-based approach was implemented using the Qualys Web Application Scanning (WAS) platform. The tool was configured to automatically discover application resources, identify potential input points, and perform active security assessments within the controlled laboratory environment. The findings obtained were subsequently validated and compared with the results from the agent-based approach, which used a large language model integrated with Burp Suite Professional [21,22].
3.5.1. Tool Role and Access Path
The Qualys Web Application Scanning (WAS) solution used in this study, which is part of the Qualys Total Application Security platform, represented the scanner-based testing paradigm. The configuration process included registering the web application, creating a dedicated scan option profile, defining a form-based authentication record, and establishing an external access path to the locally deployed application. The available license did not include a Scanner Appliance Virtual Machine deployed within the isolated laboratory network.
Therefore, the scanning process was initiated from the Qualys cloud infrastructure. Since the scanner required a publicly accessible HTTPS endpoint, the local OWASP Juice Shop instance was exposed through an ngrok tunnel. This approach preserved isolation from production systems; however, it introduced an additional layer for generating responses between the scanner and the target application. This intermediate layer proved relevant during result analysis, as the scan report contained findings associated with responses generated by ngrok rather than directly by the Juice Shop application itself.
3.5.2. Experimental Scanner Configuration
Four decisions were intended to maximize scanner coverage. The scan intensity was set to the predefined High level. Both GET and POST form submission were enabled. A form-based authentication record was created for a normal Juice Shop user. Enhanced Crawling and SmartScan were enabled to improve the likelihood that the crawler would process the SPA. The custom option profile was named OWASP-JUICESHOP-PROFILE and was based on the initial WAS options profile. Table 2 lists the parameters recorded.
Table 2.
Option profile parameters used for the Qualys WAS workflow.
The authentication record was configured as form-based authentication and pointed to the SPA login route under #/login. The selected account was jim@juice-sh.op, assigned the ordinary customer role. The intention was to grant the scanner access to authenticated functionality, including endpoints involved in stored XSS and broken access-control scenarios.
3.5.3. Authentication Limitations
The configuration described above is the planned scanner configuration. The effective execution differed because the crawler did not discover a conventional login form. The fragment component of a hash-routed URL is not transmitted to the server as part of an HTTP request. Reaching #/login requires client-side JavaScript execution and Angular routing. The completed scan reported authentication as Not Attempted, despite the presence of the authentication record.
The Qualys report recommended Selenium-based authentication for this situation. A Selenium Authentication Script was not implemented in the completed experiment. Consequently, the result represents the actual behavior of the configured form-based workflow, not the maximum possible capability of Qualys WAS after additional browser automation and application-specific tuning.
3.6. Agent-Based Workflow
The agent-based approach represents an emerging paradigm in automated security testing, in which a Large Language Model acts as an active participant in the vulnerability assessment process. Unlike conventional vulnerability scanners that rely on predefined detection rules and signatures, an agent can analyze acquired information, plan subsequent actions, and dynamically adapt its testing strategy based on the observed behavior of the target application.
This enables the incorporation of broader contextual reasoning and facilitates the identification of security issues that may be difficult to detect using traditional signature-based scanning techniques [23].
In this study, the agent-based approach was implemented using Claude Code integrated with Burp Suite Professional through the Model Context Protocol (MCP). The agent was granted access to HTTP traffic, session history, and the security testing capabilities exposed by Burp Suite, enabling it to perform iterative security assessments and continuously refine its testing strategy based on the accumulated context. The findings produced by the agent were subsequently validated and compared with the results obtained using the conventional scanner-based approach.
3.6.1. Components and Communication Flow
The agent-based workflow combined three main components: Claude Code as the LLM-based client, the Burp MCP Server extension as the integration layer, and Burp Suite Professional as the HTTP interception and request-execution platform [24].
The tester supplied a natural-language objective and a project context file. Claude Code performed planning and interpretation. MCP provided structured access to selected Burp operations.
Burp Suite then sent, captured, and replayed traffic to the target.
Figure 2 presents the resulting human-in-the-loop communication sequence.
Figure 2.
Communication flow of the agent-based workflow. The reported result reflects the complete integration and the tester’s approvals, not an isolated language model.
The official PortSwigger extension available through the Burp ecosystem was selected instead of an unofficial community integration. The MCP service was enabled on the loopback interface and on the default port 9876. Tools capable of modifying the Burp configuration were disabled to prevent the agent from changing the test platform’s security settings [25].
3.6.2. MCP Tool Exposure
The extension exposed the Burp functions summarized in Table 3. These capabilities allowed the agent to inspect previously captured traffic, send new requests, and place important requests in Repeater for manual confirmation.
Table 3.
Burp capabilities exposed to Claude Code through MCP.
Claude Code communicates with MCP servers via a standard input/output mechanism. In contrast, the Burp extension exposes a server-sent event interface—the proxy JAR extracted from the extension converted between the two communication modes. The local MCP connection was configured in Claude Code’s configuration file and verified with test requests before the experiment.
The project-level CLAUDE.md file served as the primary configuration artifact for the agent, defining the testing scope, available tools, user accounts, and reporting requirements. The agent was informed of the vulnerability classes under evaluation (SQL Injection, Cross-Site Scripting, and Broken Access Control) but was not provided with the reference cases (ground truth), thereby preserving the black-box nature of the assessment. Throughout the experiment, the agent relied exclusively on the predefined configuration and executed each testing phase in accordance with the established evaluation protocol.
3.6.3. Five-Phase Agent Protocol
The agent followed a predefined workflow consisting of reconnaissance, SQL injection testing, Cross-Site Scripting testing, Broken Access Control evaluation, and final reporting. Intermediate reports were generated after each testing phase, while candidate vulnerabilities were forwarded to Burp Repeater to enable independent verification of the corresponding HTTP requests.
3.7. Ground-Truth Construction
The primary evaluation set contained 12 OWASP Juice Shop challenges—three criteria governed selection. First, every item had to belong to one of the three vulnerability categories in scope. Second, the categories had to be balanced, with four cases each. Third, the selected cases had to include multiple difficulty levels, ranging from 1 to 4 stars, so that the results were not determined solely by the easiest challenges. Table 4 lists the complete evaluation set.
Table 4.
Ground-truth vulnerabilities used in the experiment.
Broken access control was particularly important to the research question. SQL injection and XSS frequently produce response characteristics that scanners can maintain signatures for. IDOR and related authorization weaknesses often require the tester to understand that two structurally valid requests should produce different results because they belong to different users. The balanced ground truth, therefore, tested both signature-oriented vulnerability classes and classes requiring cross-request context.
3.8. Evaluation Metrics and Outcome Classification
Each ground-truth item was classified as a true positive (TP) or false negative (FN) for each workflow. A reported finding that did not exist and failed manual validation was classified as a false positive (FP). True negatives were not used because the experiment did not define a closed set of confirmed non-vulnerable cases.
Recall measured the proportion of predefined vulnerabilities detected by a workflow:
Precision measured the proportion of counted findings that were true positives:
The raw FP count was reported together with the false-discovery rate (FDR):
Equations (1)–(3) define the three derived metrics used in the comparison. Precision and FDR were treated as undefined if both TP and FP were zero. Reporting 100% precision in this situation would be misleading because the workflow produced no counted finding on which precision could be evaluated. Because the unit of recall was a ground-truth item and one reported finding could map to more than one ground-truth item, the precision value reported here is scope-restricted to the adopted ground-truth mapping. It should not be interpreted as a conventional per-report confirmation rate. To expose that distinction, the post-session confirmation ratio (confirmed reports divided by all reported findings) is reported separately where applicable.
3.9. Proof-of-Concept Validation and Findings Outside the Ground Truth
A reported finding was considered a true positive only if it matched a ground-truth vulnerability and was supported by reproducible technical evidence. For Qualys WAS, the required evidence included the affected request, parameter, and response. At the same time, the agent workflow consisted of logged HTTP requests or request sequences available for replay in Burp Repeater.
Confirmed vulnerabilities that were not included in the predefined evaluation set were classified separately as “outside ground truth” rather than false positives. This distinction allowed the evaluation to differentiate between incorrect findings and valid detections beyond the selected benchmark cases. All findings were manually validated and mapped to their corresponding category, validation status, and supporting evidence.
3.10. Experimental Execution Procedure
The agent workflow was executed first, followed by the scanner workflow. Between experiments, the OWASP Juice Shop instance was fully reset by recreating the container from the official bkimminich/juice-shop:latest image to ensure comparable initial conditions. The agent was evaluated first because it required active interaction with the tester, whereas the scanner workflow could be executed autonomously.
Only one complete run was performed for each workflow. Although the scanner provided a repeatable execution process and the agent workflow was inherently non-deterministic, run-to-run variability was not measured. This limitation is considered in the discussion of threats to validity.
3.11. Experimental Artifacts
The collected experimental artifacts include the raw and human-readable Qualys reports, the complete agent execution transcript with phase reports, Burp Proxy and Repeater evidence, manual validation records containing TP, FP, FN, and outside-ground-truth mappings, and machine-readable metric records.
A unified structure was used to store evaluation results, ensuring consistent comparison between the two workflows. The replication package will be made available together with the final archival identifier.
4. Results
This section presents the results obtained for the two approaches evaluated for security testing of the OWASP Juice Shop web application: conventional scanning using Qualys WAS and an agent-based approach leveraging Claude Code, MCP, and Burp Suite. The results cover the execution characteristics of both workflows, application coverage, identified vulnerabilities, and their mapping to the previously defined set of reference vulnerabilities (ground truth). Subsequently, a quantitative comparison of the two methods is presented using the effectiveness metrics defined in the research methodology.
4.1. Execution of the Scanner-Based Workflow
The scan performed using Qualys WAS lasted 1 h 0 min 9 s. The application indexing and resource discovery phase (crawl) took 43 min 26 s, while the actual testing phase lasted 16 min 43 s. The scan was conducted using an external scanner. The report recorded scanner component versions 0.6.680b2-1 and 10.16.2-3, as well as signature version 2.6.588-3. During the assessment, 2897 HTTP requests were generated, and the entire process was completed without execution errors. Detailed metadata for the conducted scan are presented in Table 5.
Table 5.
Metadata of the completed Qualys WAS scan.
4.2. Crawl Coverage, Authentication, and Target Reachability
The scan’s most important result was not a vulnerability signature but the limited application map. The crawler recorded one unique conventional HTTP link and two AJAX links. It also identified 16 external links belonging to ngrok-related domains. Three requests returned HTTP 4xx responses. The discovered routes did not include the Juice Shop REST interfaces under /api/∗ or /rest/∗. Table 6 presents the crawl-coverage statistics.
Table 6.
Crawl-coverage statistics reported by Qualys WAS.
The three URLs associated with 404 behavior were the tunnel root, the #/ route, and the #/login route. The responses contained the ngrok error identifier ERR_NGROK_3200. These responses indicate that the external access path did not provide sufficient evidence to establish reliable end-to-end reachability of the Juice Shop application throughout the scan. Although the hash-routed SPA and the form-based authentication configuration may have affected application discovery, their individual contribution cannot be separated from the observed tunnel-level responses in the completed execution. Therefore, the absence of discovered REST endpoints and the lack of an authentication attempt cannot be attributed solely to limitations of the scanner’s crawling or authentication mechanisms. No independent application-side evidence was retained that would demonstrate that the relevant Qualys requests reached Juice Shop during the assessment.
4.3. Scanner Findings and Manual Validation
Four additional scanner observations concerned missing security headers and the availability of HTTP TRACE. Manual inspection showed that the associated responses contained ngrok-specific headers and the same tunnel-level error identifier. Accordingly, these observations were not treated as evidence of vulnerabilities in the Juice Shop application. They are retained only as scanner-reported observations associated with the intermediary access layer and are excluded from the target-level detection evaluation. Similarly, the HTTP 200 status returned for the reported /tmp/ path was not considered sufficient evidence that the resource existed or was exposed by Juice Shop, because the response body corresponded to an ngrok error page. Table 7 summarizes the scope-validation outcome.
Table 7.
Qualys findings after manual scope validation.
No ground-truth vulnerability was identified in the completed Qualys report. However, because reliable target reachability could not be independently established for the scan, the twelve undetected ground-truth items are not interpreted as scanner-level false negatives in the revised analysis. Consequently, recall, precision, and FDR are not reported for the Qualys workflow. The completed run is retained as a connectivity-constrained scanner execution illustrating how access-path and configuration conditions can affect an automated assessment, rather than as a valid estimate of the vulnerability-detection capability of Qualys WAS against Juice Shop. Table 8 records the outcome for every ground-truth item.
Table 8.
Ground-truth mapping for the Qualys WAS workflow.
Because end-to-end target reachability was not independently verified for the completed scanner execution, the absence of a ground-truth finding is not classified as a scanner-level false negative.
4.4. Execution Characteristics of the Agent-Based Workflow
The agent session was conducted on 26 April 2026 using Claude Opus 4.6. The initial target endpoint was http://localhost:3000/. The preconfigured account was jim@juice-sh.op, with application user ID 2 and the customer role. During the broken-access-control phase, the agent created testuser2@test.local, with user ID 23 and the customer role.
All five planned phases were completed without a session restart, rate-limit failure, or corrective prompt. The first four testing phases accounted for approximately 32 min of model computation. The complete wall-clock session, including phase transitions and report consolidation, lasted approximately 56 min.
The tester performed approximately 30 interactions: five start-or-continue prompts and approximately 25 approvals of MCP tool calls. Table 9 lists the session metadata.
Table 9.
Metadata of the completed agent session.
4.5. Phase-by-Phase Execution Analysis
The reconnaissance phase lasted approximately 6 min and examined more than 25 endpoints. SQL injection testing lasted 5 min and produced two confirmed technical findings. XSS testing lasted 14 min and produced three confirmed findings and one suspected finding. Broken access control testing lasted 7 min and produced seven confirmed findings.
Final consolidation required approximately 15 min. The short intervals between phases (typically 2–4 min) correspond to intermediate-report generation and tester approval of the phase transition; the target container was not reset between phases within a single session, so the application state remained consistent throughout. Table 10 shows the phase-by-phase timeline.
Table 10.
Timeline of the five-phase Claude Code session. Times are UTC.
4.6. Vulnerability Detection Results of the Agent-Based Workflow
The final agent report contained 13 findings. Twelve were confirmed by manual replay or inspection, and one remained suspected.
The severity distribution recorded in the paper was five critical, four high, three medium, and one low. Table 11 provides the complete finding set.
Table 11.
All findings reported by the agent workflow.
4.7. Ground-Truth Evaluation of the Agent-Based Workflow
Two SQL injection findings each mapped to two ground-truth challenges. The UNION-based product-search finding covered GT-03 and GT-04 because it enabled schema and credential extraction.
The login SQL injection finding covered GT-01 and GT-02 because the authentication-bypass technique could be applied to both target accounts.
The agent additionally detected GT-05, GT-07, GT-09, and GT-11.
Table 12 shows the complete conservative mapping.
Table 12.
Mapping of the agent findings to the predefined ground truth.
Four ground-truth cases were not detected. For GT-06, the agent tested /rest/track-order/:id, where server-side stripping prevented the attempted payload from being sent, and it did not identify any other endpoint matching the intended reflected-XSS challenge. For GT-08, the agent reached a related injection area but did not produce a working sanitizer bypass; the candidate remained suspected.
For GT-10, the agent found an unauthenticated administrative configuration but not the specific Admin Section challenge, so the result was conservatively kept outside the ground truth. For GT-12, the agent did not test editing a review under another user’s identity.
The conservative mapping produced TP = 8, FN = 4, and FP = 0. Six confirmed findings were retained outside the ground truth, and the suspected header-based injection was not included among the confirmed additional findings. Recall was 66.67%, scope-restricted precision was 100%, and FDR was 0% under the adopted ground-truth classification procedure.
At the report level, 12 of 13 findings were confirmed, corresponding to a post-session confirmation ratio of 92.31%; the remaining finding was neither confirmed nor disproved and therefore retained the status suspected.
4.8. Comparative Analysis of the Results
Table 13 summarizes the aggregate outcomes, while Table 14 separates recall by vulnerability category.
Table 13.
Aggregate comparison of the scanner-based and agent-based workflows.
Table 14.
Recall by vulnerability category.
5. Discussion
The results presented above reveal substantial differences between the workflow based on a conventional security scanner and the workflow employing an LLM-assisted agent. However, reporting the metric values alone does not explain the underlying causes of these differences or their practical implications. Accordingly, this section focuses on interpreting the obtained results, assessing the impact of the adopted experimental configuration, and discussing the strengths and limitations of both approaches. This analysis provides a basis for answering the research question and identifying potential application areas for LLM-based agents in the security testing of web applications.
Within the conditions of this exploratory case study, the agent-based workflow detected 8 of the 12 predefined ground-truth vulnerabilities, corresponding to a recall of 66.67%. In contrast, the completed scanner-based execution produced no findings that could be mapped to the predefined ground truth. However, because reliable end-to-end target reachability was not independently established for the scanner execution, the absence of detections cannot be classified as scanner-level false negatives, and recall for the Qualys WAS workflow is therefore not estimable. Consequently, no direct numerical recall difference between the two workflows is reported.
This answer is intentionally limited to the tested configuration. The result does not demonstrate that Claude Code is generally superior to Qualys WAS or that agent-based testing should replace dynamic scanners. The scanner did not successfully map or authenticate to the application, and the agent required active tester supervision. The defensible conclusion is descriptive: the agent workflow produced confirmed detections for 8 of 12 ground-truth items, whereas the completed scanner workflow produced none, and because scanner reachability was not verified, no conclusion about relative detection capability can be drawn.
5.1. Analysis of the SQL Injection Results
SQL injection was the strongest category for the agent. Two confirmed technical findings mapped to four ground-truth items. The product-search vulnerability supported UNION-based extraction, which covered both the database schema and user credentials challenges. The login vulnerability enabled authentication bypass across multiple target accounts, covering both login-related challenges.
This result illustrates the difference between a finding and a count of challenges. The agent did not produce four unrelated SQL injection reports. It produced two technical weaknesses with evidence broad enough to satisfy four predefined outcomes. The mapping procedure, therefore, counted ground-truth coverage rather than report titles.
The absence of SQL injection detections in the completed scanner execution cannot be attributed to the quality of its SQL injection signatures. Reliable end-to-end target reachability was not independently established, and the relevant search and login requests were not observed in the resulting application map. Therefore, SQL injection recall for the scanner workflow is not estimable from this execution. The necessary search and login requests were not reached through effective crawling and authentication. A scanner cannot apply a relevant payload to a parameter it has not discovered. A fully browser-driven and authenticated configuration could improve scanner coverage in this category, which is why the result is not presented as an upper bound on Qualys WAS capability.
5.2. Analysis of the Cross-Site Scripting Results
The agent-based workflow detected two of the four XSS vulnerabilities included in the reference set. Specifically, the agent successfully confirmed the presence of a DOM-based XSS vulnerability in the search functionality and a stored XSS vulnerability exploitable via the API that handles product reviews. The API-only finding is particularly relevant from an application-coverage perspective, as its discovery required interaction with functionality that was not reached in the completed scanner execution. The agent did not identify the predefined Reflected XSS scenario after testing the endpoint responsible for removing the injected special characters. It was also unable to develop an effective method for bypassing the server-side input filtering mechanism. These cases demonstrate that an adaptive agent should not be considered a substitute for the full expertise of a manual security tester. The model followed a logically consistent testing path and correctly interpreted the observed negative result. However, it did not systematically explore alternative attack strategies that an experienced penetration tester could reasonably consider.
In addition, one instance of Reflected XSS was identified through data returned during the exploitation of a UNION-based SQL injection vulnerability. This finding, however, did not match the predefined Reflected XSS scenario in the ground-truth set. Excluding this finding from the ground-truth evaluation preserved the original test set and prevented changes to the evaluation criteria after the experimental results were obtained.
5.3. Analysis of the Broken Access Control Results
The agent-based workflow detected two of the four predefined Broken Access Control scenarios. In addition, five confirmed access-control weaknesses were identified that were not included in the reference set. These findings included the ability to delete other users’ reviews, manipulate user roles during registration, disclose user data, expose password hashes, and access administrative configuration without authentication. This category illustrates the practical benefits of maintaining contextual information across successive interactions. The agent created a second user account, compared object identifiers, and tested operations across different user contexts. Such behavior is difficult to capture using a single response signature because the essence of these vulnerabilities lies in the relationships and authorization boundaries between users. In a properly secured system, one user should not be able to access or modify objects belonging to another user.
Despite these results, the agent did not detect two of the predefined scenarios included in the ground-truth set. It did not execute the specific review-modification scenario required to confirm GT-12. The agent also identified access to administrative information without authentication; however, it did not reproduce the specific Admin Section scenario corresponding to GT-10. Under less restrictive mapping criteria, Finding 13 could be considered functionally equivalent to GT-10, increasing recall from 8/12 to 9/12 (75%). However, the study adopted more conservative classification criteria, which were consistently retained in the present analysis. Regardless of the interpretation adopted, the overall direction of the comparison between the two approaches remains unchanged.
5.4. Scanner Coverage and Authentication Limitations
Several technical factors may have contributed to the limited scanner coverage, but their individual effects cannot be separated from the available evidence. First, the completed scan reported the configured form-based authentication as “Not Attempted.” Second, the crawler identified only the root and two AJAX links and did not inventory the Juice Shop REST interfaces. Third, the scan contained tunnel-level responses associated with ERR_NGROK_3200, and no independent application-side evidence was retained to demonstrate reliable end-to-end reachability during the relevant scan interval. Consequently, the limited coverage cannot be attributed exclusively to the scanner’s crawling or authentication mechanisms.
The 2897-request count must therefore not be interpreted as broad coverage of applications. A high number of requests can coexist with low semantic coverage when they are directed to the wrong paths. This distinction is important when comparing autonomous scanners with context-aware workflows: request volume is not an adequate proxy for the functionality exercised. A Selenium Authentication Script and a browser-capable discovery process could alter the result. The paper explicitly identifies the lack of Selenium authentication as a limitation. An improved scanner configuration should be included in future work, particularly to establish a fairer baseline for SQL injection and XSS. The present result remains valuable as an observation of the completed form-based, out-of-the-box workflow against this SPA access path. Accordingly, the observed difference in mapped detections should be interpreted as a comparison of the two completed workflows, including their respective discovery, authentication, and access mechanisms, rather than as an isolated comparison of their underlying vulnerability-detection engines. A Selenium-enabled Qualys configuration would represent a different, more application-specific scanner workflow and could yield substantially different application coverage and detection results.
5.5. Interpretation of Precision and False Positive Results
For the agent-based workflow, FP = 0 was recorded under the adopted ground-truth rules. This result arose because the protocol required reproducible evidence before a finding could be considered confirmed. Twelve findings successfully passed manual validation, while one remained unresolved. Consequently, the scope-restricted precision of the evaluated agent findings was 100%, whereas the separate report-level confirmation rate was 12/13 (92.31%). The FP = 0 result should therefore be interpreted as a consequence of the adopted evidence-validation procedure, ground-truth mapping, and manual review process, rather than as evidence that LLM-based agents do not produce hallucinated findings.
For the scanner-based workflow, no target-level FP rate or precision was estimated because reliable end-to-end target reachability was not independently established, and none of the reported observations could be attributed to the Juice Shop target. The five retained scanner observations were associated with the ngrok intermediary layer and were therefore excluded from the target-level detection evaluation.
For the scanner-based workflow, FP = 0 occurred because no reported finding matched any item in the ground-truth set, even though five observations related to the tunneling layer were returned in the scan output. These observations were classified as out-of-scope findings rather than false positives. Therefore, FP = 0 for the scanner does not indicate high precision for the target application. In this case, precision was undefined because the evaluation set contained no positive findings.
This distinction demonstrates why precision should be reported together with sensitivity (recall) and coverage measures. A workflow that fails to reach relevant application endpoints may appear to generate no false positives; however, this absence provides no meaningful evidence of its ability to detect vulnerabilities in the application. Explicitly treating cases of undefined precision as such prevents this type of result from being incorrectly presented as 100% precision.
5.6. Determinism and Adaptiveness
The scanner-based workflow is generally designed to provide greater repeatability than an exploratory workflow involving an LLM. A stable target state, fixed configuration profile, consistent signature set, and defined access path can support recurring compliance assessments, continuous monitoring, regression comparisons, and tracking of changes against an established baseline. In the present study, however, repeatability was not measured because the Qualys workflow was executed only once.
Claude Code, in contrast, represents a nondeterministic execution environment. Model sampling, the sequence of MCP tool calls, and the content of intermediate observations may result in a different testing path during a subsequent session. This variability can be beneficial for exploratory testing, as the agent can adapt its actions based on observations encountered during execution. At the same time, it complicates the reproducibility of results and statistical comparisons. A single successful execution does not provide sufficient evidence to characterize the expected average outcome of the workflow. Consequently, the 66.67% recall observed for the agent-based workflow should be treated as a single-run case-study result rather than an estimate of its expected or typical detection performance.
These properties should not, however, be regarded solely as advantages or disadvantages. Determinism facilitates stable and comparable measurements, whereas adaptability supports the exploration of previously unknown or context-dependent attack paths. A mature security testing program may require both properties and assign them to different stages of the assessment process.
5.7. Human Effort, Operational Cost, and Validation Overhead
The execution times of the two workflows were comparable, at approximately 60 min for the scanner and 56 min for the agent. However, the level of human involvement must also be taken into account. The scanner required only initial configuration and execution, after which it operated without continuous supervision. The agent, in contrast, required approximately 30 interactions, and the tester had to remain available throughout the session to approve actions and transition between successive stages of the testing process.
The use of the agent also increased the workload during result analysis. Thirteen reported findings required review, reproduction of the corresponding requests, mapping to the ground-truth set, and classification. In comparison, the scanner generated five observations that required only scope verification. Thus, the ground-truth detections obtained by the agent came at the cost of greater tester involvement in the analyzed case study came at the cost of greater tester involvement and a more demanding validation process.
The cost of the agent-based session was estimated at approximately USD 25. The cost of operating the scanner, however, could not be meaningfully reduced to a per-scan value. The cost models of the two approaches differ fundamentally. An LLM-based workflow may incur variable costs depending on session length and intensity, whereas a scanner license typically allows multiple scans after a fixed subscription fee. Consequently, any comparison in a production environment should account for the number of applications assessed, the required level of concurrency, supervision requirements, and the cost of reviewing and validating reported findings. Table 15 provides a summary of the practical trade-offs observed in this case study.
Table 15.
Practical trade-offs observed between the two workflows.
5.8. Practical Implications and Hybrid Testing Strategies
The results are consistent with a complementary rather than a replacement role, although this was not tested directly. The scanner remains well-suited for recurring baseline assessments, repeatable regression testing, and the generation of standardized reports. The agent, in contrast, can serve as an additional analytical layer for examining areas inaccessible to the scanner, verifying or extending scanner findings, comparing the behavior of different authenticated users, and testing multi-step authorization logic. A practical hybrid workflow could begin with automated application scanning and mapping. The scanner results, known endpoints, authentication credentials, and previous assessment reports could then be provided to a supervised agent. The agent could focus on unresolved areas, reproduce potential vulnerabilities, perform cross-account verification, and prepare supporting evidence for the tester. Such an approach could preserve the scalability of automated scanning while leveraging an LLM’s reasoning capabilities in application areas where contextual understanding is critical. The present experiment, however, did not evaluate such a hybrid workflow. It therefore provides only preliminary evidence supporting further investigation in this direction. Future comparative studies should consider three experimental configurations: scanner-only, agent-only, and agent-assisted scanning, while maintaining identical authenticated target coverage and repeating the experiments across multiple runs.
6. Threats to Validity
The findings reported in this study should be interpreted in light of several methodological and practical limitations. As the evaluation compares two substantially different security-testing workflows in a single experimental setting, multiple sources of bias and uncertainty may affect the observed outcomes. To provide transparency and support the correct interpretation of the results, potential threats to validity are analyzed according to established categories: internal validity, construct validity, external validity, statistical conclusion validity, tool and model validity, reproducibility and auditability, and ethical and legal boundaries. Together, these considerations define the limits of the conclusions that can reasonably be drawn from the present case study.
6.1. Sources of Internal Validity Threats
The two workflows did not use identical communication paths. The agent accessed the application locally through Burp Suite, whereas Qualys WAS accessed the target through an external HTTPS tunnel. The tunnel generated its own responses and accounted for all five scanner observations that were outside the ground-truth set. The difference in network paths also affected the scanner’s ability to discover application resources. Although both workflows analyzed the same Docker image, and the application container was reset between executions, the access layers were not equivalent. Authentication represents another important potential confounding factor. A form-based login configuration was prepared; however, the login form was not detected during the scan, and no authentication attempt was performed. The absence of a Selenium Authentication Script further limited the portion of the application accessible to the scanner. Consequently, the observed results reflect not only the capabilities of Qualys WAS but also the limitations introduced by the selected authentication mechanism and access path.
The agent-based results were also influenced by human involvement. Tool calls were manually approved, the tester initiated transitions between successive testing phases, and post-session result validation was performed by the same researcher who had previously configured the experimental environment. Although no additional corrective prompts were introduced during execution, decisions regarding tool-call approval and result assessment remained part of the workflow under evaluation. The experiments were conducted at different times. Recreating the application container between executions reduced potential differences caused by application state; however, using the Docker latest tag could theoretically have resulted in different image versions at different times. The final replication package should therefore include an immutable image identifier (image digest) to eliminate this ambiguity.
6.2. Ground-Truth Mapping and Measurement Validity
The study operationalized effectiveness using a 12-item ground truth and four quantitative metrics. Although this enabled a structured comparison, the selected measures do not capture all aspects of penetration testing, such as business impact, application function coverage, exploit chain construction, or remediation quality. Ground-truth mapping also involved interpretive decisions. One agent found exposed administrative functionality without authentication, but did not reproduce the exact Admin Section challenge and was therefore classified as outside the ground truth. Alternative mapping rules slightly increase recall, indicating that some metric values depend on classification choices.
Finally, recall was calculated at the ground-truth-item level, whereas report confirmation was assessed at the finding level. In addition, confirmed issues outside the predefined scope were categorized separately rather than treated as false positives. Consequently, the reported precision reflects the selected evaluation scope and should be interpreted together with recall and coverage information.
6.3. Generalizability and Scope of Findings
The evaluation was conducted on a single deliberately vulnerable web application (OWASP Juice Shop). Compared with typical production systems, Juice Shop contains a higher concentration of known weaknesses. It does not fully represent operational environments equipped with defensive controls such as web application firewalls, intrusion-prevention mechanisms, mature input validation, or production monitoring. Consequently, the results cannot be directly generalized to other applications, architectures, or vulnerability distributions without further replication studies.
The analysis was limited to SQL injection, cross-site scripting (XSS), and broken access control. Therefore, the findings provide no evidence regarding the effectiveness of either workflow against other vulnerability classes, including server-side request forgery, insecure deserialization, file-upload flaws, cryptographic weaknesses, infrastructure vulnerabilities, or attacks targeting non-HTTP protocols. In addition, the evaluated ecosystem is time-dependent. Changes in LLM models, MCP implementations, Burp Suite versions, Qualys signatures, or Juice Shop releases may influence future outcomes.
6.4. Statistical Reliability of Observed Differences
Each workflow was executed only once. As a result, no estimates of variance, confidence intervals, or statistical significance could be calculated. The agent’s observed recall of 66.67% describes only the specific execution reported here therefore describes only the specific executions reported in this study and should not be interpreted as a stable estimate of expected performance. This limitation is particularly relevant to the agent-based workflow due to its non-deterministic nature. Different executions may follow different exploration paths and identify different subsets of vulnerabilities. A more rigorous statistical assessment would require multiple independent repetitions of both workflows and reporting distributions for recall, precision, execution time, interaction count, and operational cost.
6.5. Workflow Attribution and Tool Dependence
The results obtained by the agent cannot be attributed exclusively to Claude Opus 4.6. The observed performance emerged from the interaction of multiple components, including the language model, MCP tool integration, Burp Suite capabilities, workflow guidance defined in CLAUDE.md, and human approval and validation activities. The measured object is therefore the complete human-supervised testing workflow rather than the model alone. Similarly, the scanner results reflect the specific Qualys WAS deployment used in the study, including the selected configuration, authentication approach, cloud-scanner infrastructure, and network-access path. Consequently, the findings should not be interpreted as a vendor-independent evaluation of scanner-based security testing in general.
The use of commercial and externally managed services introduces an additional source of uncertainty. Changes in model implementations, scanner signatures, or cloud-based components may affect future replications despite unchanged experimental procedures.
6.6. Reproducibility and Research Transparency
Meaningful replication of the study requires access to the complete experimental context, not only the reported metrics. A replication package should therefore include prompts, transcripts, workflow documentation, MCP configurations, Burp requests, Qualys configuration exports, validation mappings, raw reports, timestamps, and immutable Docker image identifiers. Providing such artifacts improves transparency and enables independent verification of reported findings. However, reproducibility remains constrained by the evolving nature of commercial cloud services and proprietary models whose internal implementations are not under the researcher’s control.
Before publication, all sensitive information should be removed from shared artifacts, including active credentials, access tokens, commercial account identifiers, and tunnel-related secrets.
6.7. Ethical and Legal Considerations
All testing activities were restricted to an authorized, intentionally vulnerable target under the researcher’s control. No production systems or third-party applications were assessed. This restriction is essential because agent-assisted testing systems can generate and execute actions that may have operational consequences if applied outside their approved scope.
The experimental workflow incorporated safeguards intended to limit unintended actions. In particular, the MCP configuration restricted the agent’s ability to modify Burp Suite settings, while manual approval requirements introduced an additional human-control mechanism. Although these measures increased interaction overhead, they provided important security and governance controls for the evaluation process.
7. Conclusions and Future Work
This paper presented a controlled, exploratory case study comparing two laboratory-defined web application security testing workflows: a Qualys WAS scanner workflow and a human-supervised agent workflow integrating Claude Code, MCP, and Burp Suite Professional. The findings characterize these specific workflow configurations under the reported experimental conditions and should not be interpreted as a general comparison between conventional vulnerability scanners and LLM-based security agents. Both were evaluated against restarted OWASP Juice Shop instances and the same balanced ground truth of four SQL injection, four cross-site scripting, and four broken access control cases. The agent detected eight of the twelve ground-truth vulnerabilities. It achieved 66.67% recall, 100% scope-restricted precision, and a 0% false-discovery rate under the ground-truth mapping rule. Separately, 12 of 13 reported findings were confirmed during post-session validation (92.31%). Its category-level recall was 100% for SQL injection and 50% for both XSS and broken access control. It also produced six confirmed findings outside the selected ground truth and one additional suspected finding. The completed Qualys WAS execution produced no findings that could be mapped to the predefined ground truth. However, the scan also contained tunnel-level ERR_NGROK_3200 responses, and no independent application-side evidence was retained to establish reliable end-to-end target reachability during the relevant scan interval. Therefore, the absence of ground-truth detections was not classified as a set of scanner-level false negatives, and recall, precision, and FDR were treated as not estimable for the Qualys WAS workflow. The scanner run is consequently retained as a connectivity-constrained workflow observation rather than as an estimate of the intrinsic vulnerability-detection capability of Qualys WAS against Juice Shop. The numerical comparison must be interpreted together with human effort and configuration limitations. The scanner ran for approximately 60 min and required limited interaction after launch. The agent session lasted approximately 56 min but required continuous tester presence, around 30 interactions, and validation of 13 findings. The agent’s confirmed ground-truth detections in this case did not imply higher autonomy or lower operational cost.
The findings are consistent with, but do not test, a complementary interpretation. Scanner-based assessment is designed for standardized, repeatable execution and scalable baseline coverage. An agent-based workflow can add adaptive exploration, cross-request reasoning, and contextual authorization testing. A hybrid process, in which scanners provide broad coverage and agents perform deeper investigation and validation under human supervision, is a hypothesis for future evaluation rather than a result of this study. Future work should address the main limitations of this case study. First, each workflow should be repeated in multiple independent runs, with the distribution of recall, precision, duration, interaction count, and cost reported. Second, the experiment should be replicated across applications using different frameworks, API designs, authentication models, and defensive controls. Third, the scanner baseline should be repeated with browser-driven crawling and Selenium authentication. Fourth, multiple LLM models and context-file variants should be evaluated. Fifth, a three-arm design should compare scanner-only, agent-only, and hybrid workflows. These extensions would determine whether the agent workflow’s observed detections persist beyond this single controlled execution and would clarify where agentic security testing creates reproducible value.
Author Contributions
Conceptualization, K.K. and A.M.; methodology, K.K.; software, K.K.; validation, K.K.; formal analysis, K.K.; investigation, K.K.; resources, K.K.; data curation, K.K.; writing—original draft preparation, K.K. and A.M.; writing—review and editing, K.K. and A.M.; visualization, K.K.; supervision, A.M.; project administration, A.M. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Acknowledgments
During the preparation of this manuscript, the authors used Grammarly for language editing and generative AI tools, including ChatGPT OpenAI, GPT-4 (OpenAI), Claude (Anthropic), and Microsoft Copilot, to assist with manuscript drafting and technical consultations. The authors critically reviewed, validated, and revised all generated content.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Nawrocki, M.; Kołodziej, J. Vulnerabilities of Web Applications: Good Practices and New Trends. Appl. Cybersecur. Internet Gov. 2024, 3, 122–143. [Google Scholar] [CrossRef] [Scilit]
- Walkowski, M.; Oko, J.; Sujecki, S. Vulnerability Management Models Using a Common Vulnerability Scoring System. Appl. Sci. 2021, 11, 8735. [Google Scholar] [CrossRef] [Scilit]
- Öztürk, C.; Kara, M. Practical Comparison of Nessus, Qualys and OpenVAS Vulnerability Scanner Tools. In Proceedings of the 5th International Eurasian Conference on Science, Engineering and Technology (EurasianSciEnTech 2024), Ankara, Turkey, 26–28 June 2024; pp. 710–716. [Google Scholar]
- Mycek, A.; Łukaczyk, M. Multi-Layered Security of Web Applications in Cloud Environments Using WAF, Zero Trust, AI-Driven Threat Detection, and RASP. In Proceedings of the 39th ECMS International Conference on Modelling and Simulation, Catania, Italy, 24–27 June 2025; pp. 262–268. [Google Scholar] [CrossRef] [Scilit]
- Hou, X.; Zhao, Y.; Wang, S.; Wang, H. Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions. ACM Trans. Softw. Eng. Methodol. 2026, 35, 302. [Google Scholar] [CrossRef] [Scilit]
- OWASP Foundation. OWASP Top 10:2025. Available online: https://owasp.org/Top10/2025/ (accessed on 4 June 2026).
- Xu, H.; Wang, S.; Li, N.; Wang, K.; Zhao, Y.; Chen, K.; Yu, T.; Liu, Y.; Wang, H. Large Language Models for Cyber Security: A Systematic Literature Review. ACM Trans. Softw. Eng. Methodol. 2025. [Google Scholar] [CrossRef] [Scilit]
- Jaffal, N.O.; Alkhanafseh, M.; Mohaisen, D. Large Language Models in Cybersecurity: A Survey of Applications, Vulnerabilities, and Defense Techniques. AI 2025, 6, 216. [Google Scholar] [CrossRef] [Scilit]
- Khoury, R.; Avila, A.R.; Brunelle, J.; Camara, B.M. How Secure Is Code Generated by ChatGPT? In Proceedings of the 2023 IEEE International Conference on Systems, Man, and Cybernetics (SMC 2023), Honolulu, HI, USA, 1–4 October 2023; pp. 2445–2451. [Google Scholar] [CrossRef] [Scilit]
- Isozaki, I.; Shrestha, M.; Console, R.; Kim, E. Towards Automated Penetration Testing: Introducing LLM Benchmark, Analysis, and Improvements. In Adjunct Proceedings of the 33rd ACM Conference on User Modeling, Adaptation and Personalization (UMAP Adjunct ’25), New York, NY, USA, 16–19 June 2025; pp. 404–419. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Bu, H.; Wen, H.; Liu, Y.; Fei, H.; Xi, R.; Li, L.; Yang, Y.; Zhu, H.; Meng, D. When LLMs meet cybersecurity: A systematic literature review. Cybersecurity 2025, 8, 55. [Google Scholar] [CrossRef] [Scilit]
- Al-Sabbagh, A.; Abdo, E.; Samrouth, K.; Alkhatib, A.A.A.; Elkhodr, M. Autosecagent: A semi-automated AI-driven penetration testing framework through recursive memory and real-time RAG. J. Supercomput. 2026, 82, 318. [Google Scholar] [CrossRef] [Scilit]
- Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K.R.; Cao, Y. ReAct: Synergizing Reasoning and Acting in Language Models. In Proceedings of the International Conference on Learning Representations (ICLR 2023), Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Schick, T.; Dwivedi-Yu, J.; Dessì, R.; Raileanu, R.; Lomeli, M.; Zettlemoyer, L.; Cancedda, N.; Scialom, T. Toolformer: Language Models Can Teach Themselves to Use Tools. In Proceedings of the 37th Conference on Neural Information Processing Systems (NeurIPS 2023), New Orleans, LA, USA, 10–16 December 2023. [Google Scholar]
- Hasan, M.M.; Li, H.; Fallahzadeh, E.; Rajbahadur, G.K.; Adams, B.; Hassan, A.E. Model Context Protocol (MCP) at First Glance: Studying the Security and Maintainability of MCP Servers. ACM Trans. Softw. Eng. Methodol. 2026, 35, 305. [Google Scholar] [CrossRef] [Scilit]
- Simon, R.; Mees, W. SoK: A Comparison of Autonomous Penetration Testing Agents. In Proceedings of the 19th International Conference on Availability, Reliability and Security (ARES ’24), Vienna, Austria, 30 July–2 August 2024; pp. 1–10. [Google Scholar] [CrossRef] [Scilit]
- Peffers, K.; Tuunanen, T.; Gengler, C.E.; Rossi, M.; Hui, W.; Virtanen, V.; Bragge, J. The Design Science Research Process: A Model for Producing and Presenting Information Systems Research. In Proceedings of the DESRIST International Conference on Design Science Research in Information Systems and Technology, Claremont, CA, USA, 24–25 February 2006; pp. 83–106. [Google Scholar]
- Peffers, K.; Tuunanen, T.; Rothenberger, M.A.; Chatterjee, S. A Design Science Research Methodology for Information Systems Research. J. Manag. Inf. Syst. 2007, 24, 45–77. [Google Scholar] [CrossRef] [Scilit]
- Gandikota, P.S.S.K.; Valluri, D.; Mundru, S.B.; Yanala, G.K.; Sushaini, S. Web Application Security through Comprehensive Vulnerability Assessment. Procedia Comput. Sci. 2023, 230, 168–182. [Google Scholar] [CrossRef] [Scilit]
- Seng, L.K.; Ithnin, N.; Said, S.Z.M. The approaches to quantify web application security scanners quality: A review. Int. J. Adv. Comput. Res. 2018, 8, 285–312. [Google Scholar] [CrossRef] [Scilit]
- Albahar, M.; Alansari, D.; Jurcut, A. An Empirical Comparison of Pen-Testing Tools for Detecting Web App Vulnerabilities. Electronics 2022, 11, 2991. [Google Scholar] [CrossRef] [Scilit]
- Kondraciuk, A.; Bartos, A.; Pańczyk, B. Comparative Analysis of the Effectiveness of OWASP ZAP, Burp Suite, Nikto and Skipfish in Testing the Security of Web Applications. J. Comput. Sci. Inst. 2022, 24, 176–180. [Google Scholar] [CrossRef] [Scilit]
- Wu, X.; Tian, Y.; Chen, Y.; Ye, P.; Cui, X.; Jia, J.; Li, S.; Liu, J.; Niu, W. CurriculumPT: LLM-Based Multi-Agent Autonomous Penetration Testing with Curriculum-Guided Task Scheduling. Appl. Sci. 2025, 15, 9096. [Google Scholar] [CrossRef] [Scilit]
- Sankaran, V.N.; Bennilo Fernandes, J. Advanced Vulnerability Detection and Exploitation in Web Applications Using Burp Suite. Int. J. Mod. Comput. Inf. Commun. Technol. 2024, 7, 67–74. [Google Scholar] [CrossRef] [Scilit]
- Thaqi, R.; Vishi, K.; Rexha, B. Enhancing Burp Suite with Machine Learning Extension for Vulnerability Assessment of Web Applications. J. Appl. Secur. Res. 2023, 18, 789–807. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.

