Description
8 adversarial tests exist as #[ignore] stubs with unimplemented!() macros in tests/adversarial/:
- test_flood_resilience.rs:
malformed_peer_flood (T140) — needs gossip transport test injection
- test_flood_resilience.rs:
job_submit_flood_rate_limited — rate limiting under flood
- test_sandbox_escape.rs:
sandbox_escape_via_ptrace (T137) — needs sandbox runtime integration
- test_sandbox_escape.rs:
sandbox_escape_via_container_runtime — container escape attempt
- test_network_isolation.rs:
network_escape_via_host_bridge (T138) — needs network namespace plumbing
- test_network_isolation.rs:
network_escape_via_dns_intercept — DNS interception attempt
- test_byzantine_donor.rs:
byzantine_data_corruption (T139) — needs multi-node test harness
- test_byzantine_donor.rs:
byzantine_quorum_bypass — quorum manipulation attempt
Requirements
- Each test must actually exercise the attack scenario, not just assert
- Tests require real sandbox runtimes (Firecracker/WASM), real network namespaces, real gossip transport
- Multi-node tests need a test harness that spawns multiple agent instances
- Tests must verify the attack is detected AND contained (not just blocked)
Success Criteria
Testing (Principle V)
- Run on real hardware with KVM support
- Sandbox escape: attempt ptrace from inside Firecracker VM → must fail
- Network isolation: attempt to reach host bridge → must fail
- Byzantine: inject wrong result → must be detected within 100 audited tasks
- Flood: send malformed gossip for 60s → cluster remains operational
Description
8 adversarial tests exist as
#[ignore]stubs withunimplemented!()macros intests/adversarial/:malformed_peer_flood(T140) — needs gossip transport test injectionjob_submit_flood_rate_limited— rate limiting under floodsandbox_escape_via_ptrace(T137) — needs sandbox runtime integrationsandbox_escape_via_container_runtime— container escape attemptnetwork_escape_via_host_bridge(T138) — needs network namespace plumbingnetwork_escape_via_dns_intercept— DNS interception attemptbyzantine_data_corruption(T139) — needs multi-node test harnessbyzantine_quorum_bypass— quorum manipulation attemptRequirements
Success Criteria
unimplemented!()macros, no#[ignore])Testing (Principle V)