# How AirVault Protects Your Keys and What It Cannot Protect | AirVault Docs

> How AirVault keeps keys offline: the air gap, Lensly's missing network permission, verify-or-erase rules, and the limits of its threat model.

Security

# How AirVault Protects Your Keys and What It Cannot Protect

How AirVault keeps keys offline: the air gap, Lensly's missing network permission, verify-or-erase rules, and the limits of its threat model.

## The Air Gap

Lensly requests no INTERNET permission. The release build fails if the APK requests INTERNET or ACCESS\_NETWORK\_STATE. Lensly cannot open a network connection, so it cannot check for updates. Its catalog updates arrive as signed packages on removable storage.

Data crosses between the two apps only as QR codes that you show and scan yourself. A pairing code carries public keys only. A signing request shows the transaction that Lensly will sign, and the signature comes back as a QR code.

Lumio uses the network. It reads balances and broadcasts transactions, and it never sees a private key.

## How Lensly Protects Keys

- The vault’s key material is sealed under keys in the Android Keystore. When Lensly erases a vault, it deletes those keys first.
- Lensly asks for your Application Password before it shows a recovery phrase, a private key, or a pairing code. The password must be at least 12 characters.
- The Show Secret screen hides the secret after 60 seconds.
- Lensly marks copied text as sensitive and clears it after 60 seconds. Lumio does the same.
- Lensly turns off screenshots and recent-app previews for its screens.
- Lensly parses scanned requests in a separate, isolated process.
- Lensly refuses a request it cannot decode, and it signs only after you review the request and hold to sign.

![Lensly's Settings: the Address Book, approved contract rules with Unknown Contract Calls set to Warn, Wipe the Vault and the version.](https://alshukran.com/docs-media/airvault/lensly-settings.webp)

## Wrong Tries and Erase

Each wrong password adds a wait before the next try. In the first seven days after setup, no wait is longer than 10 seconds. After that, the longest wait is the one you choose in Lensly’s settings.

You also choose how many wrong tries erase the vault. The setting accepts 3 to 20 tries, and it defaults to 10. Lensly tells you that it erases the vault after that many wrong tries in a row. Changing the setting needs your Application Password.

## Verify or Erase

Lensly checks the vault’s state before it asks for your password. A header check uses a message authentication code, so a changed header cannot be verified. If Lensly cannot verify the vault’s state, it erases the vault instead of locking it. This happens after a storage or Keystore fault, or after a power cut.

Lensly does not keep a vault it cannot verify. The cost is data loss, so keep a recovery phrase for every wallet. The 1.1.0 release also erases vaults made by earlier versions on their first unlock after the update.

## Threat Model and Limits

AirVault gives a network attacker no network path into Lensly. It does not protect against the following risks.

- **A capable adversary with physical access or forensic tools.** The project’s threat model lists assumptions that the team does not control, and the repository records no independent audit.
- **Photographs of QR codes.** A code on either screen can be photographed with another camera. A pairing code shows the addresses of your accounts. A signing request shows the transaction.
- **Network traces from the online phone.** Lumio sends the addresses it checks to RPC providers, block explorers, and price services such as CoinGecko and DefiLlama. Those services see the addresses and your IP address.
- **Traces on an erased phone.** The app keeps its package name and launcher icon. Android records the first install time and the last update time. Anyone with adb access can read the app’s App Standby Bucket. On flash storage, an overwrite may not reach every old block. The vault’s key material is sealed under Keystore keys, so leftover bytes are meant to be unreadable without them, but the app cannot prove that a deleted key stays deleted.
- **The download.** Fetching the APK from GitHub reveals your IP address and the time of the download to GitHub.

AirVault does not claim that an erased phone looks like one that never held a vault.

## What Stays on the Phone

Lensly’s data is excluded from Android cloud backup and device transfer. A full copy of the phone made by another tool falls outside those rules.

## Next Steps

Read [How to Back Up and Restore Your Recovery Phrase](https://alshukran.com/docs/airvault/backup-and-recovery/) to protect the wallet itself. If you find a flaw in the design or the code, follow [How to Report a Security Vulnerability](https://alshukran.com/docs/airvault/report-a-vulnerability/).

---
Source: https://alshukran.com/docs/airvault/security-model/
