Skip to content

Security and Stability

Andrew Paolucci edited this page Nov 23, 2026 · 1 revision

Security & Stability Considerations (chrome2rust)


1. Memory Safety & #![forbid(unsafe_code)]

7 of the 8 workspace crates compile with #![forbid(unsafe_code)]:

  • chrome2rust-core, chrome2rust-cache, chrome2rust-forensics, chrome2rust-report, chrome2rust-mcp, chrome2rust-cli, and chrome2rust-iced.
  • unsafe is isolated solely to chrome2rust-win32 for native Win32 Common Controls (winsafe) windowing and COM file dialogs.

2. Read-Only Evidence Preservation & Path Safety

  • Zero Browser Mutation: Cache scanning, SQLite parsing, and User Data analysis operate strictly read-only (SQLITE_OPEN_READ_ONLY / snapshot reads) and never modify inspected Chrome profiles.
  • Destructive Action Guard: chrome2rust cache delete defaults to dry-run preview unless --yes is explicitly passed, and chrome2rust-mcp omits destructive deletion completely.
  • Path Traversal Sanitization: chrome2rust cache extract --website-dirs strips traversal components and normalizes host/path segments before writing extracted cache payloads.

3. Decryption Boundaries, Air-Gapped Reports & Binary Hardening

  • Opt-In Best-Effort Decryption (--decrypt): Sensitive credential/cookie decryption is disabled by default; explicit --key passphrases/hex keys and --no-peanuts allow strict investigator control.
  • Air-Gapped HTML Reports: Generated HTML reports enforce a strict Content-Security-Policy (default-src 'none') and escape untrusted URL/header strings safely.
  • Vulnerability Reporting: See SECURITY.md or submit a private advisory via GitHub Security Advisories.

Clone this wiki locally