[논문 리뷰] IntelliSA: An Intelligent Static Analyzer for IaC Security Smell Detection Using Symbolic Rules and Neural Inference
IntelliSA는 기호 규칙 기반 분석을 교사-학생 증류를 통한 신경 추론과 결합하여 IaC 보안 냄새를 탐지하며, 베이스라인보다 정확도와 비용 효율성이 더 높다.
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 전반에서 정적 분석기 및 LLM 베이스라인에 대해 IntelliSA를 평가한다.
- 개방과학을 지원하기 위해 데이터셋, 스크립트, 도구를 공개한다.]
- method:[
- Apply symbolic rules to perform broad, high-recall static analysis via a technology-agnostic intermediate representation (IR).
- 기술 중립적인 중간 표현(IR)을 통해 광범위하고 고-재현성의 정적 분석을 수행하기 위해 기호 규칙을 적용한다.
- Use an LLM teacher to label false positives on Glitch warnings and distill this into a compact student model.
- Glitch 경고에 대한 오탐을 라벨링하기 위해 LLM 교사를 활용하고 이를 소형 학생 모델로 증류한다.
- Train a 200M-parameter student using CodeT5p-220M embeddings and a 12-layer T5 encoder to predict TP/FP for each Glitch warning.
- CodeT5p-220M 임베딩과 12-레이어 T5 인코더를 사용하여 200M 매개변수 학생 모델을 훈련시켜 각 Glitch 경고의 TP/FP를 예측한다.
- Combine Glitch with the distilled student to filter false positives during end-to-end inference.
- End-to-end 추론 중 오탐을 필터링하기 위해 Glitch와 증류된 학생 모델을 결합한다.
- Evaluate IntelliSA against SLIC/SLAC, Glitch, Claude-4, Grok-4, and GPT-5 across Puppet, Ansible, and Chef.
- Puppet, Ansible, Chef 전반에서 SLIC/SLAC, Glitch, Claude-4, Grok-4, GPT-5에 대해 IntelliSA를 평가한다.
제안 방법
- Apply symbolic rules to perform broad, high-recall static analysis via a technology-agnostic intermediate representation (IR).
- 기술 중립적인 중간 표현(IR)을 통해 광범위하고 고-재현성의 정적 분석을 수행하기 위해 기호 규칙을 적용한다.
- Use an LLM teacher to label false positives on Glitch warnings and distill this into a compact student model.
- Glitch 경고에 대한 오탐을 라벨링하기 위해 LLM 교사를 활용하고 이를 소형 학생 모델로 증류한다.
- Train a 200M-parameter student using CodeT5p-220M embeddings and a 12-layer T5 encoder to predict TP/FP for each Glitch warning.
- CodeT5p-220M 임베딩과 12-레이어 T5 인코더를 사용하여 200M 매개변수 학생 모델을 훈련시켜 각 Glitch 경고의 TP/FP를 예측한다.
- Combine Glitch with the distilled student to filter false positives during end-to-end inference.
- End-to-end 추론 중 오탐을 필터링하기 위해 Glitch와 증류된 학생 모델을 결합한다.
- Evaluate IntelliSA against SLIC/SLAC, Glitch, Claude-4, Grok-4, and GPT-5 across Puppet, Ansible, and Chef.
- Puppet, Ansible, Chef 전반에서 SLIC/SLAC, Glitch, Claude-4, Grok-4, GPT-5에 대해 IntelliSA를 평가한다.

실험 결과
연구 질문
- RQ1RQ1: How accurate is IntelliSA in detecting IaC security smells compared with static analyzers and LLM baselines?
- RQ2RQ1: 정적 분석기와 LLM 베이스라인과 비교했을 때 IntelliSA가 IaC 보안 냄새를 탐지하는 정확도는 얼마나 되는가?
- RQ3RQ2: What is the cost-effectiveness of IntelliSA in locating smells with minimal inspection effort?
- RQ4RQ2: 최소한의 검사 노력으로 냄새를 위치시키는 IntelliSA의 비용 효율성은 어느 정도인가?
- RQ5RQ3: How do design choices (teacher model, student model, scale) impact IntelliSA’s effectiveness?
- RQ6RQ3: 설계 선택(교사 모델, 학생 모델, 규모)이 IntelliSA의 효과에 어떤 영향을 미치는가?
주요 결과
- IntelliSA achieves the best F1 scores of 85%, 88%, and 77% on Puppet, Ansible, and Chef respectively.
- IntelliSA는 Puppet, Ansible, Chef에서 각각 85%, 88%, 77%의 최고 F1 점수를 달성한다.
- 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.
- 비용효율성 측면에서 IntelliSA는 Effort@60%Recall 1.14%, 0.74%, 1.66%, 그리고 F1@1%LOC 65%, 85%, 55%를 각각 달성한다.
- Compared to the Glitch baseline, IntelliSA significantly reduces false positives while maintaining high recall.
- Glitch 베이스라인과 비교하여, IntelliSA는 재현율을 유지하면서 오탐을 크게 줄인다.
- The LLM teacher (Claude-4) provides strong false-positive detection (high F1 on FP detection), enabling effective distillation into a compact student.
- LLM 교사(Claude-4)는 강력한 오탐 탐지를 제공하여(FP 탐지에서 높은 F1) 소형 학생으로의 효과적 증류를 가능하게 한다.
- A 200M-parameter student model can match larger variants’ performance while offering substantial efficiency gains.
- 200M 매개변수 학생 모델이 더 큰 변형의 성능에 필적하면서도 상당한 효율성을 제공한다.
- The approach detects about 60% of smells while inspecting less than 2% of the codebase.
- 이 방법은 전체 냄새의 약 60%를 탐지하는 반면 코드베이스의 2% 미만만 검사한다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.