arXiv:2610.13626cs.SEOct 2026

Manuscript Offprint

arXiv:2610.13626

SWE-DeceptionBench: Benchmarking Deceptive Behaviors of LLMs Across the Software Development Lifecycle

Xiting Liu, Lin Yang, Yitong Zhang, Jia Li, Shi-Min Hu

XITING LIU, Department of Computer Science and Technology, Tsinghua University, China

LIN YANG, College of Computer Science and Artificial Intelligence, Fudan University, China

YITONG ZHANG, College of AI, Tsinghua University, China

JIA LI, College of AI, Tsinghua University, China

SHI-MIN HU, Department of Computer Science and Technology, Tsinghua University, China

Large Language Models (LLMs) are increasingly used throughout the software development lifecycle. This growing reliance on LLMs raises concerns about their trustworthiness, with deception posing a particularly important risk. Deceptive behavior takes the form of misleading responses or assistance in fabricating, concealing, or distorting information. To study this behavior, we introduce SWE-DeceptionBench, a benchmark for evaluating LLM deception in software engineering. The benchmark covers six lifecycle stages and two deception triggers: Active Deception, where models recognize infeasible or conflicting requirements but still present them as achievable, and Passive Deception, where models help fulfill explicit user requests to mislead others. We further introduce Neutral, Reward, and Pressure conditions to study the effect of external inducements, resulting in 720 test instances in Chinese and English. Evaluating seven mainstream LLMs, we find substantial deception even under the Neutral condition, with aggregate rates of 49.88% for Active Deception and 64.29% for Passive Deception. Deception rates vary across lifecycle stages, and external inducements affect Active and Passive Deception to different extents. We also evaluate lightweight defenses, finding that guard models miss many deceptive requests, and Self-Reminder reduces but does not eliminate deceptive responses. These findings highlight the need for more effective deception detection and mitigation methods to support trustworthy LLM-based software engineering.

ACM Reference Format:

Xiting Liu, Lin Yang, Yitong Zhang, Jia Li, and Shi-Min Hu. 2026. SWE-DeceptionBench: Benchmarking Deceptive Behaviors of LLMs Across the Software Development Lifecycle. 1, 1 (October 2026), 21 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

In recent years, Large Language Models (LLMs) have been rapidly adopted in software engineering practice. They are gradually evolving from simple code completion tools into intelligent assistants that support multiple stages of software development [13]. For example, MetaGPT employs LLM-based agents to translate user requirements into structured requirements documents and system designs [12]. ChatUniTest focuses on leveraging LLMs for automated unit test generation [5], while

Authors' Contact Information: Xiting Liu, Department of Computer Science and Technology, Tsinghua University, Department of Computer Science and Technology, Beijing, China, liuxt25@mails.tsinghua.edu.cn; Lin Yang, College of Computer Science and Artificial Intelligence, Fudan University, College of Computer Science and Artificial Intelligence, Shanghai, China, lin_yang25@m.fudan.edu.cn; Yitong Zhang, College of AI, Tsinghua University, College of AI, Beijing, China, 22373337@buaa.edu.cn; Jia Li, College of AI, Tsinghua University, College of AI, Beijing, China, jia_li@mail.tsinghua.edu.cn; Shi-Min Hu, Department of Computer Science and Technology, Tsinghua University, Department of Computer Science and Technology, Beijing, China, shimin@tsinghua.edu.cn.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM XXXX-XXXX/2026/10-ART

https://doi.org/10.1145/nnnnnnn.nnnnnnn

Xiting Liu, Lin Ynag, Yitong Zhang, Jia Li, and Shi-Min Hu

Figure

Fig. 1. Illustrative examples of Active and Passive Deception in software engineering.

agent-based systems such as SWE-agent support iterative software development by enabling LLMs to inspect repositories, modify code, and execute tests and programs [35].

As LLMs become increasingly involved in software engineering, their outputs may directly influence real engineering decisions and artifacts, raising new concerns about their trustworthiness. One particularly important concern is the potential for deceptive behavior. An LLM exhibits such behavior when it produces misleading responses or assists in misrepresenting information. To examine this risk, we consider two types of software engineering scenarios. The Active Deception task assesses whether an LLM recognizes infeasible or conflicting requirements but still presents them as achievable. The Passive Deception task assesses whether an LLM assists with explicit user requests to fabricate, conceal, or distort information. Figure 1 illustrates representative cases of these two scenarios. Such behaviors can mislead developers and affect downstream decisions and system outcomes, making their evaluation important for the trustworthy use of LLMs. However, most existing deception benchmarks are not tailored to software engineering. DeceptionBench, for example, covers domains such as healthcare, education, and social interaction [14][14]. The evaluation of LLM deception in software engineering therefore remains limited.

To address this gap, we propose SWE-DeceptionBench, a benchmark for systematically evaluating deceptive behaviors of LLMs across the software development lifecycle. We organize the benchmark along three dimensions:

• Dimension 1: Software Development Lifecycle Stage. We organize scenarios across six representative stages of the software development lifecycle: Requirements Analysis, System Design, Development, Testing, Deployment, and Maintenance. Each stage contains scenarios reflecting its characteristic engineering tasks and artifacts, allowing the benchmark to cover deception risks that arise at different points in the development process.

• Dimension 2: Deception Trigger. The Active Deception and Passive Deception scenarios introduced above differ in the source of deception risk. We use the term deception trigger to characterize these sources. Building on the lifecycle coverage in Dimension 1, we construct both types of scenarios for each stage.

SWE-DeceptionBench: Benchmarking Deceptive Behaviors of LLMs Across the Software Development Lifecycle

3

• Dimension 3: External Inducement Condition. Prior work has shown that external inducements, such as rewards and pressure, can influence deceptive behavior [14, 26, 27]. To examine their effects in software engineering, we instantiate each deception scenario under three conditions: Neutral, Reward, and Pressure. These variants preserve the underlying engineering task and deception trigger, enabling controlled analysis of how external inducements affect deceptive behavior.

To assess the risks posed by LLM deception in software engineering, we evaluate seven mainstream LLMs, including GPT-5.5 [21], Claude-Opus-4.8 [2], and DeepSeek-V4-Pro [8], on SWE-DeceptionBench. We also examine two lightweight defenses: guard models [10, 38] for detecting deceptive requests and Self-Reminder [34] for mitigating deceptive responses. Our main findings are as follows: ① Deceptive behaviors are prevalent in software engineering scenarios. Even under the Neutral condition, Active and Passive Deception rates reach 49.88% and 64.29%, respectively. Models may produce misleading answers despite recognizing task limitations or assist explicit requests to mislead others. ② Deception varies across engineering contexts and external inducement conditions. We observe differences in deception rates across the six software development lifecycle stages. External inducements also influence deceptive behavior, with the extent of their effects differing between Active and Passive Deception. ③ Lightweight defenses provide incomplete protection against deception. Guard models detect only a limited proportion of deceptive requests, while Self-Reminder substantially reduces deceptive responses but does not eliminate them. These findings demonstrate that deception constitutes an important trustworthiness risk for LLM-based software engineering. Further research is therefore needed to develop more effective methods for detecting and mitigating deceptive behavior.

In summary, our contributions are threefold:

• We formulate software engineering deception as an observable behavioral trustworthiness issue and distinguish Active and Passive Deception based on how deceptive behavior is triggered.

• We introduce SWE-DeceptionBench, a benchmark spanning six software development lifecycle stages and controlled external inducement conditions, comprising 720 test instances in Chinese and English.

• We conduct an extensive evaluation of seven LLMs and assess lightweight detection and mitigation methods, providing empirical evidence on deception patterns and the effectiveness and limitations of these defenses.

References (18)