TrojanSpy.Win32.FAKEPOC.THAOGBE
TrojanDownloader:PowerShell/Malgent!rfn (MICROSOFT)
Windows
![](/vinfo/imgFiles/legend.jpg)
Threat Type: Trojan Spy
Destructiveness: No
Encrypted: No
In the wild: Yes
OVERVIEW
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.
As of this writing, the said sites are inaccessible.
It steals certain information from the system and/or the user.
TECHNICAL DETAILS
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 drops the following files:
- %User Temp%\{Random Hex}.tmp\{Random Hex}.tmp\{Random Hex}.ps1 → script containing the payload and deleted after executing.
(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).)
It adds the following processes:
- powershell.exe –NoProfile -ExecutionPolicy Bypass -File %User Temp%\{Random Hex}.tmp\{Random Hex}.tmp\{Random Hex}.ps1
(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).)
It creates the following folders:
- %User Temp%\{Random Hex}.tmp
- %User Temp%\{Random Hex}.tmp\{Random Hex}.tmp
- %User Temp%\{Random Filename}
(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).)
Download Routine
This Trojan Spy accesses the following websites to download files:
- https://{BLOCKED}in.com/raw/9TxS7Ldc → site containing a PowerShell code used to execute another payload.
It saves the files it downloads using the following names:
- %Windows%\{Random Filename}.ps1
(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)
As of this writing, the said sites are inaccessible.
Information Theft
This Trojan Spy steals the following information:
- Computer Information
- List of Current Running Processes
- Files from Downloads Folder
- Files from Documents Folder
- Files from Desktop Folder
- List of Network IPs
- List of Network Adapters
- List of Installed Software/Packages
It sends the gathered information to the following site/s using credentials from its configuration file:
- ftp://ftp.drivehq.com/wwwhome/{ZIP Filename} → it uses hardcoded login credentials to authenticate to the FTP server.
Stolen Information
This Trojan Spy saves the stolen information in the following file:
- %User Temp%\{Random Filename}\Info.txt → stores computer info
- %User Temp%\{Random Filename}\Download.txt → stores file list of Downloads folder
- %User Temp%\{Random Filename}\Documents.txt → stores file list of Documents folder
- %User Temp%\{Random Filename}\Desktop.txt → stores file list of Desktop folder
- %User Temp%\{Random Filename}\IP.txt → stores list of network IPs
- %User Temp%\{Random Filename}\NetAda.txt → stores list of network adapters
- %User Temp%\{Random Filename}\Prg.txt → stores list of installed software/packages
- %User Temp%\{Random Filename}\Proc.txt → stores process list
- %User Temp%\{Random Filename}.zip → ZIP archive containing the above files
(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).)
Other Details
This Trojan Spy adds the following scheduled tasks:
- Location: \Microsoft\Windows\PowerShell\ScheduledJobs
Name: Update
Trigger: One time at 10:00 AM on {Scheduled Task Creation Date} → after triggered, repeat every 30 minutes indefinitely
Action: Start a program → powershell.exe -NoLogo -NonInteractive -WindowStyle Hidden -Command "Import-Module PSScheduledJob; $jobDef = [Microsoft.PowerShell.ScheduledJob.ScheduledJobDefinition]::LoadFromStore('Update', '%AppDataLocal%\Microsoft\Windows\PowerShell\ScheduledJobs'); $jobDef.Run()"
Properties: Hidden
(Note: %AppDataLocal% is the Local Application Data folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
SOLUTION
Step 1
Trend Micro Predictive Machine Learning detects and blocks malware at the first sign of its existence, before it executes on your system. When enabled, your Trend Micro product detects this malware under the following machine learning name:
- TROJ.Win32.TRX.XXPE50FFF089
Step 2
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 3
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 4
Restart in Safe Mode
Step 5
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}: Update
- {Task to be run}: powershell.exe -NoLogo -NonInteractive -WindowStyle Hidden -Command "Import-Module PSScheduledJob; $jobDef = [Microsoft.PowerShell.ScheduledJob.ScheduledJobDefinition]::LoadFromStore('Update', '%AppDataLocal%\Microsoft\Windows\PowerShell\ScheduledJobs'); $jobDef.Run()"
- 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 6
Search and delete these files
- %User Temp%\{Random Hex}.tmp\{Random Hex}.tmp\{Random Hex}.ps1
- %User Temp%\{Random Filename}\Info.txt
- %User Temp%\{Random Filename}\Proc.txt
- %User Temp%\{Random Filename}\Download.txt
- %User Temp%\{Random Filename}\Documents.txt
- %User Temp%\{Random Filename}\Desktop.txt
- %User Temp%\{Random Filename}\IP.txt
- %User Temp%\{Random Filename}\NetAda.txt
- %User Temp%\{Random Filename}\Prg.txt
- %User Temp%\{Random Filename}.zip
- %Windows%\{Random Filename}.ps1
Step 7
Search and delete these folders
- %User Temp%\{Random Hex}.tmp\{Random Hex}.tmp
- %User Temp%\{Random Hex}.tmp
- %User Temp%\{Random Filename}
Step 8
Restart in normal mode and scan your computer with your Trend Micro product for files detected as TrojanSpy.Win32.FAKEPOC.THAOGBE. 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.