paper-with-me

홈 › Papers

Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review

2026-03-19 · Dimitris Mitropoulos, Nikolaos Alexopoulos, Georgios Alexopoulos, Diomidis Spinellis arxiv

Automated Code Review (ACR) systems integrating Large Language Models (LLMs) are increasingly adopted in software development workflows, ranging from interactive assistants to autonomous agents in CI/CD pipelines. In this paper, we study how LLM-based vulnerability detection in ACR is affected by the framing effect: the tendency to let the presentation of information override its semantic content in forming judgments. We examine whether adversaries can exploit this through contextual-bias injection: crafting PR metadata to bias ACR security judgments as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection, with bug-free framing producing the strongest effect. We then design a realistic and controlled experimental environment, evaluating 17 CVEs across 10 real-world projects, to assess the susceptibility of real-world ACR pipelines to vulnerability reintroduction attacks. We employ two attack strategies: a template-based attack inspired by prior related work, and a novel LLM-assisted iterative refinement attack. We find that template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our iterative refinement attack, on the other hand, achieves 100% success, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Debiasing via metadata redaction and explicit instructions restores detection in all affected cases. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.

📄 PDF Abstract BibTeX arXiv:2603.18740

Code (0)

등록된 구현이 없습니다.

Tasks

Vulnerability Detection

Similar Papers 제목 키워드 기반

Measuring Biases of Word Embeddings: What Similarity Measures and Descriptive Statistics to Use?

2021-06-01 · NAACL (TrustNLP) 2021 6 · Hossein Azarpanah, Mohsen Farhadloo

Word embeddings are widely used in Natural Language Processing (NLP) for a vast range of applications. However, it has been consistently proven that these embeddings reflect the same human biases that exist in the data u…

DescriptiveWord Embeddings

On Measuring and Mitigating Biased Inferences of Word Embeddings

2019-08-25 · Sunipa Dev, Tao Li, Jeff Phillips, Vivek Srikumar

Word embeddings carry stereotypical connotations from the text they are trained on, which can lead to invalid inferences in downstream models that rely on them. We use this observation to design a mechanism for measuring…

Natural Language InferenceWord Embeddings

Unmasking Contextual Stereotypes: Measuring and Mitigating BERT’s Gender Bias

2020-12-01 · GeBNLP (COLING) 2020 12 · Marion Bartl, Malvina Nissim, Albert Gatt

Contextualized word embeddings have been replacing standard embeddings as the representational knowledge source of choice in NLP systems. Since a variety of biases have previously been found in standard word embeddings, …

counterfactualWord Embeddings

Unmasking Contextual Stereotypes: Measuring and Mitigating BERT's Gender Bias

2020-10-27 · Marion Bartl, Malvina Nissim, Albert Gatt

Contextualized word embeddings have been replacing standard embeddings as the representational knowledge source of choice in NLP systems. Since a variety of biases have previously been found in standard word embeddings, …

counterfactualWord Embeddings

CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Models

2024-08-02 · Shengye Wan, Cyrus Nikolaidis, Daniel Song, David Molnar 외

We are releasing a new suite of security benchmarks for LLMs, CYBERSECEVAL 3, to continue the conversation on empirically measuring LLM cybersecurity risks and capabilities. CYBERSECEVAL 3 assesses 8 different risks acro…