Cerberus
- Type
- Banking trojan
- Capabilities
- Credential theftKeyloggingReconnaissanceDefense evasion
- Delivery
- Landing pageLure
- Platforms
- Android
Cerberus is an Android banking trojan first documented in August 2019 and offered to cybercriminal operators through a rental-based malware-as-a-service model. It steals banking credentials by displaying counterfeit login interfaces over legitimate applications. Operators can specify applications to target and generate fake notifications that draw users into deceptive prompts. Its capabilities include keystroke recording, SMS collection and sending, contact-list harvesting, and enumeration of installed applications. Cerberus communicates with its command-and-control infrastructure over HTTP.
Cerberus has been distributed through websites that persuade users to sideload malicious Android application packages disguised as Adobe Flash Player installers. Campaigns have also used fraudulent coronavirus-information and tracking applications as lures. Reported distribution reached users in Turkey, Poland, Spain, Greece, and Italy, with banking-application users as its principal targets.
Following an unsuccessful source-code auction in 2020, Cerberus source code was released to premium members of a Russian-speaking underground forum in September that year. The leak enabled additional private variants and contributed to the development of subsequent Android banking malware, including ERMAC and its related Hook lineage.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
34 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
Cerberus has been delivered to the device via websites that prompt the user to "[…] install Adobe Flash Player" and then downloads the malicious APK to the device.
Fake device notifications A malicious application could send fake device notifications to the user. Clicking on the device notification could trigger the malicious application to display an input prompt.
"A new wave of smishing attacks is exploiting user trust by embedding well-known brand names such as FedEx and Microsoft into deceptive URLs and group text messages"
Execution
2 techniques
Execution
startUssd Executes the specified USSD code
ThreatFabric saw a spike in malicious unofficial streaming apps... These apps are not on Google Play, so installing one means clicking past the warnings that would normally block it.
Persistence
3 techniques
Persistence
It can even disable Google Play Protect to avoid automatic detection.
A malicious application could create an application overlay window on top of a running legitimate application.
Once installed, the fake download requests accessibility permissions that allow an attack to take place.
Privilege Escalation
4 techniques
Privilege Escalation
A malicious application could create an application overlay window on top of a running legitimate application.
Once installed, the fake download requests accessibility permissions that allow an attack to take place.
All those banking trojans also abuse Android Accessibility Services . Accessibility Services are meant to help people with disabilities. Do not grant such rights to any other application!
“As is the case with most bankers, it relies heavily on abusing the Accessibility Service.”
Stealth
7 techniques
Stealth
Tools known as ‘cryptors’ are often used by malware authors... obfuscating or modifying their code to evade detection signatures.
Agent Smith can impersonate any popular application on an infected device, and the core malware disguises itself as a legitimate Google application.
provided a self-destruct mechanism to remove traces of the bot to prevent post-incident analysis.
Hercules automatically finds decryption key for actual DEX of the given Cerberus sample, decrypts it, then decrypts configuration parameters in the actual payload.
It uses the device's accelerometer to measure steps. 'The Trojan uses this counter to activate the bot,' ThreatFabric explains... This counter-measure 'prevents the Trojan from running and being analyzed in dynamic analysis environments (sandboxes) and on test devices.'
Cerberus has been designed to avoid detection from desk-based malware analysts by delaying activation until it can confirm the device belongs to a genuine victim. It uses the device's accelerometer to measure steps.
Most of the popular applications provide common stalkerware functionality such as: Hiding app icon
Defense Impairment
1 technique
Defense Impairment
It can even disable Google Play Protect to avoid automatic detection.
Credential Access
6 techniques
Credential Access
startInject Triggers the overlay attack against the specified application | push Shows a push notification (clicking on the notification will result in launching specified app)
Given these permissions, many capabilities can be identified... Keylogging from within applications;
"...intercepting authentication codes"
Cerberus has been designed to steal banking credentials. It does this—again not unusually—by creating overlays on top of banking apps that capture usernames and passwords as they are being entered.
"...capable of stealing credentials"
Access, send, receive and delete SMS (ideal for capturing one-time passwords);
Discovery
2 techniques
Discovery
It uses the device's accelerometer to measure steps. 'The Trojan uses this counter to activate the bot,' ThreatFabric explains... This counter-measure 'prevents the Trojan from running and being analyzed in dynamic analysis environments (sandboxes) and on test devices.'
Cerberus has been designed to avoid detection from desk-based malware analysts by delaying activation until it can confirm the device belongs to a genuine victim. It uses the device's accelerometer to measure steps.
Lateral Movement
1 technique
Lateral Movement
On top of that it can also launch TeamViewer and setup connections to it, providing threat actors full remote access of the device.
Collection
7 techniques
Collection
The RAT service is able to traverse the file system of the device and download its contents.
startInject Triggers the overlay attack against the specified application | push Shows a push notification (clicking on the notification will result in launching specified app)
Given these permissions, many capabilities can be identified... Keylogging from within applications;
Most of the popular applications provide common stalkerware functionality such as: ... Taking screenshots
Most of the popular applications provide common stalkerware functionality such as: ... Taking front (selfie-mode) camera photos
webinjects can alter what the user sees on his/her browser, as opposed to what's in fact being sent by the server... the webinject will interpret an identical design of legitimate pages from popular services.
Most of the popular applications provide common stalkerware functionality such as: ... Viewing photos and pictures from phones’ image galleries
Command and Control
4 techniques
Command and Control
It uses almost identical data structures when communicating with the C2... Compared to the original Cerberus, ERMAC uses different encryption scheme in communication with the C2: the data is encrypted with AES-128-CBC
In those newly found samples the authors revisited the C2 communication protocol
Application download, execution and removal;
the newly found samples included the RAT feature, making use of TeamViewer to provide remote access to the infected device.
Exfiltration
1 technique
Exfiltration
The malware can then grant itself additional rights to control the device, send messages, make calls, communicate back to its handlers.
Observables
55 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
69 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.