LLM-Based Misconfiguration Detection for AWS Serverless Computing
Preprint
Abstract
Serverless computing is an emerging cloud computing paradigm that enables developers to build applications at the function level, known as serverless applications. Amazon Web Services (AWS), the leading provider in this domain, provides the Serverless Application Model (AWS SAM), the most widely adopted configuration schema for configuring and managing serverless applications through a specified file. However, misconfigurations pose a significant challenge in serverless development. Traditional data-driven techniques may struggle with serverless applications because the complexity of serverless configurations hinders pattern recognition, and it is challenging to gather complete datasets that cover all possible configurations. Leveraging vast amounts of publicly available data during pre-training, LLMs can have the potential to assist in identifying and explaining misconfigurations in serverless applications. In this paper, we introduce SlsDetector, the first framework leveraging LLMs to detect misconfigurations in serverless applications. SlsDetector utilizes effective prompt engineering with zero-shot learning to identify configuration issues. It designs multi-dimensional constraints specifically tailored to the configuration characteristics of serverless applications and leverages the Chain of Thought technique to enhance LLMs inferences. We evaluate SlsDetector on a curated dataset of 110 configuration files. Our results show that SlsDetector, based on ChatGPT-4o, achieves a precision of 72.88%, recall of 88.18%, and F1-score of 79.75%, outperforming state-of-the-art data-driven approaches by 53.82, 17.40, and 49.72 percentage points, respectively. Furthermore, we investigate the generalization capability of SlsDetector by applying recent LLMs, including Llama 3.1 (405B) Instruct Turbo and Gemini 1.5 Pro, with results showing consistently high effectiveness across these models.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Multitask-Based Evaluation of Open-Source LLM on Software VulnerabilityIEEE Transactions on Software Engineering, 2024
- Self-Collaboration Code Generation via ChatGPTACM Transactions on Software Engineering and Methodology, 2024
- Evaluating and Improving ChatGPT for Unit Test GenerationProceedings of the ACM on Software Engineering, 2024
- DRIVE: Dockerfile Rule Mining and Violation DetectionACM Transactions on Software Engineering and Methodology, 2023
- Rise of the Planet of Serverless Computing: A Systematic ReviewACM Transactions on Software Engineering and Methodology, 2023
- Stateful Serverless Computing with CrucialACM Transactions on Software Engineering and Methodology, 2022
- Serverless Testing: Tool Vendors' and Experts' Points of ViewIEEE Software, 2020
- ConfVD: System Reactions Analysis and Evaluation Through Misconfiguration InjectionIEEE Transactions on Reliability, 2018
- Synthesizing configuration file specifications with association rule learningProceedings of the ACM on Programming Languages, 2017
- Systems Approaches to Tackling Configuration ErrorsACM Computing Surveys, 2015