Sinowal
- Type
- Banking trojan
- Capabilities
- Credential theftSession hijackingExfiltrationPersistenceDefense evasionProcess injectionReconnaissance
- Delivery
- Drive byMalspamExploit kit
- Platforms
- Windows
Sinowal is a modular Windows banking Trojan used to steal financial credentials and other sensitive information from online banking and e-commerce users worldwide. It targets both 32-bit and 64-bit systems and has been distributed through drive-by downloads, malicious spam attachments, and file-sharing networks. Historical campaigns used the Neosploit and Blackhole exploit kits. Sinowal/Torpig operators also hosted a customized Blackhole deployment on infected botnet nodes, using fast-flux infrastructure and domain generation to maintain availability.
Its architecture comprises an installer, loader, central manager, and application-specific plug-ins downloaded from command-and-control infrastructure. Sinowal injects code into Windows and browser processes, establishes registry-based persistence, stores modules in encrypted local containers, and uses encrypted communications and a time-based domain generation algorithm. Bootkit variants modify the master boot record and store malicious code in disk sectors, allowing execution before Windows starts and concealing the infection through system hooks.
Sinowal performs man-in-the-browser credential theft, captures submitted form data, intercepts session cookies, redirects browser traffic, and executes attacker-supplied scripts. Internet Explorer components support screenshots, video capture, and redirection to phishing pages; Chrome components install a malicious extension that monitors navigation and steals form data and cookies. Network-sniffing components harvest email addresses and FTP credentials. Stolen information and host reconnaissance data, including running processes and installed software, are transmitted to command-and-control servers. Defense-evasion functionality includes API hooking, encrypted module storage, and mechanisms specifically designed to interfere with Trusteer Rapport. Its targeting spans financial institutions and e-commerce services across Europe, Asia, Africa, the Americas, and Oceania.
Techniques & procedures
37 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
4 techniques
Initial Access
The Sinowal installer (MD5: 7efc5e7452d98843b9ae4a2678d057ea) may arrive on a victim’s computer via any of a number of different means, including drive-by download, spam attachment and file-sharing networks.
Exploits for vulnerabilities in the processing of PDF, SWF, and QuickTIme files were downloaded in the majority of cases. The list of vulnerabilities exploited by the malicious users are relatively long...
The spy program can redirect user requests to phishing sites.
The Sinowal installer (MD5: 7efc5e7452d98843b9ae4a2678d057ea) may arrive on a victim’s computer via any of a number of different means, including drive-by download, spam attachment and file-sharing networks.
Execution
5 techniques
Execution
As a rule, this communication results in an additional module (a DLL) being downloaded to the victim machine.
Execute the command ‘regsvr32.exe /s {Path of Loader Module}’, which will cause the loader module to run in the regsvr32.exe process.
In order for a computer to become infected, the user had to not only open a page on the hacked site but also to click on the substitute link.
All plug-in modules contact the manager module through a named pipe... The manager module creates a named pipe through which it exchanges data and scripts with the plug-in modules.
...add the path of the loader module to the registry value ‘HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\Windows\LoadAppInit_DLLs’. The second will enable it to be loaded into all user-mode processes in the system.
Persistence
4 techniques
Persistence
Bootkits “Replace MBR (or VBR), gain execution before OS.”
“Replace MBR (or VBR), gain execution before OS.”
Make the registry value ‘HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellServiceObjectDelayLoad’ point to the path of the loader module and add the path of the loader module to the registry value ‘HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\Windows\LoadAppInit_DLLs’.
To enable browser active scripting... the registry value ‘HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1400’ is set to zero. This means that Internet Explorer will no longer prompt the user before running dynamic scripts.
Privilege Escalation
2 techniques
Privilege Escalation
Inject a piece of code into the explorer.exe process to load the loader module.
Make the registry value ‘HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellServiceObjectDelayLoad’ point to the path of the loader module and add the path of the loader module to the registry value ‘HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\Windows\LoadAppInit_DLLs’.
Stealth
10 techniques
Stealth
Once the machine has rebooted, the bootkit hooks a range of system functions and starts to run fully in the system – hiding its own presence and functioning as a bot within a zombie network.
Depending on the ID assigned to the user, the server will generate an obfuscation key which will be used to encrypt the appropriate exploit.
The encryption routine performs a simple XOR operation on each double-word... The downloaded manager module will be decrypted with the key ‘HONNJCUPKFVBBYCC’.
The loader module is named ‘mini’ on 32-bit systems and ‘mi64’ on 64-bit systems... {Filename} is chosen from a given group...
Inject a piece of code into the explorer.exe process to load the loader module.
Execute the command ‘regsvr32.exe /s {Path of Loader Module}’, which will cause the loader module to run in the regsvr32.exe process.
Bootkits “Replace MBR (or VBR), gain execution before OS.”
“Replace MBR (or VBR), gain execution before OS.”
...add the path of the loader module to the registry value ‘HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\Windows\LoadAppInit_DLLs’. The second will enable it to be loaded into all user-mode processes in the system.
The bootkit then decrypts this packet, and inside there is a DLL file which the bootkit loads to memory and which does not exist as a file on disk!
Defense Impairment
2 techniques
Defense Impairment
To enable browser active scripting... the registry value ‘HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1400’ is set to zero. This means that Internet Explorer will no longer prompt the user before running dynamic scripts.
As an advanced banking trojan, Sinowal is equipped with a weapon to defeat Trusteer Rapport... Suspend all threads belonging to the Trusteer Rapport module in the browser process... Recover APIs... Hook the NtCreateThread and NtCreateThreadEx APIs to abort threads created by Trusteer Rapport.
Credential Access
7 techniques
Credential Access
A module named ‘gbsniffer.dll’ is employed to sniff network data and to harvest email addresses from POP3/SMTP traffic and the usernames/passwords of FTP client applications installed on the compromised machine.
...a newly created IDispatch object will be connected to the connection point for the DIID_HTMLInputTextElementEvents of each input text element... the value of this attribute is set to the content of the element – which is very likely the password entered by the compromised user.
The submitEvent function defined in the script will grab the form content when a form is submitted... This submitEvent method implemented in Crcl.dll will transfer stolen form data through a pipe to the manager module...
The script equips the extension with the capacity to redirect network traffic, forge the HTTP referrer, intercept session cookies, and monitor browser navigation.
A module named ‘gbsniffer.dll’ is employed to sniff network data and to harvest email addresses from POP3/SMTP traffic and the usernames/passwords of FTP client applications installed on the compromised machine.
To enable browser active scripting... the registry value ‘HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1400’ is set to zero. This means that Internet Explorer will no longer prompt the user before running dynamic scripts.
The spy module is capable of launching a man-in-the-middle attack by using the bootkit as a platform which has full access to the resources of the operating system.
Discovery
1 technique
Discovery
A module named ‘gbsniffer.dll’ is employed to sniff network data and to harvest email addresses from POP3/SMTP traffic and the usernames/passwords of FTP client applications installed on the compromised machine.
Collection
6 techniques
Collection
...a newly created IDispatch object will be connected to the connection point for the DIID_HTMLInputTextElementEvents of each input text element... the value of this attribute is set to the content of the element – which is very likely the password entered by the compromised user.
The submitEvent function defined in the script will grab the form content when a form is submitted... This submitEvent method implemented in Crcl.dll will transfer stolen form data through a pipe to the manager module...
screen (dispId 0x05): take a screenshot in JPEG format and send it to the C&C server.
video (dispId 0x09): record an MPEG video of the user screen by using an open-source x264 library embedded in the Iecl module, and send the video to the C&C server.
A plug-in module named ‘Iecl.dll’ ... is injected into the iexplore.exe process to perform banking fraud... The main functionality of this module is to steal sensitive information... and to run customized scripts from the C&C server at specific times.
The spy module is capable of launching a man-in-the-middle attack by using the bootkit as a platform which has full access to the resources of the operating system.
Command and Control
6 techniques
Command and Control
The malicious program creates a specially crafted network packet using the ID of the infected computer and attempts to send it to the command and control server... As soon as one of the domains appears to be “correct” ... the bot will connect to it as a botnet client and starts encrypting communication with the command and control centre.
The manager module communicates directly with the C&C server, uploading stolen information, reporting the local status of the trojan and downloading configuration and plug-in modules... The HTTP session for downloading is shown in Figure 5.
The DLL acts as a loader module and will load other components, if any exist, and download a manager module which plays a central role in conducting banking fraud. The manager module downloads several plug-in modules from the C&C server...
If it’s not possible to connect to the command and control centre, the bot will use a dedicated algorithm to consecutively generate .com, .net and .biz domain names.
This method is similar to the Fast-Flux technology which is actively used by worms from the Zhelatin (Storm Worm) family.
Unlike the hard-coded C&C server URL used for downloading the manager module, the C&C server domains for downloading configuration data and plug-in modules are obtained through a DGA (Domain Generation Algorithm) which is based on the current date and time taken from Google.
Exfiltration
1 technique
Exfiltration
...the manager module communicates directly with the C&C server, uploading stolen information... Finally, the grabbed form data will be sent through a pipe to the manager module, which in turn will send the information to the C&C server.
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.