Sub topic 15
Mobile device security: screen locks and biometrics
A smartphone or tablet holds email, saved passwords, photos, banking apps, and often a work VPN profile. If someone picks up an unlocked device, they get all of it. The screen lock is the first control between a lost device and the data on it. This chapter covers the lock types the CompTIA A+ Core 2 exam expects you to know, how biometrics work and where they fail, and the settings that make a lock effective.
This chapter assumes you already know the authentication factors (something you know, have, and are) from the earlier chapter on authentication, and that you are comfortable with basic Android and iOS settings.
Why the screen lock matters
A screen lock protects against casual access: a stolen phone, a device left on a desk, or a curious coworker. It also does more than hide the screen. On modern iOS and Android devices, the passcode is mixed into the key that encrypts the device storage. Without the passcode, the data stays encrypted even if an attacker removes the storage chip.
This means a weak lock weakens the encryption too. A four-digit PIN has only 10,000 combinations. A six-digit PIN has 1,000,000. A long alphanumeric passcode has far more. The device slows or stops guessing attempts, so even short codes resist brute force better than they would on a desktop. A strong lock is still the better choice.
Screen lock types
Mobile operating systems offer several lock types. They differ in how strong they are and how easy they are to use.
| Lock type | Factor | Strength | Main weakness |
|---|---|---|---|
| Swipe (no lock) | None | None | Anyone can open the device |
| Pattern | Something you know | Low to medium | Smudges on the screen and shoulder surfing reveal the pattern |
| PIN | Something you know | Medium | Short PINs are guessable. Birthdays and `1234` are common |
| Password or passcode | Something you know | High when long and complex | Slow to type on a small screen |
| Fingerprint | Something you are | Medium to high | Can be forced on a user, and a cut or wet finger may fail |
| Face recognition | Something you are | Varies widely | Weak 2D systems can be fooled by a photo |
| Iris scan | Something you are | High | Needs special hardware, so it is rare |
Swipe is not a security control. It only prevents accidental taps. On the exam, treat "swipe" as the answer for "no protection."
Choosing PIN and passcode length
Prefer a numeric PIN of six or more digits, or an alphanumeric passcode, for any device that holds work data. Avoid sequences (123456), repeated digits (111111), and personal dates. Many corporate policies require a minimum length and block these common values.
Biometrics
A biometric is a measurable physical trait used to verify identity. Biometrics fall under "something you are."
How biometric matching works
The device does not store a photo of your finger or face. During enrollment, the sensor captures the trait and converts it into a mathematical template. On modern phones, the template is stored in a protected hardware area, such as a secure enclave or trusted execution environment, and does not leave the device. At login, the sensor captures a new sample and compares it to the template. The device unlocks if the match score passes a threshold.
Because the match is never exact, every biometric system makes two kinds of error:
- False acceptance: the system accepts someone who is not the enrolled user. This is a security failure. The false acceptance rate (FAR) measures it.
- False rejection: the system rejects the real user. This is a usability failure. The false rejection rate (FRR) measures it.
Raising the threshold lowers false acceptance but raises false rejection. Lowering it does the opposite. The point where the two rates are equal is the crossover error rate (CER). A lower CER means a more accurate system.
Fingerprint and face recognition
Fingerprint readers are common and fast. Capacitive sensors read the ridges electrically, and ultrasonic sensors build a 3D map. Both are harder to fool than old optical sensors.
Face recognition varies a lot. A system that uses only the front camera (2D) may unlock for a photo or video of the owner. A system with depth sensing, such as infrared dot projection, maps the shape of the face and is much harder to spoof. If an exam question asks which face method is safer, pick the one with depth sensing.
Limits of biometrics
Biometrics have problems that passwords do not:
- You cannot change a fingerprint or face if the template leaks. A password can be reset.
- A person can be compelled to place a finger on a sensor or look at a phone. In many places the law treats this differently from being compelled to reveal a passcode.
- Injuries, wet hands, gloves, masks, and aging can all cause false rejections.
For these reasons, a biometric is always paired with a fallback PIN or passcode. The fallback is required after a restart, after a set idle period, or after several failed biometric attempts.
Settings that make a lock effective
A lock only helps if it engages and resists guessing. Check these settings on every device you configure.
- Auto-lock timeout. The screen should lock after a short idle time, such as 30 seconds to 2 minutes. A long timeout leaves an unlocked device exposed.
- Failed-attempt lockout. After a number of wrong guesses, the device delays further tries. Each failure adds a longer wait.
- Wipe after failed attempts. Some devices erase all data after a set number of failures, commonly 10. Use this on devices with sensitive data, and warn the user, because a child or a pocket tap can trigger it. Back up first.
- Lock screen notifications. Hide message previews on the lock screen. Otherwise a one-time code or private message appears without unlocking.
- Lock on power button. Make sure a press of the side button locks the device at once.
- Fallback methods. Keep the fallback passcode strong, since an attacker will target the weakest path.
Remote lock and locator
Screen locks work together with location services. Services such as Find My on iOS and Find My Device on Android let the owner see the phone on a map, play a sound, lock it remotely, or display a message. The next chapter covers remote wipe and mobile device management (MDM) in detail.
Troubleshooting common lock problems
- User forgot the passcode. There is no bypass without data loss on a properly secured device. The usual fix is to restore the device to factory settings, then restore data from a backup. Tell users this before they forget.
- Biometric stopped working. Clean the sensor, re-enroll the fingerprint or face, and check for a screen protector that blocks an in-display sensor.
- Device locks too often or not at all. Check the auto-lock timeout and any MDM policy that overrides it. Managed devices often show these settings greyed out.
- Device locked after repeated failed attempts. Wait out the delay. Do not keep guessing, because that may trigger a wipe.
Exam checklist
- Order the lock types from weakest to strongest: swipe, pattern, short PIN, long PIN, alphanumeric passcode.
- Know that fingerprint, face, and iris are "something you are."
- Know that biometrics need a fallback passcode.
- Know that failed-attempt lockout and wipe settings limit brute force.
- Know that auto-lock and hidden lock screen notifications reduce exposure.
Exercise
A user's company phone uses a swipe-up gesture to open. It holds work email. Name two changes that would improve security, and explain why a fingerprint alone is not enough.
Show answer
First, replace the swipe with a six-digit-or-longer PIN or an alphanumeric passcode, and set a short auto-lock timeout. Optionally turn on wipe after 10 failed attempts. Second, hide message previews on the lock screen. A fingerprint alone is not enough because every biometric needs a fallback PIN or passcode. The fallback is used after a restart or failed matches, so it must be strong too.
Exercise
A technician finds that a phone's face unlock opened when someone held up a photo of the owner. Which type of error is this, and what is the fix?
Show answer
This is a false acceptance, which is a security failure. The device likely uses 2D face recognition from the front camera. Switch to a more secure method, such as a fingerprint or a face system with depth sensing, or require a PIN or passcode.
Exercise
What happens to biometric error rates when you raise the match threshold, and what is the crossover error rate?
Show answer
Raising the threshold lowers false acceptance and raises false rejection. The crossover error rate is the point where the false acceptance rate equals the false rejection rate. A lower value means a more accurate system.