arXiv:2610.19566cs.CROct 2026

Manuscript Offprint

arXiv:2610.19566

Mission (Im)Possible: Towards Autonomous Discovery of Autopilot Logic Flaws in Open-Source Drone Frameworks

Ziyi Liang, Zichuan Li, Bin Yuan, Deqing Zou, Luyi Xing

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ZIYI LIANG*, Huazhong University of Science and Technology, China

ZICHUAN LI*, University of Illinois Urbana-Champaign, USA

BIN YUAN, Huazhong University of Science and Technology, China

DEQING ZOU, Huazhong University of Science and Technology, China

LUYI XING, University of Illinois Urbana-Champaign, USA

Autonomous drones are increasingly deployed in safety-critical tasks, yet their autopilot software can still contain subtle logic flaws that lead to unsafe behaviors. These flaws are difficult to discover with existing techniques because they often depend on semantic relationships across modules, commands, and runtime state, and may not manifest as crashes or other easily detectable failures. With recent advances in large language models (LLMs), we observe that, when equipped with essential domain knowledge and carefully crafted context, LLMs demonstrate strong capabilities in understanding the high-level semantics of autopilot systems, making them suitable for logic flaw discovery. However, LLMs are limited by their context and can be biased to the vulnerabilities frequently occurs in training dataset, and logic flaws may not always lead to crashes and other observable behaviors, which means it requires higher-level semantic bug oracles to identify its existence. To bridge the gap, we present IMPOSSIBLE MISSION FINDER (IMF), a multi-agent system combining static analysis, dynamic execution and log analysis, that supports fully automated identify, test, and validate logic flaws in autonomous vehicles. IMF primarily contains three LLM agents, it first uses the auditor agent to propose logic flaw hypothesis based on carefully-crafted program slicing, then it launches tester agents to write and execute test cases for each candidate, and finally it spawns the log analyzer agent to validate the execution log against the flaw hypothesis. This enables IMF dynamically validate bug oracles in a case-by-case manner, making it suitable for discovering logic flaws that do not have a unified pattern. We evaluated IMF on two widely used open-source autopilot systems, PX4 and Ardupilot, leading to 105 previously unknown logic flaws, that can cause unsafe behaviors including mission interruption failures, invalid actions, entering into restricted fly zones etc.

1 Introduction

Autonomous drones have been increasingly deployed into various safety-critical scenarios [1–4], making their security increasingly important. Security flaws and vulnerabilities in drones can lead to operational failures and safety-critical issues, such as navigation errors or collisions with other objects [5]. While existing security research has demonstrated that both open-source [6, 7] and commercial drones [8] are vulnerable to various attacks [9–11], the logic issues, that can also lead to serious real-world impacts, have been largely overlooked. Logic flaws are difficult to find since they often emerge from cross-module state propagation, implicit design assumptions and runtime semantics. For example, vulnerabilities in the mission execution module can result in race conditions, where improper synchronization of shared state variables causes the drone to ignore or mishandle critical commands. In PX4, a lack of synchronization for the vehicle_status variable between the Commander module and the Navigator can cause the drone to occasionally fail to pause its mission when receiving a PAUSE command (see § 7).

Recent LLMs have demonstrated strong code reasoning capabilities and have been widely adopted in both software development [12, 13] and security analysis [14–16]. Although they are effective

∗^{*}Both authors contributed equally to this work.

Authors' Contact Information: Ziyi Liang, Huazhong University of Science and Technology, China, d202180584@hust.edu.cn; Zichuan Li, University of Illinois Urbana-Champaign, USA, zichuan7@illinois.edu; Bin Yuan, Huazhong University of Science and Technology, China, yuanbin@hust.edu.cn; Deqing Zou, Huazhong University of Science and Technology, China, deqingzou@hust.edu.cn; Luyi Xing, University of Illinois Urbana-Champaign, USA, lxing2@illinois.edu.

Ziyi Liang, Zichuan Li, Bin Yuan, Deqing Zou, and Luyi Xing

at detecting vulnerabilities with well-defined patterns, applying them to discover logic flaws in autopilot frameworks remains challenging due to several reasons. First, discovering logic flaws requires high-level semantic understanding across multiple modules, which demands carefully constructed contextual information for LLMs, which is crucial for open-source autopilot frameworks due to their massive codebases (more than 6M lines of code for both Ardupilot and PX4). Second, LLMs are structurally vulnerable to hallucinations and can be biased by their training data [17]. Directly applying them to logic flaw discovery may therefore produce an overwhelming number of false positive results. Third, unlike memory corruption or taint-style vulnerabilities, logic flaws do not follow unified patterns and often do not result in crashes or other easily observable behaviors, making it difficult to design generic bug oracles. To address these challenges, we present IMPOSSIBLE MISSION FINDER (IMF), a multi-agent system that can automatically identify, test, and validate logic flaws in open-source autopilot frameworks. We equip LLM agents with tools for querying carefully constructed program slices, enabling them to reason about semantic context and generate high-quality findings. The agents then automatically synthesize test cases to execute and validate auditing hypotheses. Finally, we introduce a log analysis agent that examines runtime execution logs and determines whether the observed behaviors are consistent with the hypothesized logic flaws.

We evaluated IMF on two widely used open-source autopilot frameworks, PX4 and Ardupilot, and confirmed 105 previously unknown logic flaws after manual verification.

Contributions. We summarize our contributions as follows:

• New method. We propose a novel LLM-powered approach for discovering logic bugs in drone autopilot systems that cause unexpected behaviors. Our approach leverages LLMs to bridge the gap between high-level code logic semantics and runtime behaviors. Our key insight is that modern LLMs can learn implicit logic requirements as long as provided with carefully crafted context, making them suitable for recognizing unexpected behaviors.

• New tool. We design and implement IMF, a fully automated multi-agent system to discover logic flaws in open-source autopilot frameworks, which combines static code analysis with LLM-powered test generation and execution with a LLM-empowered log analysis. IMF provides practical automation for developers, handling everything from test case generation to log analysis without manual intervention. We will release all the implementation and evaluation scripts used in IMF.

• New results. We evaluate the effectiveness of IMF on two widely adopted autopilot frameworks, PX4 and Ardupilot. Our evaluation shed light on 105 previously unknown logic bugs, showing the effectiveness of IMF.

References (41)