Skip to content

Duress Mode in Vault Apps: What a Duress PIN Deletes and What Stays

How duress and panic codes work in iPhone vault apps, what they remove and keep, the legal line in the United States, and how to check one.

Get Stash

Quick answer

A duress mode is a second code that opens the app normally while it deletes or cuts off the other vault in the background. It is a deletion, not a hiding place, and copies in backups usually stay.

What it does
Typing the duress or panic code opens the app as usual, while the real vault's files on this phone are removed or locked away.
Decoy vs duress
A decoy code only opens a second vault. A duress code also changes something else, most often by deleting the main vault.
What stays
Cloud backups made earlier, copies on other devices and anything sent elsewhere. Read what each app keeps before you set one up.
When to use a vault
When a separate PIN for private photos is the goal, with a guest vault for everyday moments and a panic code as a last resort.

Best overall: Stash

The iPhone has one emergency erase: Erase Data wipes the whole phone after 10 wrong passcodes. Stash works at the level of the vault. Its PIN opens an encrypted vault inside a working calculator, a Guest PIN opens a separate vault, and a Panic PIN deletes the main vault for good and then opens it empty, while the guest vault and earlier backups stay. Stash is free to download with no ads, and the calculator, the PIN, AES-256 encryption and the Delete everything switch are ready from the first launch.

What a duress mode is

A duress code (also called a duress password, panic PIN or emergency PIN) is a second code for an app that looks like an ordinary unlock to anyone watching. Behind the screen, entering it does something the person watching does not see. In vault apps that something is nearly always the same: the main vault on this device is deleted, or the app removes its own access to it, and a harmless vault opens instead.

The idea is old. Alarm systems have long had a duress code that disarms the alarm and silently calls for help. Vault apps borrowed the name for a phone in someone else's hands: a family member who insists on seeing the app, or a stranger who grabbed the phone and demands the code.

Three names get mixed up, so it helps to keep them apart:

  • Decoy or guest PIN. A second code that opens a second vault. Nothing is deleted. The real vault stays shut and stays on the phone. The full picture is in what a decoy password is.
  • Duress or panic PIN. A second or third code that opens the app and deletes or locks away the real vault at the same moment.
  • A wipe after failed attempts. No special code. The app or the phone erases itself after too many wrong guesses.

The question to ask of any app is the same for all three: what exactly happens, on this device, when that code is entered?

How vault apps build a duress mode

Under the surface, a duress mode is a delete operation started by a code instead of a button. Apps differ in three places.

What gets removed. Some apps delete the files of the main vault. Others delete the keys or the index that point to those files, which makes the files unreadable without overwriting them. Vaultaire's App Store listing, for example, says that in its Pro plan "drawing its pattern removes access to your other vaults on this device."

Which vault opens afterwards. Most apps open a vault that looks normal: either a designated second vault with ordinary content, or the main vault, now empty.

What the screen shows. A duress code is only useful if it looks like a normal unlock, so most apps show no confirmation, no progress bar and no message. That also means there is no "are you sure?" step if the code is typed by mistake.

Deleted is not the same as erased

Deleting a file and making its data unrecoverable are two different things. The United States standards body NIST defines media sanitization as a process that "renders access to target data on the media infeasible for a given level of effort," and lists cryptographic erase (destroying the key so the encrypted data can no longer be read) as one way to get there (NIST SP 800-88 Rev. 2, Guidelines for Media Sanitization, checked as of 2 December 2026). A duress code inside one app is a much smaller step than that standard describes. Treat it as "the app's copy is gone from this phone", not as "nothing is left anywhere".

What iPhone offers on its own

iOS has no duress code. It has two related tools, both checked against Apple's pages as of 2 December 2026.

Erase Data after 10 wrong passcodes. In Settings > Face ID & Passcode (or Touch ID & Passcode), scroll to the bottom and turn on Erase Data. Apple's iPhone User Guide says this sets the iPhone "to erase all information, media, and personal settings after 10 consecutive failed passcode attempts" (Set a passcode on iPhone). It wipes the whole phone, not one app, and after it you restore from a backup or set the phone up as new.

Make Face ID ask for the passcode. Apple's page About Face ID advanced technology lists the moments when the passcode is required, including "After initiating power off or Emergency SOS by pressing and holding either volume button and the side button simultaneously for 2 seconds." That does not delete anything. It only stops the phone from being opened by holding it up to your face.

Before any app-level duress mode, a strong iPhone passcode does most of the work. Apple's Platform Security guide explains that the passcode is "entangled with the device's UID," so guessing has to happen on the phone itself, with "escalating time delays after the entry of an invalid passcode" (Passcodes and passwords).

How to check whether a vault app has a duress mode

App descriptions use loose words, so test the feature on a vault that holds nothing you need.

  1. Read the App Store description and the app's help pages for "duress", "panic", "emergency" or "self-destruct". "Decoy" and "fake vault" usually mean a second vault only, with no deletion.
  2. Find out what the code removes: the files, the keys, or the whole app's data. Find out which vault opens afterwards.
  3. Check what stays: cloud backups, the second vault, the settings and the recovery key or phrase.
  4. Check whether the code turns itself off after use, and whether it can be typed by mistake. Apps that require it to differ from your other PINs, and not to start with them, make a slip less likely.
  5. Put a few test photos in the vault, set the code, lock the app and enter it. Confirm what the app shows, then confirm that the test photos are really gone from the vault.
  6. Restore from a backup once, so you know the way back works before you rely on it.

What a duress mode protects, and what it does not

Situation Does a duress code help? Why
Someone asks you to open the app while you hold the phone Yes The app opens normally and the main vault's files are removed from this phone
You typed the code by accident No, it works against you Most apps show no warning and the deletion cannot be undone
A cloud backup made before the code was used No effect Backups are usually kept so the vault can be restored
The same vault on another device or in a sync service No effect, or depends on the app The code acts on the device where it is typed
Photos you saved, shared or sent elsewhere No effect Copies in Photos, messages or other apps are outside the vault
Someone who examines the phone's storage with special tools Not a promise Deleting is not the same as sanitizing storage; leftovers outside the app may remain
A border inspection or any legal investigation Do not use it Deleting records in an investigation can be a crime (see below)
A thief who does not know any code Not needed The vault's own PIN and the iPhone passcode already keep it shut

The legal line in the United States

This section describes practice in the United States only and is general information, not legal advice. A federal law, 18 U.S.C. § 1519, titled "Destruction, alteration, or falsification of records in Federal investigations and bankruptcy," makes it a crime to knowingly destroy or conceal a record or object with intent to obstruct a federal matter, with a penalty of up to 20 years in prison (18 U.S. Code § 1519, Cornell Legal Information Institute, checked as of 2 December 2026).

So a duress code is a tool for private situations, never for an officer, an inspection or an investigation. The site's guide to border phone searches explains what United States Customs and Border Protection says it may inspect. If a trip or a legal matter worries you, carry less on the phone and speak with a lawyer before it happens.

When the iPhone's own tools are enough

For most people they are:

  • Nobody else knows the iPhone passcode, and it is six digits or longer.
  • Erase Data is on, and there is a recent backup, so a run of wrong guesses ends in a wiped phone rather than an opened one.
  • You know the Emergency SOS button press that makes Face ID ask for the passcode.
  • The private photos are few, and you can delete them yourself when you no longer need them.

When you need more than the iPhone's own tools

Erase Data acts on the whole phone and only after 10 wrong guesses. Look at a vault with its own codes when:

  • The photos need a code of their own. Apple's Hidden album opens with the phone's passcode, so anyone who knows it can see them.
  • You are sometimes asked to open things on your phone. A guest vault lets you show a vault that holds only what you placed there.
  • You want one vault gone in an emergency, not the whole phone. A panic code deletes the vault and keeps the rest of the phone as it was.
  • You want to know who tried a wrong code. Some vaults take a photo after a wrong PIN.

How to set up a guest vault and a Panic PIN with Stash

Stash opens as a calculator that really calculates; the secret PIN opens the vault. Items you import are encrypted on the iPhone with AES-256 before they are saved, and the key stays in the iOS Keychain. Stash has three kinds of code, explained in the app under How your PINs work: the PIN opens your vault, the Guest PIN opens a separate vault that starts empty, and the Panic PIN deletes everything in your main vault for good, then opens it empty.

  1. Install Stash on an iPhone or iPad with iOS 15 or later, choose your PIN and save the recovery key it shows once during setup.
  2. Optional but useful: go to Settings > Security > Guest PIN (Premium) and set a second PIN. Put a few ordinary photos in that guest vault so it looks used.
  3. Go to Settings > Security > Panic PIN. Stash explains what will be deleted before you continue.
  4. Enter a Panic PIN of 6 to 10 digits, at least as many as your PIN. It must not match or start with your PIN or Guest PIN, so a slip on your own PIN does not set it off.
  5. Practise on the lock screen with test items only. When the Panic PIN is entered there, the main vault's photos, videos, files, albums, notes and intruder photos are deleted for good and the vault opens empty. The Panic PIN then turns itself off.
  6. Keep an encrypted backup (Premium) in your own iCloud Drive or Google Drive. Stash keeps the guest vault and backups already in iCloud or Google Drive, so you can restore with your PIN or recovery key later.

If you would rather delete the main vault on purpose, without a special code, Settings > Security > Delete everything does the same after you confirm and enter your PIN. Add intruder photos (Premium) if you also want a front-camera photo after wrong PINs.

FAQ

What is a duress password?

A second password that looks like a normal unlock but also triggers an action in the background. In vault apps that action is usually deleting or locking away the main vault on this device.

Is a panic PIN the same as a decoy PIN?

No. A decoy or guest PIN only opens a second vault and leaves the main one in place. A panic PIN deletes the main vault at the same moment.

What happens if I type the duress code by accident?

In most apps the deletion starts at once with no warning and cannot be undone. A backup made beforehand is the way back, so keep one and test the restore.

Does a duress code delete my cloud backup?

Usually not. Most apps keep earlier backups on purpose, so the vault can be restored. Stash, for example, keeps backups already in iCloud or Google Drive.

Can someone tell that a duress code was used?

Do not count on it either way. The app looks normal afterwards, but a deleted vault can leave traces outside the app, and an empty vault may itself raise questions.

Does the iPhone have a duress mode?

No. iOS has Erase Data, which wipes the whole phone after 10 wrong passcodes, and an Emergency SOS button press that makes Face ID ask for the passcode.

Is it legal to use a duress mode?

Owning one is ordinary; using one to destroy records in an investigation is not. In the United States, 18 U.S.C. § 1519 makes that a federal crime. This is general information, not legal advice.

Should I use a duress code at a border?

No. Do not delete data or show a misleading vault to an officer. Carry less on the phone and ask a lawyer before the trip if you are worried.

The Bottom Line

A vault app's duress mode is a code that deletes, not a place that hides. Typing it opens the app as usual while the main vault on this phone is removed, with no warning and no undo. What it leaves behind matters as much as what it removes: earlier cloud backups, copies on other devices and anything already shared stay where they are, and leftovers outside the app are possible. The table above sums it up: useful when someone in front of you insists on seeing the app, harmful when typed by mistake, and never something to use with an officer or in an investigation.

The iPhone's own answer is a strong passcode with Erase Data turned on. For private photos with a code of their own, a vault with a guest PIN covers everyday moments, and a panic code is the last resort, set up carefully and tested with test items first.

·Written by the developer of Stash

Save this guide

Summary of this guide as an image: Duress Mode in Vault Apps: What a Duress PIN Deletes and What StaysDownload this guide as an image