Skip to content

Browser cookie import from Chrome 150 fails to decrypt on Linux (XDG secret portal, no encrypted_key in Local State) #14181

Open

Description

@moonjoke001

Browser cookie import from Chrome 150 fails to decrypt on Linux (XDG secret portal, no encrypted_key in Local State)

Summary

"Import Cookies -> From [installed Chromium browser]" silently imports almost no usable cookies on Linux when the source Chrome is v150+. Chrome 150 on GNOME stores the cookie master key via the XDG secret portal instead of writing os_crypt.encrypted_key to Local State. Orca's importer cannot retrieve the key, so v11 cookie decryption fails for nearly all cookies, and the imported session is unusable. The diagnostic log already states the cause: Linux keyring unavailable - v11 cookies may fail to decrypt.

Environment

  • OS: Linux x86_64 (Ubuntu, GNOME/Wayland)
  • Orca: 1.4.180
  • Source browser: Google Chrome 150.0.7871.186
  • Chrome Local State os_crypt section contains only a portal key (e.g. {"portal": {"prev_desktop": "ubuntu:GNOME", ...}}) and no encrypted_key field.

Reproduce

  1. On Linux with Chrome 150 installed and a signed-in Google session, open Orca.
  2. Browser -> Import Cookies -> From [installed Chromium browser] -> select Chrome.
  3. Observe: import reports a small number of cookies loaded; Google (and most other authenticated) sessions are not usable in the Orca browser afterward.

Observed behavior

From ~/.config/orca/cookie-import-diag.log (three separate import attempts, all identical in outcome):

importCookiesFromBrowser: browser=chrome partition="persist:orca-browser"
  source has 2395 cookies
  Linux keyring unavailable - v11 cookies may fail to decrypt
  skipped 0 Google integrity cookies (SIDCC/STRP/AEC)
  SQLite staging complete: 22 cookies, 19 domains
  cleared existing session cookies before loading 22 imported cookies
  memory load: 1 OK, 21 failed
  staged at ... for 21 cookies that need restart
  • Source DB has ~2395 cookies; only 22 are staged, and of those 21 fail to decrypt (1 OK, 21 failed).
  • The staging DB contains 0 cookies for authenticated Google domains after import.
  • os_crypt.encrypted_key is absent from Local State; only os_crypt.portal is present, indicating Chrome 150 delegates key storage to the XDG secret portal / GNOME keyring.

Expected behavior

Either:

  • Orca reads the Chrome master key from the XDG secret portal / GNOME keyring (the path Chrome 150 uses on GNOME), so v11 cookies decrypt correctly; or
  • Orca detects the portal-only os_crypt shape and surfaces a clear error ("Chrome 150 stores its key in the desktop secret portal, which Orca cannot read on this host") instead of silently importing 1/22 cookies.

Root cause analysis

Chrome 150 on GNOME no longer writes os_crypt.encrypted_key to Local State. It stores the cookie-encryption master key via the XDG secret portal (os_crypt.portal marker). Orca's Linux cookie importer appears to rely on the legacy encrypted_key path; when that field is absent, it logs Linux keyring unavailable and cannot derive the AES key, so 21/22 v11-encrypted cookies fail to decrypt and are staged as inert ciphertext.

This is a Linux-side parallel of #13192 (which tracks Chrome/Edge 140+ app-bound encryption on Windows). The Windows issue is about v20 app-bound encryption; this one is about the Linux secret-portal key source for v11 cookies.

Workaround

Create a browser profile with --no-ua-spoof and sign in directly in Orca's embedded browser instead of importing cookies:

orca tab profile create --label google --no-ua-spoof --json

That profile keeps Electron's native user agent (so Google does not reject the sign-in per #11518) and does not depend on cookie import / keyring decryption. (Google sessions still decay after roughly an hour, tracked separately in #10890.)

Related

Activity

  1. added
    bug
    os:linux
    on Sep 19, 2026
  2. added theissue type on Sep 19, 2026
  3. brennanb2025 commented on Oct 26, 2026

    @brennanb2025
    Contributor

    Thanks for the detailed report. On Linux, Orca reads Chrome's cookie key with secret-tool and doesn't use encrypted_key from Local State, so we'd like to narrow down which case you're hitting. Could you check two things on that machine?

    1. Is secret-tool installed? which secret-tool (it comes from the libsecret-tools package on Ubuntu).
    2. Which encryption prefix do Chrome's cookies use? This prints only counts, no cookie names or values (close Chrome first, or point it at a copy of the file):
    sqlite3 ~/.config/google-chrome/Default/Cookies "select substr(encrypted_value,1,3), count(*) from cookies group by 1"
    

    If secret-tool is missing, installing libsecret-tools should fix the import, and the next Orca release will say that directly instead of pointing at the keyring. If most rows show v12, that's Chrome's desktop secret portal encryption, which Orca can't read yet.

  4. Bluenip commented on Dec 1, 2026

    @Bluenip

    Same root cause reproduces with Brave on KDE Plasma (not just Chrome on GNOME), and the Brave case has an extra wrinkle: the importer labels Brave as chromium.

    Environment

    • OS: Fedora 45, KDE Plasma (KWallet / ksecretd running)
    • Orca: 1.4.284
    • Source browser: Brave 158.1.100.59 (single profile, named "Personal")
    • Brave Local State → os_crypt contains only the portal entry, no encrypted_key:
      {"portal": {"prev_desktop": "KDE", "prev_init_success": true}}
    • All 665 cookies in Brave's Cookies DB are v11.
    • secret-tool lookup application brave and secret-tool lookup application chromium both return nothing.

    Observed

    The Orca settings page shows the import as done ("Last imported from Chromium (Personal)"), but no authenticated session carries over. Four attempts, all identical in ~/.config/orca/cookie-import-diag.log:

    importCookiesFromBrowser: browser=chromium partition="persist:orca-browser"
      source has 666 cookies
      Linux cookie encryption key unavailable — v11 cookies cannot be decrypted
      skipped 5 Google integrity cookies (SIDCC/STRP/AEC) and 84 non-transplantable-domain cookies
    

    For example, Brave has a valid Facebook session (c_user and xs, both valid until 2027). The Orca partition has no c_user or xs after the import; it only has datr/sb/fr/wd, which Orca's own browser created itself.

    Expected

    1. Brave is detected as Brave, not as generic Chromium.
    2. The v11 key is retrieved through the XDG secret portal (the same fix Browser cookie import from Chrome 150 fails to decrypt on Linux (XDG secret portal, no encrypted_key in Local State) #14181 needs), or from KWallet's "Brave Safe Storage" entry on non-portal setups.
    3. If no cookies can be decrypted, the UI says so instead of showing a green check. Today the toast only mentions partitioned cookies, so a user would reasonably assume the import worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browserbugos:linux

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions