TVRat
- Type
- RAT
- Capabilities
- ExfiltrationDefense evasionDLL sideloadingReconnaissancePost exploitation
- Delivery
- PhishingMalspamLureLanding pageDrive by
- Platforms
- Windows
TeamSpy, also known as TVRAT and TVSPY, is a Windows remote-access Trojan that abuses legitimate TeamViewer components to provide covert control of infected computers. Publicly documented since 2013, it combines digitally signed TeamViewer binaries with a malicious DLL loaded through DLL search-order hijacking. The malicious component hooks Windows APIs to hide TeamViewer windows, suppress dialogs, and configure attacker-controlled access. Operators can connect remotely using the infected machine’s TeamViewer identifier and a predefined password, or exchange commands through concealed TeamViewer chat functionality.
TeamSpy supports arbitrary command and program execution, file transfers, data theft, and access to webcams and microphones. It collects host information, including operating-system details, usernames, computer names, installed antivirus information, and TeamViewer identifiers, and communicates with command-and-control infrastructure. Its use of legitimate TeamViewer communications and VPN functionality helps conceal malicious activity within otherwise legitimate remote-administration traffic.
Distribution has included malicious Excel attachments whose macros download an installer containing TeamViewer and malicious components. Other observed delivery chains used a malicious résumé document uploaded to a legitimate recruitment portal, cryptocurrency-themed websites, and deployment as a follow-on payload during Ursnif infections. Targets have included freelance-platform users and a financial organization’s human-resources staff. U.S. prosecutors allege that Searzhudin Tamirlanovich Aktulaev and co-conspirators distributed a TVRAT variant and DarkVNC through fraudulent freelance-platform accounts during 2016–2017, targeting approximately 80,000 recipients and using stolen information for fraud. Those criminal allegations remain unproven.
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
The command-and-control domains were paid for using virtual currency, and thousands of computers infected by the TVRAT malware were 'calling back' to a command-and-control domain hosted in the United States.
Initial Access
3 techniques
Initial Access
MITRE ATT&CK AND TTP Mapping ID Tactic Technique T1189 Drive-by Compromise Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
The conspirators allegedly created approximately 255 fake user accounts and used them to send messages containing malicious Excel attachments to around 80,000 freelancers.
Aktulaev and his co-conspirators built around 255 fake accounts on a well-known freelance work platform... [and] used those accounts to message roughly 80,000 users, posing as prospective clients.
Execution
5 techniques
Execution
The communication via the TeamViewer chat allows for the basic backdoor functionalities to be performed: applist , wcmd , ver , os , vpn , locale , time , webcam , genid .
Opening an attachment prompted the recipient to enable or execute an embedded macro. If the user complied, the macro downloaded malware from the internet.
TVRAT allows its users to exploit a vulnerability in remote access tool TeamViewer and take over a victim’s device. DarkVNC... exploited a bug in... VNC Viewer.
Opening an attachment prompted the recipient to enable or execute an embedded macro. If the user complied, the macro downloaded malware from the internet.
Вместе с подписанными бинарниками TeamViewer устанавливалась вредоносная библиотека msimg32.dll. Используя технику DLL hijacking, она загружалась вместо штатной DLL Windows.
Stealth
5 techniques
Stealth
If we look inside the malicious macro, we can see slightly obfuscated strings, usually split into one or more substrings, which are later concatenated.
The attacker disguised it as a resume and then uploaded it to a legitimate job portal website.
You can see that a Microsoft Word process, winword.exe, created two child processes, wpvnetwks.exe and regsvr32.exe... regsvr32.exe is a tool that can be used to run malicious DLLs.
Hooking SetWindowLayeredAttributes sets the TeamViewer window opacity to 0... The final effect is clear - TeamViewer’s windows are not displayed to the victim. They silently exist in the system and that’s all.
Вместе с подписанными бинарниками TeamViewer устанавливалась вредоносная библиотека msimg32.dll. Используя технику DLL hijacking, она загружалась вместо штатной DLL Windows.
Discovery
2 techniques
Discovery
The tools ... check for the existence of specific files, windows registry entries ... For example, SIG2 includes System\CurrentControlSet\Control\CrashImage and SIG23 includes software\microsoft\NetWin.
They check for the existence of specific files, windows registry entries, and other signs ... For example, this script looks for the existence of an actual file “winver32.exe” in the very specific $docsandsettings\\$subkey\\Application Data\\winver32.exe path.
Collection
1 technique
Collection
Aktulaev used the access to steal data from victims... Aktulaev kept a document with stolen e-commerce login credentials and personal information on hundreds of victims.
Command and Control
4 techniques
Command and Control
Thousands of computers infected with TVRAT were calling back to a command-and-control domain hosted in the U.S. The infected machine then reports its TeamViewer ID to a C2 server.
Thousands of computers infected by the TVRAT malware were 'calling back' to a command-and-control domain hosted in the United States.
If the user complied, the macro downloaded malware from the internet.
TVRAT and DarkVNC provided similar hidden remote-control capabilities... Prosecutors allege that the malware allowed the conspirators to control infected computers.
Exfiltration
2 techniques
Exfiltration
Prosecutors allege that the malware allowed the conspirators to control infected computers and transfer stolen data to command-and-control servers.
server1, where the infected machine ID is exfiltrated... Using TeamViewer’s legitimate VPN encrypts the traffic and makes it indistinguishable from legitimate TeamViewer traffic.
Impact
1 technique
Impact
Aktulaev used the access to steal data from victims and commit fraud.
Observables
117 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.