Go deepProStep 3 of 9

Designing for coercion: why Cachette has no wrong pattern

Coercion-resistant design in practice. Why Cachette shows no error, keeps every unlock silent and identical, never nudges, and has no duress wipe.

Because in Cachette there is no such thing. Every pattern opens a vault, and a "wrong pattern" message would only tell whoever is watching that a right one exists.

Cachette is designed for a moment most security software never pictures: someone beside you, perhaps holding the phone, who can make you unlock it. In that moment, every signal an app gives is information for them: an error, a pause, a vibration, a reminder, a counter. So Cachette gives none, and every unlock takes the same silent second, with nothing on the screen to say which vault you're in.

This essay is for designers and engineers. It walks through each decision, the reasoning behind it, and the trade-offs that come with it, so you can borrow what fits your own work.

Who you are designing for

Most security design pictures a stranger far away: someone who steals a phone or breaks into a server. The person this design pictures is closer, and already past the lock screen.

Researchers at Cornell and the City University of New York gave that person a name. In "A Stalker's Paradise", a CHI 2018 study of technology abuse in intimate partner violence with 89 participants, Diana Freed and colleagues describe the UI-bound adversary: "an adversarial but authenticated user that interacts with a victim's device or account via standard user interfaces."

Their examples include "compelling unlocking of a phone and inspecting the usage history." Such a person, they write, does not seek root access "or use forensic tools." While using the system, "they are bound by the functionality offered by the system's UI."

That framing changes the job. For a UI-bound adversary, the interface is the whole attack surface. Every word on the screen, every pause and every buzz either tells them something or it doesn't.

The paper suggests a design exercise to match: review each feature "from the point of view of IPV abuse scenarios," adopting the abuser's viewpoint, much as a penetration tester adopts an attacker's. The rest of this essay is that exercise applied to one small screen.

Cachette's second vault is built for exactly this kind of pressure from people around you: a partner who knows your PIN, someone who takes your phone. It is not meant for border officers, police or any official, because misleading an official can itself be a crime.

Rule one: there is no error state

In Cachette, every pattern opens its own vault. The pattern isn't checked against a stored answer. Unlocking derives a key from it and tries that key on every stored item, and whatever opens is the vault.

A pattern that was never used opens an empty vault, which says: "Nothing here yet. Tap + to add photos, videos or files. Every pattern opens its own vault. Go back to draw a different one." Deniable storage without an index covers the cryptography.

That is why there is never a "wrong pattern" message. An error proves two things to an onlooker: that a right answer exists, and that you probably know it.

Mainstream security already treats error messages as leaks. OWASP's authentication guidance tells developers to respond "with a generic error message regardless of whether" the user ID or password was wrong, to avoid creating "a discrepancy factor."

Cachette goes one step further and removes the failure case altogether. An empty vault and an unknown pattern aren't made to look alike. They are the same event.

The same rule covers the small cases:

  • Too short. A pattern needs at least 6 dots. One with fewer simply dissolves, with no message, because a message would be an error state.
  • What counts. Only the dots your finger touches are added, and each dot is used once. A dot your finger passes over counts as touched, and Cachette never fills in a dot by itself because the line happens to cross it. What you draw is what counts, which matters when your hands aren't steady.
  • Setup is different. When you choose a pattern, very common shapes, such as straight lines, letters and the outer ring, are refused with a plain message. That message is about choosing a pattern, not about whether anything exists.

The unlock screen follows the same logic. It shows a plain background and 25 dots: no logo, no title, no hint of state.

Nothing else shares the screen: no menu, no button, no link. An onlooker has nothing to explore and nothing to learn from it.

Rule two: time and touch carry no information

Every unlock holds the screen still for one second: the same for a full vault, an empty one and a brand-new one. Timing is a classic leak. The same OWASP guidance warns that when processing time differs between success and failure, it allows "a time-based attack," and recommends code that "will go through the same process no matter what." A person watching your screen is a slower instrument than a script, but a pause that is longer for a full vault than an empty one is a tell they can learn.

During that second, there is no spinner and no progress bar. A spinner looks harmless, but showing duration is itself a signal, and hiding duration is the whole point of the hold.

Touch gets the same treatment. Each dot gives the identical light tick. There is no success or failure state on unlock: no special vibration, no colour change, no sound. A phone's vibration can be felt by whoever holds it and is often audible to whoever stands nearby, so a different buzz for "vault with photos" and "empty vault" would be a message in its own right.

Rule three: never nudge, never count across vaults

Some of the most revealing signals in an app come from features meant to be helpful.

Setup guides you through making a second vault, opened by a different pattern and filled with 20 to 40 ordinary photos taken over months. A live panel gives hints, such as how many photos and how many different months, and it advises without ever blocking.

What setup never does is nag you to "finish your second vault" later. A reminder like that, seen by someone holding the phone, would announce that a second vault exists. Building a believable second vault covers how to fill one well without being prompted.

Business features get the same review. Cachette is free with every feature, and each vault holds up to 50 items on the free plan. That limit is counted only inside the open vault, and nothing about the plan appears on the unlock screen.

The limit is per vault because the app keeps no list of vaults and cannot count them, and that is the point: a global meter reading "73 of 50 items used" while you show a vault of 20 would quietly prove there is more. Over the limit nothing is locked. Opening, viewing, exporting, backing up and deleting keep working, and only adding more offers Cachette Pro.

The lesson generalises. Counters, limits, upgrade prompts and badges all describe state. If the state is secret, those features belong inside the space that is already unlocked.

Rule four: nothing irreversible, nothing biometric

Cachette has no duress or wipe pattern, for two reasons. A mistyped pattern should never destroy data: under pressure, hands shake and memories slip, and a design that punishes a slip with permanent loss hurts the person it meant to protect. And a visible erase, a vault that empties or a phone that resets in front of someone, would itself suggest that something had been there.

Other tools weigh this differently, and their choices make sense for their users. GrapheneOS offers a duress PIN or password that "will irreversibly wipe the device." Vaultaire, an iPhone app built on a similar 5 by 5 pattern idea, offers a duress pattern in its Pro tier that removes the other vaults from that device.

Those designs suit people who would rather lose data than have it found, and who accept the risk of a slip. Cachette is built for a different moment, where showing an ordinary vault calmly is the goal. There is more on Vaultaire in Vaultaire for Android.

Cachette also has no fingerprint or face unlock. A finger can be pressed to a sensor and a face held up to a camera, and US courts treat compelled biometrics differently from a memorised passcode; why a privacy app should not use your fingerprint covers the cases.

There is a design reason too. Fingerprint unlock in an app means keeping a key on the phone for a successful scan to release, and that kept key would mark one vault as the one your finger opens. Cachette keeps no key that opens a vault without the pattern.

The trade-offs, stated plainly

A design like this has costs, and saying them out loud is part of the design.

  • Screen readers speak. With a screen reader on, the grid becomes one-at-a-time selection, and the dots you choose are spoken aloud. TalkBack, "the Google screen reader included on Android devices," is how many people use their phones at all. An app that locked them out would protect nobody who relies on it, so Cachette keeps the grid accessible and says plainly that headphones help near other people.
  • Nobody can reset a forgotten pattern. Not the developer, not a backup. With no stored pattern and no list of vaults, there is nothing to reset against. Restoring a backup takes the backup file, its own 24 words and that vault's pattern. Choose a pattern you will remember and draw it often.
  • The total is visible to forensics. Someone with a full forensic copy of the phone's storage can see the total amount of encrypted data, though not how many vaults it holds. A second vault of 30 photos next to gigabytes of encrypted data invites a question, which is why it should be substantial. Decoy vaults and plausible deniability goes through these limits.
  • Backup files carry a pattern check. Each backup holds one vault, sealed by its own 24 words. So that it can restore on another phone, the file also carries a check of that vault's pattern, and someone holding the file could test guesses against it. Keep backup files somewhere private, and choose a pattern that is hard to guess.
  • The app itself is visible. Cachette doesn't disguise itself. On Android 15 and newer, Private Space can hide it, and the app shows how. The Stalker's Paradise authors make the same point about deniable systems in general: they "do not hide their presence on the system."
  • No app can stop pressure. Deniability can make pressing you less useful, by making sure the vault you choose to open is the only one anyone can see. It can't make a controlling person reasonable, and it doesn't replace support from people you trust.

A checklist for your own product

If you design for people who may face pressure, these questions travel well beyond vault apps:

  1. Walk every state from the onlooker's side. For each screen, sound, vibration and delay, ask what it tells someone watching.
  2. Make "nothing here" and "something here" identical. Same words, same timing, same feedback.
  3. Keep counters, limits and upsells inside the protected space. Business logic is part of the threat model.
  4. Never let a slip destroy data. Pressure makes mistakes likely, so irreversible actions should never hang on one.
  5. Give people a way to check your claims without revealing anything, the way Cachette relies on Android's own permission list, which anyone can read in Settings, instead of asking to be believed.
  6. State the limits in the product, in plain words, where people will see them before they need them.

Good coercion-resistant design is quiet. When it works, the person beside you sees an ordinary app doing ordinary things, and nothing more.

Check yourself

  1. Why is there no spinner during Cachette's one-second hold?

    Show the answer

    A progress indicator would show how long the unlock took, and duration is exactly the signal the fixed hold exists to hide.

Questions

What is coercion-resistant design?

It is designing an app for the moment when someone else controls the situation, such as a partner who makes you unlock your phone. The goal is that nothing on screen, in timing or in feedback tells that person more than you choose to show.

Why doesn't Cachette say wrong pattern?

Because there is no wrong pattern. Every pattern of at least 6 dots opens its own vault, and one that was never used opens an empty vault after the same one-second hold. An error message would only tell an onlooker that a right pattern exists.

Does Cachette have a duress or panic wipe?

No. A mistyped pattern should never destroy data, and a visible erase switch would itself suggest that something had been there. Cachette offers a second vault instead, opened by a different pattern.

Can someone tell how many vaults are in Cachette?

Not from the app. Cachette keeps no list of vaults, and nothing on the phone records how many exist. Someone with a full forensic copy can still see the total amount of encrypted data, and a backup file carries a check of its vault's pattern, so keep backups private.