paper-with-me

Papers

Detection of security smells in IaC scripts through semantics-aware code and language processing

2025-09-23 · Aicha War, Adnan A. Rawass, Abdoul K. Kabore, Jordan Samhi, Jacques Klein, Tegawende F. Bissyande arxiv

Infrastructure as Code (IaC) automates the provisioning and management of IT infrastructure through scripts and tools, streamlining software deployment. Prior studies have shown that IaC scripts often contain recurring security misconfigurations, and several detection and mitigation approaches have been proposed. Most of these rely on static analysis, using statistical code representations or Machine Learning (ML) classifiers to distinguish insecure configurations from safe code. In this work, we introduce a novel approach that enhances static analysis with semantic understanding by jointly leveraging natural language and code representations. Our method builds on two complementary ML models: CodeBERT, to capture semantics across code and text, and LongFormer, to represent long IaC scripts without losing contextual information. We evaluate our approach on misconfiguration datasets from two widely used IaC tools, Ansible and Puppet. To validate its effectiveness, we conduct two ablation studies (removing code text from the natural language input and truncating scripts to reduce context) and compare against four large language models (LLMs) and prior work. Results show that semantic enrichment substantially improves detection, raising precision and recall from 0.46 and 0.79 to 0.92 and 0.88 on Ansible, and from 0.55 and 0.97 to 0.87 and 0.75 on Puppet, respectively.

📄 PDF Abstract BibTeX arXiv:2509.18790

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Security smells in infrastructure as code: a taxonomy update beyond the seven sins

2025-09-23 · Aicha War, Serge L. B. Nikiema, Jordan Samhi, Jacques Klein 외 arxiv

Infrastructure as Code (IaC) has become essential for modern software management, yet security flaws in IaC scripts can have severe consequences, as exemplified by the recurring exploits of Cloud Web Services. Prior work…

IntelliSA: An Intelligent Static Analyzer for IaC Security Smell Detection Using Symbolic Rules and Neural Inference

2026-01-21 · Qiyue Mei, Michael Fu arxiv

Infrastructure as Code (IaC) enables automated provisioning of large-scale cloud and on-premise environments, reducing the need for repetitive manual setup. However, this automation is a double-edged sword: a single misc…

Knowledge Distillation

Data Smells: Categories, Causes and Consequences, and Detection of Suspicious Data in AI-based Systems

2022-03-19 · Harald Foidl, Michael Felderer, Rudolf Ramler

High data quality is fundamental for today's AI-based systems. However, although data quality has been an object of research for decades, there is a clear lack of research on potential data quality issues (e.g., ambiguou…

Specification and Detection of LLM Code Smells

2025-12-19 · Brahim Mahmoudi, Zacharie Chenail-Larcher, Naouel Moha, Quentin Stiévenart 외 arxiv

Large Language Models (LLMs) have gained massive popularity in recent years and are increasingly integrated into software systems for diverse purposes. However, poorly integrating them in source code may undermine softwa…

Follow Your Nose -- Which Code Smells are Worth Chasing?

2021-03-02 · Idan Amit, Nili Ben Ezra, Dror G. Feitelson

The common use case of code smells assumes causality: Identify a smell, remove it, and by doing so improve the code. We empirically investigate their fitness to this use. We present a list of properties that code smells …