Brave Browser Sandbox file protection/encryption

Title: iOS Pasteboard content persists in plain-text base64 within Brave sandbox after cache deletion/shred

Environment:

  • App Version: Brave v1.97

  • Platform: iOS (iOS 27+)

  • Date of Discovery: 10/01/2026 – Present

Issue Description

While reviewing app storage access, I observed that pasteboard/clipboard content used within Brave is stored in the app’s sandbox as plain-text Base64 strings without file type associations.

Furthermore, this data persists even after performing a cache deletion and “shred” operation within the application. Because these strings can be readily decoded outside the sandbox, this presents a data persistence concern for sensitive user input.

Steps / Observations

  1. Paste content (such as text or images) into Brave during standard browsing or AI interactions (e.g., Leo AI / Brave Search AI).

  2. Inspect the Brave sandbox storage.

  3. Observe Base64-encoded strings corresponding to previous pasteboard items.

  4. Perform an in-app cache deletion / shred operation.

  5. Re-inspect the sandbox storage to find that the Base64 strings persist and remain decodable into their original plaintext/file formats.

Why It Matters

  • Data Persistence Post-Shred: Users expect “shred” or cache-clearing features to thoroughly purge temporary session data. Currently, pasteboard content lingers indefinitely.

  • Lack of Encryption: Temporary session artifacts and pasteboard data are stored without encryption or protection via system-level keys (such as the iOS Keychain or existing biometric integrations used for password autofill).

  • Sandbox Security Risks: In the event of secondary sandbox vulnerabilities or container escapes, unencrypted sensitive pasteboard artifacts remain exposed to extraction.

Suggested Improvements

  1. Encryption at Rest: Ensure temporary session and pasteboard artifacts are properly encrypted when no longer actively required for the current interaction.

  2. Enhanced Cleanup Ops: Update cache-clearing and “shred” routines to ensure comprehensive memory handling and secure deletion of historical pasteboard contents that have no ongoing caching utility.

  3. Keychain Integration: Leverage iOS Keychain or existing biometric authentication frameworks to secure sensitive cached session data, aligning with how autofill and private browsing features are handled.