WorksComputer Science
Mission (Im)Possible: Towards Autonomous Discovery of Autopilot Logic Flaws in Open-Source Drone Frameworks
Abstract
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 rarely manifest as crashes or detectable failures. With recent advances in 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, while logic flaws often require higher-level semantic bug oracles to identify their 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.
Introduction
Autonomous drones have been increasingly deployed into various safety-critical scenarios [1, 2, 3, 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, 10, 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, 15, 16]. Although they are effective
Authors’ Contact Information: Ziyi Liang, Huazhong University of Science and Technology, China, [email protected]; Zichuan Li, University of Illinois Urbana-Champaign, USA, [email protected]; Bin Yuan, Huazhong University of Science and Technology, China, [email protected]; Deqing Zou, Huazhong University of Science and Technology, China, [email protected]; Luyi Xing, University of Illinois Urbana-Champaign, USA, [email protected]. 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.
Background
MAVLink Protocol and MAV_CMD
MAVLink [18] is a lightweight messaging protocol that connects a drone to external systems such as ground control stations, companion computers, and developer tools. Major open-source autopilots, including PX4 [19] and Ardupilot [20], expose MAVLink as their common operator-facing interface, which makes it a compatible abstraction layer across different ground control station clients.
The MAVLINK protocol is structured around a packet-based design, where each message has a payload for specific commands or telemetry data and a checksum for ensuring data integrity. Internally, MAVLINK facilitates cross-module data sharing, enabling seamless communication between different components such as the navigator, commander, and sensors. And externally, MAVLINK messages enable users to send commands and instructions to the drone, such as setting up missions or adjusting flight parameters. Furthermore, users can utilize MAVLINK to set critical data in the drone, including home positions, GeoFence boundaries, and mission configurations, ensuring precise control and operational safety.
Flying Modes and Missions
A drone autopilot operates in one of several discrete modes, each determining how the vehicle responds to operator input and sensor data. Common modes include: takeoff, hold or loiter, mission or auto, and return-to-launch (RTL). The modes transit either when an operator issues an explicit MAVLink command or when a safety condition triggers an automatic switch, such as a fallback to RTL on low battery or loss of communication.
A mission is a structured flight task that the autopilot executes when placed in mission mode. Operators define a mission as an ordered sequence of waypoints, each specifying a geographic target by latitude, longitude, and optionally altitude, and may interleave the waypoints with actions such as commanding takeoff or landing. The mission is uploaded over MAVLink as a sequence of mission-item messages; the autopilot stores the items and, while in mission mode, executes them in order.
Indirect Data Flow in Autopilot Frameworks
Within an autopilot framework, much of the data flow between modules is mediated by an indirected layer rather than by direct function calls. PX4 relies on the uORB publish-subscribe system: modules publish typed messages to named topics, and other modules subscribe to those topics. Because topic names are strings resolved at runtime, the connection from a publisher to a subscriber is not visible as a direct call in the source code. Ardupilot uses different mechanisms, including a parameter store and command-handler tables, but the same pattern of one external input fanning out across multiple modules before reaching actuator outputs applies.
To make this fan-out concrete, consider a typical command such as MAV_CMD_DO_REPOSITION. After the dispatch step described in § 2.1, the command-handler publishes the parsed command into a uORB topic such as vehicle_command. The navigator subscribes to vehicle_command, processes the entry, and publishes a derived setpoint topic such as position_setpoint_triplet; position-control modules in turn subscribe to the setpoint topic and produce actuator outputs. Ardupilot exhibits an analogous fan-out through parameter writes and handler-table dispatch.
Motivating Example
In this section, we use a real logic flaw in PX4 to motivate why autopilot mission logic requires semantics-aware, slice-guided analysis. Although the example comes from PX4, it reflects a broader difficulty in reasoning about mission-state inconsistencies in drone autopilots.
Overview. The example shown in Figure 1 originates from the navigator module of PX4, which contains a vulnerability: If the home_position.altitude is updated during flight, the target waypoint is not recalculated, but the reachability check uses the updated altitude. This state inconsistency can prevent the system from recognizing that the waypoint has been reached.

Figure 1. A Motivating Example Vulnerability: in the figure, home position topic affects both position setpoint and mission reached check. The problem is that the slicing marked with blue lines is not always triggered when home position updated
Vulnerability details. Specifically, when a user updates the home position via the ground control station, a MAV_CMD_DO_SET_HOME command is issued. Upon receiving the command, the drone updates its internal home_pos topic with the new value. Within the navigator module, this value is retrieved through topic getter functions (❶). This updated home position further includes two distinct code slicings in the figure (❷ and ❸). In ❷, home-position is used to calculate and publish the position_setpoint_triplet topic. In ❸, it is used to compute the distance between the drone’s current location (retrieved via get_global_position ❹) and the target mission position. This distance is then stored in the dist_z variable. If this distance falls within a predefined threshold (❺), the corresponding waypoint flag variable is marked as reached (❻). However, the publication of the mission target (❷) occurs only when users directly update the mission or when the current mission waypoint is reached, shown in ❼.
Since the slicing ❷ (set_mission_items ❽ inside the if block) is not triggered immediately upon updating _home_pos, the low-level motor modules continue to use previously published setpoints, i.e., stale coordinates. In contrast, the slicing ❸ is invoked every time Navigator::on_active is called (❼), so mission_item_altitude uses the updated _home_pos. This discrepancy introduces inconsistency: the drone computes distances with an updated target position but navigates according to outdated targets. As a result, dist_z fails to satisfy the acceptance condition (❺), and the system is unable to mark the waypoint as reached (❻). Consequently, the drone continues to perform heading corrections toward an already-passed waypoint, ultimately causing it to loiter indefinitely around invalid target coordinates.
Can LLMs help? To test whether current LLMs can identify mission-logic flaws in Figure 1, we ran a small preliminary study under two context settings: (a) a manually crafted slice covering the relevant dataflow and control conditions, and (b) the full navigator and mission source files, including both .cpp and .h files. We evaluated four models (GPT-5.4, GPT-5.4-mini, GPT-OSS, llama-4-scout) each with three trials. With the prepared slice, GPT-5.4 identified the issue in all trials, while smaller models sometimes identified partial symptoms; with full files, none of the models found the target inconsistency and instead reported simpler non-semantic issues such as integer overflow. These results showed that current LLMs are capable of identifying logic flaws in autopilot systems as long as they are given focused, high-quality semantically clean context. This motivates our design of the IMF, a multi-agent pipeline that can identify, test, and validate logic flaws in autopilot frameworks, detailed in § 4.
Impossible Mission Finder (IMF)
While current LLMs are powerful enough to reason and identify logic flaws in autopilot systems, it is still non-trivial to adopt them for logic bug discovery. The agentic system needs to address the following three challenges:
Challenge 1: How to prepare a good context for LLMs? Recognizing the logic flaw in § 3 requires the model to a) trace and understand the dataflow of variables (home position and mission items), b) understand the implicit relationships of setpoint and global position, and c) identify the difference of invocation conditions. It’s crucial to construct a high-quality context that contains necessary information a model requires to identify the logic bug, while minimizing the token usage.
Challenge 2: How to minimize the model hallucination? Even with good context, LLMs can still generate hallucinated results, making it necessary for runtime verification. An automated agentic system therefore needs a way to drive the autopilot through the candidate scenario and observe whether the hypothesis really can be triggered.
Challenge 3: How to detect the existence of logic bugs without explicit bug oracles? Different from traditional software bugs, logic flaws in autopilot systems are often semantic inconsistencies that do not have a unified bug oracle. Detecting the existence of logic flaws requires a dynamic bug oracle that can adapt to the candidate we want to verify.
Our approach. To address these challenges, we design Impossible Mission Finder (IMF), a multi-agent system powered by static analysis and large language models, which can automatically identify, test, and validate logic flaws in autopilot frameworks. IMF primarily contains two phases: an offline phase that performs static analysis on autopilot frameworks, constructs forward slicings for each MAVLink command, and builds a SliceDB (§ 4.1); and an online phase which contains three separate agents: an auditor agent (§ 4.1) proposes candidate logic flaw hypothesis, a tester agent (§ 4.2) writes and executes simulator tests, and a log analyzer agent (§ 4.3) validates the execution logs to determine the existence of logic flaws.
Figure 2. Overview of IMF. It first leverage static analysis to construct forward slicings of each MAV_CMD handlers (§ 4.1), then the multi-agent system automatically proposes candidate logic flaws (§ 4.3), writes and executes testcases in the simulators (§ 4.2), and finally analyzes the execution logs to validate the existence of vulnerabilities (§ 4.3)
Preparing Analysis Context For LLMs
Identifying the logic flaw illustrated in § 3 requires giving the LLM both a focused cross function/module code context, and the necessary domain-specific semantic knowledge that connects components. Without these inputs, LLMs can be biased by vulnerability patterns frequently occurred in its training dataset, such as integer overflow, buffer overflow, or missing input-validation checks, and rarely examine the higher-level semantic inconsistencies. To address this challenge, we design an auditor agent with static analysis tools specifically designed for autopilot frameworks. IMF a) performs the offline data-flow analysis and store code slicings into a database that the auditor agent can runtime interact with; and b) embeds domain-specific knowledge into auditor’s prompt to make LLMs aware of the higher level semantic requirements and relationships between modules.
Forward Slicing Analysis. The precompute phase performs forward slicing on all MAVLink commands. Starting from a MAVLink command handler, IMF traces how that command’s effect propagates through the rest of the autopilot framework. Each analysis run begins at a MAVLink command’s dispatch point in the MAVLink handler and follows the framework’s data flow into the modules that consume the resulting state, producing a slice that consists of the relevant source functions, the control- and data-flow fragments within them, and the call chain that links them. The slice is the focused cross-function, cross-module context the audit agent needs to reason about a single command end-to-end.
A single MAVLink command typically has more than one dispatch point in the real codebase. Listing 1 shows an example that Ardupilot matches MAV_CMD_DO_SET_HOME: one inside handle_command_int_packet that calls a dedicated handler, and one inside the mission-item parser that inlines the body. IMF enumerates all such dispatch points for a command and forward-slices from each source, then merges the slices into a single output slice. Listing 2 shows an example of the slicing for MAV_CMD_DO_SET_HOME on Ardupilot.
Indirect Dataflow in Autopilot Systems. In autopilot frameworks, MAV_CMD packets can flow to consumers through indirect data flows. For instance, in the motivating example (§ 3), get_global_position returns a value that is gradually steered toward what an unrelated module previously published (publish_position_setpoint_triplet), even though there is no dataflow edge directly connects the two functions. IMF primarily handles two types of indirect flow in PX4 and Ardupilot. The first type is uORB-style publish-subscribe communication, where one module
MAV_CMD_DO_SET_HOME (ArduPilot)
libraries/GCS_MAVLink/GCS_Common.cpp:5753
// in GCS_MAVLINK::handle_command_int_packet
case MAV_CMD_DO_SET_HOME:
return handle_command_do_set_home(packet);
// -> handler at GCS_Common.cpp:5489
libraries/AP_Mission/AP_Mission.cpp:1232
// in AP_Mission::mavlink_int_to_mission_cmd
case MAV_CMD_DO_SET_HOME:
cmd.p1 = packet.param1;
break;
caption: Dispatch sites for MAV_CMD_DO_SET_HOME in ArduPilot.
ardupilot/1: MAV_CMD_DO_SET_HOME
============================================================
Dispatch chain:
GCS_MAVLINK::handle_command_int
-> GCS_MAVLINK::handle_command_int_packet
-> GCS_MAVLINK::handle_command_do_set_home
Handler: GCS_MAVLINK::handle_command_do_set_home
libraries/GCS_MAVLink/GCS_Common.cpp:5489-5510
MAV_RESULT handle_command_do_set_home(...) {
// function body ...
}
Reached functions on forward slice (taint-traced):
is_zero libraries/AP_Math/ftype.h:63
ModeAuto::do_set_home ArduCopter/mode_auto.cpp:2006
...
caption: Example slice returned by SliceDB for MAV_CMD_DO_SET_HOME on ArduPilot’s COMMAND_INT ingress. The slice records the dispatch chain into the handler, the handler body, and the downstream functions reached on the forward taint trace. Other ingress paths and other framework targets produce additional, separately stored slices.
can publish topic values and other modules subscribe to those topics. When constructing the code slicing, IMF follows the data flow of MAVLink command handlers, in which if stops at the publisher side, orb_publish, IMF would also slice the subscriber side from every static orb_subscribe on the same topic, and uses the topic name as the SliceDB join key.
Second, IMF also handles command aliasing across across modules. In both frameworks, the same MAVLink command can be converted to different enum values, such as a MAV_CMD_* can be converted to NAV_CMD_* in navigator module, and similarly VEHICLE_CMD_* in other modules. For a single MAVlink command, IMF slices each of its alias command independently, stores the slicings into the database, and merges them at retrieval time using a per-framework curated mapping between equivalent command names.
SliceDB. The output of the forward slicing analysis is stored in a SQLite database, which we call SliceDB. During runtime, the auditor agent invoke tools to interact with the database. This separation between an offline pre-compute phase and runtime semantic reasoning lets static analysis and the LLM each work on what they are good at, and save the dataflow analysis cost across audit runs.
Agent Tools. The audit agent has three different kinds of tools:
SliceDB Tools. We provide the auditor agent two tools for interacting with SliceDB, a
query_cmd_slicesthat takes a MAV_CMD name as input and returns the forward code slicing stored in SliceDB; and aquery_convergencetool that takes two MAV_CMD names as inputs and aims to address cases where an inconsistency only becomes visible across two commands meeting on a shared variable or state. This tool internally checks the common sinks that both MAV_CMD can affect and only returns the shared statements.
Code Repository Exploration Tools. Except for the slice-query tools, we also provide the audit agent the standard tools a coding agent typically uses:
read_file,grep,glob, andbashover the source code repository. The code slicing acts as a starting point, and we explicitly encourage LLMs to look into detailed functions and files. This makes the agent can dynamically explore and inspect more details about the siblings of the dataflow. For example, if it found a missing input validation, it could compare it with other sibling commands to see if there are similar issues.
Sub-Agent Tools. Following a popular feature that state-of-the-art coding agents [12, 13] support, we make auditor agent a coordinator, who can directly invoke other agents as subagents. This includes the tester agent (§ 4.2) and the log analyzer (§ 4.3), as well as auditor agent itself. That means, the auditor agent can invoke a subagent sharing the same structure and tools as itself, and delegate it for some subtasks. With these interfaces, we make auditor a fully autonomous pipeline that can keep iterating and dynamically invoke the testing and log analyzing process.
Verifying with Runtime Execution
The candidates produced by the audit agent are statically LLM-generated hypotheses, not confirmed bugs. These hypotheses can subject to false positives and model hallucinations biased by frequent patterns in training dataset. To address this challenge, we design a tester agent that converts candidate hypothesis into test cases, execute it inside simulators, and captures the execution log for further validation. To help the agent better write test cases, we a) design a testing harness package that exposes unified API interfaces for both PX4 and Ardupilot, which lets the agent write test cases without the need of understanding detailed framework APIs; and b) adopt a hypothesis dependency filter to filter out cases cannot be validated inside the simulator and a semantic checks after each attempts to ensure test cases can be validated and correctly reflect auditor’s hypotheses.
Unified Testing Interface. The interface that the tester sees is modeled from the ground control station’s perspective: it exposes the operations a human operator can perform over MAVLink protocols, such as uploading a mission, setting a No-Fly Zone, issuing a command, setting a parameter, etc. The same set of API interfaces can be used for both PX4 and Ardupilot, with the framework-specific requirements hidden inside the package details. To make it easier for the agent to use these APIs, we deliberately do not reuse the framework’s own test surfaces, such as PX4’s MAVSDK and Ardupilot’s autotest framework. For example, MAVSDK is written in C++ and an agent needs to carefully initialize C++ objects with correct types and properly invoke APIs with expected types and objects, which can often cause errors. To upload a Mission in MAVSDK, the agent needs to properly initialized a set of structures and understand each parameter’s meaning and their default values (shown in Listing 3). A single mis-filled field can silently invalidate the test or change its behavior. Our wrapper, instead, uses Python and restricts the interfaces to basic types (e.g., list, str, int, etc). The underlying testing harness package handles the MAVLink struct construction and field initialization. The agent only need to express high level semantics of API sequences. Listing 4 shows our interfaces to upload a mission item, we carefully constructed docstrings and API documents that describes the API interface’s design purpose, the meaning of each parameter, and their corresponding type hints.
TEST_CASE("Control Allocation - Remove one motor", "[controlallocation]")
{
//...
AutopilotTester::MissionOptions mission_options;
mission_options.rtl_at_end = false;
mission_options.relative_altitude_m = flight_altitude;
AutopilotTesterFailure tester;
tester.connect(connection_url);
tester.wait_until_ready();
// Configuration
tester.set_param_ca_failure_mode(1);
tester.prepare_square_mission(mission_options);
//...
}
Listing 3. Example of uploading a GeoFence using MAVSDK, the parameter of interfaces need to be properly initialized with correct types
When receiving a testcase, the testing harness package launches the simulator, crafts the MAVLink packets, and interacts with the simulator just like a ground control station.
//...
drone.upload_mission([
{"command": 16, "lat": -35.36, "lon": 149.16, "alt": 20}, # NAV_WAYPOINT1
{"command": 16, "lat": -35.41, "lon": 149.36, "alt": 20} # NAV_WAYPOINT2
])
//...
Listing 4. Uploading a custom mission via our harness: a single upload_mission call carrying a list[dict] of basic-typed fields covers any MAV_CMD — no per-command struct setup, no test scaffolding.
Tester Agent. Given a candidate hypothesis from the audit agent, the tester writes a Python test using the unified interface. Before the test case is dispatched to the testing package, the tester internally runs a semantic alignment check on its attempts, which invokes LLM to check whether the testcase properly reflects the auditor’s hypothesis and whether it could plausibly distinguish the bug from a normal run. If the test is rejected, a rational would be returned to the tester for revision. Only after the test passes this check is it dispatched to execution, if it keeps failing, the testing will be aborted.
Validating Existence of Logic Flaws
Prior vulnerability discovery approaches based on fuzzing or static analysis normally depend on unified bug oracles, such as sanitizer exceptions, deterministic patterns, etc. so they detect only the limited classes of vulnerability that fit those oracles and cannot capture high-level semantic inconsistency. To address this challenge, we use the LLM itself as a bug oracle and design a log analyzer agent inspired by Agent-Driver’s use of ego-state information [21] in autonomous driving. Our analyzer maintains an ego state summarizing the vehicle’s current status and processes the execution log entry by entry to update the state. Given the execution log and the bug hypothesis, IMF a) first preprocesses the execution logs to only keep the necessary entries; b) collapses long silent duplicate log entries with a sliding window to keep LLM token cost manageable; and c) querying LLMs to detect whether current sliding window triggers the anomaly according to current ego state.
Log Preprocessing. Since PX4 and Ardupilot use different log formats, we first pre-process the logs to extract shared core elements, such as position and velocity components (xyz, vx, vy, vz).
In the preprocessing step, IMF also prompt LLMs to ask it to decide what entries should be kept and recorded as part of the ego-state. A fixed ego-state can potentially be unable for analyzing the logic. We let the agent to select the entries whose values are needed to judge the candidate’s hypothesis, and those topics become the dynamic part of the ego state. This step is what lets IMF support dynamic discovery of new logic-flaw classes without rewriting the framework; the log preprocessing automatically specializes the ego state to whatever the audit agent currently produces.
Sliding Window over Silent Logs. A few-second SITL execution logs can contain thousands of entries. Since the autonomous vehicles typically record execution logs at a fixed sampling frequency, most of these entries are minor changes of the same state where most entries are identical and only a few types got changed. Thus, feeding all the contents to LLMs can be costly and analyzes too much irrelevant logs as the bug hypothesis intend. We therefore maintain a sliding window over the each tracked ego-state field. Only when the window has accumulated enough meaningful state changes, that is, when at least we have observed 10 entries of changes on ego-state fields, does the analyzer trigger an LLM call. This design significantly reduces 97% of the overall LLM calls and help the log analyzer focus on high level semantics.
Ego State. In IMF, the ego state summarizes the vehicle’s current status for execution-log analysis. The key idea is to maintain a ego state of vehicle at a specific time point. Each time new logs coming, the agent invokes the LLM to interpret and parse the incoming logs and determine abnormal behaviors. The loop terminates when a) either the inconsistency is observed, or b) all the contents in the log have been analyzed.
Implementation
We implemented IMF as two separate Python packages. A multi-agent system package (imf_agent, 11,952 LoC) built on top of LangGraph [22], and a testing harness package (imf_test_harness, 4,251 LoC) exposing unified API interfaces for agents and interacts with both frameworks.
The audit agent is a typical ReAct agent that dynamically invoke tools and decides next steps from its accumulated context. We adopted the code exploration tools from the implementation of Atlantis [16]. On the other hand, the tester agent and the log analyzer agent both use fixed workflows, to make them compatible and can be directly invoked by the auditor, we also implemented them as LangGraph agents.
We use CodeQL to build the SliceDB with 7 *.ql files: 3 for Ardupilot and 4 for PX4. The queries collect forward slices for MAVLink commands, messages, and uORB topics, and construct mappings between messages and commands for both frameworks, in total 1,846 LoC * .ql queries.
In the testing harness package, we implemented interfaces of 42 MAV_CMDs, primarily focusing on mission navigation commands (e.g., upload_mission, upload_mission_waypoints, start_mission, etc.). Except for the interfaces we have already supported, we also implemented interfaces include send_param, send_command, and send_command_int, which allow agents to send arbitrary MAVLINK packets with directly providing the packet ID and parameters. This allows the agent to test some edge cases that unified interfaces cannot cover.
Our implementation and findings are both released on Github anonymously. See the § ?? Data Availability for details.
Evaluation
Overview
We use GPT-5.4 for the auditor and the tester agents, and GPT-OSS-120B for the log analyzer. In the following sections, we first elaborate on end-to-end framework effectiveness (§ 6.2), then discuss each components (§ 6.3-§ 6.5).
Framework Effectiveness on Real-world Systems
We evaluated IMF on PX4 and Ardupilot and uncovered 105 previously unknown logic flaws after manual verification. These flaws include complex cross-module state inconsistencies, improper input validation, inconsistency between MAVLink protocol and implementatio, and other mission-logic failures, all of which do not directly lead to crashes that can be captured by traditional sanitizers.
Analysis of Discovered Bugs. The audit agent proposed 428 candidate logic bug hypothesis findings. Before test generation, the dependency checks filtered out 235 candidates that requires specific hardware backends to validate, such as video capture pipelines, gimbal or mount controllers, winch gripper actuators. In SITL, these cases may expose command acceptance or state changes, but the decisive physical/backend-side effect cannot be observed.
The remaining 193 candidates proceeded to test-case generation and log analysis. The log analyzer filtered out 46 as false positives, and reported 147 as potential flaws. Two experts manually verified all the reported findings, inspected the hypotheses and execution logs, and excluded 40 additional false positives. This left 107 confirmed logic-flaw reports. After merging two duplicate pairs, IMF identified 105 unique real logic flaws. Table 5 in Appendix shows representative logic flaws, their frameworks, MAVLink commands, and potential impact. The full list of the bugs IMF identified can be found on our supporting website2.
| ID | Platform | Related MAVLink Command | Description |
| 1 | PX4 | MAV_CMD_COMPONENT_ARM_DISARM | A mission can request a forced disarm by sending a magic force value with the arm/disarm command. PX4 accepts such a mission item but drops the force parameter before execution, so Commander later evaluates it as an ordinary disarm request. |
| 2 | Ardupilot | MAV_CMD_CONDITION_DISTANCE | This command is meant to delay following mission actions until the vehicle is close enough to the next waypoint. ArduPilot accepts negative or fractional distances, then stores the threshold in integer runtime state, which can make the condition pass at the wrong time. |
| 3 | PX4 | MAV_CMD_NAV_LOITER_TIME | A loiter-time mission item should make the vehicle wait for a time interval, with a separate field controlling cross-track exit behavior. PX4 also interprets that field as a yaw target, so enabling the exit flag can accidentally add a yaw-completion requirement. |
| 4 | Ardupilot | MAV_CMD_NAV_PAYLOAD_PLACE | A mission can ask the vehicle to fly to a location and place a payload there. ArduPilot stores latitude/longitude (0, 0) as a valid target during upload, but the executor later treats the same coordinate as a sentinel meaning no target was provided. |
| 5 | PX4 | MAV_CMD_DO_REPOSITION | Ground stations use this command to pause or reposition a vehicle during a mission. A race between PX4’s commander and navigator can switch the visible mode to Hold/Loiter while the active navigation target still points to the next mission waypoint. |
Table 5. Representative logic flaws identified by IMF. The full list is available on our supporting website.
Finding Categories. After manual validation, the confirmed logic flaws (Table 1) fall into four categories: a) command input-handling defects, b) protocol incompliance, c) runtime state inconsistencies, and d) safeguard enforcement failures.
| Category | Count | |
| Command input-handling defects | 57 | |
| Protocol incompliance | 11 | |
| Runtime state inconsistencies | 29 | |
| Safeguard enforcement failures | 8 | |
| Total | 105 | |
| ID | MAVLink commands | Issues |
| G1 | DO_SET_HOME,NAV_LAND NAV_RETURN_TO_LAUNCH | #22373, #22491<br>#22576 |
| G2 | DO_FENCE_ENABLE, DO_FENCE_DISABLE | #22282, #27099<br>ArduPilot #25327 |
| G3 | DO_CHANGE_ALTITUDE, DO_REPOSITION<br>NAV_TAKEOFF, DO_SET_HOME | #22491, #22576 |
| G4 | DO_CHANGE_ALTITUDE<br>DO_REPOSITION, DO_CHANGE_SPEED | #22492 |
| G5 | NAV_WAYPOINT, DO_JUMP, NAV_TAKEOFF | #22255, #27146 |
Table 1. Categories of the logic flaws IMF identified.
Command input-handling defects. 57 bugs fall into this category. We found that many MAVLink command handlers do not properly validate and handle command inputs. For instance, some handlers accept invalid values, such as negative or NaN circle-fence radii, and store them as geofence parameters, which can make an inclusion fence impossible to satisfy or weaken an exclusion fence. There are also handlers that accept parameters as valid but silently drop them during command handling, leaving the GCS without a clear failure signal. We also found handlers that either miss edge cases or contain numeric input-handling errors, where numeric parameters are converted or truncated to other types before validation, causing precision loss or incorrect execution values.
Protocol incompliance. We found 11 cases where framework implementations do not follow the MAVLink specification. For instance, the MAVLink protocol specifies param4 of MAV_CMD_NAV_LOITER_TIME as the XTrack Location field [23]. However, PX4 also treats it differently and converts it into a yaw angle when parsing mission items. As a result, enabling xtrack exit with a positive param4 can unintentionally introduce a yaw requirement that changes loiter completion.
Runtime state inconsistencies. Similar to the example in § 3, we found 29 cases where the runtime state variables are not synchronized across modules or execution paths. For example, a race condition in PX4 pause/reposition handling can make the drone failure to pause while still
switches into the Hold/Loiter mode. The drone will keep flying toward the next waypoint instead of stopping as the MAV_CMD expected.
• Safeguard enforcement failures. We found 8 logic bugs where the safeguards, such as target component routing, geofence policy, or return-to-target validation are not properly applied. For example, some commands fail to validate GeoFence, allowing the drone to fly toward restricted airspace.
False Positives. Of the 147 candidates reported by IMF, 40 were excluded as false positives after manual review. Some hypotheses misinterpreted command or protocol semantics, for example by treating valid special values as invalid inputs. Others overlooked upstream validation or downstream safeguards that prevented the predicted failure. We also found hypotheses that combined execution paths whose mode conditions could not hold simultaneously, making the proposed scenario infeasible. Finally, normal transitions were sometimes mistaken for persistent failures, although subsequent entries in the same execution log showed that the requested action completed under the allowed conditions or within the permitted time. We also found two duplicate pairs during manual review. The agent proposed similar hypotheses for the same PX4 MAV_CMD_CONDITION_DISTANCE execution gap and for the same PX4 geofence/return-target safety-invariant violation. We counted each pair once in the final total.
Effectiveness of the Auditor
To understand the effectiveness of the SliceDB in auditor agent, we perform an ablation study comparing two different settings: a) Full auditor agent with both indirect dataflow analysis slicing and agent SliceDB tools enabled; and b) No SliceDB, the same auditor agent with SliceDB related tools removed, leaving only typical agent exploration tools like read_file, grep, and glob, etc for code exploration. We prepared five groups of MAVLink commands (Table 2) for the auditor ablation evaluation, which are commands used in mission planning subsystems and have led to existing bug issues. For the Full setting, we run auditor and provide slicings of all the commands in the group as part of the initial prompt. For the No SliceDB setting, we provide the list of command and directly prompt the model to find bugs related to the commands. Table 2 lists the concrete command inputs and the existing issues that motivated each group.
Result. On PX4, the Full audit agent produced 28 candidate findings while the No SliceDB agent produced 17. On Ardupilot, the full agent produced 23 candidates and the No SliceDB agent produced 22 findings. The difference across frameworks reflects how each dispatches commands. PX4’s navigator routes a MAVLink command through several uORB publish/subscribe edges before the consuming module sees it, and the pre-compute code slicing connects those indirect dataflows and the slice-query tools guide the audit agent aware of the connections of those different code snippets. Without the slicing tools, the agent reads one file at a time and tends to stop at orb_publish and cannot always locate the topic consumers. Ardupilot, on the other hand, dispatches MAVLink
commands through direct function calls, so file-level reads are often enough for reconstructing the dataflow.
Effectiveness of the Tester
We evaluate whether the tester can automatically generate test cases for auditor-produced hypotheses. We measure this ability with pass@: a case is considered as pass at attempt if the tester produces a valid test that has correct syntax, passes the semantic check, and can be executed in the simulator within attempts,. We randomly sampled 50 hypotheses from the end-to-end evaluation results in § 6.2. Table 3 presents cumulative pass@. The tester succeeds on 36/50 cases in the first attempt and reaches 46/50 by the third attempt.
| Cumulative pass | Pass rate | |
| 1 | 36 / 50 | 72.0% |
| 2 | 43 / 50 | 86.0% |
| 3 | 46 / 50 | 92.0% |
| 4 | 46 / 50 | 92.0% |
Table 3. Tester pass@ on 50 randomly sampled candidate flaws.
Failure analysis. The four remaining failures fall into two categories. Three cases were rejected by the semantic sanity check because the generated tests do not properly meet the requirements. For example, some hypotheses require constructing malformed MAVLink messages while the tester used the unified API interfaces instead of the API that can send raw messages (send_command). The remaining failure was an infrastructure issue: the generated PX4 arm/disarm test passed semantic checking, but the execution connection timed out before producing a parseable log.
Effectiveness of the Log Analyzer
To understand the effectiveness of the Log Analyzer, we compare three different settings on a curated dataset: log analyzer agent, log analyzer agent without auditor hypothesis, and a log-anomaly baseline (Dronlomaly [24]) work.
Setup. We construct the dataset with 50 logs, balanced 25 anomaly + 25 benign and 25 PX4 + 25 Ardupilot. The 25 anomaly logs are replayed from candidates whose flaws were confirmed in § 6.2, and the 25 benign logs come from execution log of frameworks’ public unit test execution logs and from logs of IMF confirmed as false positives in § 6.2. Dronlomaly is compared as the baseline method: it trains a machine-learning classifier over selected features, such as the velocity and acceleration. We adopt the original setup in Dronlomaly including their model architecture, parameters, and default threshold following the original paper. The log analyzer without hypothesis setting keeps the core ego-state and the sliding window unchanged, but it does not know the logic flaw hypothesis auditor proposed.
Results. Table 4 shows the results across the three configurations. The full log analyzer achieves the highest F1 (0.81) because it uses the auditor’s hypothesis as a candidate-specific oracle and checks whether the predicted behavior appears in the runtime log. Without this hypothesis, the log analyzer falls back to a generic anomaly judgment and produces more false positives. Dronlomaly is even less aligned with our flaws because its classifier models only checks low-level motion features and can not understand high-level semantic inconsistency at all, making it not possible to detect most of the logic bugs.
| Configuration | TP | FP | FN | F1 |
| Log analyzer | 19 | 3 | 6 | 0.81 |
| Log Analyzer without Hypothesis | 18 | 11 | 7 | 0.67 |
| Dronlomaly | 4 | 15 | 21 | 0.18 |
Table 4. Log analyzer detection results on the 50-case dataset (25 anomaly + 25 benign).
Comparison with Existing Frameworks
There are several prior works target logic-vulnerability discovery in autopilot software [25, 26, 27], but none of them can uncover the types of logic flaws IMF identified. PGFuzz [25] can find policy-guided violations, but it requires human experts to encode the expected behavior as temporal-logic policies. Writing these policies depends on detailed knowledge of both the code and the intended vehicle semantics, and is both time-consuming and error-prone. ADGFuzz [27] focuses on assignment-dependency bugs, i.e., faults whose root cause can be exposed around variable assignments, and cannot cover a large portion of logic flaws we found, such as protocol-compliance issues and complex internal-state inconsistencies.
IMF’s advantage comes from using LLMs to identify candidate logic flaws hypotheses, making it more flexible and not limit to fixed bug patterns. The tester enables automatic validation and executes test cases dynamically. The log analyzer then checks whether the logic flaws hypothesis actually appears in runtime logs, giving IMF an automated validation mechanism for diverse semantic bugs rather than a manually written oracle for one bug class.
Case Study
To illustrate the breadth of logic flaws found by IMF, this section presents five representative cases from § 6. Figure 3 provides a compact visual summary of their scenario structure. These cases do not follow a single pattern: they span stale validation, race conditions, inconsistent state updates, flawed recovery logic, and command-semantics errors. Together, they demonstrate the effectiveness and practicality of IMF in discovering real-world complex logic flaws in autopilot mission planning and handling modules.
Figure 3. Overview illustration of the five representative case studies discussed in § 7: ❶ No-Fly Zone not properly enforced; ❷ Drone cannot be properly paused; ❸ Drone can return to locations in No-Fly Zone; ❹ Drone trapped inside narrow no fly zones; ❺ Changes of altitude of home position leading to incorrect waypoint reachability check;
Case ❶: Mission not rechecked after geofence update. PX4 checks an uploaded mission against the current geofence configuration before allowing the mission to run. The flaw appears when the operator first uploads a valid mission and later uploads a new no-fly zone that covers part of that mission path. The new fence is accepted, but the already loaded mission is not reliably rechecked against the updated fence state. Consequently, the autopilot continues to execute a mission that was valid under the old safety policy but invalid under the new one, and the vehicle can fly into the newly defined restricted region. An operator may upload a new fence to keep the drone away from a temporary hazard. In this case, the upload succeeds, but the drone can still enter that area while following its previously loaded mission.
Case ❷: Pause command race condition. In mission mode, a pause or hold command should replace the active mission target with a stop/hold target near the current vehicle position. IMF found a race condition in this mechanism: after the operator issues the pause command, one part of the system records the new pause state, while the navigator can still use the previous mission waypoint target. In the tested scenario, the vehicle therefore acknowledged the pause-related state change but continued flying toward the next waypoint instead of stopping. The bug is caused by inconsistent internal state across command handling and mission navigation, not by a missing command handler. If the operator pauses a mission to avoid an obstacle, the drone may keep approaching it even though its mode has changed to Hold/Loiter. The mode change alone would give the operator no indication that the pause had failed.
Case ❸: RTL to a home point inside a no-fly zone. MAV_CMD_DO_SET_HOME updates the vehicle’s home position, and RTL uses that home position as its recovery destination. IMF found that PX4 does not consistently validate the updated home position against active no-fly zones before RTL uses it. In the scenario, the vehicle is already in flight, the operator changes the home position to a location inside a no-fly zone, and the vehicle later switches to RTL. Because RTL trusts the stored home position as a safe target, the recovery mode can guide the drone directly into restricted airspace. The effect of the home update may only become apparent when RTL starts later in the flight. An operator relying on RTL to bring the drone back could therefore send it into a no-fly zone.
Case ❹: Oscillation between two no-fly zones. PX4 geofence recovery tries to push the vehicle back out of a no-fly zone after a boundary breach. This local recovery rule becomes unsafe in a narrow corridor between two no-fly zones. If wind, inertia, or the waypoint route pushes the vehicle into the front restricted region, the recovery logic commands a backward escape motion. That motion can carry the vehicle into the no-fly zone behind it, which triggers another recovery command in the opposite direction. The two locally reasonable recovery actions can therefore interact and keep the drone moving back and forth between the two restricted regions. The drone can remain trapped between the two zones rather than resume its mission. The operator may need to take over to move it out of the repeated recovery maneuvers.
Case ❺: Home-altitude update breaks waypoint reachability. MAV_CMD_DO_SET_HOME can update not only the home location but also the home altitude, and PX4 uses home-relative altitude when evaluating mission waypoint reachability. The flaw appears when the home altitude is changed while a mission is already running. After the update, part of the navigator still follows mission state computed from the previous home altitude, while the reachability check evaluates the current waypoint using the updated home altitude. The vehicle can therefore be near the intended waypoint in physical space but fail the internal reachability test, which can stall waypoint completion or otherwise disrupt mission progress. The drone may remain airborne near the waypoint without advancing to the next mission item. Later parts of the mission are then blocked because the autopilot still considers the current waypoint incomplete.
Additional representative cases. There are also representative protocol incompliance cases and input handling cases. For instance, Ardupilot accepts a MAV_CMD_NAV_PAYLOAD_PLACE mission item at latitude/longitude (0, 0) as a valid stored location, but the execution path later treats the same coordinate as “no location provided” and starts payload placement at the vehicle’s current position. Another example is MAV_CMD_DEBUG_TRAP: the handler ignores target_component, so a debug-only command addressed to another component can still trigger the trap on the flight controller. A third example, PX4 mission MAV_CMD_COMPONENT_ARM_DISARM, shows a parameter-propagation failure: the mission path accepts the command but drops the force flag, so the later executor sees a different disarm request than the GCS sent. These cases complement the five figure cases because they cover protocol interpretation, authority checks, and command-parameter propagation rather than another variant of geofence recovery.
Discussion
Hardware Dependency. IMF includes a testing package that provides unified interfaces for agents to write test cases and execute them automatically inside simulators. Admittedly, this design cannot find logic bugs that depend on specific hardware backends (e.g., cameras, actuators, or gimbals). IMF is designed to identify logic flaws in general modules shared across drones, such as mission control and command handling logic, which are central parts of autopilot software and can be tested in simulation.
Generalizability. While we focus on finding logic bugs within autopilot frameworks, the high-level design of the pipeline can transfer to other systems: preparing curated code slices to guide LLMs toward targeted code context, generating and executing LLM-written test cases for runtime validation, and analyzing logs with an ego-state representation are all broadly applicable. IMF currently targets bugs caused by MAVLink command handling and mission-related logic; lower-level controllers, sensor drivers, GPS spoofing, and other physical-layer attacks are out of scope, and automatically identifying logic bugs in those modules is left as future work.
LLM dependence. IMF is built as a multi-agent system, and all three modules rely on the performance of LLMs. As models become more powerful, we expect the audit agent to reason over longer and more complex code slices, the tester and log analyzer agent to be more accurate. At the same time, this dependence means that IMF’s effectiveness may vary across models and reasoning efforts. We mitigate this risk by executing test cases in simulator and validating the execution logs. LLMs are used to guide hypothesis generation and interpretation, but the final evidence still comes from executable tests and observed system behavior. We also manually validated all the reported flaws IMF identified and only reported those confirmed by human experts.
Related works
Bug finding for cyber-physical and embedded software. Classical static analysis, symbolic execution, and fuzzing [28, 29, 30], as well as modular dependence analysis for large C/C++ systems [31], are effective for localized memory-safety, protocol, or invariant violations. IMF targets a different signal: mission-logic flaws whose evidence crosses runtime-resolved publish-subscribe or dispatch edges and whose symptom is semantic divergence rather than a crash.
Autopilot fuzzing. PGFuzz [25], PGPatch [32], PatchVerif [33], LGDFuzzer [34], ADGFUZZ [27], and RVFuzzer [26] tailor testing to drone or robotic-vehicle software. These systems rely on hand-written policies, differential patch checks, assignment dependencies, environmental mutations, or other predefined oracle spaces. IMF instead asks the auditor to synthesize a candidate-specific behavioral divergence from slice context, then validates that divergence in SITL.
Runtime and log-based anomaly detection. Drone log forensics and anomaly detectors [24, 35, 36, 37] reconstruct flights or detect deviations from learned normal behavior, and recent LLM-based log-anomaly work extends that paradigm [38, 39, 40, 41]. IMF’s log analyzer is not a generic anomaly detector: it consumes the candidate’s predicted divergence and checks whether that exact relation appears in the run, which reduces false positives from benign trajectory variation.
LLM agents for code analysis and bug finding. LLM-for-code work [42, 43] and follow-on systems for vulnerability detection, test generation, unit testing, and smart-contract auditing [44, 45, 46, 47, 48] show that LLMs can reason about code but often struggle with noisy whole-file context and unverified findings. IMF adds two domain-specific safeguards: slice context that crosses autopilot indirection and dynamic confirmation that turns static hypotheses into executable evidence.
| ID | Platform | Related MAVLink Command | Description |
| 6 | ArduPilot | MAV_CMD_DEBUG_TRAP | This debug-only command can intentionally trap the autopilot process when sent with a magic value. ArduPilot’s handler does not check the target component, so a command addressed to another onboard component can still affect the flight controller. |
| 7 | PX4 | MAV_CMD_DO_SET_HOME | Home is the reference point for relative-altitude missions. PX4 allows Home to change during flight, so an already-active waypoint can be reinterpreted against the new altitude reference and may no longer satisfy its completion check. |
| 8 | PX4 | MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION | A circular inclusion fence is intended to define an allowed flight area with a positive radius. PX4 accepts zero or negative radii, which can make the allowed region impossible to satisfy or make later fence checks inconsistent with the uploaded policy. |
| 9 | ArduPilot | MAV_CMD_CONDITION_DELAY | This command delays subsequent mission actions for a requested number of seconds. ArduPilot accepts negative delay values during mission upload and later executes them as an immediate pass-through, so the next action can run without the intended wait. |
| 10 | ArduPilot | MAV_CMD_DO_REPEAT_SERVO | The command repeats a servo movement a requested number of times. ArduPilot accepts negative repeat counts and can reinterpret them as very large counts, turning a bounded servo action into an effectively unbounded oscillation. |
Table 2.
Conclusion
Leveraging LLMs for logic flaw discovery in autopilot frameworks requires high-quality context for LLMs, runtime verification infrastructure to confirm candidate flaws, and semantic bug oracles for detecting different kinds of logic violations. In this paper, we present IMF, a multi-agent system that automatically identifies, tests, and validates logic flaws in autopilot software. IMF addresses these challenges by constructing command-level code slices as targeted LLM context, turning LLM-generated hypotheses into simulator tests through a unified testing interface, and validating each execution with an LLM-based log analyzer that checks whether the candidate-specific runtime violation appears in the execution logs. We comprehensively evaluated IMF on PX4 and ArduPilot, uncovering 105 previously unknown logic flaws after deduplication and demonstrating the effectiveness of the framework.
References
- [1]DJI. (2024) Dji agriculture drone. [Online]. Available: https://ag.dji.com/
- [2]airialuas. (2024) Airial uas ghx25. [Online]. Available: https://airialuas.com/
- [3]H. Aerial. (2024) Airial perimeter-8. [Online]. Available: https://skyfront.com/perimeter-8
- [4]airialuas. (2025) German rail to use drones for track inspection from 2025. [Online]. Available: https://www.xponential-europe.de/cgi-bin/md_xponential/lib/all/lob/return_download.cgi/XPONENTIAL_Europe_PM07_Schienenverkehr_AutomatedTrain_AIRIAL_GHX25_EN.pdf?ticket=g_e_u_s&tbd=757&no_mime_type=application/pdf
- [5]H. Y. Zhu, E. M. Magsino, S. M. Hamim, C.-T. Lin, and H.-T. Chen, “A drone nearly hit me! a reflection on the human factors of drone collisions,” in Extended abstracts of the 2021 CHI conference on human factors in computing systems, 2021, pp. 1–6.DOI
- [6]A. Allouch, O. Cheikhrouhou, A. Koubaa, M. Khalgui, and T. Abbes, “Mavsec: Securing the mavlink protocol for ardupilot/px4 unmanned aerial systems,” in 2019 15th International Wireless Communications & Mobile Computing Conference (IWCMC). IEEE, 2019, pp. 621–628.arxiv.org/abs/1905.00265
- [7]D. Wang, S. Li, G. Xiao, Y. Liu, and Y. Sui, “An exploratory study of autopilot software bugs in unmanned aerial vehicles,” in Proceedings of the 29th ACM joint meeting on European software engineering conference and symposium on the foundations of software engineering, 2021, pp. 20–31.DOI
- [8]N. Schiller, M. Chlosta, M. Schloegel, N. Bars, T. Eisenhofer, T. Scharnowski, F. Domke, L. Schönherr, and T. Holz, “Drone security and the mysterious case of dji’s droned.” in NDSS, 2023.DOI
- [9]B. Branco, J. S. Silva, and M. Correia, “Cyber attacks on commercial drones: A review,” IEEE Access, 2025.DOI
- [10]D. Jang and H. Yun, “Effective memory diversification in legacy systems,” International journal of electrical and computer engineering systems, vol. 14, no. 3, pp. 321–331, 2023.DOI
- [11]K. Yoon, D. Park, Y. Yim, K. Kim, S. K. Yang, and M. Robinson, “Security authentication system using encrypted channel on uav network,” in 2017 First IEEE International Conference on Robotic Computing (IRC). IEEE, 2017, pp. 393–398.DOI
- [12]“Claude code,” https://claude.com/product/claude-code.
- [13]“Codex,” https://openai.com/codex.
- [14]“Assessing claude mythos preview’s cybersecurity capabilities.” https://red.anthropic.com/2026/mythos-preview/.
- [15]“Mad bugs: vim vs emacs vs claude,” https://blog.calif.io/p/mad-bugs-vim-vs-emacs-vs-claude.
- [16]T. Kim, H. Han, S. Park, D. R. Jeong, D. Kim, D. Kim, E. Kim, J. Kim, J. Wang, K. Kim, S. Ji, W. Song, H. Zhao, A. Chin, G. Lee, K. Stevens, M. Alharthi, Y. Zhai, C. Zhang, J. Jang, Y. Jang, A. Askar, D. Kim, F. Fleischer, Cho, J. Kim, K. Ko, I. Yun, S. Park, D. Baik, H. Lee, H. Heo, M. Gwon, M. Lee, M. Baek, S. Min, W. Kim, Y. Jin, Y. Park, Y. Choi, J. Jung, G. Lee, J. Jang, K. Kim, Y. Cha, and Y. Kim, “Atlantis: Ai-driven threat localization, analysis, and triage intelligence system,” 2025, cross-listed in cs.AI. [Online]. Available: https://arxiv.org/abs/2509.14589
- [17]D. Ayzenshteyn, R. Weiss, and Y. Mirsky, “Cloak, honey, trap: Proactive defenses against LLM agents,” in 34th USENIX Security Symposium (USENIX Security 25). Seattle, WA: USENIX Association, Aug. 2025, pp. 8095–8114. [Online]. Available: https://www.usenix.org/conference/usenixsecurity25/presentation/ayzenshteynDOI
- [18]mavlink. (2024) Mavlink developer guide. [Online]. Available: https://mavlink.io/en/
- [19]“Px4 autopilot,” https://github.com/PX4/PX4-Autopilot, 2025, accessed: 2025-03-28.
- [20]“Ardupilot,” https://github.com/ArduPilot/ardupilot, 2025, accessed: 2025-03-28.
- [21]H. Dia, “An agent-based approach to modelling driver route choice behaviour under the influence of real-time information,” Transportation Research Part C: Emerging Technologies, vol. 10, no. 5-6, pp. 331–349, 2002.DOI
- [22]“Langgraph, open-source agent development framework,” https://www.langchain.com/langgraph.
- [23]“MAV_CMD_NAV_LOITER_TIME definition in the MAVLink common message set,” https://github.com/mavlink/mavlink/blob/3d6f08ec38743a4de38ec41b0956197c0b2f184/message_definitions/v1.0/common.xml#L1161-L1166, 2026, accessed: 2026-06-30.
- [24]L. K. Shar, W. Minn, N. B. D. Ta, J. Fan, L. Jiang, and D. L. W. Kiat, “Dronlomaly: runtime detection of anomalous drone behaviors via log analysis and deep learning,” in 2022 29th Asia-Pacific Software Engineering Conference (APSEC). IEEE, 2022, pp. 119–128.DOI
- [25]H. Kim, M. O. Ozmen, A. Bianchi, Z. B. Celik, and D. Xu, “Pgfuzz: Policy-guided fuzzing for robotic vehicles.” in NDSS, 2021.DOI
- [26]T. Kim, C. H. Kim, J. Rhee, F. Fei, Z. Tu, G. Walkup, X. Zhang, X. Deng, and D. Xu, “{RVFuzzer}: Finding input validation bugs in robotic vehicles through {Control-Guided} testing,” in 28th USENIX Security Symposium (USENIX Security 19), 2019, pp. 425–442.
- [27]Y. Wang, Y. Zheng, P. Liu, D. Fang, J. Cheng, D. Shi, and L. Sun, “ADGFUZZ: Assignment Dependency-Guided Fuzzing for Robotic Vehicles,” Network and Distributed System Security Symposium (NDSS), 2026.DOI
- [28]B. Chess and G. McGraw, “Static analysis for security,” IEEE security & privacy, vol. 2, no. 6, pp. 76–79, 2004.DOI
- [29]C. Cadar, D. Dunbar, D. R. Engler et al., “Klee: unassisted and automatic generation of high-coverage tests for complex systems programs,” in OSDI, vol. 8, 2008, pp. 209–224.DOI
- [30]G. Klees, A. Ruef, B. Cooper, S. Wei, and M. Hicks, “Evaluating fuzz testing,” in Proceedings of the 2018 ACM SIGSAC conference on computer and communications security, 2018, pp. 2123–2138.arxiv.org/abs/1808.09700
- [31]K. Lu, “Practical program modularization with type-based dependence analysis,” in 2023 IEEE Symposium on Security and Privacy (SP). IEEE, 2023, pp. 1256–1270.DOI
- [32]H. Kim, M. O. Ozmen, Z. B. Celik, A. Bianchi, and D. Xu, “Pgpatch: Policy-guided logic bug patching for robotic vehicles,” in 2022 IEEE Symposium on Security and Privacy (SP). IEEE, 2022, pp. 1826–1844.DOI
- [33]— —, “{PatchVerify}: Discovering faulty patches in robotic vehicles,” in 32nd USENIX Security Symposium (USENIX Security 23), 2023, pp. 3011–3028.
- [34]R. Han, C. Yang, S. Ma, J. Ma, C. Sun, J. Li, and F. Bertino, “Control parameters considered harmful: detecting range specification bugs in drone configuration modules via learning-guided search,” in Proceedings of the 44th International Conference on Software Engineering, ser. ICSE ’22. New York, NY, USA: Association for Computing Machinery, 2022, p. 462–473. [Online]. Available: https://doi.org/10.1145/3510003.3510084
- [35]Z. Baig, M. A. Khan, N. Mohammad, and G. B. Brahim, “Drone forensics and machine learning: Sustaining the investigation process,” Sustainability, vol. 14, no. 8, p. 4861, 2022.DOI
- [36]R. Kumar and A. K. Agrawal, “Drone gps data analysis for flight path reconstruction: A study on dji, parrot & yuneec make drones,” Forensic Science International: Digital Investigation, vol. 38, p. 301182, 2021.DOI
- [37]S. Silalahi, T. Ahmad, and H. Studiawan, “Transformer-based sentiment analysis for anomaly detection on drone forensic timeline,” in 2023 11th International Symposium on Digital Forensics and Security (ISDFS). IEEE, 2023, pp. 1–6.DOI
- [38]M. He, T. Jia, C. Duan, H. Cai, Y. Li, and G. Huang, “Llmelog: An approach for anomaly detection based on llm-enriched log events,” in 2024 IEEE 35th International Symposium on Software Reliability Engineering (ISSRE). IEEE, 2024, pp. 132–143.DOI
- [39]C. Almodovar, F. Sabrina, S. Karimi, and S. Azad, “Logfit: Log anomaly detection using fine-tuned language models,” IEEE Transactions on Network and Service Management, vol. 21, no. 2, pp. 1715–1723, 2024.DOI
- [40]J. Pan, W. S. Liang, and Y. Yidi, “Raglog: Log anomaly detection using retrieval augmented generation,” in 2024 IEEE World Forum on Public Safety Technology (WF-PST). IEEE, 2024, pp. 169–174.arxiv.org/abs/2311.05261
- [41]E. Karlsen, X. Luo, N. Zincir-Heywood, and M. Heywood, “Benchmarking large language models for log analysis, security, and interpretation,” Journal of Network and Systems Management, vol. 32, no. 3, p. 59, 2024.arxiv.org/abs/2311.14519
- [42]T. Brown, B. Mann, R. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell et al., “Language models are few-shot learners,” Advances in neural information processing systems, vol. 33, pp. 1877–1901, 2020.arxiv.org/abs/2005.14165
- [43]M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. D. O. Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman et al., “Evaluating large language models trained on code,” arXiv preprint arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
- [44]H. Li, Y. Hao, Y. Zhai, and Z. Qian, “Enhancing static analysis for practical bug detection: An llm-integrated approach,” Proceedings of the ACM on Programming Languages, vol. 8, no. OOPSLA1, pp. 474–499, 2024.DOI
- [45]K. Liu, Y. Liu, Z. Chen, J. M. Zhang, Y. Han, Y. Ma, G. Li, and G. Huang, “Llm-powered test case generation for detecting tricky bugs,” arXiv preprint arXiv:2404.10304, 2024.arxiv.org/abs/2404.10304
- [46]M. Schäfer, S. Nadi, A. Eghbali, and F. Tip, “An empirical evaluation of using large language models for automated unit test generation,” IEEE Transactions on Software Engineering, vol. 50, no. 1, pp. 85–105, 2023.arxiv.org/abs/2302.06527
- [47]Z. Wei, J. Sun, Z. Zhang, X. Zhang, M. Li, and Z. Hou, “Llm-smartaudit: Advanced smart contract vulnerability detection,” arXiv preprint arXiv:2410.09381, 2024.arxiv.org/abs/2410.09381
- [48]Y. Li, X. Li, H. Wu, M. Xu, Y. Zhang, X. Cheng, F. Xu, and S. Zhong, “Everything you wanted to know about llm-based vulnerability detection but were afraid to ask,” arXiv preprint arXiv:2504.13474, 2025.arxiv.org/abs/2504.13474

