UAV Telemetry Fuzzer

A MAVLink protocol fuzzer written in C that targets ArduPilot SITL, with bit-flip, boundary-value and length-corruption strategies.

Status
Archived
Date
Context
Personal research
Scope
Own lab
Language
C
Stars
0
Last commit
2026-07-01
  • Code assisted
  • Writing assisted
What do these mean?

A black-box, mutation-based network fuzzer targeting the MAVLink v2 protocol, tested against ArduPilot SITL (Software In The Loop).

Built as a security research tool to explore attack surfaces in UAV communication protocols: specifically how autopilot systems handle malformed or unexpected MAVLink packets.


What This Project Does

UAVs (Unmanned Aerial Vehicles) communicate with Ground Control Stations (GCS) using the MAVLink protocol. This fuzzer:

  1. Captures a real MAVLink v2 packet from a live SITL session (seed)
  2. Applies mutation strategies to generate malformed variants
  3. Sends them directly to the ArduPilot SITL over UDP (bypassing MAVProxy)
  4. Logs every packet sent with full hex dump and mutation description

The goal is to test how ArduPilot’s MAVLink parser responds to boundary conditions, invalid field values, and unexpected packet structures: findings that are relevant to real-world UAV security assessments.


Architecture

Mutation Strategies

Strategy Description Security Relevance
Bit Flip Flips a random bit in a random byte Simulates EMI / memory corruption
Boundary Value Replaces a byte with 0x00, 0xFF, 0x7F, 0x80 Triggers integer overflow/underflow edge cases
Length Corruption Sets len field to 0 or 255 Tests parser’s trust in the length field (buffer over-read risk)

Key Technical Concepts

  • MAVLink v2 Header Parsing: Implemented as a packed C struct (__attribute__((packed))) to ensure byte-exact alignment with the wire format
  • Black-box Fuzzing: No instrumentation of the target: behavior observed externally via ArduPilot’s MAV Errors counter and STATUSTEXT messages
  • Seed Corpus: Real packets captured from SITL using a custom Python UDP sniffer, then used as mutation base
  • Reproducibility: Every sent packet is logged with its full hex representation: any anomaly can be replayed exactly

Observations from Testing

  • ArduPilot silently discards packets with invalid magic bytes: no error counter increment
  • Length field corruption (len=0 or len=255) causes MAVProxy-level rejection when routing through port 14550, but passes through when sent directly to SITL port 5501
  • Component ID spoofing (e.g., comp_id=0xFF) is accepted without error: no authentication at the protocol level in MAVLink v2 without signing enabled
  • Message ID mutations (e.g., ID 0→4194304) are silently dropped: ArduPilot does not log unknown message IDs to the MAV Errors counter

Security Context

This project is a practical exploration of UAV protocol attack surfaces, relevant to:

  • Embedded systems pentesting: Understanding how autopilot software handles malformed input at the protocol layer
  • UAV security research: MAVLink v1 (no signing) and MAVLink v2 with signing disabled are widely deployed: this fuzzer demonstrates the risk of unauthenticated command injection
  • Offensive security tooling: The mutation engine and UDP sender form the basis of a protocol-aware fuzzer that can be extended to other embedded protocols (CAN bus, UAVCAN, etc.)

Future Work