Casbaneiro Malware Hides C2 Until Victims Visit Banking Sites
Key Takeaways Casbaneiro, a sophisticated Windows banking trojan, employs a multi-stage infection process that delays its primary command and control (C2) communication until a victim accesses a...
Key Takeaways
- Casbaneiro, a sophisticated Windows banking trojan, employs a multi-stage infection process that delays its primary command and control (C2) communication until a victim accesses a targeted banking website.
- The malware leverages geographic filtering, phishing emails, and multiple server interactions to evade detection and analysis, predominantly targeting users in Latin American countries such as Argentina, Peru, Colombia, and Mexico.
- Initial data exfiltration, including Outlook contacts, occurs stealthily before the main C2 channel is activated, making early analysis challenging.
- Defenders should focus on correlating email, endpoint, and network events, monitoring for unusual AutoIt script execution, and exercising caution with HTTP 403 responses from suspicious servers.
Casbaneiro Malware Employs Stealthy C2 Activation Triggered by Banking Site Visits
The Casbaneiro banking trojan has been observed utilizing an advanced evasion technique, deferring its primary command and control (C2) traffic until an infected user navigates to a specific banking website. This strategy allows the malware to maintain a low profile, complicating detection efforts by security analysts.
Table Of Content
This Windows-based banking trojan orchestrates a complex attack chain involving deceptive phishing emails, IP-based geographical checks, phased payload delivery, and the use of distinct servers for various data collection activities. This distributed architecture is designed to make an active infection appear benign during routine security assessments, as detailed in a technical report published by Fortinet’s FortiGuard Labs.
The campaign primarily targets individuals within Latin American countries, with observed activity spanning Argentina, Peru, Colombia, and Mexico. A critical aspect of its operational stealth is its timing: sensitive information can be exfiltrated from a compromised system even before the main C2 channel becomes active. Consequently, the absence of immediate C2 traffic should not be interpreted as an indication of malware inactivity. Researchers at Fortinet’s FortiGuard Labs initially identified this sophisticated campaign in August 2026.
In their September 10 report, researcher Rachael Liao elucidated how Casbaneiro meticulously compartmentalizes its malicious operations. Email credential harvesting, victim registration, and remote control functionalities are distributed across separate server infrastructures. This segmented design intentionally obfuscates the overall attack chain, making it more difficult for security professionals to piece together the full scope of the compromise.
Initial Infection and Evasion Tactics
The attack typically commences with phishing emails containing malicious PDF attachments. These emails are crafted to mimic legitimate invoices or legal notifications, often including urgent calls to action, such as demands related to court proceedings. Some lures enhance their credibility by personalizing messages with the recipient’s email address, thereby increasing the likelihood of interaction with a malicious link embedded within.
Clicking the malicious link directs the victim to a web page that performs an IP address geolocation check. If the visitor’s IP address falls outside the campaign’s target regions, they are redirected to benign websites like Google or YouTube. This regional filtering mirrors tactics observed in other banking malware, such as Grandoreiro, which uses location-based checks to restrict payload delivery and prevent exposure to researchers operating outside the intended geographical scope.
For visitors within the targeted geographical areas, the webpage delivers a ZIP archive, with its contents encoded in Base64 within JavaScript. This script initiates a download via the browser’s standard download interface, subsequently redirecting the user to a blank page. This sequence is designed to minimize suspicion, providing the victim with fewer immediate clues that a malicious download has occurred.
The downloaded ZIP archive contains an HTA (HTML Application) file, a Windows application format capable of executing scripts. This HTA file then loads external JavaScript, which, in turn, retrieves an XML script package containing JScript. This code incorporates Windows Management Instrumentation (WMI) queries to detect virtualized or sandbox environments and verify that the operating system’s language matches a predefined list, further enhancing its evasion capabilities.
Upon successful completion of these environmental checks, the downloader retrieves three distinct components: a legitimate AutoIt interpreter, a compiled AutoIt script, and a compressed payload. This modular approach hinders analysis, as examining individual components in isolation may not reveal their full malicious intent.
AutoIt Loader and Persistent Infection
The use of randomly generated filenames for these components further complicates tracking and analysis. The separation of components also serves to weaken file-level analysis, as their combined malicious behavior may not be evident when each file is inspected independently.
To establish persistence, a shortcut is created in the Windows Startup folder, ensuring the AutoIt script executes each time the user logs in. The loader displays a convincing, yet fake, Windows service window before decompressing the final payload and injecting it into either RegSvcs.exe or, as a fallback, mobsync.exe. This technique, including the use of AutoIt components and Startup shortcuts, has also been observed in activities linked to the Horabot banking trojan.
Casbaneiro decrypts its configuration settings using an algorithm similar to that employed by Ousaban. It reconstructs fragmented encrypted strings and keys only when necessary. The trojan also includes a check to reject systems where the default language is German, French, or English. While this shared algorithm is noteworthy, it does not definitively establish a common operator between the Casbaneiro and Ousaban campaigns.
The trojan actively collects address book contacts, sender details, and recipient information from Microsoft Outlook messages, transmitting this data unencrypted. It also generates a unique victim identifier by hashing the computer name, username, and executable name using MD5, and employs local markers to prevent redundant data collection. Intriguingly, another server receiving Base64 encoded victim information is configured to return an HTTP 403 Forbidden status. Casbaneiro treats this 403 response as the expected confirmation of successful data receipt, retrying only if it receives a different HTTP status. This deceptive behavior can mislead analysts into believing the infrastructure is inactive or non-functional, thereby missing a crucial part of the attack chain.
The pivotal moment for the main C2 communication is a user’s visit to a specific, targeted banking website. Once triggered, the C2 server can issue a range of commands, including keyboard control, clipboard manipulation, file execution, command execution, and the display of fake banking windows. This behavior underscores why security tests that do not simulate visits to targeted banking pages may fail to detect the full spectrum of Casbaneiro’s capabilities, a characteristic also seen in Ousaban’s banking session attacks.
Fortinet’s analysis also revealed anomalies in network traffic, such as HTTP requests lacking a Host header, unusually large Content-Length values, and message bodies fragmented into numerous small packets. These irregularities are designed to complicate network traffic inspection and analysis.
What You Should Do
- Enhance Email Security: Implement robust email filtering solutions to detect and block phishing attempts, particularly those impersonating invoices or legal notices.
- Endpoint Protection: Ensure antivirus and endpoint detection and response (EDR) solutions are up-to-date and configured to detect the Casbaneiro payload and associated malicious scripts. Fortinet reports its antivirus service detects the campaign’s phishing PDFs, malicious JavaScript, and the Casbaneiro payload.
- Network Monitoring: Correlate email, endpoint, and network events to identify suspicious activity. Pay close attention to unexpected AutoIt script execution and the creation of new shortcuts in Windows Startup folders. Do not assume HTTP 403 responses from suspicious servers indicate harmlessness; investigate them thoroughly.
- User Awareness Training: Conduct regular cybersecurity awareness training for employees, emphasizing the risks of phishing emails and the importance of scrutinizing unexpected attachments or links, especially those related to invoices or legal matters.
- Incident Response: Utilize the provided Indicators of Compromise (IoCs) to proactively search for signs of infection within your environment.
File Hashes
| Sample type | Hash as published |
|---|---|
6bb4372d0d02ec87b76409f69d445a93910964f8db457bafafb97a011da59e73 |
|
40d253480f752805e58c21266e40afe99afc96feea0d355732af5bea459db1dd |
|
bf92a287a3d79afb73a3f2d38877ec37c22a9f4a7d6ac2e0385472298f384fc8 |
|
943d63ace373ee50d074daf84d357f8e5e62ff91c829d87f566bee453d715280 |
|
711c0aa8cde078aa349fb329e3e44e4272ea66a5e651ad8a64893c76a725c859 |
|
d910e08a11a4f6f764e7495f4602a00b6024ca6e1b70fe30ba3752b881574365 |
|
47d321c1a232e5cdd1e39a06dadbd79114dc1a2f0f8eac289e6b653a5d126f95 |
|
d13ad6fc5fda54e65f1214e554a5123126ac7b3ce6db57566ed7bd0e92d03d85 |
|
d04f68079ca90c65223a907f23fae5d068904a2145348b953b1d06e2eaf0bf2c |
|
1b4d5c95f4fc037ca3c359cea5ca2da1285bbadab12bcdcb47f3dad8bc6fa8ed |
|
62ef39ec29966d71c8254f68bd5e320cf24a042d76c12dbafdcc0766861827c5 |
|
1f1a89bef73e4866a198a08e750f96348ce2b82816a8353e9a8a574bfde5f491 |
|
ea8af591fe2d605c82bb7831d2ebdfb17cb2659880e1a8a7b0a2dd851dc5e7a3 |
|
0b4d962eef2d06abfe08a8cd0b15edd224d4fae0b57d708aebd77d99667616d5 |
|
c521b3a189b0089a2558aa4e42bd9fb5558e1b17917e2e183a4bd9cbcb2ed77e |
|
0849a6b87fbef25089ad0be746f84047b080ba81898a8614da43d4ab60ef735a |
|
debe871710268e7bb770b72c6772f2e0b8bd40a22b2eabf4b6556eaba2d71057 |
|
eaec8c6950f394ad5dcd271aa86f08cb2b8374203ecc67015af7ca6057244390 |
|
995b1156562150c15970aa2d6b27f0b442d758594d820ec09d53d5e861fac457 |
|
918dd413cceed3b8aeaa79e45d9d7b2030d73e2affa4339b8f9d043d08844f62 |
|
be5a110ee72ebcf1b7d9e155308a8abc606bd446f8aec1a9f33cd06ca0f3c056 |
|
dc62e645589463a61e6ac562d034a9de4ed897714389eb6b87bb02f0bd59d565 |
|
| HTA | 4302586202234cdf1ca058fd3c62be0050c8155ed113f3f62337d756e6915044 |
| HTA | 85767416f8d1e73833ccaa193263d1198857308b3a1185e6f4ebc4164db8584f |
| HTA | f1aa14ebfd2da477edba94b34f09f775485688b5958d82fcb072a837e27e246b |
| HTA | c477bdfae91e3df9be29e9eeba785467aff294f5250c2eed406765032cb68756 |
| HTA | 6e6bd2f7566ffa52d52fa9d5f048bbb9246d3d50110c6b0c248919ad796c6fd4 |
| HTA | 4540c3af3b1d8c52256f4580dd4d002fadb8c5ff4e32e6a41fdf508455c5b697 |
| HTA | 92a1428e125f33de012c7f52fb0827be3d7e90e38a0e38083181f8c3312adc9c |
| HTA | e57409c5e1f8287900c1c3b3e8c099cef537a02949315eb768c88906b0c65add |
| HTA | 5a76669ec410d0b3e21112a4a6fd3207976b299ee27c5fc3d42f2673170ab95e |
| HTA | 8092b9de455463296898fcaf8c9955d1c00dae6812c03bba019edf9c059ece33 |
| HTA | 99fcabf7c996d6ec077ccd745a158a3a395403d6a3df9d8da179f3cd5faf81b1 |
| HTA | 875e8d4137e1016b4be869e36e00a9414e89902fd5592a2fb881ebb0e4bd2f8b |
| HTA | bd724bbb27f9a71fd44f1c334b003541761071655fa585b64eed3bd78fc28e01 |
| HTA | a42daeca71a6bdc79fd66b8b6ee413562abf7f72ef093292c86c1e9e7c2be456 |
| HTA | 7e04e86c07213fed7bebccd9953818b102b1b25b78e5f3707e81bad5054cf4e8 |
| HTA | 6547736c31dabb5bef2a290b32a72bf63b5c42dd2a33b5a6520159b41c43b093 |
| HTA | 51503ce1373c7fa72a1da5c5c4b30f88c8224686669ba4b64196591414fdc64c |
| HTA | 5b3c2442831d4844ea6b86942f1a0ba27170018382cbc362343db63717d0ff02 |
| HTA | 71dea06c2271a46fc2fd6092e2ba0c2f5a2cf5ca8f955ee3375e3ca66a5dc52b |
| AutoIt script | fc820eeb054c781693eca78fed1c418f12b27da2c7c7e73281eb07b25cc7d910 |
| AutoIt script | f76d09cbd455ce18765591b9efa3bde0d31358b6321f7a10fc2e04f65d7407ba |
| Casbaneiro payload | 7de637539159dc17ceedb0aae783930ee68639b6d8036ef8147027c5ebca3fc8 |
Source: Fortinet’s published file indicators.
Network Indicators
Fortinet provides the following domains and IP addresses, noting that specific roles (e.g., delivery, data theft, C2) are not assigned to each entry individually in their analysis.
| Type | Indicator |
|---|---|
| Domain | 128[.]200[.]178[.]68[.]host[.]secureserver[.]net |
| Domain | 13[.]189[.]202[.]64[.]host[.]secureserver[.]net |
| Domain | 116[.]181[.]62[.]50[.]host[.]secureserver[.]net |
| Domain | 48[.]178[.]169[.]192[.]host[.]secureserver[.]net |
| Domain | 115[.]201[.]178[.]68[.]host[.]secureserver[.]net |
| Domain | 181[.]202[.]178[.]68[.]host[.]secureserver[.]net |
| Domain | 135[.]201[.]178[.]68[.]host[.]secureserver[.]net |
| Domain | 85[.]182[.]62[.]50[.]host[.]secureserver[.]net |
| Domain | 162[.]201[.]178[.]68[.]host[.]secureserver[.]net |
| Domain | 129[.]202[.]178[.]68[.]host[.]secureserver[.]net |
| Domain | 76[.]180[.]62[.]50[.]host[.]secureserver[.]net |
| Domain | gexwalltool[.]com |
| Domain | x-wolverine[.]servebbs[.]com |
| IP address | 72[.]167[.]48[.]63 |
| IP address | 209[.]99[.]188[.]28 |
Source: Fortinet’s published network indicators.
Cryptocurrency Addresses
| Type | Address |
|---|---|
| Cryptocurrency address | 0xb4c12078448fdef1f8881a55aab5c81fa194095c |
| Cryptocurrency address | bc1q7jt45630rw346729vk5cuatvfyvhfv0330u2p6 |
Source: Fortinet’s published cryptocurrency indicators.
Host Artifacts and Detection Names
The following artifacts were identified in Fortinet’s technical analysis. Note that placeholder values will vary across infected systems, and legitimate Windows process names are only indicative of suspicious behavior when observed in conjunction with other anomalous activity.
| Artifact | Value or location | Purpose or relevance |
|---|---|---|
| Download directory | C:{random name} |
Stores the downloaded components |
| Compressed file suffix | crT |
Helps the AutoIt loader locate the compressed payload |
| Startup shortcut | LNK file in the Windows Startup folder | Runs the AutoIt script through its interpreter |
| Infection marker folder | %PUBLIC%{ComputerName}@4{UserName} |
Prevents repeated execution or reinfection |
| Mutex | GlobolID-4465173{Username} |
Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources. |



No Comment! Be the first one.