Skip to main content
QUICK REVIEW

[论文解读] IntelliSA: An Intelligent Static Analyzer for IaC Security Smell Detection Using Symbolic Rules and Neural Inference

Qiyue Mei, Michael C. Fu|arXiv (Cornell University)|Jan 21, 2026
Advanced Malware Detection TechniquesComputer Science被引用 0
一句话总结

IntelliSA 将符号规则分析与教师–学生蒸馏的神经推理结合起来检测 IaC 安全异味,比基线具有更高的准确性和成本效益。

ABSTRACT

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.

研究动机与目标

  • 解决纯基于规则的 IaC 异味检测器的高误报率。
  • 将符号规则匹配与神经推理集成以过滤误报。
  • 使用知识蒸馏从 LLM 教师模型训练出离线高效推断的紧凑学生模型。
  • 在 Puppet、Ansible、Chef 上对 IntelliSA 与静态分析器和 LLM 基线进行对比评估。
  • 发布数据集、脚本和工具以支持开放科学。

提出的方法

  • 应用符号规则通过技术无关的中间表示(IR)执行广泛且高召回的静态分析。
  • 使用一个 LLM 教师对 Glitch 警告的误报进行标注并蒸馏成紧凑的学生模型。
  • 使用 CodeT5p-220M 的嵌入和一个 12 层的 T5 编码器训练一个 200M 参数的学生模型,以预测每个 Glitch 警告的 TP/FP。
  • 将 Glitch 与蒸馏后的学生模型结合,在端到端推理中筛选误报。
  • 在 Puppet、Ansible、Chef 上对 IntelliSA 与 SLIC/SLAC、Glitch、Claude-4、Grok-4、GPT-5 进行对比评估。
Figure 1. (Motivating Example) A false positive case from Glitch : the variable $db_user is flagged as a hard-coded secret because its name matches the isUser() predicate and the fallback value ’ironic’ is a literal. This illustrates how symbolic rule matching without semantic context can misclassif
Figure 1. (Motivating Example) A false positive case from Glitch : the variable $db_user is flagged as a hard-coded secret because its name matches the isUser() predicate and the fallback value ’ironic’ is a literal. This illustrates how symbolic rule matching without semantic context can misclassif

实验结果

研究问题

  • RQ1RQ1: 与静态分析器和 LLM 基线相比,IntelliSA 在检测 IaC 安全异味方面有多准确?
  • RQ2RQ2: IntelliSA 在需要最少检视努力的情况下定位异味的成本效益如何?
  • RQ3RQ3: 设计选择(教师模型、学生模型、规模)如何影响 IntelliSA 的有效性?

主要发现

  • IntelliSA 在 Puppet、Ansible、Chef 上的 F1 分数分别达到 85%、88%、77%,为最佳。
  • 在成本效益方面,IntelliSA 的 Effort@60%Recall 分别为 1.14%、0.74%、1.66%,F1@1%LOC 分别为 65%、85%、55%。
  • 与 Glitch 基线相比,IntelliSA 在保持高召回率的同时显著降低了误报。
  • LLM 教师(Claude-4)在误报检测上提供强大的性能(对 FP 检测的高 F1),从而实现对紧凑学生模型的有效蒸馏。
  • 一个 200M 参数的学生模型能够达到较大变体的性能,同时提供可观的效率提升。
  • 该方法在检查不到 2% 的代码库时,检测到约 60% 的异味。
Figure 2. Overview of IntelliSA training process and inference usage.
Figure 2. Overview of IntelliSA training process and inference usage.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。