Skip to content

01 Recon

Litesh Ghute edited this page Oct 21, 2026 · 2 revisions

Attack 1, Recon: Port Scan & CCSDS Telemetry Decode

Position & access: You're already on the ground segment's Mission Operations LAN, the same position a phished ops engineer's laptop or an exposed jump box would hand a real attacker (full scenario on the Home page). Run everything below from sat-attacker (10.10.0.10), either the GUI at http://localhost:6080/vnc.html or docker compose exec attacker bash.

Objective

Discover which ports the ground segment exposes, identify the protocol in use, and decode live housekeeping, position, and attitude telemetry, all without authentication.


Background

Real satellites downlink telemetry over UHF/S-band RF. Once that RF hits the ground modem, it comes out the other side as plain CCSDS packets over UDP/IP, exactly what you're about to scan and capture here.

Target Port Service Encryption
10.10.0.2 (satellite-sim) 7000/udp ISS TM downlink None (plaintext)
10.10.0.2 (satellite-sim) 7001/udp ISS TC uplink N/A (receive only)
10.10.0.3 (mission-control) 8080/tcp Ops dashboard + API N/A (no auth)

CCSDS Primary Header (6 bytes)

Every packet, TM or TC, starts with this fixed header:

 Bits 15-13  Version (000)
 Bit  12     Packet Type: 0 = TM (telemetry), 1 = TC (command)
 Bit  11     Secondary Header Flag (1 = present)
 Bits 10-0   APID: which subsystem sent this data

 Bits 31-30  Sequence Flags (11 = standalone packet)
 Bits 29-16  Sequence Count (0-16383, wraps)

 Bits 47-32  Packet Data Length (payload bytes - 1)

APID Table

APID Content
0x001 Housekeeping (battery, temperature, mode, power rails)
0x002 Position (lat, lon, alt, velocity)
0x003 Attitude (roll, pitch, yaw)
0x064 Telecommand (uplink only)

Step 1: Map the ground segment with nmap

From the Kali terminal (GUI desktop or docker compose exec attacker bash):

nmap -sU -p 7000,7001 -Pn 10.10.0.2
nmap -sT -p 8080 -Pn 10.10.0.3

Real output from this lab:

Nmap scan report for satellite-sim.orbital-exploit_satnet (10.10.0.2)
Host is up (0.000038s latency).

PORT     STATE         SERVICE
7000/udp closed        afs3-fileserver
7001/udp open|filtered afs3-callback
MAC Address: C2:50:1E:32:21:3D (Unknown)
Nmap scan report for mission-control.orbital-exploit_satnet (10.10.0.3)
Host is up (0.0000080s latency).

PORT     STATE SERVICE
8080/tcp open  http-proxy

afs3-fileserver/afs3-callback are just nmap's static port-number lookup table guessing at an old, unrelated protocol that happens to share these port numbers, not a real detection, ignore the label and trust the state. 7000/udp closed vs 7001/udp open|filtered is the expected, honest signature for a broadcast-only sender versus a receiver: 7000 is where the satellite transmits from, nothing is bound there to receive an empty probe, while 7001 is where it actually listens for telecommands, so nmap can't rule out "open" for it. Confirm 8080 is really Mission Control:

curl -s http://10.10.0.3:8080/api/state | python3 -m json.tool
{
  "ISS": {
    "name": "ISS",
    "norad": 25544,
    "mode": 0,
    "mode_name": "NOMINAL",
    "battery_soc": 92,
    "battery_voltage": 27.603,
    "temperature": 11.2,
    "bus_voltage": 26.222,
    "bus_current": 6.5,
    "solar_power": 0.0,
    "in_sunlight": false,
    "power_rails": [true, true, true]
  }
}

No auth header, no API key, that response comes back to anyone who can reach port 8080.


Step 2: Confirm live traffic with tcpdump

tcpdump -i eth0 -n udp port 7000 -c 5

Real output, tcpdump's own protocol database misreads port 7000 as the old AFS3 fileserver protocol and tries to decode it as such (another instance of the same stale port-number guessing seen above), the packet lengths in parentheses are still accurate and match HK (31B), POS (40B), ATT (28B):

18:12:47.992897 IP 10.10.0.2.55449 > 10.10.0.255.7000:  rx type 102 (31)
18:12:47.992986 IP 10.10.0.2.55449 > 10.10.0.255.7000:  rx type 121 (40)
18:12:47.993006 IP 10.10.0.2.55449 > 10.10.0.255.7000:  rx type 79 (28)
18:12:48.998047 IP 10.10.0.2.55449 > 10.10.0.255.7000:  rx type 102 (31)
18:12:48.998224 IP 10.10.0.2.55449 > 10.10.0.255.7000:  rx type 242 (40)

That's the satellite broadcasting HK (31B), POS (40B), ATT (28B) telemetry to the LAN broadcast address, 10.10.0.255, on a fixed cadence, no destination-specific delivery, no subscription, no auth. Anyone on satnet receives it just by listening.


Step 3: Decode it for real with the CCSDS Scapy layer

Raw hex in a terminal proves the bytes exist; it doesn't prove you understand the protocol. Use the ccsds_scapy.py layer from the Home page's toolkit section to parse it properly:

python3 - <<'EOF'
from scapy.all import sniff, UDP, Raw
from ccsds_scapy import decode_tm

def on_pkt(pkt):
    if not (pkt.haslayer(UDP) and pkt.haslayer(Raw)):
        return
    if pkt[UDP].dport != 7000:
        return
    tm = decode_tm(bytes(pkt[Raw]))
    print(tm)

sniff(iface="eth0", filter="udp port 7000", prn=on_pkt, count=5)
EOF

Real output:

{'apid': 1, 'seq': 2011, 'type': 'TM', 'mode': 0, 'mode_name': 'NOMINAL', 'battery_soc': 93,
 'battery_v': 27.614, 'temperature_c': 12.2, 'bus_v': 26.233, 'bus_a': 6.5,
 'in_sunlight': False, 'solar_w': 0.0, 'rails': [True, True, True]}
{'apid': 2, 'seq': 2011, 'type': 'TM', 'lat': -48.8269, 'lon': 2.8626, 'alt': 417.75, 'speed': 7.6574}
{'apid': 3, 'seq': 2011, 'type': 'TM', 'roll': 355.12, 'pitch': 0.14, 'yaw': 350.81}

sniff() is Scapy's real packet-capture entry point, the same one you'd reach for against any live network, not something written for this lab. decode_tm() handles the CCSDS-specific part: turning the fixed-format payload bytes that follow the header into named fields.

You can also inspect the header alone as a proper Scapy object:

python3 -c "
from ccsds_scapy import CCSDSHeader
CCSDSHeader(b'\x08\x01\xc0\x00\x00\x18').show()
"
###[ CCSDSPrimaryHeader ]###
  version   = 0
  pkt_type  = 0
  sec_hdr_flag= 1
  apid      = 1
  seq_flags = 3
  seq_count = 0
  data_len  = 24

Vulnerability

ISS telemetry is completely unencrypted and unauthenticated in transit. Anyone with network reachability to the ground segment LAN (in a real system: anyone within RF range, or anyone who reaches the modem's IP side) can read:

  • Battery state of charge and voltage
  • Temperature
  • Operating mode
  • Orbital position (real-time)
  • Solar panel status

This mirrors how NOAA weather satellites broadcast raw APT/HRPT imagery with zero encryption, and how early military satellites transmitted unprotected telemetry.


Mitigation

Fix Standard
Encrypt downlink AES-256-GCM or ChaCha20-Poly1305
Authenticate source Digital signature on each packet
Apply ECSS-E-ST-50-04 ESA security standard for TM/TC

Next Step

Attack 2: Passive Sniff: silently capture the live CCSDS downlink with Scapy and Wireshark, and save a pcap for later replay.