# When AI Agrees Too Much: Manipulating Automated Code Review via Bias Injection

DevFeed: [When AI Agrees Too Much: Manipulating Automated Code Review via Bias Injection](<https://devfeed.tech/articles/when-ai-agrees-too-much-manipulating-automated-code-review-via-bias-injection-102943.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2603.18740>)

Author: Georgios Alexopoulos, Nikolaos Alexopoulos, Diomidis Spinellis, Dimitris Mitropoulos

Published: 2026-10-28T04:00:00Z

Content type: news

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [ai code review](<https://devfeed.tech/topics/ai-code-review.md>), [LLM security](<https://devfeed.tech/topics/llm-security.md>), [Adversarial attacks](<https://devfeed.tech/topics/adversarial-attacks.md>), [software supply-chain attack](<https://devfeed.tech/topics/software-supply-chain-attack.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [human review](<https://devfeed.tech/topics/human-review.md>)

Tags: [attack](<https://devfeed.tech/tags/attack.md>), [bias](<https://devfeed.tech/tags/bias.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [contributor](<https://devfeed.tech/tags/contributor.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [cves](<https://devfeed.tech/tags/cves.md>), [development-process](<https://devfeed.tech/tags/development-process.md>), [human-oversight](<https://devfeed.tech/tags/human-oversight.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [llm-assisted](<https://devfeed.tech/tags/llm-assisted.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [pipelines](<https://devfeed.tech/tags/pipelines.md>), [projects](<https://devfeed.tech/tags/projects.md>)

## AI overview

The study finds that framing can systematically affect LLM vulnerability detection and that PR metadata can exploit this bias in automated code review. It evaluates 33 CVEs across 20 projects using Claude Code and CodeRabbit. Template-based attempts were ineffective and sometimes raised suspicion, while an LLM-assisted refinement attack succeeded in 32 of 33 cases. The authors attribute this result to attackers' ability to iteratively test against a local clone while reviewers get one chance to catch an attack. They caution against over-reliance on automated review and emphasize human oversight and contributor trust.

## Source excerpt

arXiv:2603.18740v5 Announce Type: replace-cross Abstract: 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. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to vulnerability re-introduction attacks. We employ two attack strategies: a template-based attack inspired by prior related work, and a novel LLM-assisted refinement attack. We find that template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, 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. 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.