Handling Web Service Interactions in Fuzzing with Search-Based Mock-Generation
ACM Transactions on Software Engineering and Methodology · 28.02.2026 · 35 (2) · 1-45
DOI: 10.1145/3731558 ↗Kurz gefasst
Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 21.01.2026. Verfasst von Susruthan Seran und 3 weiteren Autor:innen. Die Arbeit wurde bisher 4-mal zitiert (Crossref) und nennt 59 Literaturangaben. Gefördert von: European Research Council, State Key Laboratory of Complex and Critical Software Environment.
Abstract (Originalsprache)
Testing large and complex enterprise software systems can be a challenging task. This is especially the case when the functionality of the system depends on interactions with other external services over a network (e.g., external web services accessed through REST API calls). Although several techniques in the research literature have been shown to be effective at generating test cases in a good number of different software testing contexts, dealing with external services is still a major research challenge. In industry, a common approach is to mock external web services for testing purposes. However, generating and configuring mock web services can be a very time-consuming task, e.g., external services may not be under the control of the same developers of the tested application, making it challenging to identify the external services and simulate various possible responses. In this article, we present a novel search-based approach aimed at fully automated mocking of external web services as part of white-box, search-based fuzzing. We rely on code instrumentation to detect all interactions with external services, and how their response data is parsed. We then use such information to enhance a search-based approach for fuzzing. The tested application is automatically modified (by manipulating DNS lookups) to rather interact with instances of mock web servers. The search process not only generates inputs to the tested applications but also automatically configures responses in those mock web server instances, aiming at maximizing code coverage and fault-finding. An empirical study on four open source REST APIs from EMB, and one industrial API from an industry partner, shows the effectiveness of our novel techniques (i.e., in terms of line coverage and fault detection).
Förderung
- European Research Council
- State Key Laboratory of Complex and Critical Software Environment
Zitieren
APA
Seran, S., Zhang, M., Duman, O., & Arcuri, A. (2026). Handling Web Service Interactions in Fuzzing with Search-Based Mock-Generation. ACM Transactions on Software Engineering and Methodology, 35(2), 1-45. https://doi.org/10.1145/3731558
Vancouver
Seran S, Zhang M, Duman O, Arcuri A. Handling Web Service Interactions in Fuzzing with Search-Based Mock-Generation. ACM Transactions on Software Engineering and Methodology. 2026;35(2):1-45. doi:10.1145/3731558
BibTeX
@article{Seran2026,
author = {Seran, Susruthan and Zhang, Man and Duman, Onur and Arcuri, Andrea},
title = {Handling Web Service Interactions in Fuzzing with Search-Based Mock-Generation},
journal = {ACM Transactions on Software Engineering and Methodology},
year = {2026},
volume = {35},
number = {2},
pages = {1--45},
doi = {10.1145/3731558}
}
EUVIMED