Dynamic Mitigation of RESTful Service Failures Using LLMs
Sébastien Salva, Jarod Sue
2025
Abstract
This paper presents a novel self-healing approach for RESTful services, leveraging the capabilities of large language models (LLMs) to generate source code that implement fine-grained mitigations. The proposed solution introduces 18 healing operators tailored for RESTful services, accommodating both grey-box and black-box perspectives. These operators implement a dual-mitigation strategy. The first mitigation employs encapsulation techniques, enabling dynamic service adaptation by generating supplementary source code without modifying the original implementation. If the primary mitigation fails, a fallback mitigation is applied to maintain service continuity. We investigate the potential of LLMs to perform the first mitigation of these healing operators by means of chains of prompts we specifically designed for these tasks. Furthermore, we introduce a novel metric that integrates test-passing correctness and LLM confidence, providing a rigorous evaluation framework for the effectiveness of the mitigations performed by LLMs. Preliminary experiments using four healing operators on 15 RESTful services with various and multiple vulnerabilities demonstrate the approach feasibility and adaptability across both grey-box and black-box perspectives.
DownloadPaper Citation
in EndNote Style
TY - CONF
JO - Proceedings of the 20th International Conference on Software Technologies - Volume 1: ICSOFT
TI - Dynamic Mitigation of RESTful Service Failures Using LLMs
SN - 978-989-758-757-3
AU - Salva S.
AU - Sue J.
PY - 2025
SP - 27
EP - 38
DO - 10.5220/0013460700003964
PB - SciTePress
in Harvard Style
Salva S. and Sue J. (2025). Dynamic Mitigation of RESTful Service Failures Using LLMs. In Proceedings of the 20th International Conference on Software Technologies - Volume 1: ICSOFT; ISBN 978-989-758-757-3, SciTePress, pages 27-38. DOI: 10.5220/0013460700003964
in Bibtex Style
@conference{icsoft25,
author={Sébastien Salva and Jarod Sue},
title={Dynamic Mitigation of RESTful Service Failures Using LLMs},
booktitle={Proceedings of the 20th International Conference on Software Technologies - Volume 1: ICSOFT},
year={2025},
pages={27-38},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0013460700003964},
isbn={978-989-758-757-3},
}