Repository navigation
Security and Stability
Andrew Paolucci edited this page Dec 2, 2026
·
3 revisions
Because guap-kit processes untrusted disk, registry, network, browser, and mobile evidence across nine downstream Rust suites, security hardening lives at the lowest shared layer:
-
Memory-Safe Parsing (
#![forbid(unsafe_code)]):guap-table,guap-export,guap-gui-iced, andguap-mcpcompletely forbidunsafecode at the crate root. Windows FFI is confined strictly toguap-gui-win32'snative-hostmodule. -
Adversarial Query Resilience (
guap-table):GuapQuerybounds AST expression depth and regex matching safely, preventing stack exhaustion and integer-to-float precision loss (> 2^53). -
Spreadsheet & Browser XSS Defense (
guap-export): Neutralizes CWE-1236 formula triggers (=,+,-,@,\t,\r, including after whitespace/BOM) in CSV/TSV exports and locks HTML reports behind strict offline Content-Security-Policy headers (default-src 'none'). -
Custody Tamper-Evidence (
guap-export): Pairs dual SHA-256 + SHA-512 file hashing with deterministic binary Merkle trees (RFC 69620x00/0x01domain separation in StrictV2) so any byte change in an exported report invalidates the root hash. -
Fail-Closed AI Automation, Schema Validation & Protected Roots (
guap-mcp): DefaultsPolicyGatetoPolicyMode::ReadOnlyOnly, evaluates-32003(POLICY_DENIED) andvalidate_write_pathsagainstprotected_rootsbefore-32602(INVALID_PARAMS) schema checks (validate_against_schema), gatesguap/rollbackonrestorable == true, and persistsRollbackStoredirectories with0700Unix permissions (0600atomic temp files) and strictsnapshot_idtraversal validation. -
RDP / Elevated Admin Stability (
guap-gui-win32): Avoids WebView2, Chromium, and GPU driver dependencies so administrator forensic sessions over Windows Server RDP remain responsive and crash-free, while enforcingForensicCaseLockandUsbForensicsread-only locks insideGuapShellState.
guap-kit (v0.1.0) • GUAP Ecosystem (guap.ca) • 5 Crates • Rust 2024 Edition (1.89+) • Apache-2.0 License • Repository • Security Policy