Skip to main content
QUICK REVIEW

[논문 리뷰] Measuring and Exploiting Confirmation Bias in LLM-Assisted Security Code Review

Dimitris Mitropoulos, Nikolaos Alexopoulos|arXiv (Cornell University)|2026. 03. 19.
Software Engineering ResearchComputer Science인용 수 0
한 줄 요약

본 논문은 LLM 기반 보안 코드 리뷰에서 확인 편향이 취약점 탐지 성능을 저하시킨다는 것을 보이고, 적대자가 편향된 PR 메타데이터를 통해 이를 악용할 수 있음을 시연하며, 편향 제거가 이 효과를 완화한다.

ABSTRACT

Security code reviews increasingly rely on systems integrating Large Language Models (LLMs), ranging from interactive assistants to autonomous agents in CI/CD pipelines. We study whether confirmation bias (i.e., the tendency to favor interpretations that align with prior expectations) affects LLM-based vulnerability detection, and whether this failure mode can be exploited in software supply-chain attacks. We conduct two complementary studies. Study 1 quantifies confirmation bias through controlled experiments on 250 CVE vulnerability/patch pairs evaluated across four state-of-the-art models under five framing conditions for the review prompt. Framing a change as bug-free reduces vulnerability detection rates by 16-93%, with strongly asymmetric effects: false negatives increase sharply while false positive rates change little. Bias effects vary by vulnerability type, with injection flaws being more susceptible to them than memory corruption bugs. Study 2 evaluates exploitability in practice mimicking adversarial pull requests that reintroduce known vulnerabilities while framed as security improvements or urgent functionality fixes via their pull request metadata. Adversarial framing succeeds in 35% of cases against GitHub Copilot (interactive assistant) under one-shot attacks and in 88% of cases against Claude Code (autonomous agent) in real project configurations where adversaries can iteratively refine their framing to increase attack success. Debiasing via metadata redaction and explicit instructions restores detection in all interactive cases and 94% of autonomous cases. Our results show that confirmation bias poses a weakness in LLM-based code review, with implications on how AI-assisted development tools are deployed.

연구 동기 및 목표

  • 보안 코드 리뷰에서 LLM 기반 취약점 탐지에 확인 편향이 영향을 미치는지 평가한다.
  • 여러 모델과 취약점 유형에 따른 프레이밍이 탐지 성능에 어떤 변화를 주는지 정량화한다.
  • 인터랙티브 및 자율적 리뷰 설정에서 적대적 PR을 통한 편향의 실용적 악용 가능성을 평가한다.
  • AI 보조 리뷰 도구의 편향을 완화하기 위한 편향 제거 접근법과 배치 가이던스를 조사한다.

제안 방법

  • 다섯 가지 프레이밍 조건에서 네 가지 LLM에 걸쳐 250개의 CVE–패치 쌍으로 제어된 편향 실험을 수행하여 총 ~10,000회의 쿼리를 수행한다.
  • 자동 메트릭을 넘어 실제 탐지 품질을 평가하기 위해 CVE 패치에 대한 탐지를 수동으로 검증한다.
  • 편향 지표(진정 양성 및 거짓 양성 비율의 변화)를 계산하고 효과 크기로 Cohen’s h를 사용하는 두비율 z-검정을 적용한다.
  • 인터랙티브 및 자율적 리뷰 맥락에서 수정 사항을 되돌리고 편향을 유발하는 메타데이터를 삽입하는 적대적 PR을 설계하여 공급망 공격을 시뮬레이션한다.
  • 메타데이터 삭제 및 명시적 지침을 통한 편향 제거를 평가하고 탐지 복구를 측정한다.

실험 결과

연구 질문

  • RQ1RQ1: LLM이 취약점 탐지에서 확인 편향에 취약한가, 그리고 프레이밍 조건이 탐지율과 오류 유형에 어떻게 영향을 미치는가?
  • RQ2RQ2: 어떤 취약점 특성과 코드 특성이 편향 취약성과 공격 성공에 영향을 주는가?
  • RQ3RQ3: 확인 편향이 LLM 기반 코드 리뷰에서 공급망 공격을 가능하게 할 수 있는가, 그리고 편향 제거 전략은 얼마나 효과적인가?

주요 결과

  • 프레이밍을 버그-프리로 적용하면 네 가지 모델에 걸쳐 취약점 탐지율이 극적으로 감소한다(예: GPT-4o-mini의 경우 97.2%에서 3.6%로), 큰 거짓부재율 증가가 동반된다.
  • 중립 프레이밍에서 패치된 코드에 대한 거짓양성은 높고(68.4–96.8%), 편향은 일부 모델에서 FPR를 더 증가시킬 수 있다(최대 13.6pp).
  • 편향 효과는 강하게 비대칭적이다: 거짓부정 편향이 (4–114×)으로 거짓양성 편향보다 우세하여 정밀도 역설을 만든다.
  • 적대적 PR 프레이밍은 통제된 실험에서 상당한 공격 성공을 보인다(GitHub Copilot에 대해 35%, Claude Code에 대해 88%), 반복적 정제가 자율 설정에서 성공률을 높인다.
  • 메타데이터 삭제와 명시적 지침을 통한 편향 제거는 탐지 복구를 이끌어 내고(자율 사례에서 최대 93.75%), 인터랙티브 경우를 완전히 회복한다.
  • 본 연구는 배포 가이드와 공개 산출물을 제공하여 강건한 AI 보조 보안 리뷰에 대한 연구를 진전시킨다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.