Javali
- Type
- Banking trojan
- Capabilities
- Credential theftReconnaissanceDLL sideloadingDefense evasion
- Delivery
- PhishingMalspam
- Platforms
- Windows
Javali is a Brazilian banking trojan targeting Windows systems to steal banking login credentials. It belongs to the Tétrade grouping of Brazilian banking malware families, alongside Guildma, Melcoz, and Grandoreiro. Its capabilities include monitoring running processes to identify open browsers and dedicated banking applications, and capturing login credentials from Firefox, Google Chrome, Internet Explorer, and Microsoft Edge.
Javali is distributed through malicious email attachments and links embedded in emails. Infection chains rely on victims opening malicious files, including Windows Installer packages containing embedded VBScript. The scripts download malicious payloads from command-and-control infrastructure. Javali also uses DLL side-loading to execute malicious libraries through legitimate executables, supporting execution and defense evasion. Its credential-stealing behavior focuses on compromising financial accounts and facilitating banking fraud.
Techniques & procedures
35 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
Ousaban is delivered through malicious MSI files spread in phishing emails.
[Javali](https://attack.mitre.org/software/S0528) has been delivered as malicious e-mail attachments.(Citation: Securelist Brazilian Banking Malware July 2020)
[Javali](https://attack.mitre.org/software/S0528) has been delivered via malicious links embedded in e-mails.(Citation: Securelist Brazilian Banking Malware July 2020)
Execution
7 techniques
Execution
Executes the main file via WMIC.
[Javali](https://attack.mitre.org/software/S0528) has used embedded VBScript to download malicious payloads from C2.(Citation: Securelist Brazilian Banking Malware July 2020)
In the first scenario, the JavaScript is executed via CustomAction. The JavaScript code is obfuscated, likely in an attempt to slow down analysis.
has attempted to get victims to launch malicious Microsoft Word attachments delivered via spearphishing emails... has required user execution of a malicious MSI installer... has been executed through user installation of an executable disguised as a flash installer.
[Javali](https://attack.mitre.org/software/S0528) has achieved execution through victims clicking links to malicious websites.(Citation: Securelist Brazilian Banking Malware July 2020)
[Javali](https://attack.mitre.org/software/S0528) has achieved execution through victims opening malicious attachments, including MSI files with embedded VBScript.(Citation: Securelist Brazilian Banking Malware July 2020)
[Javali](https://attack.mitre.org/software/S0528) can use DLL side-loading to load malicious DLLs into legitimate executables.(Citation: Securelist Brazilian Banking Malware July 2020)
Persistence
1 technique
Persistence
Once running, Ousaban adds a registry entry named Financeiro (Portuguese for "finance") so it starts up with Windows.
Privilege Escalation
1 technique
Privilege Escalation
Once running, Ousaban adds a registry entry named Financeiro (Portuguese for "finance") so it starts up with Windows.
Stealth
10 techniques
Stealth
The JavaScript code is obfuscated, likely in an attempt to slow down analysis... Aside from decrypting the payload, the second stage also decrypts the code that will execute Ousaban in runtime, probably to slow down reverse engineering... Ousaban commonly packs/protects its payloads with UPX or Enigma.
[Javali](https://attack.mitre.org/software/S0528) can use large obfuscated libraries to hinder detection and analysis.(Citation: Securelist Brazilian Banking Malware July 2020)
Ousaban commonly packs/protects its payloads with UPX or Enigma.
A script downloads an image that looks like a PDF icon but hides a ZIP file inside, a trick called steganography.
Important API calls used by this stage are also dynamically resolved, another common technique to slow down reverse engineering.
The script unpacks Ousaban from that ZIP, runs it, then deletes the image, the ZIP, and itself to leave less behind.
“avisoProtesto.exe” is a signed and non-malicious binary exploited to execute the malicious DLL via DLL search order hijacking.
[Javali](https://attack.mitre.org/software/S0528) has used the MSI installer to download and execute malicious payloads.(Citation: Securelist Brazilian Banking Malware July 2020)
Creates an empty file to be used as a flag in case the MSI is executed twice (similar concept as Mutex usage);
[Javali](https://attack.mitre.org/software/S0528) can use DLL side-loading to load malicious DLLs into legitimate executables.(Citation: Securelist Brazilian Banking Malware July 2020)
Credential Access
3 techniques
Credential Access
When a target bank loads, it can capture screenshots and keystrokes, tamper with the clipboard, show fake messages, and give the attacker remote control.
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[Javali](https://attack.mitre.org/software/S0528) can capture login credentials from open browsers including Firefox, Chrome, Internet Explorer, and Edge.(Citation: Securelist Brazilian Banking Malware July 2020)
Discovery
4 techniques
Discovery
Like other Brazilian-sourced malware, Ousaban monitors the title text from the active window and compares it with a list of strings, to verify if the victim is accessing the website or an application of one of its targets.
[Javali](https://attack.mitre.org/software/S0528) can monitor processes for open browsers and custom banking applications.(Citation: Securelist Brazilian Banking Malware July 2020)
Sends a simple GET request to another URL (Azure or another attacker-controlled server), alerting the attacker and logging the victim’s IP;
Creates an empty file to be used as a flag in case the MSI is executed twice (similar concept as Mutex usage);
Lateral Movement
1 technique
Lateral Movement
When a target bank loads, it can capture screenshots and keystrokes, tamper with the clipboard, show fake messages, and give the attacker remote control.
Collection
4 techniques
Collection
When a target bank loads, it can capture screenshots and keystrokes, tamper with the clipboard, show fake messages, and give the attacker remote control.
When a target bank loads, it can capture screenshots and keystrokes, tamper with the clipboard, show fake messages, and give the attacker remote control.
When a target bank loads, it can capture screenshots and keystrokes, tamper with the clipboard, show fake messages, and give the attacker remote control.
The binary downloaded from the cloud is a ZIP file containing the next stage payload
Command and Control
5 techniques
Command and Control
the threat often abuses cloud services, such as Amazon S3 to download second stage payloads, and Google Docs to retrieve the C2 configuration... the malware is using Pastebin to fetch the data... contain a routine to communicate via Telegram using Webhooks
[Javali](https://attack.mitre.org/software/S0528) can read C2 information from Google Documents and YouTube.(Citation: Securelist Brazilian Banking Malware July 2020)
[Javali](https://attack.mitre.org/software/S0528) can download payloads from remote C2 servers.(Citation: Securelist Brazilian Banking Malware July 2020)
If the window title matches one of the targets, Ousaban starts the communication with the C2 address, providing the option to the attacker to access the machine remotely.
This time, the real server moves every day. The malware reads the current date off a Google page, builds a web address from that date plus a fixed secret, and looks it up.
Recent activity
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.