Executive Summary
In October 2024, researchers identified a novel Android infostealer undetected by antivirus engines, leveraging Termux—a legitimate terminal emulator app—to collect sensitive data from mobile devices. The attacker deployed a Python-based stealer designed to extract user contacts, SMS, call logs, location data, and app-specific files, including those for Facebook, WhatsApp, and banking. Exfiltration occurred via Telegram API integration, and a persistent backdoor was installed for continued access. The operation showcased clever abuse of legitimate utilities, with initial device compromise mechanics still unclear, though social engineering leading to the installation of Termux is likely.
This incident highlights the evolving landscape in which infostealers now aggressively target mobile platforms as device usage and data stored on them surge. With sophisticated yet undetectable malware exploiting legitimate tools and APIs, organizations and users face heightened risks from threats previously confined mostly to Windows environments.
Why This Matters Now
With mobile devices now holding vast amounts of personal and corporate data, attackers are shifting their focus from traditional endpoints to Android, using infostealers capable of bypassing standard security defenses. Organizations must urgently revisit their endpoint and mobile device security strategies, addressing visibility and control issues that infostealer campaigns uniquely expose.
Attack Path Analysis
Attackers gained initial access to Android devices by tricking users into installing Termux and executing a malicious Python-based infostealer. Once installed, the malware leveraged Termux permissions and storage access to escalate its capabilities and collect sensitive data, including contacts, SMS, call logs, application, and banking files. Due to the sandboxed nature but with expanded storage access, lateral movement was limited, although the infostealer used available app storage mappings. The malware established command and control by exfiltrating data over encrypted HTTP(S) via Telegram APIs. Exfiltration was achieved stealthily through outbound HTTPS connections carrying stolen data. Finally, a persistent backdoor was dropped to continuously harvest new data, compounding the threat by maintaining access.
Kill Chain Progression
Initial Compromise
Description
User is enticed to install Termux on an Android device and execute a Python-based infostealer script.
Related CVEs
CVE-2021-30206
CVSS 7.8Termux:Widget plugin allows execution of arbitrary commands, leading to privilege escalation.
Affected Products:
Termux Termux:Widget – <= 0.12
Exploit Status:
exploited in the wild
MITRE ATT&CK® Techniques
User Execution
Command and Scripting Interpreter: Python
Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
Access to Contact List
Steal Web Session Cookie
Access Stored Application Data
Input Capture
Exfiltration Over C2 Channel
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
PCI DSS 4.0 – Protection of Sensitive Authentication Data
Control ID: 3.3.1
NYDFS 23 NYCRR 500 – Cybersecurity Policy
Control ID: 500.03
DORA (Regulation (EU) 2022/2554) – ICT Risk Management
Control ID: Article 9
CISA Zero Trust Maturity Model 2.0 – Monitor and Secure Endpoint Devices
Control ID: Device – Continuous Monitoring
NIS2 Directive – Technical and Organisational Measures
Control ID: Article 21.2 (a), (b)
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Banking/Mortgage
Android infostealer specifically targets Vietnamese banking apps and files containing banking keywords, threatening customer financial data and requiring enhanced mobile security controls.
Financial Services
Mobile banking applications vulnerable to data exfiltration through Termux environment, exposing sensitive financial information and requiring zero trust mobile security frameworks.
Telecommunications
SMS and call log data theft through termux-sms-list and termux-call-log commands threatens customer communications privacy and network infrastructure security intelligence.
Individual/Family Services
Personal contact lists, location data, and social media content from Facebook/WhatsApp targeted for exfiltration, compromising individual privacy and personal safety.
Sources
- Infostealer Targeting Android Devices, (Thu, Oct 23rd)https://isc.sans.edu/diary/rss/32414Verified
- Termux Apps Vulnerability Disclosureshttps://termux.com/en/posts/security/2022/02/15/termux-apps-vulnerability-disclosures.htmlVerified
- Security Overview · termux/termux-packages · GitHubhttps://github.com/termux/termux-packages/securityVerified
- Security Incident Response Checklist | Termuxhttps://termux.com/en/security-incident-response-checklist.htmlVerified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
CNSF-aligned Zero Trust controls, such as least-privilege segmentation, egress policy enforcement, inline threat detection, and encryption visibility, could have limited malware’s spread, blocked unauthorized outbound exfiltration, detected anomalous behavior, and prevented persistent backdoor installation—even in hybrid or multi-cloud mobile MDM environments.
Control: Threat Detection & Anomaly Response
Mitigation: High-fidelity detection of abnormal tool installation and Python script execution attempts.
Control: Zero Trust Segmentation
Mitigation: Containment of unauthorized privilege escalation by enforcing least-privilege storage and app access.
Control: East-West Traffic Security
Mitigation: Blocks lateral access to sensitive directories and inter-app movement.
Control: Egress Security & Policy Enforcement
Mitigation: Unauthorized outbound C2 traffic is detected and blocked.
Control: Encrypted Traffic (HPE)
Mitigation: Encrypted exfiltration is inspected and flagged as anomalous sensitive data transfer.
Blocks or contains unauthorized persistence and ongoing malicious automation.
Impact at a Glance
Affected Business Functions
- User Data Management
- Communication Services
Estimated downtime: 3 days
Estimated loss: $50,000
Potential exposure of sensitive user data including contacts, messages, and location information due to unauthorized access facilitated by the infostealer.
Recommended Actions
Key Takeaways & Next Steps
- • Enforce Zero Trust Segmentation on all devices and app environments to limit malware privilege expansion and cross-app data access.
- • Deploy egress filtering and policy enforcement to restrict unauthorized outbound communication, especially to known bot APIs like Telegram.
- • Implement continuous anomaly detection and behavioral analysis to rapidly identify unauthorized tool installations or scripts.
- • Ensure encrypted traffic visibility and inspection is in place to expose covert data exfiltration attempts via HTTPS.
- • Leverage distributed cloud-native security fabrics to provide inline enforcement, prevent persistence, and automate incident response across hybrid mobile/cloud workloads.



