[Paper Review] IntelliSA: An Intelligent Static Analyzer for IaC Security Smell Detection Using Symbolic Rules and Neural Inference
IntelliSA combines symbolic rule-based analysis with neural inference via a teacher-student distillation to detect Infrastructure as Code security smells, achieving higher accuracy and cost-effectiveness than baselines.
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 misconfiguration in IaC scripts can propagate widely, leading to severe system downtime and security risks. Prior studies have shown that IaC scripts often contain security smells--bad coding patterns that may introduce vulnerabilities--and have proposed static analyzers based on symbolic rules to detect them. Yet, our preliminary analysis reveals that rule-based detection alone tends to over-approximate, producing excessive false positives and increasing the burden of manual inspection. In this paper, we present IntelliSA, an intelligent static analyzer for IaC security smell detection that integrates symbolic rules with neural inference. IntelliSA applies symbolic rules to over-approximate potential smells for broad coverage, then employs neural inference to filter false positives. While an LLM can effectively perform this filtering, reliance on LLM APIs introduces high cost and latency, raises data governance concerns, and limits reproducibility and offline deployment. To address the challenges, we adopt a knowledge distillation approach: an LLM teacher generates pseudo-labels to train a compact student model--over 500x smaller--that learns from the teacher's knowledge and efficiently classifies false positives. We evaluate IntelliSA against two static analyzers and three LLM baselines (Claude-4, Grok-4, and GPT-5) using a human-labeled dataset including 241 security smells across 11,814 lines of real-world IaC code. Experimental results show that IntelliSA achieves the highest F1 score (83%), outperforming baselines by 7-42%. Moreover, IntelliSA demonstrates the best cost-effectiveness, detecting 60% of security smells while inspecting less than 2% of the codebase.
Motivation & Objective
- Address the high false-positive rates of purely rule-based IaC smell detectors.
- Integrate symbolic rule matching with neural inference to filter out false positives.
- Use knowledge distillation to train a compact student model from an LLM teacher for offline, efficient inference.
- Evaluate IntelliSA against static analyzers and LLM baselines across Puppet, Ansible, and Chef.
- Release datasets, scripts, and tooling to support open science.
Proposed method
- Apply symbolic rules to perform broad, high-recall static analysis via a technology-agnostic intermediate representation (IR).
- Use an LLM teacher to label false positives on Glitch warnings and distill this into a compact student model.
- Train a 200M-parameter student using CodeT5p-220M embeddings and a 12-layer T5 encoder to predict TP/FP for each Glitch warning.
- Combine Glitch with the distilled student to filter false positives during end-to-end inference.
- Evaluate IntelliSA against SLIC/SLAC, Glitch, Claude-4, Grok-4, and GPT-5 across Puppet, Ansible, and Chef.

Experimental results
Research questions
- RQ1RQ1: How accurate is IntelliSA in detecting IaC security smells compared with static analyzers and LLM baselines?
- RQ2RQ2: What is the cost-effectiveness of IntelliSA in locating smells with minimal inspection effort?
- RQ3RQ3: How do design choices (teacher model, student model, scale) impact IntelliSA’s effectiveness?
Key findings
- IntelliSA achieves the best F1 scores of 85%, 88%, and 77% on Puppet, Ansible, and Chef respectively.
- On cost-effectiveness, IntelliSA attains Effort@60%Recall of 1.14%, 0.74%, and 1.66%, and F1@1%LOC of 65%, 85%, and 55%, respectively.
- Compared to the Glitch baseline, IntelliSA significantly reduces false positives while maintaining high recall.
- The LLM teacher (Claude-4) provides strong false-positive detection (high F1 on FP detection), enabling effective distillation into a compact student.
- A 200M-parameter student model can match larger variants’ performance while offering substantial efficiency gains.
- The approach detects about 60% of smells while inspecting less than 2% of the codebase.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.