Repository navigation
Description
Short summary:
On Windows, Orca's one-step browser cookie import returns 0 imported cookies for Google Chrome 140+ and Microsoft Edge 140+. The user-visible summary shows importedCookies: 0 and no error/warning, so the failure looks like a successful empty import.
This is caused by Chrome 140 (and Edge 140) defaulting to app-bound encryption (v20 prefix) for every cookie on Windows. Orca's decryption path only handles v10 on Windows, so every row fails to decrypt and is silently skipped.
Affected:
- Google Chrome >= 140 on Windows
- Microsoft Edge >= 140 on Windows
- (macOS and Linux are not affected — Chromium still uses v10/v11 there, which Orca already handles.)
Orca version:
v1.4.176-rc.1 (reproduced on main; upstream stablyai/orca main at v1.4.163-rc.1 is also affected — neither branch handles v20).
How can we reproduce it?
- On Windows 10/11, install Google Chrome 140+ (or Microsoft Edge 140+).
- Sign into a Google account (or any other site) and confirm the session cookies are written to the profile's
CookiesSQLite file. - Fully close the browser (the import flow expects this; this is the recommended path).
- In Orca, open Browser Session Cookies → From <Chrome/Edge>.
- Pick the profile that owns the session.
- Observe the result: the summary reports
importedCookies: 0andtotalCookies > 0. No error, no actionable message, just a silent zero.
What happens?
- The diagnostic log (
%APPDATA%/orca/cookie-import-diag.log) shows the rows are read successfully (encrypted_valuelength > 0) butdecryptCookieValueRawreturnsnullfor every row. - All rows are then counted as
skipped, never as a failure, so the user sees a clean 0-cookie import.
Expected:
- Either decrypt v20 (if feasible without the elevation service) — Chromium documents the app-bound key derivation, but it requires SYSTEM-level access via the browser's elevation service and is intentionally not decryptable from a normal user process, so this is effectively impossible from Electron.
- Or, at minimum, detect the v20 prefix up front and surface a clear, actionable error to the user explaining why the import cannot proceed and what to do instead (export via a browser extension like Cookie Editor and use From File). Today Orca just silently returns 0, which is the worst UX.
Anything else that might help:
Root cause:
- File:
src/main/browser/browser-cookie-import.ts - Function:
decryptCookieValueRaw(encryptedBuffer, keyResult) - On Windows (
keyResult.mode === 'aes-256-gcm'), the function callsdecryptAes256Gcm(encryptedBuffer.subarray(3), keyResult.key)regardless of the version prefix. If the prefix isv20, the GCM payload layout is different (app-bound encryption wraps the originalv10ciphertext with an OS-level DPAPI binding; the nonce/tag interpretation is wrong anddecipher.final()throws). Thetry/catchswallows the error and returnsnull, which the caller treats as a benign skip. - The Windows branch only lists
v10(and, in a different revision,v20), but the productionmainbranch has nov20path and no early detection.
Background:
- App-bound encryption was introduced in Chromium 127 as opt-in. Chrome 140 promoted it to the default for all cookies on Windows. See https://chromestatus.com/feature/5140822398443520 and the Chromium OS Cryptography docs.
- Microsoft Edge tracks Chromium, so Edge 140+ has the same behavior.
- This affects any tool that copies
Cookiesout of a live profile and tries to decrypt with the user's DPAPI master key — only the browser's elevated service can callIElevator::DecryptDataand unwrap the app-bound layer.
Suggested fix:
At a minimum, scan the source rows up front. If a v20 prefix is detected, return a clear error such as:
Chrome (or Edge) is using app-bound encryption (v20) for its cookies, which prevents external import. Use a cookie export extension (e.g. Cookie Editor) to export cookies as JSON, then import via From File.
A patch for this already exists in a fork branch (d333135e6 — fix: detect v20 app-bound encryption and show actionable error) but it has not landed in upstream main. Reapplying it (or something equivalent) would at least turn the silent 0 into a clear, actionable error.
Out of scope (but worth noting):
- True v20 decryption from Electron is not viable without the browser's elevation service, so a From File fallback (or asking the user to keep the browser running while exporting via its own UI) is the only honest path forward for Windows + Chrome/Edge 140+.
- macOS and Linux remain unaffected; keep the v10/v11 paths intact.
Activity
AmethystLiang commentedon Aug 8, 2026
thanks for reporting. looking into it
fix(browser): report cookies an import could not decrypt (#14683)
fix(browser): report cookies an import could not decrypt (#14683)
fix(browser): report cookies an import could not decrypt (stablyai#14683
nwparker commentedon Oct 18, 2026
The silent-zero-import bug is fixed by merged #14683. Current code detects Windows
v20cookies as app-bound encryption and shows a warning explaining that Orca cannot decrypt them, with From File… as the alternative. It also handles mixed causes without misattributing their counts.This satisfies the issue's explicit minimum requested outcome. It does not add app-bound decryption, which the report itself lists as out of scope. Although #14683 originally left this issue open because decryption was still unsupported, the current warning and file-import guidance address the actionable-error alternative requested here. I verified the current import and toast paths and reran the focused regression tests successfully.
Closing this silent-success report as fixed; a future request for direct app-bound decryption would need its own feasible design.