Security and Privacy Failures in Popular 2FA Apps
A systematic study of 22 popular Android TOTP authenticator apps found that most backup mechanisms rely on weak technologies such as passwords, SMS and email, and that many apps leak personal information to third parties, contain serious cryptographic flaws, or let developers read TOTP secrets in plaintext. An attacker who obtained a backup could therefore recover the shared secrets and generate valid one-time codes for victims' accounts.
Published on usenix.org
Security and Privacy Failures in Popular 2FA Apps Conor Gilsenan UC Berkeley / ICSI
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
TOTP (Time-based One-Time Password) is a widely deployed second factor: the server and the authenticator app share a secret, and the app derives a six-digit code from it that changes periodically, typically every 30 seconds. Because the code is computed locally from a stored secret, the app works without a network connection, but it also means the user must keep that secret safe and available. Lose the phone, wipe it, or uninstall the app, and the secret is gone, along with the ability to log in to every account that depends on it.
To soften that lockout risk, many TOTP apps ship backup and recovery mechanisms: QR-code transfer between devices, plaintext file exports, sharing through the Android share sheet, encrypted cloud sync, and the built-in Android Auto Backup (AAB) system. This paper, by Conor Gilsenan, Fuzail Shakir, Noura Alomar and Serge Egelman, defines a methodology for assessing the security and privacy of those mechanisms and applies it to every general-purpose Android TOTP app in the Google Play Store with at least 100,000 installs that implemented a backup mechanism: 22 apps, together comprising over 180 million installs.
The research questions were:
- What personal information, if any, is leaked to the app developer or other third parties as a result of using the backup mechanisms?
- What is the risk of an attacker obtaining a TOTP backup?
- What is the risk of an attacker compromising the TOTP secrets stored within an obtained backup?
The threat model is an attacker who obtains the data contained in a TOTP backup (secret, label, issuer) once it leaves the local device. Attacks that require physical possession of the device are explicitly out of scope, and the Android device is assumed to be free of malware and up to date.
Setup
App selection ran in November and December 2021. The authors built a list of core search terms ("totp", "2fa", "two factor", "mfa", "multifactor"), added the top five auto-completion suggestions for each, queried the Play Store for each unique term, and downloaded metadata for the top 30 results per query. Deduplication left 546 apps. They excluded 193 apps with fewer than 100,000 installs and 263 whose description did not contain any of the final search terms, leaving 90 apps that were reviewed manually. Apps whose primary focus was not 2FA, apps tied to a single service (such as the Blizzard Authenticator), and multipurpose apps that merely offer TOTP among other features (such as password managers) were excluded. The 22 remaining apps are listed in Table 1 with their package IDs and versions, for example:
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]-play
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
APKs were downloaded from the Play Store using a non-rooted Pixel 3a, the Android Debug Bridge (ADB) and a custom shell script. Analysis ran in three phases.
Exploring the app. The authors documented features and settings, whether the app required personal information to be used at all (Twilio Authy required an email address and proof of control of a phone number), what information was required to enable the backup, which backup mechanisms existed, where remote backups were stored, and, where a backup password was required, the password policy, including minimum length and block-list use. Each app got a customised checklist of actions and data to enter, replicating what a real user would do when first using the app, enabling backup and later recovering.
Capturing and reviewing traffic. Each app was installed on a Pixel 3a running a custom version of Android 9 (developed in prior research and commercially maintained by AppCensus) that recorded plaintext network traffic to file. The phone had a SIM and a registered Google account, and the screen was recorded as an mp4 with scrcpy during each session so that specific transmissions could be traced back to specific actions. The authors created two QR codes following the de facto Google standard, encoding known values for issuer, label and secret, so that those known values could be searched for in the captured traffic. They then identified which requests carried the backup, checked for known values such as the backup password and the QR fields, and recorded any field that appeared encrypted for later analysis. The platform-level capture matters because it avoids the classic proxy problems: certificate pinning can be bypassed, decryption keys can be extracted from memory, and sockets can be mapped to process names, giving strong attribution to individual apps.
Cryptanalysis. For each encrypted field, the authors decompiled the APK with jadx (for closed-source apps), located crypto code by searching for static strings from libraries such as AES and PBKDF2, compared function signatures against Bouncy Castle and libsodium, and manually refactored obfuscated code. They first determined how the key was obtained (usually derived from a user password) and documented the KDF and its configuration, including whether the salt was random or static. They then determined the cipher, mode and any authentication, and recorded the heuristics apps used to detect a correct password, such as checking whether the decrypted output is valid JSON, because an offline attacker uses the same heuristics. To prove the analysis correct, they reimplemented each app's decryption in a separate script taking the ciphertext and IV from the traffic, the chosen password and any salt, and verified that known values from the custom QR codes appeared in the plaintext.
Throughout, plaintext means data not end-to-end encrypted before leaving the app, and encrypted means the app applied end-to-end encryption before transmission, regardless of TLS. All apps tested used TLS when transmitting backup data.
Finding it
The headline result is that most backup strategies end up placing trust in the same technologies TOTP is meant to supersede: passwords, SMS and email. Concretely, across the 22 apps:
- Two apps sent plaintext TOTP secrets to the app developer.
- Four apps sent both the encrypted backup and the encryption key, or the password from which it was derived, to the app developer, giving the developer the technical capability to decrypt the backup.
- Nearly all apps that encrypted backups derived the key from a user password, but most had severely inadequate password policies and/or weak key derivation, leaving ciphertexts open to trivial offline attacks.
- Twelve apps allowed plaintext backups, manually or automatically, and only four warned the user about the risk.
- Many apps shared personal user information with third parties.
Table 1 maps each app to its mechanisms: QR codes (7 apps, 101M+ installs), plaintext cloud sync (3 apps, 6.1M+ installs), encrypted cloud sync (9 apps, 73.7M+ installs), plaintext file export (5 apps, 1.8M+ installs), encrypted file export (6 apps, 1.5M+ installs), plaintext sharing (7 apps, 2M+ installs), encrypted sharing (4 apps, 1.7M+ installs) and Android Backup (9 apps, 2.2M+ installs). A Y* marks a serious flaw in the implementation or usage of cryptography; a Y^ marks a field conditionally included in the backup as plaintext.
Exploitation
Step 1: QR-code transfer without the network
Seven apps let users move secrets between devices optically via QR codes, so nothing crosses the network. Several bury the feature below multiple menu layers. Manual QR export is the only backup mechanism in Google Authenticator, the app with the most installs (100M+, more than twice the next app); Google cited balancing security and usability, noted that physical access to the phone and the ability to unlock it is required, and the app keeps an audit log of secret transfers. The weakness here is availability: the user must own a second device, know where it is, and repeat the transfer every time an account is added. Prior work found people often fail to make manual backups regularly, so lockout remains likely for users who forget.
Step 2: Plaintext backups
Twelve apps, almost 8 million installs, can back up TOTP data in plaintext. Ten of them shared plaintext backups through the standard Android share sheet (email, SMS and so on), copied them to the clipboard, and/or exported them to the device file system. Three supported plaintext cloud sync, sending secret, label and issuer to the cloud unencrypted:
- Latch automatically sent all TOTP fields to Latch servers in plaintext with no opt-out, and this was its only backup mechanism.
- SAASPASS backed up the TOTP fields in plaintext over the XMPP protocol. It was optional and off by default, but the app regularly prompted the user to enable it.
- 2FAS prompted users to enable remote backups to Google Drive, plaintext by default. An encryption option existed, but a UX flaw still leaked plaintext in some cases (Step 4).
Only four of the twelve warned users: 2FAS, Authenticator Pro, andOTP and Aegis Authenticator each displayed a warning and required the user to confirm intent with a checkbox, toggle or confirmation button. Authenticator Pro showed a detailed warning before exporting plaintext to file, yet also allowed copying a plaintext backup to the clipboard with no warning at all.
Step 3: Password policies on encrypted backups
Fifteen apps, over 74 million installs, supported encrypted backups. All but one derived the encryption key from a user-supplied password, so an attacker holding the ciphertext can attack it like a password hash. Feasibility depends first on password strength and second on the KDF.
Most policies were severely inadequate. The most important aspect is minimum length, yet most apps accepted incredibly short passwords and several accepted a single character (Table 3). A few used block lists: Duo Mobile rejected known weak passwords, and Latch used HaveIBeenPwned to warn when the password appeared in a breach. Only Aegis implemented a strength meter. Auth0 Guardian suggested a random 10-character password by default but let the user type their own. Authenticator and App Authenticator could suggest a password of four words drawn from a list of 6,566 words (10^15 permutations), but both used a static salt, largely negating the benefit.
Step 4: KDFs and their configuration
Most KDFs or configurations were wildly inadequate against offline attackers. Zoho OneAuth and TOTP Authenticator used a single round of SHA-256 as the KDF; SHA-256 is optimised to run fast, the opposite of a KDF's design goal, and should never be used alone for key derivation. Authenticator and App Authenticator used the PKCS#12 KDF, which is not hardened against modern hardware and has been deprecated in favour of PBKDF2.
PBKDF2 was the most common choice (7 apps): four used SHA-1 and three used SHA-256. NIST states that PBKDF2 iterations should be at least 10,000; all apps met that, but OWASP recommends 720,000 for PBKDF2-HMAC-SHA1 and 310,000 for PBKDF2-HMAC-SHA256. The highest PBKDF2 iteration count among apps analysed was only about 100,000, in andOTP and LastPass Authenticator. Only three apps used memory-hard KDFs: Yandex.Key and Aegis used scrypt, and Duo Mobile used argon2i via libsodium, which picks KDFs and parameters based on available resources. All three exceed OWASP's password-storage recommendations.
Salts were random in the vast majority of apps, but Authenticator and App Authenticator both used the hardcoded salt:
ROYALEWITHCHEESEROYALEWITHCHEESE
That makes their backups vulnerable to rainbow-table attacks. Given the uniqueness of the value, the authors believe App Authenticator is an unauthorised repackaged clone, since it is full of ads while Authenticator is not.
Table 3 records the full cryptographic picture per app, including cipher, integrity mechanism, decryption heuristic, KDF, iteration counts and salt. Examples: Microsoft Authenticator uses AES-128-CBC with HMAC-SHA256 and random keys; Zoho OneAuth uses AES-256-ECB with SHA-256, one iteration; Salesforce Authenticator uses AES-256-CBC with scrypt (N = 2^15, r = 20, p = 1); Yandex.Key uses Xsalsa20_Poly1305 with SHA-256, one iteration; TOTP Authenticator uses AES-256-CBC with a zero IV and PKCS12-SHA256 at 65,536 iterations; Auth0 Guardian uses AES-256-CBC with PBKDF2-HMAC-SHA1 at 64,000 iterations; Authenticator Pro uses AES-256-GCM with PBKDF2-HMAC-SHA256 at 10,000 iterations; Aegis uses AES-256-GCM with scrypt (N = 2^15, r = 8, p = 1); andOTP uses AES-256-CBC with PBKDF2-HMAC-SHA1 at 10,000 iterations; Twilio Authy uses Xsalsa20_Poly1305 with PBKDF2-HMAC-SHA1 at 10,000 iterations; Duo Mobile uses AES-256-GCM with argon2i (m = 128 Mb, t = 6, p = 1); LastPass Authenticator uses PBKDF2-HMAC-SHA256 at 100,100 iterations.
Step 5: Key management failures
Several apps let the service storing the backup decrypt it. Microsoft had the technical capability to decrypt Microsoft Authenticator backups because it held both the ciphertext and the key: the app fetched randomly generated AES-256 keys from a Microsoft key service and stored the encrypted backup on Microsoft-controlled storage. This is documented in a Microsoft blog post, and Microsoft engineers acknowledged the design on Twitter while stating that internal security procedures reduce the risk. On iOS the ciphertext goes to the user's iCloud, so Microsoft only has the key, not the data; the Android app could achieve the same split knowledge via Android Auto Backup or Google Drive directly.
Three password-derived apps had the same problem less transparently. Yandex.Key, Zoho OneAuth and Salesforce Authenticator each sent the backup password and the encrypted backup to domains controlled by their own developers. Yandex.Key also used Yandex servers to run a password strength test, which should happen locally. Zoho's documentation says only the encrypted secrets are stored and not the passphrase, but it does not explain why the password is transmitted, and users cannot verify that Zoho does not store it. Salesforce sent the password to its servers to verify ownership of backed-up accounts during recovery; since Salesforce Authenticator also required an SMS OTP, the short recovery PIN does not justify letting Salesforce decrypt the backup.
TOTP Authenticator had a different flaw: backups uploaded to Google Drive were encrypted with a key derived from a static, hardcoded password, equivalent to hardcoding the key in the source. Anyone who decompiles the app can decrypt any backup instantly. Oddly, the app did derive a key from a user password for file exports.
Step 6: Cipher modes and integrity
Of the 15 encrypted-backup apps, five used AEAD primitives: two used Xsalsa20_Poly1305 via libsodium's secret_box API and three used AES-GCM. Eight used AES modes that provide only confidentiality.
Of the five AES-CBC apps, four generated a random IV, but TOTP Authenticator used an IV of all zeros, letting an attacker see whether multiple backups start with the same plaintext blocks; the practical impact is arguably immaterial because that app's key derivation is already broken. 2FAS allowed Google Drive backup to be enabled before a password was set, so existing TOTP data was uploaded in plaintext; once a password was supplied, existing and future accounts were encrypted with AES-CBC and a random IV.
Three apps used AES-ECB, which is deterministic and not IND-CPA secure. In each case it is basically immaterial because of other flaws: Zoho servers can already decrypt, and Authenticator and App Authenticator are already exposed to rainbow tables. Attackers will attack the passwords directly rather than analyse ECB output, but the apps should still move to an AEAD.
Microsoft Authenticator was the only app that did not use an AEAD but still provided integrity, via HMAC-SHA256. The other seven AES-CBC and AES-ECB apps had no cryptographic authentication and instead relied on heuristics: five checked whether the decrypted plaintext was valid JSON or a URI. Twilio Authy and Zoho OneAuth encrypted only the Base32 encoding of the secret, and the Base32 structure is a reliable signal that the correct key was used (Appendix A), so omitting a MAC adds no security and looks like an oversight.
andOTP was the only app supporting asymmetric encryption: it sent the plaintext backup to a third-party PGP app, which returned the ciphertext. Sending data to a third-party app carries a clear compromise risk; PGP should be implemented in-app with trusted libraries.
Step 7: Android Auto Backup
Android 6.0 and above uploads app data to the user's Google Drive unless the manifest sets android:allowBackup="false". The documentation recommends opting out for sensitive data. AAB data is described as end-to-end encrypted on Android 9 or higher using the device PIN, pattern or password; the authors did not review the Android source to verify this, but note that such a secret is likely low entropy and may not resist offline attack.
Twelve apps explicitly opted out. The authors manually triggered AAB for the ten that supported it, uninstalling and reinstalling to see what was restored; it would not run without error for three (Aegis Authenticator, andOTP and FreeOTP Authenticator), which were kept in the analysis because AAB may work on untested Android versions. Google Authenticator supported AAB but backed up only settings such as Dark Mode, not TOTP fields. The other six observable apps backed up secret, issuer and label. For the five apps relying solely on AAB's native protections, the Google account was a single point of failure: anyone with access to it could read the backup and generate valid OTPs.
Auth0 Guardian was the only observable app that added protection before AAB: it required a backup password, used to enable native encryption in the Realm database holding TOTP data and settings, and the whole encrypted database appears to have been backed up, since the password was required on recovery. andOTP and Aegis were the only apps letting users opt in or out of AAB, and both required a backup password when it was enabled, presumably used to derive a key before upload.
Step 8: Privacy leaks
Two apps required personal information to be used at all: Twilio Authy (email plus proof of control of a phone number via SMS OTP or voice call) and Latch (an account with an email address). Local file export and sharing requested no PII, though plaintext exports obviously affect privacy depending on where they go.
Cloud sync universally required some PII for authentication during recovery. Of the 11 cloud-sync apps, eight required an email address and five a phone number. Microsoft Authenticator required the most: phone number, email address, name and date of birth. Zoho OneAuth collected email, country and state. The three apps syncing to Google Drive via OAuth/OpenID were granted permission to read the primary email address, name and account photo, the last two being part of the narrowest permission set developers can request.
Several encrypted cloud-sync apps encrypted only the secret and sent issuer and label in plaintext. Duo Mobile conditionally includes the issuer in plaintext when the site is on an internal list of popular sites, and the label when the site is "custom". Zoho OneAuth and Twilio Authy encrypted only the secret, so issuer and label reached Zoho and Twilio servers in plaintext. There is no functional reason for this: Zoho OneAuth shows no TOTP data during recovery unless the password is correct, while Duo Mobile and Twilio Authy display issuer and label even when the password is missing or wrong. Since Twilio Authy and Zoho OneAuth store backups on their own servers, every user who enables cloud backup unknowingly tells those companies which sites they use and their usernames there.
Step 9: Reliance on passwords, SMS and email
Of the 19 apps that supported automatically uploading backups to the cloud, 15 required authentication to the cloud service and four relied solely on SMS OTP during recovery. SAASPASS combined plaintext cloud backups with SMS-only recovery: anyone who hijacks the phone number gets the full backup including secrets. It offers an optional 20-hour delay on sending the recovery OTP, giving the user time to switch apps and rotate secrets, but it is unclear how many users find that option in the security menu.
Twilio Authy, Yandex.Key and Salesforce Authenticator also relied solely on SMS OTP by default, but encrypted backups with a password-derived key. An attacker who hijacks the number must still crack the password offline, and the user, noticing the phone has stopped working, can race to rotate secrets. If the password cracks quickly it was probably weak, which the password policies make likely; given rampant password reuse, the attacker may also compromise the underlying accounts.
The remaining 15 apps required logging into an account on the cloud service. Latch accounts needed only a username and password, with no sign of 2FA, and recovery needed only those. Microsoft accounts required a phone number and email at creation and proof of control of the phone (SMS 2FA) at recovery. LastPass Authenticator relied on the LastPass Password Manager, which requires an email and password and at least one 2FA option; the only free option not tied to device possession was printable recovery codes, and enabling TOTP or Push 2FA on a single device would lock the user out if the phone were lost. Zoho accounts required email and password; Zoho supports several 2FA methods including SMS, but none were required.
Google accounts are commonly the storage for backups, directly or via AAB. Google announced in 2021 that it would begin requiring 2FA for hundreds of millions of users, but at the time of analysis the setup flow required choosing Push 2FA, SMS 2FA or a security key first. Given low awareness, low organic adoption and the rarity of security keys, most users likely stay on SMS or Push. SMS 2FA means the Google account is protected by the very technologies TOTP users are trying to avoid; Push 2FA means losing the device can lock the user out of every TOTP-protected account at once.
Root cause
The recurring mistake is architectural: the backup is encrypted, but the key or password travels to the same party that stores the ciphertext, so encryption provides no confidentiality against the developer or a compromised backend. Where keys are password-derived, the second mistake is treating password-based encryption as safe without enforcing password strength or choosing a slow, memory-hard KDF; single-round SHA-256, PKCS#12, low PBKDF2 counts and a hardcoded salt all make offline cracking cheap. A third pattern is partial encryption: encrypting the secret but leaving issuer and label in plaintext, which leaks exactly the metadata that identifies the user's accounts. Plaintext export and SMS-only recovery reintroduce the weaknesses TOTP was meant to remove. Existing defences did not stop these issues because TLS protects only transit, not the server that terminates it, and because integrity was often replaced by ad hoc heuristics such as parsing JSON or Base32, which an offline attacker can use just as well.
Impact
An attacker who obtains a backup can, depending on the app, read secrets directly (plaintext backups, hardcoded keys, developer-held keys or passwords), crack weak password-derived keys offline, or take over the cloud account or phone number guarding recovery and then read the backup. With the secrets, the attacker can generate valid OTPs for the victim's accounts. Separately, users of several apps leak the names of the sites they use and their usernames to the app developers or third parties, and users of apps requiring accounts leak email addresses, phone numbers, names and dates of birth. These outcomes depend on the specific app and on the attacker obtaining the backup or the recovery channel; device-compromise attacks are out of scope.
Fix
The report does not describe any fixes. The recommendations it makes are: keep the key away from the storage provider (split knowledge, as the iOS Microsoft Authenticator does via iCloud, or via Android Auto Backup or Google Drive on Android); derive keys with modern memory-hard KDFs configured to run significantly more slowly; enforce meaningful password policies and add strength meters; use AEADs and abandon AES-ECB, and stop relying on JSON, URI or Base32 heuristics; encrypt issuer and label as well as the secret; avoid plaintext exports or warn clearly when they are offered; avoid SMS-only recovery; implement PGP in-app rather than delegating to a third-party app; and treat TOTP fields as sensitive enough to opt out of AAB or protect them before upload.
Variants to test
- Key and ciphertext to the same backend. Capture backup traffic and look for the password or key in a request to the developer's own domain. A positive result is the same host receiving both the encrypted blob and the key material.
- Hardcoded keys or salts. Decompile and search for static strings near crypto calls. A positive result is a constant used as key, password or salt, or a salt identical across installs.
- Weak KDF configuration. Identify the KDF and parameters. A positive result is a single hash round, a deprecated KDF, or PBKDF2 far below current recommendations.
- Password policy. Try one-character and dictionary passwords at backup setup. A positive result is acceptance without warning.
- Partial encryption. Decrypt or inspect the backup structure. A positive result is issuer or label stored in plaintext alongside an encrypted secret.
- Missing integrity. Flip ciphertext bytes and attempt recovery. A positive result is the app accepting output based only on a JSON, URI or Base32 check.
- Plaintext before encryption is enabled. Enable cloud backup before setting a password. A positive result is existing data uploaded unencrypted.
- SMS-only recovery. Attempt recovery with only control of the phone number. A positive result is access to the backup without a second factor.
- AAB exposure. Uninstall and reinstall with AAB enabled. A positive result is restoration of secret, issuer and label protected only by the Google account.
- Third-party PGP delegation. Observe whether plaintext is handed to another app for encryption. A positive result is plaintext leaving the app's process.
What happened, in plain words
Most of us have used a second login step: after typing your password, a website asks for a six-digit code from your phone. That code usually comes from an authenticator app, and the system behind it is called TOTP, short for Time-based One-Time Password. The website and the app share a long random string called a secret, and the app turns that secret plus the current time into a code that changes every 30 seconds or so. Because the code is calculated on the phone itself, no internet connection is needed. The catch is that the secret lives only on that phone. Lose the phone, wipe it, or uninstall the app, and the secret is gone, which means you can no longer log in to any account that relies on it.
To reduce that risk, many authenticator apps offer backup features. Some let you copy your accounts to another device by scanning a QR code (a square barcode). Some export your data to a file. Some upload an encrypted copy to a cloud service. Some rely on a built-in Android feature that quietly copies app data to your Google account. This paper, by Conor Gilsenan, Fuzail Shakir, Noura Alomar and Serge Egelman, asks a simple question: are those backup features safe? The authors looked at every general-purpose Android authenticator app in the Google Play Store with at least 100,000 installs that offered some kind of backup. That came to 22 apps, installed more than 180 million times in total.
They had three research questions:
- What personal information, if any, leaks to the app developer or other companies when you use the backup feature?
- How likely is it that an attacker can get hold of a backup?
- If an attacker does get a backup, how hard is it for them to read the secrets inside it?
The attacker they had in mind is someone who gets the backup data once it has left your phone. Someone who physically has your unlocked phone is out of scope, and the phone is assumed to be free of malware and up to date.
A few words you will meet constantly below. Plaintext means data that leaves the app without being scrambled by the app itself. Encrypted means the app scrambled the data before sending it, whether or not the connection was also protected. Every app they tested used TLS, the padlock technology that protects data in transit, so the interesting question was always what happened to the data before and after that protected connection.
Setup
How the 22 apps were chosen
The search ran in November and December 2021. The authors started from obvious search words: "totp", "2fa", "two factor", "mfa" and "multifactor". For each, they also took the top five suggestions the Play Store search box offered, then searched for every unique term and downloaded the details of the top 30 results per search. After removing duplicates they had 546 apps.
They then filtered. They dropped 193 apps with fewer than 100,000 installs and 263 whose description did not contain any of the final search terms, leaving 90 apps to look at by hand. Apps that were not mainly about 2FA, apps tied to one specific service (such as the Blizzard Authenticator), and all-in-one apps that merely happen to include TOTP alongside other features (password managers, for example) were excluded. The 22 that remained are listed with their package IDs and versions. A package ID is the unique name Android uses for an app, like a postal address for software:
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]-play
[redacted]
[redacted]
[redacted]
[redacted]
Line by line: each line is one app. The part before the @ is the package ID, the part after is the version that was tested. For example, [redacted] is Google Authenticator version 5.10, and [redacted] is Aegis Authenticator version 2.0.3. The list is shown here so that anyone can repeat the work on exactly the same versions.
Getting the apps and looking at them
The apps were downloaded from the Play Store onto a non-rooted Pixel 3a phone using the Android Debug Bridge (ADB) and a custom shell script. ADB is a standard developer tool that lets a computer talk to an Android phone; "non-rooted" means the phone was not modified to give the computer full administrator power, so the setup reflects a normal phone. Analysis then ran in three phases.
Phase one: exploring the app. The authors wrote down what each app could do and how it was configured. Did the app demand personal information just to be used at all? Twilio Authy, for instance, required an email address and proof that you control a phone number. What information was needed to switch the backup on? Which backup mechanisms existed? Where were remote backups stored? If a backup password was required, what was the password policy, including the minimum length and whether common passwords were blocked? For each app they built a checklist of exact actions and data to enter, imitating what a real person would do: install the app, add an account, enable backup, and later recover. The point of the checklist is repeatability: every app is put through the same realistic routine, so results can be compared.
Phase two: capturing and reviewing network traffic. Each app was installed on a Pixel 3a running a custom version of Android 9, developed in earlier research and commercially maintained by AppCensus, that records network traffic to a file in readable form. The phone had a SIM card and a registered Google account, and the screen was recorded as an mp4 video with scrcpy, a tool that mirrors and records an Android screen, so that any transmission could later be traced back to the exact tap that caused it. The authors made two QR codes following Google's de facto standard for setting up authenticators, encoding known values for the issuer (the website name), the label (the username) and the secret. Because those values were chosen by the authors, they could search the captured traffic for them and see whether they appeared. They then identified which requests carried the backup, checked for known values such as the backup password and the QR fields, and noted any field that looked encrypted for the next phase.
Why capture at the operating system level rather than through a proxy? A proxy is a middleman server that sits between phone and internet and logs traffic. Proxies have classic problems: apps can use certificate pinning (a technique that makes the app refuse any connection whose certificate is not the expected one, defeating the proxy), traffic from all apps is mixed together with no reliable way to tell which app sent what, and encrypted traffic cannot be read. Capturing inside the phone's operating system avoids all three: certificate pinning can be bypassed, decryption keys can be pulled from memory, and each network connection can be tied to the process that opened it, giving strong proof of which app did what.
Phase three: cryptanalysis. Cryptanalysis means studying the scrambling itself to find weaknesses. For every encrypted field, the authors decompiled the app, that is, turned the installed app back into readable source code, using a tool called jadx for apps whose source is not public. They found the crypto code by searching for telltale strings from well-known libraries such as AES and PBKDF2, compared function signatures against open libraries such as Bouncy Castle and libsodium, and manually cleaned up obfuscated code (code deliberately made hard to read). They first worked out how the key was obtained, usually by deriving it from a user password, and documented the key derivation function and its settings, including whether the salt was random or fixed. A salt is random data mixed into the password before key derivation so that two people with the same password get different keys. They then worked out the cipher, its mode of operation and any authentication, and recorded the tricks apps used to decide whether a password was correct, such as checking whether the decrypted output is valid JSON (a common text data format). Those tricks matter because an offline attacker, someone who has a copy of the encrypted backup and can guess passwords on their own computer without touching the service, uses exactly the same tricks. Finally, to prove the analysis was right, they reimplemented each app's decryption in a separate script that took the ciphertext and IV from the captured traffic, the password they had chosen, and any salt, and checked that the known values from their custom QR codes appeared in the result. An IV, or initialisation vector, is a random starting value that makes identical plaintext encrypt differently each time.
Finding it
The headline result is that most backup strategies end up trusting the very technologies TOTP is meant to replace: passwords, SMS and email. Across the 22 apps:
- Two apps sent plaintext TOTP secrets to the app developer.
- Four apps sent both the encrypted backup and the encryption key, or the password it was derived from, to the app developer, so the developer had the technical ability to decrypt the backup.
- Nearly all apps that encrypted backups derived the key from a user password, but most had severely inadequate password policies and/or weak key derivation, leaving the encrypted data open to trivial offline attacks.
- Twelve apps allowed plaintext backups, manually or automatically, and only four warned the user about the risk.
- Many apps shared personal user information with third parties.
Table 1 maps each app to its mechanisms: QR codes (7 apps, 101M+ installs), plaintext cloud sync (3 apps, 6.1M+ installs), encrypted cloud sync (9 apps, 73.7M+ installs), plaintext file export (5 apps, 1.8M+ installs), encrypted file export (6 apps, 1.5M+ installs), plaintext sharing (7 apps, 2M+ installs), encrypted sharing (4 apps, 1.7M+ installs) and Android Backup (9 apps, 2.2M+ installs). A Y* marks a serious flaw in how cryptography was implemented or used; a Y^ marks a field conditionally included in the backup as plaintext.
Exploitation
Step 1: QR-code transfer without the network
Seven apps let users move secrets between devices optically with QR codes, so nothing crosses the network at all. Several hide the feature several menus deep, which lowers the chance a user finds it unless they are looking for it. Manual QR export is the only backup mechanism in Google Authenticator, the app with the most installs (100M+, more than twice the next app). Google said that balancing security and usability motivated the feature, noted that physical access to the phone and the ability to unlock it is required, and the app keeps an audit log of secret transfers, a record of when secrets were moved that a user can review for suspicious activity. The weakness here is availability: the user must own a second device, know where it is, and repeat the transfer every time an account is added. Earlier research found that people often fail to make manual backups regularly, so lockout remains likely for anyone who forgets.
Step 2: Plaintext backups
Twelve apps, almost 8 million installs, can back up TOTP data in plaintext. Ten of them shared plaintext backups through the standard Android share menu (email, SMS and so on), copied them to the clipboard, and/or exported them to the phone's file system. Three supported plaintext cloud sync, sending secret, label and issuer to the cloud unencrypted:
- Latch automatically sent all TOTP fields to Latch servers in plaintext with no way to opt out, and this was its only backup mechanism.
- SAASPASS backed up the TOTP fields in plaintext over the XMPP protocol, a messaging protocol. It was optional and off by default, but the app regularly prompted the user to enable it.
- 2FAS prompted users to enable remote backups to Google Drive, plaintext by default. An encryption option existed, but a design flaw still leaked plaintext in some cases (Step 6).
Only four of the twelve warned users: 2FAS, Authenticator Pro, andOTP and Aegis Authenticator each displayed a warning and required the user to confirm with a checkbox, toggle or confirmation button. Authenticator Pro showed a detailed warning before exporting plaintext to a file, yet also allowed copying a plaintext backup to the clipboard with no warning at all.
Step 3: Password policies on encrypted backups
Fifteen apps, over 74 million installs, supported encrypted backups. All but one derived the encryption key from a user-supplied password, so an attacker holding the encrypted backup can attack it much like a stolen password file. Whether that works depends first on how strong the password is and second on the key derivation function.
Most policies were severely inadequate. The most important aspect is minimum length, yet most apps accepted incredibly short passwords and several accepted a single character (Table 3). A few used block lists: Duo Mobile rejected known weak passwords, and Latch used HaveIBeenPwned, a public service that reports whether a password has appeared in a data breach, to warn the user. Only Aegis implemented a strength meter. Auth0 Guardian suggested a random 10-character password by default but let the user type their own. Authenticator and App Authenticator could suggest a password of four words drawn from a list of 6,566 words (10^15 permutations), but both used a fixed salt, largely cancelling the benefit.
Step 4: KDFs and their configuration
A key derivation function, or KDF, is the recipe that turns a password into an encryption key. A good KDF is deliberately slow, so that guessing passwords one after another is expensive. Most KDFs or settings here were wildly inadequate against offline attackers. Zoho OneAuth and TOTP Authenticator used a single round of SHA-256 as the KDF. SHA-256 is a hash function, a one-way fingerprinting algorithm, and it is optimised to run fast, the opposite of a KDF's design goal; it should never be used alone for key derivation. Authenticator and App Authenticator used the PKCS#12 KDF, which is not hardened against modern hardware and has been deprecated in favour of PBKDF2.
PBKDF2 was the most common choice (7 apps): four used SHA-1 and three used SHA-256. NIST, a US standards body, states that PBKDF2 iterations should be at least 10,000; an iteration is one repeat of the internal calculation, and more repeats mean more work for an attacker. All apps met that, but OWASP, a well-known security guidance project, recommends 720,000 for PBKDF2-HMAC-SHA1 and 310,000 for PBKDF2-HMAC-SHA256. The highest PBKDF2 iteration count among apps analysed was only about 100,000, in andOTP and LastPass Authenticator. Only three apps used memory-hard KDFs, which also demand large amounts of memory and so are much more expensive to run in bulk: Yandex.Key and Aegis used scrypt, and Duo Mobile used argon2i via libsodium, a library that picks KDFs and settings based on available resources. All three exceed OWASP's password-storage recommendations.
Salts were random in the vast majority of apps, but Authenticator and App Authenticator both used a hardcoded salt:
ROYALEWITHCHEESEROYALEWITHCHEESE
This is a single fixed string written into the app. Because it never changes, an attacker can precompute a huge table of password-to-key results, called a rainbow table, and reuse it against every user of the app, which makes their backups vulnerable to rainbow-table attacks. Given how unusual the value is, the authors believe App Authenticator is an unauthorised repackaged clone, since it is full of ads while Authenticator is not.
Table 3 records the full cryptographic picture per app, including cipher, integrity mechanism, decryption heuristic, KDF, iteration counts and salt. Examples: Microsoft Authenticator uses AES-128-CBC with HMAC-SHA256 and random keys; Zoho OneAuth uses AES-256-ECB with SHA-256, one iteration; Salesforce Authenticator uses AES-256-CBC with scrypt (N = 2^15, r = 20, p = 1); Yandex.Key uses Xsalsa20_Poly1305 with SHA-256, one iteration; TOTP Authenticator uses AES-256-CBC with a zero IV and PKCS12-SHA256 at 65,536 iterations; Auth0 Guardian uses AES-256-CBC with PBKDF2-HMAC-SHA1 at 64,000 iterations; Authenticator Pro uses AES-256-GCM with PBKDF2-HMAC-SHA256 at 10,000 iterations; Aegis uses AES-256-GCM with scrypt (N = 2^15, r = 8, p = 1); andOTP uses AES-256-CBC with PBKDF2-HMAC-SHA1 at 10,000 iterations; Twilio Authy uses Xsalsa20_Poly1305 with PBKDF2-HMAC-SHA1 at 10,000 iterations; Duo Mobile uses AES-256-GCM with argon2i (m = 128 Mb, t = 6, p = 1); LastPass Authenticator uses PBKDF2-HMAC-SHA256 at 100,100 iterations.
Step 5: Key management failures
Several apps let the service storing the backup decrypt it. Microsoft had the technical capability to decrypt Microsoft Authenticator backups because it held both the encrypted backup and the key: the app fetched randomly generated AES-256 keys from a Microsoft key service and stored the encrypted backup on Microsoft-controlled storage. This is documented in a Microsoft blog post, and Microsoft engineers acknowledged the design on Twitter while stating that internal security procedures reduce the risk. On iOS the encrypted backup goes to the user's iCloud, so Microsoft only has the key, not the data; the Android app could achieve the same split knowledge, where no single party holds both halves, via Android Auto Backup or Google Drive directly.
Three password-derived apps had the same problem less transparently. Yandex.Key, Zoho OneAuth and Salesforce Authenticator each sent the backup password and the encrypted backup to domains controlled by their own developers. Yandex.Key also used Yandex servers to run a password strength test, which should happen locally on the phone. Zoho's documentation says only the encrypted secrets are stored and not the passphrase, but it does not explain why the password is transmitted, and users cannot verify that Zoho does not store it. Salesforce sent the password to its servers to verify ownership of backed-up accounts during recovery; since Salesforce Authenticator also required an SMS OTP, the short recovery PIN does not justify letting Salesforce decrypt the backup.
TOTP Authenticator had a different flaw: backups uploaded to Google Drive were encrypted with a key derived from a static, hardcoded password, equivalent to hardcoding the key in the source. Anyone who decompiles the app can decrypt any backup instantly. Oddly, the app did derive a key from a user password for file exports.
Step 6: Cipher modes and integrity
A cipher is the scrambling algorithm; its mode of operation is how it is applied to data longer than one block. Of the 15 encrypted-backup apps, five used AEAD primitives, which stands for Authenticated Encryption with Associated Data: a modern approach that scrambles the data and checks it has not been altered in one step. Two used Xsalsa20_Poly1305 via libsodium's secret_box API and three used AES-GCM. Eight used AES modes that provide only confidentiality, meaning they hide the content but do not prove it was not tampered with.
Of the five AES-CBC apps, four generated a random IV, but TOTP Authenticator used an IV of all zeros, letting an attacker see whether multiple backups start with the same plaintext blocks; the practical impact is arguably immaterial because that app's key derivation is already broken. 2FAS allowed Google Drive backup to be enabled before a password was set, so existing TOTP data was uploaded in plaintext; once a password was supplied, existing and future accounts were encrypted with AES-CBC and a random IV.
Three apps used AES-ECB, which is deterministic, meaning identical input always produces identical output, and is not IND-CPA secure, a formal way of saying an attacker can learn things from the ciphertext. In each case it is basically immaterial because of other flaws: Zoho servers can already decrypt, and Authenticator and App Authenticator are already exposed to rainbow tables. Attackers will attack the passwords directly rather than analyse ECB output, but the apps should still move to an AEAD.
Microsoft Authenticator was the only app that did not use an AEAD but still provided integrity, via HMAC-SHA256, a keyed checksum that proves the data was not changed. The other seven AES-CBC and AES-ECB apps had no cryptographic authentication and instead relied on heuristics: five checked whether the decrypted plaintext was valid JSON or a URI (a web address). Twilio Authy and Zoho OneAuth encrypted only the Base32 encoding of the secret, and the Base32 structure, a text encoding of binary data, is a reliable signal that the correct key was used (Appendix A), so omitting a MAC, a message authentication code, adds no security and looks like an oversight.
andOTP was the only app supporting asymmetric encryption, where one key locks and a different key unlocks, as opposed to symmetric encryption where the same key does both. It sent the plaintext backup to a third-party PGP app, which returned the encrypted result. PGP is a well-known email and file encryption standard. Sending data to a third-party app carries a clear compromise risk; PGP should be implemented in-app with trusted libraries.
Step 7: Android Auto Backup
Android 6.0 and above uploads app data to the user's Google Drive unless the app's manifest, a file describing the app's settings, sets android:allowBackup="false". The documentation recommends opting out for sensitive data. Android Auto Backup data is described as end-to-end encrypted on Android 9 or higher using the device PIN, pattern or password; the authors did not review the Android source to verify this, but note that such a secret is likely low entropy, meaning it has few possible values and is guessable, and may not resist offline attack.
Twelve apps explicitly opted out. The authors manually triggered Android Auto Backup for the ten that supported it, uninstalling and reinstalling to see what was restored; it would not run without error for three (Aegis Authenticator, andOTP and FreeOTP Authenticator), which were kept in the analysis because it may work on Android versions they did not test. Google Authenticator supported it but backed up only settings such as Dark Mode, not TOTP fields. The other six observable apps backed up secret, issuer and label. For the five apps relying solely on the built-in protections, the Google account was a single point of failure: anyone with access to it could read the backup and generate valid codes.
Auth0 Guardian was the only observable app that added protection before upload: it required a backup password, used to enable native encryption in the Realm database holding TOTP data and settings, and the whole encrypted database appears to have been backed up, since the password was required on recovery. andOTP and Aegis were the only apps letting users opt in or out, and both required a backup password when it was enabled, presumably used to derive a key before upload.
Step 8: Privacy leaks
Two apps required personal information to be used at all: Twilio Authy (email plus proof of control of a phone number via SMS code or voice call) and Latch (an account with an email address). Local file export and sharing requested no personal information, though plaintext exports obviously affect privacy depending on where they go.
Cloud sync universally required some personal information for authentication during recovery. Of the 11 cloud-sync apps, eight required an email address and five a phone number. Microsoft Authenticator required the most: phone number, email address, name and date of birth. Zoho OneAuth collected email, country and state. The three apps syncing to Google Drive via OAuth/OpenID, standard ways for an app to ask Google for permission on your behalf, were granted permission to read the primary email address, name and account photo, the last two being part of the narrowest permission set developers can request.
Several encrypted cloud-sync apps encrypted only the secret and sent issuer and label in plaintext. Duo Mobile conditionally includes the issuer in plaintext when the site is on an internal list of popular sites, and the label when the site is "custom". Zoho OneAuth and Twilio Authy encrypted only the secret, so issuer and label reached Zoho and Twilio servers in plaintext. There is no functional reason for this: Zoho OneAuth shows no TOTP data during recovery unless the password is correct, while Duo Mobile and Twilio Authy display issuer and label even when the password is missing or wrong. Since Twilio Authy and Zoho OneAuth store backups on their own servers, every user who enables cloud backup unknowingly tells those companies which sites they use and their usernames there.
Step 9: Reliance on passwords, SMS and email
Of the 19 apps that supported automatically uploading backups to the cloud, 15 required authentication to the cloud service and four relied solely on an SMS code during recovery. SAASPASS combined plaintext cloud backups with SMS-only recovery: anyone who hijacks the phone number gets the full backup including secrets. It offers an optional 20-hour delay on sending the recovery code, giving the user time to switch apps and change secrets, but it is unclear how many users find that option in the security menu.
Twilio Authy, Yandex.Key and Salesforce Authenticator also relied solely on SMS by default, but encrypted backups with a password-derived key. An attacker who hijacks the number must still crack the password offline, and the user, noticing the phone has stopped working, can race to change secrets. If the password cracks quickly it was probably weak, which the password policies make likely; given rampant password reuse, the attacker may also compromise the underlying accounts.
The remaining 15 apps required logging into an account on the cloud service. Latch accounts needed only a username and password, with no sign of 2FA, and recovery needed only those. Microsoft accounts required a phone number and email at creation and proof of control of the phone (SMS 2FA) at recovery. LastPass Authenticator relied on the LastPass Password Manager, which requires an email and password and at least one 2FA option; the only free option not tied to device possession was printable recovery codes, and enabling TOTP or Push 2FA on a single device would lock the user out if the phone were lost. Zoho accounts required email and password; Zoho supports several 2FA methods including SMS, but none were required.
Google accounts are commonly the storage for backups, directly or via Android Auto Backup. Google announced in 2021 that it would begin requiring 2FA for hundreds of millions of users, but at the time of analysis the setup flow required choosing Push 2FA, SMS 2FA or a security key first. Given low awareness, low organic adoption and the rarity of security keys, most users likely stay on SMS or Push. SMS 2FA means the Google account is protected by the very technologies TOTP users are trying to avoid; Push 2FA means losing the device can lock the user out of every TOTP-protected account at once.
Root cause
The recurring mistake is architectural: the backup is encrypted, but the key or password travels to the same party that stores the encrypted data, so encryption provides no confidentiality against the developer or a compromised backend. Where keys are password-derived, the second mistake is treating password-based encryption as safe without enforcing password strength or choosing a slow, memory-hard KDF; single-round SHA-256, PKCS#12, low PBKDF2 counts and a hardcoded salt all make offline cracking cheap. A third pattern is partial encryption: encrypting the secret but leaving issuer and label in plaintext, which leaks exactly the metadata that identifies the user's accounts. Plaintext export and SMS-only recovery reintroduce the weaknesses TOTP was meant to remove. Existing defences did not stop these issues because TLS protects only the connection in transit, not the server that terminates it, and because integrity was often replaced by ad hoc checks such as parsing JSON or Base32, which an offline attacker can use just as well.
Impact
An attacker who obtains a backup can, depending on the app, read secrets directly (plaintext backups, hardcoded keys, developer-held keys or passwords), crack weak password-derived keys offline, or take over the cloud account or phone number guarding recovery and then read the backup. With the secrets, the attacker can generate valid codes for the victim's accounts. Separately, users of several apps leak the names of the sites they use and their usernames to the app developers or third parties, and users of apps requiring accounts leak email addresses, phone numbers, names and dates of birth. These outcomes depend on the specific app and on the attacker obtaining the backup or the recovery channel; device-compromise attacks are out of scope.
Fix
The report does not describe any fixes. The recommendations it makes are: keep the key away from the storage provider (split knowledge, as the iOS Microsoft Authenticator does via iCloud, or via Android Auto Backup or Google Drive on Android); derive keys with modern memory-hard KDFs configured to run significantly more slowly; enforce meaningful password policies and add strength meters; use AEADs and abandon AES-ECB, and stop relying on JSON, URI or Base32 checks; encrypt issuer and label as well as the secret; avoid plaintext exports or warn clearly when they are offered; avoid SMS-only recovery; implement PGP in-app rather than delegating to a third-party app; and treat TOTP fields as sensitive enough to opt out of Android Auto Backup or protect them before upload.
Variants to test
- Key and encrypted data to the same backend. Capture backup traffic and look for the password or key in a request to the developer's own domain. A positive result is the same host receiving both the encrypted blob and the key material.
- Hardcoded keys or salts. Decompile and search for static strings near crypto calls. A positive result is a constant used as key, password or salt, or a salt identical across installs.
- Weak KDF configuration. Identify the KDF and parameters. A positive result is a single hash round, a deprecated KDF, or PBKDF2 far below current recommendations.
- Password policy. Try one-character and dictionary passwords at backup setup. A positive result is acceptance without warning.
- Partial encryption. Decrypt or inspect the backup structure. A positive result is issuer or label stored in plaintext alongside an encrypted secret.
- Missing integrity. Flip bytes in the encrypted data and attempt recovery. A positive result is the app accepting output based only on a JSON, URI or Base32 check.
- Plaintext before encryption is enabled. Enable cloud backup before setting a password. A positive result is existing data uploaded unencrypted.
- SMS-only recovery. Attempt recovery with only control of the phone number. A positive result is access to the backup without a second factor.
- Android Auto Backup exposure. Uninstall and reinstall with it enabled. A positive result is restoration of secret, issuer and label protected only by the Google account.
- Third-party PGP delegation. Observe whether plaintext is handed to another app for encryption. A positive result is plaintext leaving the app's process.
Glossary
- 2FA (two-factor authentication): logging in with two different kinds of proof, such as a password plus a code from your phone.
- ADB (Android Debug Bridge): a standard developer tool that lets a computer send commands to an Android phone.
- AEAD (Authenticated Encryption with Associated Data): a modern encryption method that both hides data and proves it has not been altered, in one step.
- AES: the most widely used symmetric encryption algorithm.
- AES-CBC / AES-ECB / AES-GCM: different modes of applying AES. CBC chains blocks together with an IV; ECB encrypts each block independently and is deterministic; GCM is an AEAD mode.
- Android Auto Backup (AAB): a built-in Android feature that copies app data to the user's Google Drive unless the app opts out.
- APK: the installable file format of an Android app.
- Asymmetric encryption: encryption where one key locks and a different key unlocks.
- Audit log: a record of events, here of secret transfers, that a user can review.
- Base32: a text encoding of binary data using 32 characters, often used for secrets.
- Block list: a list of known-bad values, here weak passwords, that an app refuses or warns about.
- Cipher: the algorithm that scrambles data.
- Ciphertext: data after encryption.
- Cryptanalysis: studying an encryption scheme to find weaknesses.
- Decompile: turn an installed app back into readable source code.
- Deterministic encryption: encryption where identical input always produces identical output.
- Entropy: the amount of unpredictability in a value; low entropy means easy to guess.
- Hash function: a one-way algorithm that turns any input into a fixed-size fingerprint.
- HMAC: a keyed checksum that proves data came from someone holding the key and was not changed.
- IND-CPA: a formal security property meaning an attacker cannot tell which of two chosen plaintexts produced a given ciphertext.
- Integrity: assurance that data has not been altered.
- Issuer: the name of the website or service an authenticator entry belongs to.
- IV (initialisation vector): a random starting value that makes identical plaintext encrypt differently each time.
- JSON: a common text format for structured data.
- KDF (key derivation function): a deliberately slow recipe that turns a password into an encryption key.
- Label: the username an authenticator entry belongs to.
- libsodium: an open-source cryptography library.
- MAC (message authentication code): a checksum that proves data was not changed, usually requiring a key.
- Manifest: a file inside an Android app that declares its settings and permissions.
- Memory-hard: a KDF property that demands large amounts of memory, making bulk guessing expensive.
- NIST: a US standards body that publishes security guidance.
- OAuth / OpenID: standard ways for an app to ask a service for permission to act on your behalf.
- Offline attack: guessing passwords against a stolen encrypted copy on your own computer, without touching the service.
- OTP (one-time password): a code valid for one login, often six digits.
- OWASP: a well-known open security guidance project.
- Package ID: the unique name Android uses for an app.
- PBKDF2: a widely used KDF that repeats a calculation many times to slow attackers down.
- PGP: a well-known standard for encrypting files and email.
- PII (personally identifiable information): data that identifies a person, such as email, phone number, name or date of birth.
- Plaintext: data that is not encrypted.
- Process: a running program on a computer or phone.
- Proxy: a middleman server that sits between a device and the internet and can log traffic.
- QR code: a square barcode that encodes data, here the issuer, label and secret.
- Rainbow table: a precomputed table of password-to-key results that can be reused against many users.
- Salt: random data mixed into a password before key derivation so identical passwords give different keys.
- scrypt / argon2i: modern memory-hard KDFs.
- Secret: the long random string shared between a website and an authenticator app that codes are generated from.
- SHA-1 / SHA-256: hash functions; fast by design, so unsuitable as KDFs on their own.
- Single point of failure: one thing whose loss or compromise breaks everything that depends on it.
- SMS OTP: a one-time code sent by text message.
- Split knowledge: an arrangement where no single party holds both the encrypted data and the key.
- Symmetric encryption: encryption where the same key locks and unlocks.
- Threat model: a description of who the attacker is and what they can do.
- TLS: the technology behind the padlock that protects data in transit.
- TOTP (Time-based One-Time Password): a second-factor method where an app turns a shared secret plus the current time into a changing code.
- URI: a web address or similar identifier.
- XMPP: a messaging protocol.
- Xsalsa20_Poly1305: an AEAD encryption method used by libsodium.