Analysis

  • max time kernel
    97s
  • max time network
    148s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20241007-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    13/11/2024, 14:55

General

  • Target
    MAS_AIO_CN.cmd
  • Size 417KB
  • Sample241113-sanf1sthlr
  • SHA256 92f866bd203019edc5ec72aba4563b8fd365bafab962675ebeb10242ce8fe721
  • MD5 SHA1 SHA512 SSDEEP
Score
6/10

Malware Config

Signatures

  • Command and Scripting Interpreter: PowerShell 1 TTPs 5 IoCs

    Using powershell.exe command.

  • Launches sc.exe 2 IoCs

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

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

    Adversaries may check for Internet connectivity on compromised systems.

  • Runs ping.exe 1 TTPs 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 10 IoCs
  • Suspicious use of AdjustPrivilegeToken 5 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\MAS_AIO_CN.cmd"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1052
    • C:\Windows\System32\sc.exe
      sc query Null
      2⤵
      • Launches sc.exe
      PID:64
    • C:\Windows\System32\find.exe
      find /i "RUNNING"
      2⤵
        PID:3180
      • C:\Windows\System32\findstr.exe
        findstr /v "$" "MAS_AIO_CN.cmd"
        2⤵
          PID:1556
        • C:\Windows\System32\cmd.exe
          C:\Windows\System32\cmd.exe /c ver
          2⤵
            PID:3992
          • C:\Windows\System32\reg.exe
            reg query "HKCU\Console" /v ForceV2
            2⤵
              PID:1804
            • C:\Windows\System32\find.exe
              find /i "0x0"
              2⤵
                PID:756
              • C:\Windows\System32\cmd.exe
                C:\Windows\System32\cmd.exe /c echo prompt $E | cmd
                2⤵
                • Suspicious use of WriteProcessMemory
                PID:5096
                • C:\Windows\System32\cmd.exe
                  C:\Windows\System32\cmd.exe /S /D /c" echo prompt $E "
                  3⤵
                    PID:4444
                  • C:\Windows\System32\cmd.exe
                    cmd
                    3⤵
                      PID:4780
                  • C:\Windows\System32\cmd.exe
                    C:\Windows\System32\cmd.exe /S /D /c" echo "C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd" "
                    2⤵
                      PID:2448
                    • C:\Windows\System32\find.exe
                      find /i "C:\Users\Admin\AppData\Local\Temp"
                      2⤵
                        PID:3916
                      • C:\Windows\System32\cmd.exe
                        cmd /c "powershell.exe "$f=[io.file]::ReadAllText('C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd', [Text.Encoding]::Default) -split ':PowerShellTest:\s*';iex ($f[1])""
                        2⤵
                        • Suspicious use of WriteProcessMemory
                        PID:3484
                        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                          powershell.exe "$f=[io.file]::ReadAllText('C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd', [Text.Encoding]::Default) -split ':PowerShellTest:\s*';iex ($f[1])"
                          3⤵
                          • Command and Scripting Interpreter: PowerShell
                          • Suspicious behavior: EnumeratesProcesses
                          • Suspicious use of AdjustPrivilegeToken
                          PID:3892
                      • C:\Windows\System32\find.exe
                        find /i "FullLanguage"
                        2⤵
                          PID:3140
                        • C:\Windows\System32\fltMC.exe
                          fltmc
                          2⤵
                            PID:2556
                          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                            powershell.exe "$TB = [AppDomain]::CurrentDomain.DefineDynamicAssembly(4, 1).DefineDynamicModule(2, $False).DefineType(0); [void]$TB.DefinePInvokeMethod('GetConsoleWindow', 'kernel32.dll', 22, 1, [IntPtr], @(), 1, 3).SetImplementationFlags(128); [void]$TB.DefinePInvokeMethod('SendMessageW', 'user32.dll', 22, 1, [IntPtr], @([IntPtr], [UInt32], [IntPtr], [IntPtr]), 1, 3).SetImplementationFlags(128); $hIcon = $TB.CreateType(); $hWnd = $hIcon::GetConsoleWindow(); echo $($hIcon::SendMessageW($hWnd, 127, 0, 0) -ne [IntPtr]::Zero);"
                            2⤵
                            • Command and Scripting Interpreter: PowerShell
                            • Suspicious behavior: EnumeratesProcesses
                            • Suspicious use of AdjustPrivilegeToken
                            PID:4020
                          • C:\Windows\System32\find.exe
                            find /i "True"
                            2⤵
                              PID:1352
                            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                              powershell.exe "$t=[AppDomain]::CurrentDomain.DefineDynamicAssembly(4, 1).DefineDynamicModule(2, $False).DefineType(0); $t.DefinePInvokeMethod('GetStdHandle', 'kernel32.dll', 22, 1, [IntPtr], @([Int32]), 1, 3).SetImplementationFlags(128); $t.DefinePInvokeMethod('SetConsoleMode', 'kernel32.dll', 22, 1, [Boolean], @([IntPtr], [Int32]), 1, 3).SetImplementationFlags(128); $k=$t.CreateType(); $b=$k::SetConsoleMode($k::GetStdHandle(-10), 0x0080); & cmd.exe '/c' '"""C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd""" -el -qedit'"
                              2⤵
                              • Command and Scripting Interpreter: PowerShell
                              • Suspicious behavior: EnumeratesProcesses
                              • Suspicious use of AdjustPrivilegeToken
                              • Suspicious use of WriteProcessMemory
                              PID:2408
                              • C:\Windows\System32\cmd.exe
                                "C:\Windows\System32\cmd.exe" /c ""C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd" -el -qedit"
                                3⤵
                                • Suspicious use of WriteProcessMemory
                                PID:1296
                                • C:\Windows\System32\sc.exe
                                  sc query Null
                                  4⤵
                                  • Launches sc.exe
                                  PID:2532
                                • C:\Windows\System32\find.exe
                                  find /i "RUNNING"
                                  4⤵
                                    PID:2272
                                  • C:\Windows\System32\findstr.exe
                                    findstr /v "$" "MAS_AIO_CN.cmd"
                                    4⤵
                                      PID:4944
                                    • C:\Windows\System32\cmd.exe
                                      C:\Windows\System32\cmd.exe /S /D /c" echo "-el -qedit" "
                                      4⤵
                                        PID:3868
                                      • C:\Windows\System32\find.exe
                                        find /i "/"
                                        4⤵
                                          PID:800
                                        • C:\Windows\System32\cmd.exe
                                          C:\Windows\System32\cmd.exe /c ver
                                          4⤵
                                            PID:2308
                                          • C:\Windows\System32\reg.exe
                                            reg query "HKCU\Console" /v ForceV2
                                            4⤵
                                              PID:3980
                                            • C:\Windows\System32\find.exe
                                              find /i "0x0"
                                              4⤵
                                                PID:2724
                                              • C:\Windows\System32\cmd.exe
                                                C:\Windows\System32\cmd.exe /c echo prompt $E | cmd
                                                4⤵
                                                • Suspicious use of WriteProcessMemory
                                                PID:2868
                                                • C:\Windows\System32\cmd.exe
                                                  C:\Windows\System32\cmd.exe /S /D /c" echo prompt $E "
                                                  5⤵
                                                    PID:3456
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd
                                                    5⤵
                                                      PID:2632
                                                  • C:\Windows\System32\cmd.exe
                                                    C:\Windows\System32\cmd.exe /S /D /c" echo "C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd" "
                                                    4⤵
                                                      PID:4844
                                                    • C:\Windows\System32\find.exe
                                                      find /i "C:\Users\Admin\AppData\Local\Temp"
                                                      4⤵
                                                        PID:5040
                                                      • C:\Windows\System32\cmd.exe
                                                        cmd /c "powershell.exe "$f=[io.file]::ReadAllText('C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd', [Text.Encoding]::Default) -split ':PowerShellTest:\s*';iex ($f[1])""
                                                        4⤵
                                                          PID:4116
                                                          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                            powershell.exe "$f=[io.file]::ReadAllText('C:\Users\Admin\AppData\Local\Temp\MAS_AIO_CN.cmd', [Text.Encoding]::Default) -split ':PowerShellTest:\s*';iex ($f[1])"
                                                            5⤵
                                                            • Command and Scripting Interpreter: PowerShell
                                                            • Suspicious behavior: EnumeratesProcesses
                                                            • Suspicious use of AdjustPrivilegeToken
                                                            PID:1524
                                                        • C:\Windows\System32\find.exe
                                                          find /i "FullLanguage"
                                                          4⤵
                                                            PID:1740
                                                          • C:\Windows\System32\fltMC.exe
                                                            fltmc
                                                            4⤵
                                                              PID:404
                                                            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                              powershell.exe "$TB = [AppDomain]::CurrentDomain.DefineDynamicAssembly(4, 1).DefineDynamicModule(2, $False).DefineType(0); [void]$TB.DefinePInvokeMethod('GetConsoleWindow', 'kernel32.dll', 22, 1, [IntPtr], @(), 1, 3).SetImplementationFlags(128); [void]$TB.DefinePInvokeMethod('SendMessageW', 'user32.dll', 22, 1, [IntPtr], @([IntPtr], [UInt32], [IntPtr], [IntPtr]), 1, 3).SetImplementationFlags(128); $hIcon = $TB.CreateType(); $hWnd = $hIcon::GetConsoleWindow(); echo $($hIcon::SendMessageW($hWnd, 127, 0, 0) -ne [IntPtr]::Zero);"
                                                              4⤵
                                                              • Command and Scripting Interpreter: PowerShell
                                                              • Suspicious behavior: EnumeratesProcesses
                                                              • Suspicious use of AdjustPrivilegeToken
                                                              PID:4880
                                                            • C:\Windows\System32\find.exe
                                                              find /i "True"
                                                              4⤵
                                                                PID:4864
                                                              • C:\Windows\System32\cmd.exe
                                                                C:\Windows\System32\cmd.exe /c ping -4 -n 1 updatecheck.massgrave.dev
                                                                4⤵
                                                                • System Network Configuration Discovery: Internet Connection Discovery
                                                                PID:2276
                                                                • C:\Windows\System32\PING.EXE
                                                                  ping -4 -n 1 updatecheck.massgrave.dev
                                                                  5⤵
                                                                  • System Network Configuration Discovery: Internet Connection Discovery
                                                                  • Runs ping.exe
                                                                  PID:5112
                                                              • C:\Windows\System32\cmd.exe
                                                                C:\Windows\System32\cmd.exe /S /D /c" echo "127.69.2.8" "
                                                                4⤵
                                                                  PID:1788
                                                                • C:\Windows\System32\find.exe
                                                                  find "127.69"
                                                                  4⤵
                                                                    PID:1492
                                                                  • C:\Windows\System32\cmd.exe
                                                                    C:\Windows\System32\cmd.exe /S /D /c" echo "127.69.2.8" "
                                                                    4⤵
                                                                      PID:2236
                                                                    • C:\Windows\System32\find.exe
                                                                      find "127.69.2.7"
                                                                      4⤵
                                                                        PID:4364
                                                                      • C:\Windows\System32\choice.exe
                                                                        choice /C:10 /N
                                                                        4⤵
                                                                          PID:1460

                                                                  Network

                                                                        MITRE ATT&CK Enterprise v15

                                                                        Replay Monitor

                                                                        Loading Replay Monitor...

                                                                        Downloads

                                                                        powershell.exe.log

                                                                        • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
                                                                        • Size 2KB
                                                                        • SHA256 3b0068d29ae4b20c447227fbf410aa2deedfef6220ccc3f698f3c7707c032c55
                                                                        • MD5 SHA1 SHA512

                                                                        StartupProfileData-NonInteractive

                                                                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                                                                        • Size 1KB
                                                                        • SHA256 429128efcec165baf50a81021e610933e1020f5298d865f7b30daf370fb22014
                                                                        • MD5 SHA1 SHA512

                                                                        StartupProfileData-NonInteractive

                                                                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                                                                        • Size 1KB
                                                                        • SHA256 0ea4203b826c4795e76f169fb364d512d3b03426c1e82719c6ec3b3446187f70
                                                                        • MD5 SHA1 SHA512

                                                                        __PSScriptPolicyTest_jnn0j3k1.4gc.ps1

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

                                                                        memory/3892-0-0x000002597EB80000-0x000002597EBA2000-memory.dmp