Lune

ASE2022Top-tier venue

GLITCH: Automated Polyglot Security Smell Detection in Infrastructure as Code

Nuno Saavedra, João F. Ferreira

Abstract

Infrastructure as Code (IaC) is the process of managing IT infrastructure via programmable configuration files (also called IaC scripts). Like other software artifacts, IaC scripts may contain security smells, which are coding patterns that can result in security weaknesses. Automated analysis tools to detect security smells in IaC scripts exist, but they focus on specific technologies such as Puppet, Ansible, or Chef. This means that when the detection of a new smell is implemented in one of the tools, it is not immediately available for the technologies supported by the other tools -the only option is to duplicate the effort. This paper presents an approach that enables consistent security smell detection across different IaC technologies. We conduct a large-scale empirical study that analyzes security smells on three large datasets containing 196,755 IaC scripts and 12,281,251 LOC. We show that all categories of security smells are identified across all datasets and we identify some smells that might affect many IaC projects. To conduct this study, we developed GLITCH, a new technology-agnostic framework that enables automated polyglot smell detection by transforming IaC scripts into an intermediate representation, on which different security smell detectors can be defined. GLITCH currently supports the detection of nine different security smells in scripts written in Ansible, Chef, or Puppet. We compare GLITCH with state-of-the-art security smell detectors. The results obtained not only show that GLITCH can reduce the effort of writing security smell analyses for multiple IaC technologies, but also that it has higher precision and recall than the current state-of-the-art tools.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Unfulfilled Promises: LLM-Based Detection of OS Compatibility Issues in Infrastructure as Code cites When Your Infrastructure Is a Buggy Program: Understanding Faults in Infrastructure as Code Ecosystems
  • Unfulfilled Promises: LLM-Based Detection of OS Compatibility Issues in Infrastructure as Code cites State Reconciliation Defects in Infrastructure as Code
  • Unfulfilled Promises: LLM-Based Detection of OS Compatibility Issues in Infrastructure as Code cites Gang of eight: a defect taxonomy for infrastructure as code scripts
  • Unfulfilled Promises: LLM-Based Detection of OS Compatibility Issues in Infrastructure as Code cites Practical fault detection in puppet programs
  • When Your Infrastructure Is a Buggy Program: Understanding Faults in Infrastructure as Code Ecosystems cites State Reconciliation Defects in Infrastructure as Code
  • When Your Infrastructure Is a Buggy Program: Understanding Faults in Infrastructure as Code Ecosystems cites Gang of eight: a defect taxonomy for infrastructure as code scripts
  • When Your Infrastructure Is a Buggy Program: Understanding Faults in Infrastructure as Code Ecosystems cites Practical fault detection in puppet programs
  • State Reconciliation Defects in Infrastructure as Code cites Gang of eight: a defect taxonomy for infrastructure as code scripts
  • State Reconciliation Defects in Infrastructure as Code cites Practical fault detection in puppet programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. When Your Infrastructure Is a Buggy Program: Understanding Faults in Infrastructure as Code EcosystemsGeorgios-Petros Drosos, Thodoris Sotiropoulos, Georgios Alexopoulos, Dimitris Mitropoulos et al.OOPSLA 2024 · 14 citations
  2. State Reconciliation Defects in Infrastructure as CodeMd. Mahadi Hassan, John Salvador, Shubhra Kanti Karmaker Santu, Akond RahmanFSE 2024 · 8 citations
  3. Unfulfilled Promises: LLM-Based Detection of OS Compatibility Issues in Infrastructure as CodeGeorgios-Petros Drosos, Georgios Alexopoulos, Thodoris Sotiropoulos, Dimitris Mitropoulos et al.FSE 2026

Builds on3

  1. Gang of eight: a defect taxonomy for infrastructure as code scriptsAkond Rahman, Effat Farhana, Chris Parnin, Laurie A. WilliamsICSE 2020 · 58 citations
  2. What helped, and what did not? An Evaluation of the Strategies to Improve Continuous IntegrationXianhao Jin, Francisco ServantICSE 2021 · 26 citations
  3. Practical fault detection in puppet programsThodoris Sotiropoulos, Dimitris Mitropoulos, Diomidis SpinellisICSE 2020 · 22 citations

Related papers

  1. Leveraging Practitioners' Feedback to Improve a Security LinterSofia Reis, Rui Abreu, Marcelo d'Amorim, Daniel FortunatoASE 2022 · 16 citations
  2. Your Build Scripts Stink: The State of Code Smells in Build ScriptsMahzabin Tamanna, Yash Chandrani, Matthew Burrows, Brandon Wroblewski et al.ASE 2025 · 1 citation
  3. Configuration smells in continuous delivery pipelines: a linter and a six-month study on GitLabCarmine Vassallo, Sebastian Proksch, Anna Jancso, Harald C. Gall et al.FSE 2020 · 43 citations
  4. An Empirical Study and Benchmark of Kubernetes Misconfiguration ScannersHaeun Eom, Bohyun Suk, Sungjae HwangISSTA 2026
  5. The Smelly Eight: An Empirical Study on the Prevalence of Code Smells in Quantum ComputingQihong Chen, Rúben Câmara, José Campos, André Souto et al.ICSE 2023 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines