Docs/Evidence
Threat Model
12 threat classes are formally mapped in security_control_checks_v1.yaml, each with assigned conformance suites, compatibility gates, and override audit policies:
| Threat class | What could go wrong | Control |
|---|---|---|
malformed_shape |
Crafted dimensions cause OOB access or allocation bomb | Shape/stride suite + runtime policy adversarial suite |
unsafe_cast_path |
Silent data corruption through widening/narrowing cast | Dtype promotion suite with drift gate |
malicious_stride_alias |
Overlapping views cause data races or corruption | Shape/stride suite with alias drift gate |
malformed_npy_npz |
Malicious .npy/.npz file exploits parser bugs |
IO adversarial suite + parser fail-closed gate |
unknown_metadata_version |
Future format version silently misinterpreted | Runtime policy suite + compatibility drift hash |
adversarial_fixture |
Hostile test inputs cause crash or panic | Adversarial suites across IO/RNG/linalg with reproducibility gate |
rng_reproducibility_drift |
Code change silently alters RNG output sequences | RNG differential + metamorphic + adversarial suites |
linalg_shape_tolerance_abuse |
Ill-conditioned matrix causes wrong result | Linalg differential + metamorphic suites |
linalg_backend_bridge_tampering |
Backend produces wrong result for well-conditioned input | Linalg adversarial + crash signature suites |
linalg_policy_unknown_metadata |
Unknown linalg-policy metadata silently bypasses fail-closed enforcement | Linalg adversarial suite |
corrupt_durable_artifact |
Bit-rot or tampering in stored conformance artifacts | RaptorQ decode proof hash gate |
policy_override_abuse |
Unauthorized bypass of compatibility gates | Runtime policy adversarial + explicit audited override |
Every threat log entry must include: fixture_id, seed, mode, env_fingerprint, artifact_refs, reason_code.