Skip to content

Security: Shadow-Software-Platform/vectorux-framework

SECURITY.md

Security Policy & Threat Model — VectorUXFramework

Supported Versions

Version Supported Security Verification
1.0.x (main) Yes CI + CodeQL + Dependency Review + Zero-Dep / Zero-Unsafe Gate

Architectural Security Invariants (DIR-01 – DIR-06)

  • Zero External Runtime Dependencies (DIR-02): All 6 core workspace crates (vux-math, vux-font, vux-bsp, vux-html, vux-render, vux-cli) and both cross-ISA shims (vux-thumb-harness, vux-wasm-shim) enforce zero third-party Rust crates (Cargo.lock contains strictly the 6 workspace [[package]] entries), eliminating third-party crate supply-chain exposure.
  • Memory Safety (DIR-02): All 6 core crates enforce #![forbid(unsafe_code)]; excluded bare-metal and WASM shims enforce #![deny(unsafe_code)] with 0 unsafe {} blocks and 0 WASM host imports (studio/vux_wasm_shim.wasm).
  • Finite-Input & Resource-Bomb Hardening:
    • vux-math rejects NaN/±Inf with VuxError::NonFiniteInput and enforces strict fixed-point bounds (D_Q = [-128, +128]).
    • vux-bsp (VUXB v1.0) enforces strict slice shrinking (0 < skip < rem.len()), DecodeBudget allocation caps, and CRC32/SHA-256 footers, verified against 100,000+ fuzz mutations and 34-GB OOM bombs (proofs/adr/adr07_vuxb_codec.json).
    • vux-html uses iterative depth-10,000-safe parsing, cyclic <use> depth-16 / <iframe> depth-8 guards, and zero-cleartext <input type="password"> rendering.
    • vux-render::screen_sor enforces canonical JSON limits (MAX_JSON_BYTES = 16 MiB, MAX_JSON_DEPTH = 64, MAX_JSON_ITEMS = 16,384), rejects duplicate object keys, and validates parent acyclicity (VuxError::CyclicReference).
    • vux-cli serve enforces CWE-22 path traversal rejection, CWE-59 symlink escape blocking, loopback-only default bind (127.0.0.1), and .html/.htm extension confinement.
  • Cryptographic Proof Ledger & CI Supply-Chain Security:
    • All empirical proof artifacts, specifications, and publication whitepaper files are cryptographically sealed in proofs/ledger_manifest.json (vux whitepaper verify / n1 whitepaper verify).
    • Every GitHub Actions workflow pins actions to full 40-character commit SHAs, sets persist-credentials: false, declares explicit least-privilege permissions:, and forbids unverified curl | sh downloads.

Reporting a Vulnerability

Do not open a public issue for security vulnerabilities. Report privately via GitHub Private Vulnerability Reporting or contact the maintainers directly. Include reproduction steps, affected crate/version, and minimal proof-of-concept inputs. Target triage response: within 48 hours.

There aren't any published security advisories