Sub topic 7
Rooting, Jailbreaking, Sideloading, Developer Mode and App Spoofing
This chapter assumes you know how Android and iOS app stores work, and that each app runs in its own sandbox (an isolated area that limits what the app can reach). It also assumes you know what malware is. Here you learn which user actions weaken that protection and how attackers exploit them.
Why these actions matter
Mobile operating systems protect users in three ways. They restrict apps to a sandbox. They keep the owner out of the core operating system. They push users toward vetted app stores. Each topic in this chapter removes or bypasses one of those protections.
| Term | Platform | What it does | Main risk |
|---|---|---|---|
| Rooting | Android | Gives the user administrator (root) access to the OS | Apps can break out of their sandbox |
| Jailbreaking | iOS | Removes Apple's restrictions on the OS | Same, plus no official updates |
| Sideloading | Both | Installs apps from outside the official store | Apps skip store vetting |
| Developer mode | Both | Enables debugging features such as USB debugging | A connected computer can control the device |
| App spoofing | Both | A fake app imitates a real one | Stolen credentials or data |
Rooting and jailbreaking
Rooting an Android device or jailbreaking an iPhone exploits a flaw, or uses a tool, to gain full control of the operating system. Users do it to install custom ROMs (replacement operating system builds), remove carrier apps, or use tweaks the vendor does not allow.
The cost is the loss of protection:
- Apps can read data that the sandbox normally hides.
- Malware that gains root access can hide itself and survive cleanup.
- The device often cannot install official updates, so known flaws stay open.
- The warranty may be void, and some banking and work apps refuse to run.
On the exam, a rooted or jailbroken device is a security risk, and a managed device that is found in this state should be treated as non-compliant.
Sideloading
Sideloading means installing an app from somewhere other than the official store, for example from an APK file (the Android app package format) downloaded from a website. Official stores scan apps and can remove bad ones. A sideloaded app has had none of that review.
Android asks the user to allow installs from unknown sources, and it applies this permission per app. iOS is stricter, but sideloading can still happen through enterprise certificates or developer tools. A fake "free" version of a paid app is a common way to deliver malware.
Developer mode
Developer mode (on Android, Developer options) exposes tools for app builders. The most important one is USB debugging, which lets a computer run commands on the phone through the Android Debug Bridge (ADB). If you leave it on, anyone who connects a computer to an unlocked phone can pull data or install apps. Turn it off on devices that are not being used for development.
adb shell pm list packages -3This command works only when USB debugging is on. It lists the third-party apps, so you can spot an unfamiliar or sideloaded app.
App spoofing
App spoofing is when a malicious app pretends to be a trusted one. It copies the name, icon and sign-in screen of a bank, a game or a utility. The user enters credentials, and the attacker collects them. Spoofed apps can be sideloaded, or they can slip into an official store with a name that differs from the real one by one letter.
Signs that you may have a spoofed app:
- The publisher name does not match the real company.
- The app has few reviews, or its reviews look odd.
- It asks for permissions that do not fit its purpose.
- The app was installed from a link in a text or email.
Exam tips
- If a user installed an app from a link or a website, think sideloading and possible malware.
- If a device runs apps that should not be allowed, or shows signs of tampering, think root or jailbreak.
- If a fake app collects sign-in details, the answer is app spoofing.
- Prefer the official store, keep the OS updated, and disable developer options when you do not need them.
Exercise
A user installs a free version of a paid game from a link in a text message. Soon after, the phone shows many ads and its battery drains quickly. Which two terms from this chapter best describe how the problem started, and what is the best first step?
Show answer
The user sideloaded an app, and the app may be a spoofed copy of the real game. The best first step is to isolate the device by turning off its network connections (Wi-Fi and cellular), and then uninstall the app and run an anti-malware scan. Do not factory reset first, because that causes needless data loss.
Exercise
Why is leaving USB debugging enabled on a phone that is not used for development a risk?
Show answer
USB debugging lets a connected computer run ADB commands. Anyone who can connect to an unlocked phone can pull data or install apps, so it should be turned off when it is not needed.