CoTDeceptor:Adversarial Code Obfuscation Against CoT-Enhanced LLM Code Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
LLM-based code agents(e.g., ChatGPT Codex) are increasingly deployed as detector for code review and security auditing tasks. Although CoT-enhanced LLM vulnerability detectors are believed to provide improved robustness against obfuscated malicious code, we find that their reasoning chains and semantic abstraction processes exhibit exploitable systematic weaknesses.This allows attackers to covertly embed malicious logic, bypass code review, and propagate backdoored components throughout real-world software supply chains.To investigate this issue, we present CoTDeceptor, the first adversarial code obfuscation framework targeting CoT-enhanced LLM detectors. CoTDeceptor autonomously constructs evolving, hard-to-reverse multi-stage obfuscation strategy chains that effectively disrupt CoT-driven detection logic.We obtained malicious code provided by security enterprise, experimental results demonstrate that CoTDeceptor achieves stable and transferable evasion performance against state-of-the-art LLMs and vulnerability detection agents. CoTDeceptor bypasses 14 out of 15 vulnerability categories, compared to only 2 bypassed by prior methods. Our findings highlight potential risks in real-world software supply chains and underscore the need for more robust and interpretable LLM-powered security analysis systems.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 21 of its 39 references that are in the map. First posted on arXiv 24 Dec 2025.
Builds on
21 of 39 references.
Closest ancestors · 2
Same direction, newest first
- 2025Reasoning-Style Poisoning of LLM Agents via Stealthy Style Transfer: Process-Level Attacks and Runtime Monitoring in RSV Space16 Dec
- 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositories5 Mar
Other references · 19
- 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 264
- 2025A Survey on Code Generation with LLM-based Agentscited by 104
- 2022Natural Attack for Pre-trained Models of Codecited by 72
- 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
- 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 61
- 2019Pythia: AI-assisted Code Completion Systemcited by 54
- 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 47
- 2025RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditingcited by 47
- 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
- 2023Security Weaknesses of Copilot-Generated Code in GitHub Projects: An Empirical Studycited by 36
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 32
- 2024Chain-of-Thought Prompting of Large Language Models for Discovering and Fixing Software Vulnerabilitiescited by 31
7 more
- 2025A Survey of Vibe Coding with Large Language Modelscited by 25
- 2024Preemptive Answer "Attacks" on Chain-of-Thought Reasoningcited by 16
- 2024VulnLLMEval: A Framework for Evaluating Large Language Models in Software Vulnerability Detection and Patchingcited by 9
- 2024Enhancing Adversarial Attacks through Chain of Thoughtcited by 8
- 2025Large Language Models Versus Static Code Analysis Tools: A Systematic Benchmark for Vulnerability Detectioncited by 6
- 2024An Empirical Study of False Negatives and Positives of Static Code Analyzers From the Perspective of Historical Issuescited by 4
- 2025CryptoScope: Utilizing Large Language Models for Automated Cryptographic Logic Vulnerability Detectioncited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detection
- 2026Acoda: Adversarial Code Obfuscation for Defending against LLM-based Analysis
- 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents
- 2026Agentic Vulnerability Reasoning on COTS Binaries
- 2026CoT-Guard: Small Models for Strong Monitoring
- 2024MaPPing Your Model: Assessing the Impact of Adversarial Attacks on LLM-based Programming Assistants
- 2024Imprompter: Tricking LLM Agents into Improper Tool Use
- 2024From Allies to Adversaries: Manipulating LLM Tool-Calling through Adversarial Injection