Analysis

  • max time kernel
    165s
  • max time network
    193s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20220812-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20220812-enlocale:en-usos:windows10-2004-x64system
  • submitted
    11/10/2022, 07:32

General

  • Target
    HRSword-main/win7初始化.bat
  • Size 1KB
  • Sample221011-jc4rcacdfk
  • SHA256 253c0ece38ec4b0fa9b22cd2aefcbdc412ea47a44e55c235d09b481d5c596210
  • MD5 SHA1 SHA512
Score
8/10

Malware Config

Signatures

  • Creates new service(s) 1 TTPs
  • Drops file in Drivers directory 4 IoCs
  • Sets service image path in registry 2 TTPs 2 IoCs
  • Launches sc.exe 4 IoCs

    Sc.exe is a Windows utlilty to control services on the system.

  • Suspicious behavior: LoadsDriver 2 IoCs
  • Suspicious use of WriteProcessMemory 38 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\HRSword-main\win7初始化.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:764
    • C:\Windows\system32\reg.exe
      REG QUERY "HKU\S-1-5-19"
      2⤵
        PID:1704
      • C:\Windows\system32\cmd.exe
        C:\Windows\system32\cmd.exe /S /D /c" echo y"
        2⤵
          PID:1232
        • C:\Windows\system32\cmd.exe
          C:\Windows\system32\cmd.exe /S /D /c" copy Drivers\usysdiag.exe "C:\Users\Admin\AppData\Local\Temp\HRSword-main\\" 1>NUL 2>NUL"
          2⤵
            PID:3616
          • C:\Windows\system32\cmd.exe
            C:\Windows\system32\cmd.exe /S /D /c" echo y"
            2⤵
              PID:3632
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /S /D /c" copy Drivers\sysdiag.sys "C:\Windows\System32\drivers\" 1>NUL 2>NUL"
              2⤵
              • Drops file in Drivers directory
              PID:1244
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /S /D /c" echo y"
              2⤵
                PID:2260
              • C:\Windows\system32\cmd.exe
                C:\Windows\system32\cmd.exe /S /D /c" copy Drivers\hrwfpdrv.sys "C:\Windows\System32\drivers\" 1>NUL 2>NUL"
                2⤵
                • Drops file in Drivers directory
                PID:1936
              • C:\Windows\system32\sc.exe
                sc create hrwfpdrv binpath= "C:\Windows\System32\drivers\hrwfpdrv.sys" type= kernel start= demand error= normal
                2⤵
                • Launches sc.exe
                PID:3244
              • C:\Windows\system32\sc.exe
                sc create sysdiag binpath= "C:\Windows\System32\drivers\sysdiag.sys" type= kernel start= demand error= normal depend= FltMgr group= "PNP_TDI"
                2⤵
                • Launches sc.exe
                PID:2024
              • C:\Windows\system32\reg.exe
                reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag" /f /v "ImagePath" /t REG_EXPAND_SZ /d "system32\DRIVERS\sysdiag.sys"
                2⤵
                • Sets service image path in registry
                PID:1600
              • C:\Windows\system32\reg.exe
                reg add "HKLM\SYSTEM\CurrentControlSet\Services\hrwfpdr" /f /v "ImagePath" /t REG_EXPAND_SZ /d "system32\DRIVERS\hrwfpdrv.sys"
                2⤵
                • Sets service image path in registry
                PID:4596
              • C:\Windows\system32\reg.exe
                reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag" /f /v "Start" /t reg_dword /d "1"
                2⤵
                  PID:1356
                • C:\Windows\system32\reg.exe
                  reg add "HKLM\SYSTEM\CurrentControlSet\Services\hrwfpdr" /f /v "Start" /t reg_dword /d "1"
                  2⤵
                    PID:2188
                  • C:\Windows\system32\reg.exe
                    reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag" /f /v "Group" /d "PNP_TDI"
                    2⤵
                      PID:3028
                    • C:\Windows\system32\reg.exe
                      reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag\Instances" /f /v "DefaultInstance" /d "sysdiag"
                      2⤵
                        PID:5056
                      • C:\Windows\system32\reg.exe
                        reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag\Instances\sysdiag" /f /v "Altitude" /d "324600"
                        2⤵
                          PID:3444
                        • C:\Windows\system32\reg.exe
                          reg add "HKLM\SYSTEM\CurrentControlSet\Services\sysdiag\Instances\sysdiag" /f /v "Flags" /t reg_dword /d "0"
                          2⤵
                            PID:1184
                          • C:\Windows\system32\sc.exe
                            sc start sysdiag
                            2⤵
                            • Launches sc.exe
                            PID:240
                          • C:\Windows\system32\sc.exe
                            sc start hrwfpdrv
                            2⤵
                            • Launches sc.exe
                            PID:204

                        Network

                              MITRE ATT&CK Enterprise v6

                              Replay Monitor

                              Loading Replay Monitor...

                              Downloads