SharkBot
- Type
- Banking trojan
- Capabilities
- Credential theftSession hijackingKeyloggingExfiltrationDefense evasionReconnaissance
- Delivery
- Fake updateLureLanding page
- Platforms
- Android
SharkBot is an Android banking trojan discovered by Cleafy in late October 2021. It steals banking credentials and financial information and supports automated fraudulent transactions on infected devices. Campaigns have targeted banking customers in Italy and the United Kingdom, with subsequent configurations also targeting Spain, Germany, Poland, Austria, the United States, and Australia.
SharkBot abuses Android Accessibility Services to identify foreground applications, capture text changes and other interface events, grant permissions, and simulate user actions. Its capabilities include banking-login overlays, keylogging, SMS interception, and an Automated Transfer System (ATS) for on-device financial fraud. It can send and hide SMS messages, change the default SMS handler, and exfiltrate credentials and event logs to command-and-control infrastructure. Version 2.25 introduced theft of banking-session cookies after victims authenticate through an attacker-controlled WebView. Some configurations force password-based login instead of fingerprint authentication to facilitate credential capture.
Distribution has relied on malicious Google Play dropper applications masquerading as antivirus products, cleaners, file managers, and tax-code utilities. These applications deliver the banking payload through purported application updates, sometimes directing victims to counterfeit Google Play pages in a browser. Droppers have used SIM-country checks and installed-application checks to restrict delivery to intended victims.
SharkBot conceals its launcher icon, bypasses battery optimization to sustain command-and-control connectivity, and uses obfuscation, encrypted configuration and communications, and sandbox evasion. It communicates over HTTP with encrypted message bodies and falls back to a domain generation algorithm when static command-and-control infrastructure is unavailable. Downloadable executable modules provide additional functionality, including ATS components.
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
the dropper opens a fake Google Play store page impersonating Codice Fiscale app page. It contains fake information about the number of installations and reviews, and urges the victim to perform an update.
Execution
2 techniques
Execution
updateLib Downloads and stores a jar file with java code.
during its installation, SharkBot immediately tries to enable Accessibility Services that keep being requested persistently with fake pop-ups until the victim accepts
Persistence
1 technique
Persistence
during its installation, SharkBot immediately tries to enable Accessibility Services that keep being requested persistently with fake pop-ups until the victim accepts
Privilege Escalation
2 techniques
Privilege Escalation
during its installation, SharkBot immediately tries to enable Accessibility Services that keep being requested persistently with fake pop-ups until the victim accepts
SharkBot is able to get all the permissions needed (declared inside the AndroidManifest file) thanks to the accessibility services enabled. This is done by clicking instantly on the popup shown to the user.
Stealth
5 techniques
Stealth
the very first samples tracked down at the end of October use: a demo version of the Allatori Java Obfuscation
SharkBot hides itself with common names and icons posing as a legitimate application to the victims
removeApp ... the server sends a huge list of applications which should be uninstalled from the user’s device.
If the malware detects it is running in a sandbox, it stops the execution and quits.
To ensure that the dropper is launched on a real targeted device, the app obtains the SIM coutry and compares it to “ it ” (Italy): if not matched, no malicious activity will be performed.
Credential Access
6 techniques
Credential Access
Sharkbot lures victims to enter their credentials in windows that mimic benign credential input forms. When the user enters credentials in these windows, the compromised data is sent to a malicious server.
Keylogging: this feature allows Sharkbot to receive every accessibility event produced in the infected device, this way, it can log events such as button clicks, changes in TextFields
SharkBot is able to read/send text messages, perform overlay attacks
CherryBlos has exfiltrated credentials collected from pictures that have been analyzed using optical character recognition (OCR).
Once the victim logged in to his bank account, the malware will receive the PageFinished event and will get the cookies of the website loaded inside the malicious WebView, to finally send them to the C2. | Version 2.25... introduced a new and interesting feature: Cookie Stealing or Cookie logger
SharkBot is able to read/send text messages
Discovery
2 techniques
Discovery
If the malware detects it is running in a sandbox, it stops the execution and quits.
To ensure that the dropper is launched on a real targeted device, the app obtains the SIM coutry and compares it to “ it ” (Italy): if not matched, no malicious activity will be performed.
Collection
3 techniques
Collection
Sharkbot lures victims to enter their credentials in windows that mimic benign credential input forms. When the user enters credentials in these windows, the compromised data is sent to a malicious server.
Keylogging: this feature allows Sharkbot to receive every accessibility event produced in the infected device, this way, it can log events such as button clicks, changes in TextFields
SharkBot is able to read/send text messages, perform overlay attacks
Command and Control
6 techniques
Command and Control
with the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission, it is able to bypass Android's doze component and stay connected to the C2 servers to continue its malicious behavior
The exchange with the CnC server happens over HTTP with POST request on path / .
it uses an external module, downloaded from the C2, containing the ATS core functionalities and anti-detections technique used to slow down the static and dynamic analysis
Remote control/ATS: this feature allows Sharkbot to simulate accessibility events such as button clicks, physical button presses, TextField changes, etc.
Another distinctive aspect present in Sharkbot is the use of DGA, which is rarely seen in Android malware.
README.md ... Domain Generation Algorithms (DGAs) of Malware reimplemented in Python.
Exfiltration
1 technique
Exfiltration
When the user enters credentials in these windows, the compromised data is sent to a malicious server.
Observables
206 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.