TrojanSpy.MSIL.NEGASTEAL.RJAHSPC

 Analysis by: Bryelle Timothy Nisperos

 ALIASES:

HEUR:Trojan.Win32.Generic (KASPERSKY), Trojan:MSIL/AgentTesla.EB!MTB (MICROSOFT)

 PLATFORM:

Windows

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Trojan Spy

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

Infection Channel:

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 connects to a website to send and receive information.

  TECHNICAL DETAILS

File Size:

991,744 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

13 Mar 2023

Payload:

Connects to URLs/IPs, Drops files, Steals information, Modifies system registry, Deletes files

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%\{8 Random characters}.{3 Random characters}.ps1
  • %User Temp%\{8 Random characters}.{3 Random characters}.psm1
  • %AppDataLocal%\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
  • %Programs%\firefox\mozilla.exe → copy of itself

(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).. %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).. %Programs% is the folder that contains the user’s program groups, which is usually C:\Windows\Start Menu\Programs or C:\Documents and Settings\{User name}\Start Menu\Programs on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs on Windows Vista, 7, and 8.)

It adds the following processes:

  • "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ENC {base64 encrypted strings}

Autostart Technique

This Trojan Spy adds the following registry entries to enable its automatic execution at every system startup:

HKCU\Software\Microsoft\
Windows\CurrentVersion\Run
mozilla = %Programs%\firefox\mozilla.exe

Other System Modifications

This Trojan Spy deletes the following files:

  • %User Temp%\{8 Random characters}.{3 Random characters}.ps1
  • %User Temp%\{8 Random characters}.{3 Random characters}.psm1

(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 registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Tracing\{Random Name}_RASAPI32
EnableFileTracing = "0"
EnableConsoleTracing = "0"
FileTracingMask = "4294901760"
ConsoleTracingMask = "4294901760"
MaxFileSize= "1048576"
File Directory = "%windir%\tracing" =

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Tracing\{Random Name}_RASMANCS
EnableFileTracing = "0"
EnableConsoleTracing = "0"
FileTracingMask = "4294901760"
ConsoleTracingMask = "4294901760"
MaxFileSize= "1048576"
File Directory = "%windir%\tracing" =

Backdoor Routine

This Trojan Spy connects to the following websites to send and receive information:

  • https://{BLOCKED}am.org/{BotToken}:AAEz6ZTkghx2RsdTxeeE-sDulPHc5WQblVg/sendDocument?chat_id={ChatID}

Information Theft

This Trojan Spy gathers the following data:

  • It gathers information from:
    • Time
    • Username
    • Computer Name
    • OS Version
    • CPU Architecture
    • RAM
    • IP Address

    • Browsers
      • 7Star
      • Amigo
      • BlackHawk
      • Brave Browser
      • CentBrowser
      • Chedot
      • Chrome
      • ChromePlus
      • Chromium
      • Citrio
      • Comodo Dragon
      • Comodo IceDragon
      • Coowon
      • Cyberfox
      • Cốc Cốc Browser
      • Elements Browser
      • Epic Privacy Browser
      • Falkon
      • Flock
      • Icecat
      • Iridium
      • K-Meleon
      • Kometa
      • Liebao
      • Microsoft Edge
      • Mozilla Firefox
      • Opera Stable
      • Orbitum
      • Pale Moon
      • QIP Surf
      • QQBrowser
      • SeaMonkey
      • Sleipnir
      • Sputnik
      • Torch
      • UCBrowser
      • Uran
      • Vivaldi
      • Waterfox
      • Yandex

    • Emails
      • Becky!
      • Claws-mail
      • eM Client
      • Eudora
      • Foxmail
      • IncrediMail
      • Mailbird
      • Opera Mail
      • Outlook
      • Pocomail
      • Postbox
      • The Bat!
      • Thunderbird

    • FTPs
      • cftp
      • COREFTP
      • FileZilla
      • FlashFXP
      • FTP Commander
      • FTP Commander Deluxe
      • FTP Navigator
      • FTPGetter
      • SmartFTP
      • WinSCP
      • WS_FTP

    • VPNs
      • NordVPN
      • OpenVPN
      • Private Internet Access

    • VNCs
      • RealVNC
      • TigerVNC
      • TightVNC
      • UltraVNC

    • Instant Messaging Applications
      • Discord
      • Psi/Psi+
      • Trillian

    • Others
      • JDownloader
      • MySQL Workbench
      • Windows Credentials
      • Windows Vault

Other Details

This Trojan Spy adds the following registry keys:

HKEY_LOCAL_MACHINE\Software\Microsoft\
Tracing\{malware file name}_RASAPI32

HKEY_LOCAL_MACHINE\Software\Microsoft\
Tracing\{malware file name}_RASMANCS

It connects to the following URL(s) to get the affected system's IP address:

  • {BLOCKED}ify.org

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

18.316.04

FIRST VSAPI PATTERN DATE:

16 Mar 2023

VSAPI OPR PATTERN File:

18.317.00

VSAPI OPR PATTERN Date:

17 Mar 2023

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.XXPE50FFF066

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

Delete this registry key

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

 
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Tracing\{malware file name}_RASAPI32
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Tracing\{malware file name}_RASMANCS

Step 5

Delete this registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

    • HKCU\Software\Microsoft\Windows\CurrentVersion\Run
    • mozilla

Step 6

Search and delete this file

[ Learn More ]
There may be some files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the "More advanced options" option to include all hidden files and folders in the search result.
  • %User Temp%\{8 Random characters}.{3 Random characters}.ps1
  • %User Temp%\{8 Random characters}.{3 Random characters}.psm1
  • %AppDataLocal%\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
  • %Programs%\firefox\mozilla.exe

Step 7

Scan your computer with your Trend Micro product to delete files detected as TrojanSpy.MSIL.NEGASTEAL.RJAHSPC. 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.