
Reverse engineering analysis of DarkTortilla RAT, a sophisticated malware that steals credit card data, decrypts browser passwords, and exfiltrates via Telegram, SMTP, and FTP.
Process Hacker memory analysis reveals that DarkTortilla RAT targets credit card information, including card numbers, expiration dates, and card types.
card_number_encrypted – Encrypted card numbers.expiration_month – Expiration month.expiration_year – Expiration year.Mastercard – Targets Mastercard cards.Visa – Targets Visa cards.Discover Card – Targets Discover cards.Union Pay Card – Targets Union Pay cards.American Express – Targets American Express cards.card_number_encrypted suggests the data is encrypted before exfiltration.
Process Hacker view showing credit card-related strings (card_number_encrypted, Mastercard, Visa, etc.).
Binary Ninja analysis of the extracted .bin file reveals that DarkTortilla RAT targets browser profiles and uses showip.net as a C2 address.
showip.net – likely used for IP detection and C2 communication.[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6} – for extracting email addresses.__vbaResume, __vbaAryVar, __vbaPutOwner4 – indicates VBA/macro usage (potential phishing).showip.net is used to detect the victim's IP.
Binary Ninja view showing browser profile paths and showip.net C2 address.
Binary Ninja analysis reveals that DarkTortilla RAT targets browser encryption keys and stores stolen data in encoded files.
app_bound_encrypted_key and os_crypt – used to decrypt saved passwords.C:\Users\Public\strEncodedData.txt – likely contains stolen credentials.Option Explicit, On Error Resume Next – indicates VBScript usage for persistence or execution.
Binary Ninja view showing browser paths, encryption keys (app_bound_encrypted_key), and strEncodedData.txt.
Process Hacker strins analysis reveals that DarkTortilla RAT uses SQLite databases to extract browser credentials and credit card information.
Login Data files (passwords).sqlite3_open, sqlite3_prepare_v2, sqlite3_step – used to query databases.Carte Blanche Card and Diners Club Card to the target list.name_on_card, expiration_*, card_number.
Binary Ninja view showing SQLite functions and card-related strings (Carte Blanche Card, Diners Club Card).
Binary Ninja analysis reveals that DarkTortilla RAT uses multiple exfiltration channels: Telegram Bot, SMTP (email), and FTP.
https://api.telegram.org/bot with @StrBotToken and @ChatID – sends stolen data via Telegram.CDO.Message, mail.mfcgroups.com, smtpserver, sendusername, sendpassword – sends data via email.@GateUrl, @StrFtpUser – uploads data via FTP.
Binary Ninja view showing Telegram bot token, SMTP settings, and FTP-related strings.
This analysis uncovered DarkTortilla RAT, a sophisticated Remote Access Trojan that combines extensive data theft capabilities with multiple exfiltration channels.
app_bound_encrypted_key and os_crypt to decrypt Chrome/Edge passwords.Login Data files.showip.net – used for IP detection and C2 communication.showip.net, api.telegram.org (if abused).@StrBotToken, @ChatID).sqlite3_open, sqlite3_prepare_v2) in suspicious processes.app_bound_encrypted_key and os_crypt access.The analyzed DarkTortilla RAT sample is available on MalwareBazaar for those who wish to conduct their own analysis:
🔗 DarkTortilla RAT Sample on MalwareBazaar
Tools Used: Process Hacker, Binary Ninja, x64dbg