GhostSpy is a sophisticated Android malware that abuses Accessibility Services and Device Admin privileges to stealthily gain full control over infected devices, enabling extensive spying and anti-uninstallation measures. It also bypasses banking app protections through UI reconstruction, posing serious privacy and financial risks. #GhostSpy #AndroidRAT #AccessibilityAbuse #DeviceAdmin
Keypoints
- GhostSpy initially infects devices via a dropper APK that exploits Accessibility Services and UI automation to silently install a secondary payload (update.apk) with elevated privileges.
- The malware auto-grants itself all required permissions by simulating user interactions, enabling features like keylogging, screen capture, microphone/camera spying, SMS and call log theft, and GPS tracking without user awareness.
- It uses Device Admin APIs and overlay windows to prevent uninstallation by displaying fake warning dialogs, making removal by non-technical users almost impossible.
- GhostSpy circumvents banking app screenshot restrictions by reconstructing the UI skeleton to harvest sensitive data from protected apps.
- The malware maintains persistent C2 communication for real-time remote control, including commands for factory reset and data exfiltration.
- Its infrastructure includes multiple active C2 servers and is linked to Brazilian threat actors, demonstrated by Telegram and YouTube channels showcasing the malware.
- Detection and mitigation require comprehensive mobile threat defense, user education on sideloading risks, and monitoring of suspicious Accessibility Service usage and network traffic.
MITRE Techniques
- [T1660] Phishing â Initial delivery using a fake app update prompt to trick users into installing the dropper. (âdisplays a deceptive interface, typically presenting a fake app update promptâ)
- [T1541] Foreground Persistence â The malware maintains persistence by requesting Device Admin permissions and displaying overlays. (âuses Device Admin APIs and creates overlay windows to prevent uninstallationâ)
- [T1603] Scheduled Task/Job â Employs recurring Accessibility Services to automate permission granting and monitoring. (âauto grants permissions by simulating user interactions across screen areasâ)
- [T1626.001] Device Administrator Permissions â Gains elevated privileges to enable remote wipe and block removal. (ârequests Device Administrator privileges to entrench itselfâ)
- [T1628] Hide Artifacts â Uses full-screen overlays and system dialog hijacking to obscure its presence. (âdisplays fake warning messages via overlays to block uninstallationâ)
- [T1629.001] Prevent Application Removal â Detects uninstall attempts and reacts by showing fake warning dialogs. (âmonitors uninstallation UI and overlays fake warnings to deter removalâ)
- [T1516] Input Injection â Simulates permission dialog clicks via Accessibility API to auto-accept permissions. (âsimulates user clicks on permission dialogs using AccessibilityNodeInfo.ACTION_CLICKâ)
- [T1414] Clipboard Data â Captures clipboard contents to steal sensitive information. (âsteals clipboard data as part of credential and personal data theftâ)
- [T1417.001] Keylogging â Uses Accessibility API to monitor keystrokes and input events. (âcaptures text input events such as passwords and chat messagesâ)
- [T1420] File and Directory Discovery â Collects files including images and media from the device gallery. (âtransmits gallery images by enumerating stored photosâ)
- [T1430] Location Tracking â Continuously obtains precise GPS location data from the device. (ârequests high-accuracy location updates via FusedLocationProviderClientâ)
- [T1418] Software Discovery â Gathers information about installed apps and system state. (âmonitors installed applications and device identifiersâ)
- [T1426] System Information Discovery â Collects device model, OS version, and manufacturer details. (âgathers Android ID, model, and OS version to form a unique fingerprintâ)
- [T1422] Internet Connection Discovery â Monitors network status to maintain C2 connectivity. (âchecks internet connection status to manage C2 channelâ)
- [T1636.002] Call Log Collection â Extracts call history data from the device. (âqueries call logs and exfiltrates call detailsâ)
- [T1636.004] SMS Messages Collection â Reads SMS inbox and sends message data to attackers. (âaccesses SMS inbox via content://sms/inbox providerâ)
- [T1513] Screen Capture â Captures screenshots and video frames using MediaProjection API. (âmirrors screen activity and records screen contentâ)
- [T1512] Video Capture â Records camera video streams covertly via Camera2 API. (âinitiates continuous camera recording using Camera2 APIâ)
- [T1437] Application Layer Protocol â Communicates over HTTP/S protocols with C2 servers. (âpersistent socket connection to C2 server for remote controlâ)
- [T1521] Encrypted Channel â Uses encrypted channels for C2 communication. (âC2 communication over SSL/TLS with pinning mechanismsâ)
- [T1646] Exfiltration Over C2 Channel â Sends stolen data to C2 infrastructure via socket events. (âexfiltrates sensitive files, keylogs, and location over C2 connectionsâ)
Indicators of Compromise
- [APK Hash] dropper and payload identification â e9f2f6e47e071ed2a0df5c75e787b2512ba8a601e55c91ab49ea837fd7a0fc85 (dropper), 73e647287408b2d40f53791b8a387a2f7eb6b1bba1926276e032bf2833354cc4 (payload)
- [URL] Command and Control servers â https://stealth.gstpainel.fun, https://gsttrust.org
- [IP Address] C2 server endpoints â 37.60.233.14 (ports 3000, 4200)
- [Package Name] Malicious app identifier â com.support.litework (used by both dropper and payload APKs)