Skip to content
Open access

Security smell detection in Dockerfiles

Sep 2026 · International Conference on Automated Software Engineering · Vol 33 · 0 citations · 42 references

TL;DR

An LLM-assisted IaC security framework that integrates a fine-tuned multi-label risk detector trained on 4,000 manually annotated Dockerfiles across ten high-impact categories, and a retrieval-augmented interpretation-and-repair module that outputs both human-readable rationales and corrected code.

Abstract

Dockerfiles are a widely adopted format for specifying Infrastructure-as-Code (IaC). However, insecure or misconfigured Dockerfiles frequently introduce critical security smells, including improper privilege use, unpinned dependencies, and secret leakage. State-of-practice tools such as Hadolint, Checkov, and KICS rely on static rules and regular expressions, leading to high false-negative rates and limited explanations for developers—particularly when security smells are semantically interwoven into configuration logic. We present an LLM-based framework that integrates (i) a fine-tuned multi-label risk detector trained on 4,000 manually annotated Dockerfiles across ten high-impact categories, and (ii) a retrieval-augmented interpretation-and-repair module that outputs both human-readable rationales and corrected code. The system is deployed via a VSCode plugin for real-time support. Experiments on a curated test set show that the detector achieves a macro-averaged precision of 0.97 and recall of 0.94, improving recall by 9–28 percentage points over static baselines. A user study further confirms the usability of our approach, demonstrating significant improvements in risk comprehension, identification accuracy, and remediation effort. Our findings highlight the feasibility of LLM-assisted IaC security and provide practical early mitigation for Dockerfile misconfigurations.

Read PDF

Similar papers

Open access Sep 2026

From Open Redirect to JavaScript Execution via CVE-2024-4367

This case study presents a forensically documented analysis of a multi-stage security incident involving CVE-2024-4367, an arbitrary JavaScript execution vulnerability in PDF.js. The incident occurred on one PKP Open Journal Systems (OJS) deployment. The observed chain involved an open redirect in the host platform's s...

Muhammad Hendra Sunarya, M. N. D. Nugroho, Reja Revaldy F et al. · 0 citations
#artificial intelligence Preprint Oct 2026

KaliBench: A Fine-Grained Benchmark for Cybersecurity Tool Use on Kali Linux with Runtime-Free Verifiable Rewards

LLMs are increasingly applied to cybersecurity workflows, where they are expected to translate analysts'intent into tool invocations. However, existing evaluations focus on knowledge-based assessments or end-to-end agentic tasks, and do not directly measure LLMs'ability to generate executable commands for real-world cy...

Peng-Fei Li, Naufal Suryanto, Si-Cheng Zhang et al. · 0 citations
Review Open access 2026

Security Analysis of LLM-Generated Web API Backends

A security assessment on 75 FastAPI backends generated by three contemporary LLMs revealed a disconnect between functional correctness and secure logic, which is interpreted as a review-risk pattern, which is called the human-in-the-loop paradox.

Abdul Ali Khan, S. Rauti, T. Mäkilä · 0 citations
Review Open access Sep 2026

CodeMergeR: A Shiny‐Based Application for Codelist Integration

ABSTRACT Objective To describe CodeMergeR, an open‐source R shiny application developed within the VAC4EU network for the standardization, cleaning, and integration of individual concept codelists into a master file for real‐world evidence (RWE) studies. Materials and Methods CodeMergeR was designed to process codelist...

V. Hoxhaj, J. Riera-Arnau, Sima Mohammadi et al. · 0 citations
Preprint Oct 2026

DITTO: A Context-aware Pickle-based Pre-Trained Model Scanner for Effective Security Audits

Pre-trained models (PTMs) are widely distributed as serialized binaries, but their reuse often exposes software supply chains to deserialization attacks. Despite the emergence of safer serialization formats, the unsafe Pickle format remains prevalent: our analysis of over 10,000 popular Hugging Face repositories reveal...

Qiao-Lin Qin, Wan-Peng Li, Benoit Baudry et al. · 0 citations
Preprint Sep 2026

A2A-ForensicTrace: Offline Verification of Tamper-Evident A2A Runtime Evidence

Security-relevant Agent2Agent (A2A) executions can cross organizational boundaries, leaving investigators without live access to all participating systems. Offline investigation involves checking preserved records and their cross-record relationships for consistency. This paper presents A2A-ForensicTrace, an offline ve...

Adil Alshammari, Sareh Assiri, Hayretdin Bahşi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.