Duress passwords: protection when you're forced to unlock

7 min read

Hand drawing a pattern on a dot grid under a looming human shadow

A duress password is a second code you give when someone forces you to unlock: it opens something harmless, and quietly hides or deletes what you're protecting. The iPhone itself doesn't have one, but some vault apps do. It's a real tool for a narrow, serious situation, with real limits and legal risks you should understand before relying on it.

The threat encryption can't solve: coercion

Strong encryption protects your files from someone who doesn't have the key. It does nothing against someone who makes you hand the key over.

That someone might be:

  • A partner or family member who demands to see your phone.
  • A robber who takes your phone and wants it unlocked.
  • An official at a checkpoint or border who asks you to unlock a device.
  • Anyone who has power over you in the moment and won't accept "no".

In each case, refusing may be unsafe or impossible. A duress option gives you a third choice between refusing and revealing everything.

How duress modes work

Different systems use a duress code in different ways. The three main patterns are:

  1. Decoy. The duress code opens a believable but harmless space, like a vault with everyday photos. The real content stays hidden and encrypted. Whether it can be discovered depends on how well the system hides that other spaces exist.
  2. Wipe. The duress code deletes the protected data, sometimes while showing a normal screen. Afterwards, there's nothing left to reveal, and nothing for you to give up.
  3. Alert. The duress code looks like a normal unlock but silently notifies someone, a long-standing idea in building alarm systems.

Many tools combine the first two: open a decoy and delete the rest. Done well, nothing on screen hints that anything happened.

Decoy box of ordinary photos, a box dissolving to dust and a softly ringing bell

Does iPhone have a duress passcode?

No. iOS has one passcode per device, and there's no second code that opens a different view or erases data on the spot.

What iOS does have:

  • A quick way to disable Face ID. Pressing and holding the side button and either volume button for about two seconds brings up the power-off and Emergency SOS screen. Tap Cancel, and the iPhone will require your passcode to unlock. Apple lists this among the cases where a passcode is required in its platform security guide. It stops someone from holding the phone up to your face; it doesn't help if you're forced to type the passcode.
  • Erase after failed attempts. In Settings → Face ID & Passcode, Erase Data wipes the iPhone after 10 failed passcode attempts. That's a defense against guessing, not against coercion.
  • Separate secrets inside apps. Since the device has one passcode, the practical place for a duress option is the app holding what you care about.

Duress in a vault app: Private Vault's emergency pattern

A vault app can do what iOS doesn't: give each vault its own secret, and let one of them act as the duress code.

It helps that Private Vault has no list of vaults. Each pattern opens its own vault, and by default any unrecognized pattern opens an empty one, so an onlooker can't count your vaults or tell a real one from a made-up one. That's plausible deniability, and it's what makes a decoy believable. We cover the idea in depth in plausible deniability in encryption.

Limits: forensics, backups, other devices, and it works once

A duress code changes what's on the phone in that moment. It isn't magic. Know what it doesn't do.

  • Forensic analysis. Someone with a full forensic copy of the iPhone may find traces that data was deleted, or that the app held more encrypted data than the vault you showed. They can't open removed vaults, but they may be able to tell something was there.
  • It works once. The emergency vault becomes a normal vault after use. Set it up again if you want it.
  • Backups. Encrypted iCloud backups of removed vaults stay in your iCloud. That's what lets you recover later, but someone with access to your Apple Account could see that backup data exists, even if they can't read it.
  • Other devices. Removal happens on the device where you drew the pattern. A vault synced to an iPad stays on the iPad.
  • No undo. Without a backup, removed vaults are gone for good.
  • Suspicion. A vault that looks empty or fake can invite more pressure, not less. A decoy needs real-looking content to work.
  • Everything outside the vault. Your photo library, messages and other apps are untouched. If the sensitive material is also in Photos or a chat, a duress code doesn't help.
Empty hidden compartment with dust outlines where boxes used to be

This part matters as much as the technology.

The law. In many countries, deleting data during a police investigation, a border inspection or legal proceedings can be a separate offense, such as destroying evidence or obstruction, and lying to officials can be one too. Some places also have laws that can compel you to reveal passwords. These rules differ widely from country to country and from situation to situation. This article isn't legal advice: if you expect a border crossing or legal encounter where this matters, talk to a lawyer or a digital rights organization in that jurisdiction beforehand.

Your safety. With an abusive partner or a violent person, being caught deceiving them can make things worse. A duress code may be the right tool, or the safest move may be to keep sensitive content off the phone entirely. If you're in that situation, a domestic abuse service can help you weigh it.

The simplest protection is often not carrying sensitive data into a risky situation at all. Back it up encrypted, remove it from the device before travel, and restore it later.

Setting one up before you need it

A duress option only works if it's set up calmly, in advance.

  1. Create the decoy vault and fill it with ordinary, believable content: everyday photos, a few screenshots, some notes. An empty vault looks staged.
  2. Use the decoy now and then, so it has recent activity.
  3. Back up the vaults you'd remove. Turn on Encrypted iCloud backup for each one, and keep their recovery phrases somewhere off the phone.
  4. Turn the decoy into the emergency vault. Remember that only one vault can have this role.
  5. Practise the decoy pattern until you can draw it without hesitation under stress. Don't test the duress removal itself unless you're prepared to restore from backup.
  6. Think about where else the content lives. Your photo library, chats and other devices aren't covered.
  7. Know your local laws if you expect to cross a border or deal with authorities.

For people who need several separate spaces, hidden vaults let you keep work, personal and private content apart, each with its own pattern.

Questions

Does iPhone have a duress PIN?

No. iOS has no second passcode that opens a decoy or wipes data. What it has is a quick way to require the passcode: holding the side button and a volume button disables Face ID until the passcode is entered.

Is deleting data under duress illegal?

It can be. Deleting data during a police search, a border inspection or legal proceedings may be a crime in many countries. Laws differ, so get local legal advice if this applies to you.

Can a forensic examiner tell data was wiped?

Possibly. A full forensic copy of a phone can show traces that data was deleted. What it can't do is decrypt vaults that were encrypted and are no longer on the device.

What happens to iCloud backups after a duress wipe?

In Private Vault, encrypted iCloud backups of the removed vaults stay in your iCloud. You can restore them later with each vault's recovery phrase.

Keep it private on your iPhone

No account. No analytics. Encrypted on your iPhone.

Get Private Vault