Go deepProStep 7 of 9

What a forensic examiner can see in a photo vault

What phone forensics can pull from a photo vault, before and after first unlock, what a 2022 study of 20 vault apps found, and what no app can hide.

What an examiner can see depends on two things: the state the phone was in when it was taken, and how the vault stores its files. A phone that hasn't been unlocked since it last started keeps most app data locked under Android's own encryption. A phone taken after its first unlock can give up a copy of its whole file system, and then the vault's design decides what that copy holds: readable photos, or random-looking records that don't even say how many vaults there are.

A forensic examiner here means anyone who copies and analyses a phone's data with specialised tools, from a police lab to a private firm. This guide covers how they get the data, what research found inside vault apps, what Cachette leaves behind, and what no app can hide.

How examiners get data off a phone

The clearest public description comes from Mass Extraction, a 2020 report by the nonprofit Upturn on US police use of mobile device forensic tools. It describes four levels of extraction:

  1. Manual. An investigator "views a phone's contents like a normal user of the phone."
  2. Logical. A tool automates the manual route, copying what the phone shows its user.
  3. File system. Like logical extraction, but it "copies even more data," including "files or other data (like internal databases) that a phone doesn't typically display to users."
  4. Physical. A bit-by-bit copy of the storage itself, which then has to be rebuilt into files.

The file-system level is the one that matters for vaults. A full file-system extraction, often shortened to FFS, can include each app's private folder: its databases, settings and stored files. Upturn notes that "virtually every app on a smartphone stores user information."

On a current Android phone, a raw physical copy is mostly encrypted data, because Android encrypts every file's contents and name. That is why the phone's lock state matters so much.

Before first unlock and after first unlock

Examiners sort phones into two states. In the words of forensic vendor MSAB:

  • BFU, before first unlock: "a state where the device has rebooted or powered on and not been unlocked since the reboot/power on."
  • AFU, after first unlock: "a state where the device has been unlocked at least one time since it was last turned on."

The difference comes from Android's file-based encryption, which encrypts different files with different keys. Google says "all devices launching with Android 10 and higher are required to use file-based encryption," and splits storage in two.

Device Encrypted storage is available as soon as the phone starts, for the few things that must work before you unlock. Credential Encrypted (CE) storage "is the default storage location and only available after the user has unlocked the device." The Android 16 compatibility rules require CE keys to be bound to the hardware keystore and to your lock screen credential, and file contents, metadata and file names to be encrypted.

So in BFU, most app data is locked behind your PIN, pattern or password, and the hardware won't release the keys without it.

AFU is different. A 2021 Johns Hopkins report, Data Security on Mobile Devices, found that Android has no equivalent of the iPhone class of data whose keys are dropped shortly after the phone locks. "As a consequence, Android decryption keys remain in memory at all times after 'first unlock,'" and the authors warned that user data "is potentially vulnerable to forensic capture." A phone in your pocket, locked but used since morning, is in AFU.

BFU is a strong position, not a guarantee. MSAB's own post says its tools "can still acquire a decrypted FFS or physical from a device in BFU" for phones it supports.

What helps is putting the phone back in BFU more often. A restart does it. Android 16's Advanced Protection can restart a phone that stays locked for 72 hours, and Samsung's Inactivity restart, introduced with One UI 8.0, does the same and is on by default. Both are on the pro Android privacy checklist.

What researchers found inside 20 vault apps

The most useful public test of vault apps is Casing the Vault, a 2022 paper by researchers at the University of Illinois Urbana-Champaign, presented at the Workshop on Privacy in the Electronic Society. They tested 20 popular vault apps from Google Play against people with three levels of skill, deliberately "without employing sophisticated forensics analysis": a novice who just looks at the phone, an intermediate user with Android's developer tools but no root access, and an advanced user who roots the phone.

What they found:

  • Disguises mostly failed. Only 10 of the 20 apps offered a disguise such as a fake calculator, and only 3 kept it consistent in the phone's list of installed apps.
  • Size gave vaults away. A real calculator app took 6.10 MB. The smallest vault disguised as a calculator took 35.17 MB before any files were added.
  • Files came out easily. 10 apps allowed a full backup over Android Debug Bridge (adb), a developer tool, and the researchers retrieved hidden files from 15 of the 20 apps without rooting the phone.
  • Secrets sat in plain text. For 7 apps, they could read the PIN and recovery email in plain text.
  • Encryption was rare. Only 5 of the 20 apps used any encryption on stored files.

Two notes keep this fair. The study tested 2022 versions, and apps change. Android has also narrowed one route since then: for apps that target Android 12 or later, the adb backup command no longer exports app data.

The lesson still stands. Hiding a file is not encrypting it, and an examiner who can copy the file system will find whatever was only hidden.

What Cachette leaves behind

Here is what a full file-system copy of a phone with Cachette contains, and what it doesn't.

What is there:

  • The installed app. Cachette doesn't disguise itself. On Android 15 and newer, Private Space can hide it, with the limits described below.
  • A store of random-looking records. Each file is encrypted with AES-256-GCM under its own random key, and that key is sealed under the vault key. Thumbnails are encrypted with their file. File names are random, and sizes are padded to 256 KiB steps below 8 MiB and 1 MiB steps above, so a record's name and size say little about what it holds.
  • The total amount of encrypted data. Someone with a full forensic copy can measure it.
  • Any backup files you saved on the phone. Each backup is one encrypted file holding one vault, sealed by its own 24 words, and the check a restore uses to confirm your pattern is sealed inside it too. Without the words, the file shows that a backup exists and how big it is. Keep the words on paper, never on the phone.

What is not there:

  • No list of vaults, no count and no names. Unlocking derives a key from the pattern and tries it on every stored item. Whatever opens is the vault, and nothing on the phone records how many vaults exist. Deniable storage without an index explains the design in full.
  • No plaintext leftovers. There are no plaintext temporary files and no thumbnail cache, and videos are decrypted while they stream.
  • No way to attack the vault's files elsewhere. The pattern goes through Argon2id and then an HMAC with a pepper key held in the phone's hardware keystore. The pepper can't be exported, so every guess against a copy of the vault's files has to run on the phone and cost a full Argon2id. Backup files rely on their 24 words instead, as described above. Where Android keys live explains that hardware, and what changes on a phone without it.

Memory matters in AFU too. Turning the screen off locks Cachette and clears its keys and thumbnails from memory, and leaving the app locks it. Android's own storage keys may stay in memory after first unlock, but a locked vault's keys don't.

What no vault can hide

These limits apply to every vault app, Cachette included.

  • That the app is there. Private Space hides apps when it's locked, but Google's Private Space help says that in some cases you can't hide its existence from "others who can connect your device to a computer, including Android Debug Bridge (adb) access," or from "other apps which can detect the usage of private space."
  • How much encrypted data there is. If a second vault holds 30 photos and the encrypted data adds up to several gigabytes, that is a question someone can ask. Decoy vaults and plausible deniability covers why a second vault should be substantial and lived in.
  • Copies outside the vault. Originals left in the gallery, its trash or a cloud backup are outside any vault. Copies a cloud gallery uploaded before import still exist there. Cachette's optional Delete originals after import uses Android's permanent delete, which skips the 30-day trash, for items it reads from the gallery. Items chosen through the photo picker can't be deleted by any app, so delete those originals yourself.
  • A vault that is open. If the phone is taken with the vault on screen, its contents are on screen. Turning the screen off locks the vault, so a press of the power button is the habit that helps.
  • A compromised phone. A rooted or infected phone can watch the screen while you use any app.

The law decides what you must hand over

Cryptography decides what can be read without you. Whether you can be made to unlock is a legal question, and the answer depends on where you are.

In the UK, section 49 of the Regulation of Investigatory Powers Act 2000 lets authorities serve a disclosure notice on someone they believe holds the key to protected information, and section 53 makes it an offence to knowingly fail to comply, with up to two years in prison, or five in a national security or child indecency case. In the US, courts treat a memorised passcode differently from a fingerprint, and they don't fully agree. Why a privacy app should not use your fingerprint walks through the recent cases.

Misleading an official can itself be a crime: in the US, 18 U.S.C. ยง 1001 covers false statements to federal officials. Cachette's second vault is not for border officers, police or any official. It is for pressure from people around you.

For travel, the better plan is to back up, carry less on the phone and restore when you arrive, as in phone privacy at border crossings. This is general information, not legal advice.

What helps, in order

  1. Keep the phone updated, so known security flaws are fixed.
  2. Use a long passcode. In BFU, your lock screen credential is what stands between storage and an examiner.
  3. Let the phone return to BFU. Restart it before situations where it may leave your hands, and turn on an automatic restart if your phone offers one.
  4. Keep private files encrypted with a key only you know, so that even an AFU copy holds nothing readable.
  5. Carry less. What isn't on the phone can't be extracted from it. In Cachette, each backup holds the vault that is open when you make it and gets its own 24-word phrase, so back up each vault you want to keep, and restore it later with that file, its 24 words and that vault's pattern. Keep those files somewhere private.

Check yourself

  1. Why does it matter whether a phone was taken before or after its first unlock?

    Show the answer

    Before the first unlock, Android's credential-encrypted storage, the default home for app data, is still locked. After it, Android keeps those keys in memory even when the screen locks, so a file-system extraction can copy far more.

Questions

Can forensic tools see photos hidden in a vault app?

It depends on the vault. If it only hides or renames files, a full file-system copy can contain the photos. If it encrypts each file with a key derived from your secret, the copy holds data that is useless without that secret.

What is the difference between BFU and AFU?

BFU, before first unlock, means the phone has restarted and nobody has unlocked it since. AFU, after first unlock, means it has been unlocked at least once since it was turned on. On Android, much more app data can be extracted in AFU.

Can a forensic examiner tell how many vaults are in Cachette?

Not from the vault storage, because nothing on the phone records how many vaults exist or what they are called. A full forensic copy does show the total amount of encrypted data and any backup files on the phone, so make a second vault substantial and keep backups private.

Does restarting my Android phone protect my data?

It returns the phone to the before-first-unlock state, where data in Android's default credential-encrypted storage stays unreadable until someone enters your PIN, pattern or password. It isn't a guarantee, because some forensic vendors say they can extract supported phones even then.