Skip to content

Part III The Space Segment

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

๐ŸŽฏ Purpose

Space segment attack and defense guide - covering onboard computer (OBC) architecture, flight software (FSW) vulnerabilities, RTOS security (VxWorks, RTEMS, FreeRTOS), memory corruption in space-grade processors, and supply chain risks in COTS satellite components.

โš™๏ธ Function

Covers: spacecraft software architecture layering (mission apps/FSW/RTOS/BSP), memory protection unit limitations, RTOS-specific vulnerabilities, FSW patching constraints (bandwidth-limited uplinks), SEU/radiation-induced fault injection, and CubeSat COTS hardware attack surface.

๐Ÿ† Goal

Understand the unique constraints of space-segment software security - where patching may require months, memory protection is limited, and hardware faults (SEU) can be weaponized - to assess and improve spacecraft software security posture.

๐Ÿ“‹ When to Use

  • Assessing a spacecraft FSW codebase for vulnerabilities before launch
  • Understanding why space software security differs from terrestrial embedded systems
  • Red-teaming a CubeSat or small satellite with COTS OBC hardware

Chapter 8: Onboard Software

Spacecraft Software Architecture

Illustrative NASA cFS-like layered spacecraft flight-software stack separating mission applications, executive services, RTOS/OS abstraction, device drivers and onboard processor trust boundaries

Architectural example, not an assertion that every spacecraft uses NASA cFS. The NASA cFS project documents modular mission applications, the core Flight Executive and supported platform/OS abstractions. Every mission's code, RTOS, update mechanism, memory protection and deployed access controls require separate evidence.

Common RTOS Platforms

RTOS Usage Known Issues
VxWorks Legacy GEO satellites, many heritage platforms CVE-2019-12255 (URGENT/11 TCP/IP stack bugs); numerous historical CVEs
RTEMS Open-source; many CubeSats, NASA missions Smaller CVE surface but limited security hardening
FreeRTOS Proliferated LEO, smallsats CVE-2018-16528 (AWS FreeRTOS mbedTLS context corruption in TLS connect path, CVSS 8.1 RCE) and related
Linux Modern commercial satellites Kernel CVEs; often unpatched in flight due to update risk
INTEGRITY (GHS) High-assurance defense platforms Proprietary; limited public vulnerability data

Flight Software Languages and Vulnerabilities

Language Usage Key Risk
C Dominant in heritage FSW Memory safety: buffer overflows, use-after-free, integer overflows
C++ Modern FSW, NASA F Prime Same as C plus class/template complexity
Ada / SPARK High-assurance (ESA, some DoD) Formally verified subsets; lower risk but not immune
Python Ground tools, some modern smallsats Injection risks, dependency vulnerabilities
Rust Emerging (experimental satellite use) Memory-safe by design

Software Upload Security

Telecommand software uploads (patches, parameter updates, full FSW loads) represent the highest-risk command type:

  • Integrity verification - Is the uplinked binary cryptographically signed and verified before execution?
  • Authentication - Is the command chain that initiates an upload authenticated end-to-end?
  • Rollback protection - Can an attacker upload a known-vulnerable older version?
  • Execution path - Is uploaded code loaded into protected memory? Can it overwrite the bootloader?

Some mission designs may lack strong authenticated software-update and command controls. Do not generalize from mission age or orbit: determine the actual command authorization, payload signature checks, key lifecycle, and rollback handling before claiming a weakness.


Chapter 9: Spacecraft Hacking

Context: Direct spacecraft hacking in the wild requires either compromise of the ground segment command chain or physical/RF proximity with a transmitter. The scenarios below apply to authorized research, CTF environments, and red team engagements with spacecraft operators.

Attack Scenarios

Scenario 1: Command Injection via Compromised MCS

  • Attacker has achieved MCS access through ground segment compromise
  • Issues malformed or malicious telecommand frames through the legitimate uplink chain
  • Target: mode changes, FSW upload, AOCS commands (attitude change), power cycling

Scenario 2: Rogue Uplink (Research/Lab)

  • Attacker operates an SDR-based transmitter aimed at the spacecraft
  • Requires: knowledge of uplink frequency, modulation, frame format, and command structure
  • Practical for unencrypted CubeSats with publicly documented protocols
  • Applicable to the growing body of amateur/educational satellites with open TT&C specs

Scenario 3: Side-Channel via Telemetry

  • Passive collection of downlinked telemetry reveals operational state
  • Can be used for reconnaissance: when is the spacecraft unattended? What mode is it in?
  • Timing attacks on encrypted telemetry (traffic analysis)

CubeSat Security Research

CubeSats represent the most accessible research target for spacecraft security:

  • Many use open-source FSW (OpenSatCom, KubOS, FreeRTOS + custom)
  • Frequencies and protocols often published in amateur satellite databases (AMSAT, SatNOGS)
  • Some have open command interfaces for ground station operators
# SatNOGS global ground station network - passive telemetry collection
# https://network.satnogs.org

# Decode AX.25-framed CubeSat telemetry
gr_satellites <satellite-name> --wavfile capture.wav --doppler_csv doppler.csv

# Parse decoded frames with mission-specific decoder
python decode_telemetry.py --frames decoded.json

Hardening the Space Segment

Control Detail
Command authentication Verify mission-specific cryptographic protection and keys, such as applicable CCSDS SDLS mechanisms; not every command link implements them
Replay protection Use authenticated sequence/nonce/window checks and durable state suited to mission reliability; a plain counter is not an authentication control
Encryption in transit Apply mission-approved authenticated encryption where confidentiality is required, with separately enforced command authenticity and key management
Software signing Cryptographic signature verification before any FSW load/patch execution
Watchdog timers Hardware watchdog to recover from FSW compromise or corruption
Safe mode Autonomous safe mode entry on anomaly; limited command set in safe mode
Memory protection MPU/MMU enforcement; non-executable data regions
Radiation hardening Redundant memory, scrubbing, error-correcting codes (EDAC) - also relevant to fault injection

๐Ÿ“– Use These Techniques Responsibly: Authorization is MANDATORY

Space systems are critical infrastructure - treat them accordingly.

Repository: ULTIMATE CYBERSECURITY MASTER GUIDE

Maintained by: Pacific Northwest Computers


Related Files

โš ๏ธ RF transmission toward satellites requires EXPLICIT WRITTEN AUTHORIZATION โš ๏ธ

โš ๏ธ Unauthorized access to space systems is a FEDERAL CRIME โš ๏ธ

โš ๏ธ ITAR/EAR export controls may apply to satellite security tools and techniques โš ๏ธ

โญ Star this repo if you find it useful! โญ


๐Ÿ“„ Source: SpaceSecurity/PartIII.md | โœ๏ธ Suggest an edit | โฌ…๏ธ Back to Space Security

Clone this wiki locally