How to stop cryptomator from caching unencrypted copies of files?

I’m using Cryptomator for local file encryption and noticed I can view data from files which are supposed to be encrypted. You can replicate this with the following steps:

  1. Create a local vault (Other File Provider > On My iPhone)
  2. Unlock vault and upload an image to the vault
  3. Lock the vault
  4. Open the vault from Files, you will see the photo and file name (at least for a moment before you’re prompted to unlock the vault)

I’m not sure if it’s the full file data or just the thumbnail and name, either way I’d like my encrypted data to remain encrypted. There have been numerous threads (1, 2, and more I’m unable to link to) dating back years which seem to mention similar issues but no clear solution was suggested. I found I can no longer see the files when I clear Cryptomator’s cache which makes me think this is a Cryptomator issue rather than an iOS issue?

As it exists now, it seems like reliable file encryption (especially for photos) is impossible with Cryptomator which really diminishes its purpose. Are there any fixes for this issue aside from users having to constantly clear the app cache (assuming that’s the only place they’re cached)?

Hi

Cryptomator main purpose is to encrypt files for online storages and thus ensure privacy against online storage providers.

Protection of files on local environments is not the focus of Cryptomator.

See here: Security Target | Cryptomator Documentation

The behaviour you describe is intended by design and also not only an iOS thing. As Cryptomator is integrated in system environment, there is caching of names an thumbnails possible outside the vault.

Cryptomator is not a replacement for local system encrytion solutions.

To answer your question: you can clear the Cryptomator cache in the settings, but you can not disable the cache

Thanks! Would you know if unencrypted copies could be stored in any other cache that I should clear?

The content of a file should only be in cryptomator cache (that is not stored unencrypted btw). Thumbnails are cached by iOS as soon as they are created once. Thus they stay visible even if you clear the Cryptomator cache. As far as I know (and a quick google search tells me) there’s no way to clear the IOS thumbnail cache, unless you don’t want to factory reset your device.

This is unfortunate to learn.

If this is true why does your security documentation state otherwise? It clearly states that there are no unencrypted copies of data files on the hard drive. It’s all stored in virtual RAM.

I was and have been, I guess I misinterpreted everything I read about your program about the security of a Cryptomator vault on a local hard drive.

Does it state somewhere on your homepage or in an FAQ that your data is not secure on a local hard drive, only on the cloud drive?

I keep the software in a vault on a flash drive in my pocket. If I just learned that if I plug it into a public computer my secure files could end up in some cache folder on the computer, that’s very disappointing.

I also use another Linux-based encryption program and unfortunately it has the same data leak. It has the option to turn caching on and off, which is better than what you mentioned as Cryptomator has no ability to turn off the cache. I know, at least with the other program, if I keep caching disabled no files are written to any kind of a temporary area.

For local encryption I used to use VeraCrypt. Now I’m learning that I may need to go back to it.

There is no unencrypted version of the file content on your hard drive. But the system where your cryptomator app is running does also cache thumnails, or file names (windows history as example). If you try to access a file from history, and your vault is locked, then it does not open because the file content is not available to the OS. But filename and thumbnail exists outside the vault, because these are created by OS.

here: Security Target | Cryptomator Documentation

In addition, you have to keep in mind what Cryptomator is not.

Protection of the files on the local computer is not the focus of Cryptomator. Cryptomator cannot provide protection if the local computer is infected with malware which reads entered passwords and file contents (e.g., files in an unlocked vault).

Cryptomator does not provide protection if programs create backup copies of the encrypted files when working with them. Such files are not detected by Cryptomator and may remain on the computer even after unlocking a vault.

Cryptomator is not a complete replacement for other encryption tools based on container files if metadata (like file sizes and timestamps) should be encrypted.

Let me be clear. The content of files within your vault is not available to the OS if your vault is locked.

No it wont, and I didnt state that. I wrote:

there is caching of names an thumbnails possible

I did not say entire files. I am sorry if that was unclear.

If you want your local environment totally encrypted, then yes.

Please note: If you are using Veracrypt as container, your system still will cache file names outside the container as long as you do not disable this (if possible at all). Its basically the same behavior as with cryptomator.

If you want to have everything (your data and your OS environment) encrypted, than Cryptomator is not the right tool.