News for hackers. Stuff that matters.
Re:ProtonMail now offers entire message content search by SahAssar on Monday November 15, 2021 @02:45PM (#29231749)
Since this relies on a local index, does that not mean that it needs to download all your email to be able to search it? And if I want to search on a new device it needs to download all my emails for me to search?
Re:ProtonMail now offers entire message content search by theschmed on Monday November 15, 2021 @05:29PM (#29233743)
I'm curious about this myself.

I activated the feature today, and my Indexed DB for mail.protonmail.com now has a table "messages", and each message has an ID, a time, and an "aesGcmCiphertext" object with 2 child objects of keys "iv" and "ciphertext". The "iv" object has 12 integer keys from 0-11, with integer values between 0-255. I don't see any data in the "ciphertext" object at all.

I am not well versed in indexeddb so can't shed more light.

Re:ProtonMail now offers entire message content search by SahAssar on Tuesday November 16, 2021 @03:40AM (#29238299)
Could you run this to check how much space it is using? `navigator.storage.estimate().then(estimate => console.log('Usage (MB): ', Math.round(estimate.usage / (1024 * 1024))))`
Re:ProtonMail now offers entire message content search by theschmed on Tuesday November 16, 2021 @07:38AM (#29239817)
That script returns 53MB for me, while the Protonmail GUI says my inbox uses 418MB.

I do not know how much of my inbox is attachments and embedded images though.

Re:ProtonMail now offers entire message content search by vinceroni on Monday November 15, 2021 @04:35PM (#29233092)
From what I gather from the article, yes: the index is stored on your browser. From the post:

This means that when you have search message content enabled, but your web browser is closed, an attacker with physical access to your device cannot read the contents of the index file. If you are logged in with your ProtonMail tab open, a decrypted version is stored in memory, but at this point, they would have direct access to your emails, anyway.