Security policy
Downrange parses bytes that arrive over radio and network links. Treat every input as hostile.
Reporting #
Email the maintainer privately before opening a public issue. Until a project address exists, use the email on the maintainer's GitHub profile. Expect a reply within 7 days. Fixes for confirmed issues are released before details are published, with a 90-day ceiling.
What counts #
- A crash, hang or unbounded memory growth from any received datagram, recording file, mission file or client stream.
- Any path by which a client connection can change daemon state. The protocol has no client-to-daemon messages by design, and the daemon never reads from a client socket.
- The client stream being served on a non-loopback address.
- A recording being overwritten, truncated or silently incomplete.
- Any outbound network connection made by the daemon, generator, flight module, launcher or workstation.
- A loss of data that no counter reports.
Threat model for the alpha #
| Who | Can reach | Can do | Defence |
|---|---|---|---|
| Anything on the telemetry network | The UDP input port | Inject, replay or flood frames. Feed hostile bytes to the parsers | Parsers are fuzzed. Bad frames are counted and recorded, never decoded. Overload drops and counts, never blocks. No authentication: forged telemetry is accepted |
| A local user on the ground computer | The client stream on loopback, the recording files | Read all telemetry. Read recordings if file permissions allow | None beyond operating-system permissions. The machine is assumed single-user |
| A remote host | Nothing | Nothing. The client stream refuses to bind a non-loopback address | Enforced at startup and tested |
| Whoever supplies a mission file | The schema parser | Ask for memory up to the budget (512 MB by default). Nothing more | The budget is enforced before anything is allocated. Dangerous settings produce warnings. The parser is fuzzed |
| Whoever supplies a recording | The MCAP reader, then the same decode path as live | Make verify, replay or export fail. On a memory-limited system, make them abort (finding F1) |
Reader panics are contained. The 4 GB allocation is an open upstream issue. Only open recordings you trust |
| A client connected to the stream | A one-way socket | Nothing. The daemon never reads from clients. A stalled client is dropped | Tested |
| The analysis module | Decoded samples | Produce wrong results. It cannot stop acquisition or recording | Own thread, bounded queue, panic containment. Tested |
Not in the model: a compromised operating system, physical access, supply-chain compromise of a dependency (mitigated only by Cargo.lock, cargo-deny and the banned-crate list).
Downrange sends no commands to a vehicle. There is no uplink in the alpha. Any future command path will need its own independently validated authorisation, and no analysis or language-model output will be allowed to issue a command by itself.
Assumptions the alpha makes #
- The ground-station computer is single-user and trusted. Any local user can read the client stream.
- The network the vehicle sends on is closed. Anyone who can reach the UDP telemetry port can inject frames. The VTP checksum detects corruption, not forgery. Raw framing detects neither.
- Remote viewing uses an SSH tunnel. Do not put a proxy in front of the client stream to expose it.
- Recordings are plain files protected by file permissions only.
Current hardening, tested #
- The client stream binds loopback only; other addresses are refused at startup (
the_client_stream_is_only_served_on_loopback). A mission file that asks for a non-loopback stream address produces a warning that says the daemon will refuse to start. - A mission file that binds the UDP input to a non-loopback address produces a warning that the input is unauthenticated.
- The wire parser rejects every single-bit corruption and every truncation of a valid frame.
- Six fuzz entry points cover every place untrusted bytes are parsed. A mutation test runs them on every CI build; 4 million inputs per target have been run by hand.
- Client-stream decoding rejects truncated messages and oversized length fields without allocating.
- The recorder opens files with
create_new. It cannot overwrite an existing recording. - A panic inside an analysis module, or inside the MCAP reader, is contained.
- Channel memory is bounded by a budget with a 512 MB default. A budget too small for the channel count is an error at load time.
cargo-denybans HTTP, TLS and WebSocket clients from the dependency tree, and the air-gap test runs the whole pipeline in a network namespace with loopback only.- Mission files and recordings from a newer format version are refused, never guessed at.
Known gaps #
- No authentication or encryption on the UDP input or the client stream.
- Coverage-guided fuzzing (libFuzzer) is set up but has not run yet. Only the mutation test has.
- Finding F1: a damaged recording can make the reader request up to 4 GB.
- No signed releases. Release archives come with SHA-256 sums only.
- No independent security review.
Planned #
Remote access through a separate relay process with mutual TLS, so the daemon never has a network-facing listener. Optional message authentication on the telemetry input.