Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/ADVERSARIAL_TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Adversarial Testing for SpaceWasm Modules

SpaceWasm is a flight-compliant WebAssembly interpreter.
This doc describes dual-model adversarial test generation.

## Threat Model

Flight WASM modules may receive malformed sensor inputs,
out-of-bounds indices from corrupted telemetry,
or unexpected state transitions from concurrent systems.

## Dual-Model Gate Pattern

```
Generator model -> happy-path test cases
down
Adversarial gate -> boundary values, type confusion,
sequence attacks, resource exhaustion
down
SpaceWasm -> runs all cases under fuel limit
```

## Key Invariants

1. Fuel-bounded execution -- no unbounded runs
2. Memory-safe -- no access outside declared pages
3. Deterministic -- same inputs, same outputs
4. No host imports outside whitelist