Carberp
- Type
- Banking trojan
- Capabilities
- Credential theftExfiltrationPersistencePrivilege escalationDefense evasionReconnaissanceProcess injectionDLL sideloadingDDOS
- Delivery
- PhishingSpearphishing
- Platforms
- WindowsAndroid
Carberp is a modular banking Trojan first observed in 2010 that primarily targets Microsoft Windows systems. It steals financial credentials and manipulates transactions through man-in-the-browser attacks, form grabbing, and web injections. Specialized components also target executable and Java-based banking applications, including modifying Java bytecode to intercept account information and alter payment documents. Its credential-stealing plugins recover saved passwords from major browsers and collect account information from messaging, email, social media, FTP, VNC, and VPN applications.
Carberp's plugin architecture supports screenshot capture, concealed remote desktops, remote administration, HTTP-based distributed denial-of-service attacks, and Bitcoin mining. Its hidden VNC functionality allows operators to interact with an infected system without exposing their activity on the victim's visible desktop. An additional remote-access component abuses legitimate Ammyy administration software through DLL preloading. Carberp communicates with command-and-control infrastructure using encrypted HTTP requests and can transmit stolen account and banking data.
Persistence and evasion mechanisms include hidden startup-folder artifacts, masquerading as Windows components, process injection, and the Rovnix Volume Boot Record bootkit. Carberp enumerates running processes and checks for installed antivirus products. It has exploited multiple Windows privilege-escalation vulnerabilities, including CVE-2010-2743, CVE-2010-3338, CVE-2010-4398, and CVE-2008-1084. A related Android component, Citmo, extended banking fraud to mobile devices and multifactor authentication.
Carberp was operated by financially motivated cybercriminals. Arrests disrupted its two principal branches in 2012 and 2013, although active infrastructure was still observed later in 2013. Its source code leaked in June 2013 and was subsequently reused in other malware. Sofacy, also known as APT28, later deployed a distinct Carberp-derived backdoor in espionage campaigns; this does not establish that the original banking Trojan was an APT28 tool.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Carberp. This malware first emerged in 2009. Its purpose was to steal banking credentials.
Our presentation starts with a consideration of the evolution of the Carberp family of banking malware... Hodprot, the latest Carberp cybercrime group, switched to using RDPdoor v4.2.x
Both the "btecache.dll" and "svchost.dll" files contain code from the leaked Carberp source code, specifically the API resolution functions, as well as the RC2 key.
Techniques & procedures
50 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
Sitnikov was allegedly charged for posting the source code of the Anubis banking trojan on Freedom F0x, a Telegram channel where Sitnikov often posted data leaks and malware source code
On the day before the conference I tracked blackhat SEO poisoning on the Russian Google search results page for requests relating to Eurovision 2012 in the Russian language.
Initial Access
1 technique
Initial Access
"malicious capabilities which include self-spreading through USB and network shares"
Execution
3 techniques
Execution
[Carberp](https://attack.mitre.org/software/S0484) has used the NtQueryDirectoryFile and ZwQueryDirectoryFile functions to hide files and directories.(Citation: Trusteer Carberp October 2010)
つまり攻撃者がマルウェアをユーザーのPCに感染させ、そのマルウェアを利用してそのユーザーのPCに新しいデスクトップを作成し、そのデスクトップの上で悪事を働いても、その間ユーザーに気づく術はありません。
Based on our analysis, adding a path to a DLL to this registry key would load the DLL each time a Microsoft Office application was opened... the legitimate “wwlib.dll” library loading the malicious DLL from the registry key.
Persistence
4 techniques
Persistence
the document create the following registry key: HKEY_CURRENT_USER\Software\Microsoft\Office test\Special\Perf ... adding a path to a DLL to this registry key would load the DLL each time a Microsoft Office application was opened.
[Carberp](https://attack.mitre.org/software/S0484) has installed a bootkit on the system to maintain persistence.(Citation: ESET Carberp March 2012)
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[Carberp](https://attack.mitre.org/software/S0484) has maintained persistence by placing itself inside the current user's startup folder.(Citation: Prevx Carberp March 2011)
Privilege Escalation
7 techniques
Privilege Escalation
Most antiviruses don’t treat all processes the same... the goal of malware is to inject code into one of these “trusted” processes... In the case of PowerLoader, the trusted process targeted is explorer.
[Carberp](https://attack.mitre.org/software/S0484)'s bootkit can inject a malicious DLL into the address space of running processes.(Citation: ESET Carberp March 2012)
[Carberp](https://attack.mitre.org/software/S0484) has queued an APC routine to explorer.exe by calling ZwQueueApcThread.(Citation: Prevx Carberp March 2011)
[Carberp](https://attack.mitre.org/software/S0484) has exploited multiple Windows vulnerabilities (CVE-2010-2743, CVE-2010-3338, CVE-2010-4398, CVE-2008-1084) and a .NET Runtime Optimization vulnerability for privilege escalation.(Citation: ESET Carberp March 2012)(Citation: Prevx Carberp March 2011)
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[Carberp](https://attack.mitre.org/software/S0484) has maintained persistence by placing itself inside the current user's startup folder.(Citation: Prevx Carberp March 2011)
The source code shows the malware bypassing User Account Control (UAC) via a DLL hijack of sysprep.exe... it was found to be vulnerable to a DLL hijacking attack and would load a maliciously planted DLL (named cryptbase.dll) into its elevated process context.
Stealth
16 techniques
Stealth
[Carberp](https://attack.mitre.org/software/S0484) has used user mode rootkit techniques to remain hidden on the system.(Citation: Prevx Carberp March 2011)
we discovered that the author of of TeslaCrypt borrowed code from the Carberp malware family in order to obfuscate strings
Carberp has removed various hooks before installing the trojan or bootkit to evade sandbox analysis or other analysis software.
the author has also implemented dynamic library and function loading.
[Carberp](https://attack.mitre.org/software/S0484) has used XOR-based encryption to mask C2 server locations within the trojan.(Citation: Prevx Carberp March 2011)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[Carberp](https://attack.mitre.org/software/S0484) has masqueraded as Windows system file names, as well as "chkntfs.exe" and "syscron.exe".(Citation: Prevx Carberp March 2011)(Citation: Trusteer Carberp October 2010)
Most antiviruses don’t treat all processes the same... the goal of malware is to inject code into one of these “trusted” processes... In the case of PowerLoader, the trusted process targeted is explorer.
[Carberp](https://attack.mitre.org/software/S0484)'s bootkit can inject a malicious DLL into the address space of running processes.(Citation: ESET Carberp March 2012)
[Carberp](https://attack.mitre.org/software/S0484) has queued an APC routine to explorer.exe by calling ZwQueueApcThread.(Citation: Prevx Carberp March 2011)
Carberp 'inject[ed] code to delete antivirus core files when the process is resumed.'
[Carberp](https://attack.mitre.org/software/S0484) has removed various hooks before installing the trojan or bootkit to evade sandbox analysis or other analysis software.(Citation: ESET Carberp March 2012)
[Carberp](https://attack.mitre.org/software/S0484) has installed a bootkit on the system to maintain persistence.(Citation: ESET Carberp March 2012)
この仕組みを利用してユーザーには見ることのできない隠されたデスクトップを作成し悪用する脅威が存在します。
[Carberp](https://attack.mitre.org/software/S0484) has created a hidden file in the Startup folder of the current user.(Citation: Trusteer Carberp October 2010)
Based on our analysis, adding a path to a DLL to this registry key would load the DLL each time a Microsoft Office application was opened... the legitimate “wwlib.dll” library loading the malicious DLL from the registry key.
Defense Impairment
2 techniques
Defense Impairment
the document create the following registry key: HKEY_CURRENT_USER\Software\Microsoft\Office test\Special\Perf ... adding a path to a DLL to this registry key would load the DLL each time a Microsoft Office application was opened.
[Carberp](https://attack.mitre.org/software/S0484) has attempted to disable security software by creating a suspended process for the security software and injecting code to delete antivirus core files when the process is resumed.(Citation: Prevx Carberp March 2011)
Credential Access
5 techniques
Credential Access
Carberp works like many other banking trojans by logging keystrokes, spoofing websites, and hiding instances of itself in specific locations.
It is a set of JavaScript web injects performing an attack to various internet banking systems in Russia and Ukraine. Injects are triggered by particular masks in a web browser
[Carberp](https://attack.mitre.org/software/S0484) has hooked several Windows API functions to steal credentials.(Citation: Prevx Carberp March 2011)
[Carberp](https://attack.mitre.org/software/S0484)'s passw.plug plugin can gather account information from multiple instant messaging, email, and social media services, as well as FTP, VNC, and VPN clients.(Citation: Prevx Carberp March 2011)
[Carberp](https://attack.mitre.org/software/S0484)'s passw.plug plugin can gather passwords saved in Opera, Internet Explorer, Safari, Firefox, and Chrome.(Citation: Prevx Carberp March 2011)
Discovery
6 techniques
Discovery
[Carberp](https://attack.mitre.org/software/S0484) has searched the Image File Execution Options registry key for "Debugger" within every subkey.(Citation: Prevx Carberp March 2011)
[Carberp](https://attack.mitre.org/software/S0484) has collected a list of running processes.(Citation: Trusteer Carberp October 2010)
[Carberp](https://attack.mitre.org/software/S0484) has collected the operating system version from the infected system.(Citation: Prevx Carberp March 2011)
Carberp has used the NtQueryDirectoryFile and ZwQueryDirectoryFile functions to hide files and directories.
[Carberp](https://attack.mitre.org/software/S0484) has removed various hooks before installing the trojan or bootkit to evade sandbox analysis or other analysis software.(Citation: ESET Carberp March 2012)
[Carberp](https://attack.mitre.org/software/S0484) has queried the infected system's registry searching for specific registry keys associated with antivirus products.(Citation: Prevx Carberp March 2011)
Lateral Movement
4 techniques
Lateral Movement
... rdp.plug ... vnc.plug ... File vnc.plug is an executable that enables remote access to an infected computer via remote framebuffer protocol (RFB).
[Carberp](https://attack.mitre.org/software/S0484) can start a remote VNC session by downloading a new plugin.(Citation: Prevx Carberp March 2011)
"malicious capabilities which include self-spreading through USB and network shares"
"malicious capabilities which include self-spreading through USB and network shares"
Collection
5 techniques
Collection
Carberp works like many other banking trojans by logging keystrokes, spoofing websites, and hiding instances of itself in specific locations.
It is a set of JavaScript web injects performing an attack to various internet banking systems in Russia and Ukraine. Injects are triggered by particular masks in a web browser
[Carberp](https://attack.mitre.org/software/S0484) has hooked several Windows API functions to steal credentials.(Citation: Prevx Carberp March 2011)
[Carberp](https://attack.mitre.org/software/S0484) can capture display screenshots with the screens_dll.dll plugin.(Citation: Prevx Carberp March 2011)
[Carberp](https://attack.mitre.org/software/S0484) has captured credentials when a user performs login through a SSL session.(Citation: Prevx Carberp March 2011)(Citation: Trusteer Carberp October 2010)
Command and Control
6 techniques
Command and Control
The Spamhaus Botnet C&C (BGPCC) is designed to protect networks and their users from botnet traffic. It can be used to block traffic from/to servers on the internet that are operated by cybercriminals and used to control infected computers (bots) or exfiltrate data.
[Carberp](https://attack.mitre.org/software/S0484) has connected to C2 servers via HTTP.(Citation: Trusteer Carberp October 2010)
"malicious capabilities which include self-spreading through USB and network shares, TOR network access"
[Carberp](https://attack.mitre.org/software/S0484) can download and execute new plugins from the C2 server. (Citation: Prevx Carberp March 2011)(Citation: Trusteer Carberp October 2010)
File vnc.plug is an executable that enables remote access to an infected computer via remote framebuffer protocol (RFB).
"uses asymmetric cryptography to secure network communications"
Exfiltration
1 technique
Exfiltration
[Carberp](https://attack.mitre.org/software/S0484) has exfiltrated data via HTTP to already established C2 servers.(Citation: Prevx Carberp March 2011)(Citation: Trusteer Carberp October 2010)
Impact
1 technique
Impact
File ddos.plug exports the only function called ‘StartHTTP’ and contains a list of various HTTP referrers and domain names. The name of plugin indicates it's potential in a distributed denial-of-service attack
Observables
22 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
104 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.