Most Android compromises don't start with a clever exploit. They start with a user tapping "Install" on an app they shouldn't trust, and "Allow" on every permission it asks for. Understanding that chain — how a malicious APK turns a tap into remote control — is what lets you recognise it, teach users to avoid it, and detect it when it slips through.

This is a defensive walkthrough for security awareness, authorised testing, and blue-team education. It explains how this class of malware behaves and how to stop it — not how to build or deploy one against anyone.
What a RAT actually is
The tool at the centre of these attacks is a Remote Access Trojan (RAT) — an app that looks harmless but quietly gives an attacker remote control of the device. Frameworks like Metasploit's meterpreter are used legitimately by penetration testers to demonstrate exactly this risk in authorised engagements, and the same capability, used without consent, is a serious crime in every jurisdiction.
Once active, a RAT typically opens a reverse connection back to the attacker: rather than the attacker connecting in (which a firewall would block), the malware on the phone reaches out to the attacker's server and waits for commands. That single design choice — outbound, not inbound — is why RATs slip past most home and mobile networks, and it's also the behaviour that gives them away to anyone watching network traffic.
The infection chain, step by step
Seen from the defender's side, nearly every Android RAT infection follows the same four links. Break any one and the attack fails:
- Delivery. The malicious APK reaches the user — a phishing link, a fake "update," a cracked-app site, a messaging attachment. Google Play's review catches most known malware, so attackers push victims to sideload from outside the store.
- Installation. Android blocks installs from unknown sources by default. The attack depends on socially engineering the user into enabling "Install unknown apps" for a browser or file manager, then tapping through the installer's warnings.
- Permissions. On launch, the app requests sweeping permissions — SMS, contacts, camera, microphone, location, storage. A RAT is only as powerful as the permissions it's granted; a user who reflexively taps "Allow" hands over the keys.
- Persistence and control. The app establishes its outbound connection, tries to survive reboots, and begins relaying whatever its permissions allow — messages, call logs, files, camera frames.
Notice there's no memory-corruption exploit anywhere in that chain. The "vulnerability" being exploited is human trust plus over-broad permissions, which is exactly why the defences are about behaviour and configuration, not patching.
Why it's more detectable than attackers hope
The old trick of re-encoding a payload to change its signature — hoping to slip past antivirus — is far weaker than it looks, and it's worth understanding why, because it shapes modern defence:
- Signature evasion is a losing game. Repacking or encoding an APK changes its hash, but mobile security products increasingly detect behaviour, not fixed signatures. An app that opens a reverse connection to an unknown host and starts reading SMS looks malicious no matter how it was packed.
- Injecting a payload into a real app breaks its trust chain. Trojanising a legitimate APK (embedding malware inside a genuine app) invalidates its original developer signature. Android refuses to install an app whose signature doesn't verify, and Play Protect flags the re-signed copy.
- The network behaviour is loud. A freshly installed "game" that immediately beacons to a random IP on an odd port is one of the clearest indicators of compromise there is.
How to defend — for users
The user-side defences map one-to-one onto the infection chain:
- Install only from Google Play, and leave "Install unknown apps" off. This single setting breaks the most common delivery path.
- Keep Google Play Protect enabled — it scans installed apps and side-loaded ones for known malicious behaviour.
- Read permission requests as questions. A flashlight app asking for SMS and contacts is a red flag; the permission it needs and the permission it asks for should match its purpose.
- Keep Android and apps updated. Delivery via social engineering is common, but patched devices also close the rarer exploit-based paths.
- Be sceptical of "updates" and cracked apps delivered outside the store — the classic lure for sideloading.
How to defend — for organisations and blue teams
- Mobile Device Management (MDM) can disable sideloading fleet-wide, enforce OS updates, and allowlist approved apps so a malicious APK never gets the chance to install.
- Network monitoring catches the reverse connection: watch for outbound sessions to unfamiliar hosts on unusual ports, and for devices beaconing on a regular interval — a hallmark of command-and-control.
- Mobile Threat Defence (MTD) agents inspect on-device behaviour and app reputation, catching the runtime activity that static scanning misses.
- User awareness training is the highest-leverage control of all, because every RAT in this class needs the user to sideload and grant permissions. A user who won't tap "Allow" on a suspicious install has defeated the attack before it starts.
The takeaway
- The exploit is usually trust, not a bug — Android RATs rely on sideloading and over-granted permissions, not memory corruption.
- Break any link in the chain — delivery, install, permissions, or persistence — and the compromise fails.
- Signature evasion is weak against behavioural detection — a reverse connection to an unknown host is malicious however the app was packed.
- Defence is configuration and awareness — store-only installs, Play Protect, permission scrutiny, MDM, and network monitoring stop this class cold.