Casbaneiro

Category: trojan · Aliases: None known · Sample count (EMBER 2018): 10 · Enrichment: expert-seo · Updated: 2026-06-09
Category: TrojanActor: Unknown / CybercriminalIndustry: Global / OpportunisticMotivation: Opportunistic

Overview

Trojan:Win32/Casbaneiro (also known as Metamorfo) is a prominent, highly active Latin American banking trojan that primarily targets financial institutions and users in Brazil and Mexico. It is notorious for its heavy reliance on social engineering, displaying convincing fake pop-up windows to steal credentials, and its highly unusual methods of hiding its Command and Control (C2) infrastructure within legitimate cloud services.

Understanding Casbaneiro
To an infected user, the malware operates silently in the background until they attempt to visit a targeted banking website. Suddenly, a perfectly replicated, uncloseable pop-up window appears, demanding their two-factor authentication (2FA) token or credit card details. For security analysts, Casbaneiro is a fascinating study in regional cybercrime. It rarely relies on sophisticated exploits; instead, it uses massive, localized spam campaigns and highly evasive C2 routing to maintain its botnet.

Execution and Evasion Strategies
Casbaneiro is almost exclusively distributed via malspam (`T1566.001`), often disguised as invoices, tax documents, or airline tickets relevant to Latin American users. The initial dropper is usually a VBScript or PowerShell script hidden inside a ZIP or MSI file (`T1059.001`). Upon execution, it establishes persistence via Registry Run keys (`T1547.001`) and heavily obfuscates its final payload. Uniquely, Casbaneiro is famous for hiding its C2 server IP addresses encrypted within the descriptions of random YouTube videos, GitHub repositories, or Pastebin posts (`T1102.001`). This 'Dead Drop Resolver' technique allows it to bypass traditional DNS blacklists. Once active, it monitors the active window title (`T1056.004`). If it detects a target bank, it injects an invisible overlay or a fake pop-up window (`T1566.002`) to steal credentials, which are immediately sent back to the attackers.

Indicators of Compromise & Impact
The impact is direct financial theft. EDR logs will often show anomalous PowerShell execution originating from a downloaded archive. Network analysts should look for the endpoint making unusual HTTP requests to YouTube APIs or Pastebin immediately after startup, followed by encrypted traffic (often on non-standard ports) to an unknown IP address. The presence of large, encrypted payloads masquerading as legitimate DLLs in the `%AppData%` folder is a strong host-based IoC.

MITRE ATT&CK Techniques

Observed techniques used by this family, mapped to the MITRE ATT&CK framework:

TechniqueNameTactic
T1102.001Web Service: Dead Drop Resolver (Using YouTube/GitHub for C2 routing)Command and Control
T1566.002Phishing: Spearphishing Link (Fake Banking Pop-ups)Credential Access
T1056.004Input Capture: Credential API Hooking (Monitoring Window Titles)Collection
T1059.001Command and Scripting Interpreter: PowerShell (Initial Dropper)Execution
T1547.001Boot or Logon Autostart Execution: Registry Run KeysPersistence

Tactical Mitigations

Based on the techniques used by this family, consider the following defensive strategies:

Generated Detections (Boilerplate)

These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.

YARA Rule

rule MALWARE_WIN_CASBANEIRO {
    meta:
        description = "Detects Casbaneiro (trojan)"
        author = "SystemHelpdesk Boilerplate Generator"
        date = "2026-07-06"
    strings:
        $s1 = "casbaneiro" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

Sigma Rule

title: Suspicious Casbaneiro Activity
id: b29d3763913beccd63c29408c7937baf
status: experimental
description: Detects generic indicators of the casbaneiro malware family.
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
        CommandLine|contains:
            - "*casbaneiro*"
    condition: selection
level: medium

Containment & Response Steps

Home Users: If you suspect a malware infection on your personal device, disconnect from the internet immediately and run a full system scan with your antivirus software. The steps below are intended for IT professionals responding to enterprise incidents.

Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.

  1. Isolate the endpoint immediately upon detecting the anomalous PowerShell execution or the 'Dead Drop Resolver' network traffic.
  2. Enforce a mandatory password reset for all financial accounts and internal portals accessed from the infected machine, as the overlay attacks are highly effective.
  3. Analyze the PowerShell dropper to extract the specific YouTube URL or Pastebin link used for C2 routing; block the resolved IP address at the firewall.
  4. Perform a deep forensic scan to locate and remove the heavily obfuscated DLL payloads hidden in the user profile directory.

What to Avoid

Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.

  1. Do not assume the infection is standard adware; Casbaneiro's overlays are specifically designed to steal high-value banking credentials.
  2. Avoid relying solely on DNS blacklists, as the Dead Drop Resolver technique completely bypasses them.

References & External Analysis

Frequently Asked Questions

How do I remove the Casbaneiro Trojan from Windows?

Manual removal of Casbaneiro is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.

Is Casbaneiro a virus or a Trojan?

Casbaneiro is classified as a Trojan. Unlike traditional viruses that infect files, modern malware like Casbaneiro typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.

What are the main symptoms of a Casbaneiro infection?

Symptoms of Casbaneiro can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.

Related Families (Category: trojan)

Explore other malware families in the same category:

Protect Your Network Against Trojans

Want to prevent Casbaneiro and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection.

Need help with an active incident? Published by the SystemHelpdesk team.

Machine-readable

Get this profile as JSON: https://jordanricky1604-ship-it.github.io/malware-families-catalog/api/casbaneiro.json

Ecosystem & Interactive Environments

This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.