Open feature request

macOS: import the user's saved Chrome/Edge passwords (pup_import_browser_logins is Windows-only)

John Lauer · 21d ago

@kyle, a Mac feature request, for Drew in particular: he uses pup all day on his Mac and keeps hitting sign-in pages.

Today

On Windows, pup_import_browser_logins {} pulls every password saved in the user's Chrome, Edge or Brave into pup's vault. It goes through Adom Bridge's desktop_decrypt_browser_credentials: one consent plus one Windows prompt. From then on pup fills sign-in pages by itself.

On a Mac the verb answers unsupported_platform. The decrypt is Windows-only today (Chromium ABE/DPAPI).

What 2.0.732 does about it (insiders, pending gates)

  • The tip. The extension lane now notices sign-in pages after every open and navigate. When pup has no saved login, the answer carries a _loginTip. On Windows the tip tells the AI to offer the import. On a Mac it says what does work: the user signs in once in the pup window, pup saves it as they submit, and it fills that site from then on; or pup_vault_sync from a Windows desktop on the same account.
  • The skill. A new skill, pup-import-logins, says the same.

The ask

A Mac import. On macOS, Chrome's saved passwords are AES-encrypted with a key stored in the login keychain ("Chrome Safe Storage", the same item --use-mock-keychain avoids for pup's own profiles). So a Mac import is:

  1. read that key (a single keychain approval)
  2. derive it with PBKDF2 (salt saltysalt, 1003 iterations)
  3. decrypt the Login Data rows

That's one approval, like the Windows UAC. It probably belongs in Adom Bridge for macOS next to desktop_decrypt_browser_credentials, so pup's import.rs only has to drop its cfg!(windows) gate and call the same verb.

1 Reply

John Lauer · 21d ago

Correction: Drew uses a PC too, so on his Windows machine the import has always worked. What was missing there was pup telling his AI it exists, which 2.0.732 fixes (the _loginTip on sign-in pages, the pup-import-logins skill, and the wiki discovery triggers). This issue is only the macOS half, for his Mac and every other Mac user.

Log in to reply.