Analysis

  • user interaction
    yes
  • max time kernel
    149s
  • max time network
    141s
  • platform
    windows11-ltsc_2024_x64
  • resource
    win11ltsc2024-20260911-en
  • resource tags

    arch:x64arch:x86image:win11ltsc2024-20260911-enlocale:en-usos:windows11-ltsc_2024-x64systemwindows
  • submitted
    27/11/2026, 12:26

General

  • Target
    OpenCode-Infinite.bat
  • Size 577KB
  • Sample261127-pmesvsf17y
  • SHA256 3012d064c8f0b386f718d4b9bda9e7ae4691fdadcc20735a8929fb59438a13ea
  • MD5 SHA1 SHA512 SSDEEP TLSH

Malware Config

Signatures

  • Badlisted process makes network request 2 IoCs

    Network request originating from process or tool commonly abused by malware.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 7 IoCs

    Using powershell.exe command.

  • Hide Artifacts: Ignore Process Interrupts 1 TTPs 1 IoCs

    Command interpreters often include specific commands/flags that ignore errors and other hangups.

  • Executes a command shell one-liner 1 TTPs 5 IoCs

    Execution of a cmd.exe one-liner (/c "close" or /k "keep") is a common script/loader stage.

  • Suspicious behavior: EnumeratesProcesses 21 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of WriteProcessMemory 22 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\OpenCode-Infinite.bat"
    1⤵
    • Executes a command shell one-liner
    • Suspicious use of WriteProcessMemory
    PID:4912
    • C:\Windows\system32\cmd.exe
      C:\Windows\system32\cmd.exe /c chcp
      2⤵
      • Executes a command shell one-liner
      • Suspicious use of WriteProcessMemory
      PID:4816
      • C:\Windows\system32\chcp.com
        chcp
        3⤵
          PID:1576
      • C:\Windows\system32\chcp.com
        chcp 65001
        2⤵
          PID:4452
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "$l=Get-Content -LiteralPath $env:OCI_SELF; $i=[Array]::IndexOf($l,'#>>>OC_TUI_PS'); $e=[Array]::IndexOf($l,'#>>>OC_ENDTUI'); if(($i -lt 0) -or ($e -le $i)){exit 20}; Invoke-Expression (($l[($i+1)..($e-1)]) -join [Environment]::NewLine)"
          2⤵
          • Badlisted process makes network request
          • Command and Scripting Interpreter: PowerShell
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:5256
          • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe
            "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Users\Admin\AppData\Local\Temp\hfar2tt5\hfar2tt5.cmdline"
            3⤵
            • Suspicious use of WriteProcessMemory
            PID:1396
            • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cvtres.exe
              C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cvtres.exe /NOLOGO /READONLY /MACHINE:IX86 "/OUT:C:\Users\Admin\AppData\Local\Temp\RES80DE.tmp" "c:\Users\Admin\AppData\Local\Temp\hfar2tt5\CSC82EB605D7FF24AC28AE7D2931F86C916.TMP"
              4⤵
                PID:1664
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "try{ iex $env:OC_PLOAD; Set-Content -LiteralPath $env:OC_PATF -Encoding ASCII -Value @('# rotate= rotates, ask= asks first (once per 10 min), noop= never rotates. Regex alternatives joined by |, case-insensitive.', ('rotate=' + $rot), ('ask=' + $ask), ('noop=' + $nop)) }catch{}"
            2⤵
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            PID:4544
          • C:\Windows\system32\cmd.exe
            C:\Windows\system32\cmd.exe /c ver
            2⤵
            • Executes a command shell one-liner
            PID:2740
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "try{ $me=(Get-CimInstance Win32_Process -Filter ('ProcessId='+$PID)).ParentProcessId; $cl=[string](Get-CimInstance Win32_Process -Filter ('ProcessId='+$me)).CommandLine; if($cl -match '(^|\s)--allow-direct(\s|$)'){ exit 0 } }catch{}; exit 1"
            2⤵
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            PID:1420
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "try{ $pp=(Get-CimInstance Win32_Process -Filter ('ProcessId='+$PID)).ParentProcessId; $p=Get-Process -Id $pp -ErrorAction Stop; [IO.File]::WriteAllText((Join-Path $env:OC_LOCK 'owner'),([string]$pp+'|'+$p.StartTime.Ticks+'|'+$p.Path+'|'+$env:OCI_SELF)) }catch{}"
            2⤵
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            PID:4484
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "$names=@($env:OC_WN -split ' ' | Where-Object { $_ }); $f=$env:OC_WF; $to=[int]$env:OC_WTO*1000; $p=Start-Process where.exe -ArgumentList $names -NoNewWindow -PassThru -RedirectStandardOutput $f -RedirectStandardError ($f+'.err'); if(-not $p){ exit 1 }; $null=$p.Handle; if(-not $p.WaitForExit($to)){ Start-Process taskkill.exe -ArgumentList @('/T','/F','/PID',$p.Id) -WindowStyle Hidden -Wait; exit 124 }; exit 0"
            2⤵
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of WriteProcessMemory
            PID:5228
            • C:\Windows\system32\where.exe
              "C:\Windows\system32\where.exe" curl.exe
              3⤵
                PID:5304
            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "try{ $f=$env:OC_BWF; $l=@(Get-Content -LiteralPath $f -ErrorAction SilentlyContinue | Where-Object { $_ -and (Test-Path -LiteralPath $_) }); [IO.File]::WriteAllLines($f, [string[]]$l) }catch{}"
              2⤵
              • Hide Artifacts: Ignore Process Interrupts
              • Suspicious behavior: EnumeratesProcesses
              PID:3712
            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "$ProgressPreference='SilentlyContinue'; try{ [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; $r=@(Invoke-RestMethod -UseBasicParsing -Uri 'https://gitlab.com/api/v4/projects/88367491/releases?order_by=released_at&sort=desc&per_page=1' -TimeoutSec 15); if(-not $r.Count){ exit 3 }; $t=[string]$r[0].tag_name; if($t -notmatch '^v[0-9]+[.][0-9]+([.][0-9]+)?$'){ exit 3 }; $b='https://gitlab.com/jekooo/opencode-infinite/-/raw/'+$t+'/'; $sf=$env:SU_TMP+'.sums'; Invoke-WebRequest -UseBasicParsing -Uri ($b+'SHA256SUMS') -OutFile $sf -TimeoutSec 15; $h=$null; foreach($l in [IO.File]::ReadAllLines($sf)){ if($l -match '^([0-9a-fA-F]{64}) [ *]OpenCode Infinite[.]bat$'){ $h=$Matches[1] } }; Remove-Item -LiteralPath $sf -Force; if(-not $h){ exit 2 }; Invoke-WebRequest -UseBasicParsing -Uri ($b+'OpenCode%20Infinite.bat') -OutFile $env:SU_TMP -TimeoutSec 30; if((Get-FileHash -Algorithm SHA256 -LiteralPath $env:SU_TMP).Hash -ne $h){ Remove-Item -LiteralPath $env:SU_TMP -Force; exit 2 }; [IO.File]::WriteAllText($env:SU_TAG_OUT,($t+' '+$h)) }catch{ exit 1 }"
              2⤵
              • Badlisted process makes network request
              • Command and Scripting Interpreter: PowerShell
              • Suspicious behavior: EnumeratesProcesses
              PID:5180
            • C:\Windows\system32\findstr.exe
              findstr /b /c:"REM OpenCode launcher" "C:\Users\Admin\AppData\Local\opencode-infinite\upd_remote.bat"
              2⤵
                PID:5744
              • C:\Windows\system32\cmd.exe
                C:\Windows\system32\cmd.exe /c findstr /b /c:"REM OpenCode launcher (" "C:\Users\Admin\AppData\Local\Temp\OpenCode-Infinite.bat"
                2⤵
                • Executes a command shell one-liner
                • Suspicious use of WriteProcessMemory
                PID:5476
                • C:\Windows\system32\findstr.exe
                  findstr /b /c:"REM OpenCode launcher (" "C:\Users\Admin\AppData\Local\Temp\OpenCode-Infinite.bat"
                  3⤵
                    PID:2072
                • C:\Windows\system32\cmd.exe
                  C:\Windows\system32\cmd.exe /c findstr /b /c:"REM OpenCode launcher (" "C:\Users\Admin\AppData\Local\opencode-infinite\upd_remote.bat"
                  2⤵
                  • Executes a command shell one-liner
                  • Suspicious use of WriteProcessMemory
                  PID:4500
                  • C:\Windows\system32\findstr.exe
                    findstr /b /c:"REM OpenCode launcher (" "C:\Users\Admin\AppData\Local\opencode-infinite\upd_remote.bat"
                    3⤵
                      PID:2032
                  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                    "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -Command "$l=Get-Content -LiteralPath $env:OCI_SELF; $i=[Array]::IndexOf($l,'#>>>OC_TUI_PS'); $e=[Array]::IndexOf($l,'#>>>OC_ENDTUI'); if(($i -lt 0) -or ($e -le $i)){exit 20}; Invoke-Expression (($l[($i+1)..($e-1)]) -join [Environment]::NewLine)"
                    2⤵
                    • Command and Scripting Interpreter: PowerShell
                    • Suspicious behavior: EnumeratesProcesses
                    • Suspicious use of WriteProcessMemory
                    PID:4252
                    • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe
                      "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Users\Admin\AppData\Local\Temp\trl1uhmd\trl1uhmd.cmdline"
                      3⤵
                      • Suspicious use of WriteProcessMemory
                      PID:2052
                      • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cvtres.exe
                        C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cvtres.exe /NOLOGO /READONLY /MACHINE:IX86 "/OUT:C:\Users\Admin\AppData\Local\Temp\RESA87B.tmp" "c:\Users\Admin\AppData\Local\Temp\trl1uhmd\CSC8EE18E8EE28346A4B57A9133F471655.TMP"
                        4⤵
                          PID:5696

                  Network

                        MITRE ATT&CK Enterprise v16

                        Replay Monitor

                        Loading Replay Monitor...

                        Downloads

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 8952ca2f02cd97fb836fc271934b6f944b63e0a232ef6fd75fdc59b5db4e8064
                        • MD5 SHA1 SHA512 TLSH

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 f19cbd7b0b9dc7e01c6f4f31d85160d8d7903c3649e81ee6dffab9108d98a5a1
                        • MD5 SHA1 SHA512 TLSH

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 542662fb085a31b2582abef6af6faa73bbd294540f6d0a3413f97efea37934d8
                        • MD5 SHA1 SHA512 TLSH

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 2706f7a3cde18304b8eb65dc0fa6d884f09a46a78e320302afda951d20885534
                        • MD5 SHA1 SHA512 TLSH

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 513ef8a8182fbbb429ed8cf81f2383c2c88dc1c9f57c434003f85b6049979667
                        • MD5 SHA1 SHA512 TLSH

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 3b4b40bf5328da4aa63bf5083a244614f07c517a397df27c54b49bc5065d41a3
                        • MD5 SHA1 SHA512 TLSH

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 2bb68b1d0725fb875fe2004c422c78d93611c17a8711ada083b1f0040d317b57
                        • MD5 SHA1 SHA512 TLSH

                        RES80DE.tmp

                        • Path C:\Users\Admin\AppData\Local\Temp\RES80DE.tmp
                        • Size 1KB
                        • SHA256 de6d7d3f3b725b90cbe2c18f054269212e6830db5f0f9107fd6c83691873ebff
                        • MD5 SHA1 SHA512 TLSH

                        RESA87B.tmp

                        • Path C:\Users\Admin\AppData\Local\Temp\RESA87B.tmp
                        • Size 1KB
                        • SHA256 1378c15c0bff020766756812e015acea20af2ea430a16a640ece0b1b3bc26abf
                        • MD5 SHA1 SHA512 TLSH

                        __PSScriptPolicyTest_qjjymnqa.o3n.psm1

                        • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_qjjymnqa.o3n.psm1
                        • Size 60B
                        • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
                        • MD5 SHA1 SHA512 TLSH

                        hfar2tt5.dll

                        • Path C:\Users\Admin\AppData\Local\Temp\hfar2tt5\hfar2tt5.dll
                        • Size 3KB
                        • SHA256 78b7783b374caf71acb7c2de878169042ca3aa4d160482423613e962437cf992
                        • MD5 SHA1 SHA512 TLSH

                        oc_where_1433225150.txt

                        • Path C:\Users\Admin\AppData\Local\Temp\oc_where_1433225150.txt
                        • Size 30B
                        • SHA256 3b33f5b322b2d9449e8b63a1c6220efd1f0d12e9a476007fabb15a5feaa18799
                        • MD5 SHA1 SHA512

                        trl1uhmd.dll

                        • Path C:\Users\Admin\AppData\Local\Temp\trl1uhmd\trl1uhmd.dll
                        • Size 3KB
                        • SHA256 ab273d7b0f1861b597a5fdd0076b0f0b3eaec64f84cf8e0717e949471fc16a1b
                        • MD5 SHA1 SHA512 TLSH

                        launcher.log

                        • Path C:\Users\Admin\AppData\Local\opencode-infinite\launcher.log
                        • Size 712B
                        • SHA256 d5efdb29704eaeef68155dd579fa79d2d18453e693bb756c5416f0bedd18260d
                        • MD5 SHA1 SHA512 TLSH

                        launcher.log

                        • Path C:\Users\Admin\AppData\Local\opencode-infinite\launcher.log
                        • Size 227B
                        • SHA256 a321656ed0a7cef834a88ccec0dc289d2c636e6ef00913acddcb5babb94ec024
                        • MD5 SHA1 SHA512 TLSH

                        su_tag.tmp

                        • Path C:\Users\Admin\AppData\Local\opencode-infinite\su_tag.tmp
                        • Size 73B
                        • SHA256 7d1f0c573448b811f8c4118df9b5889f7dd572aa44eed9752f2f6468b71b3fb8
                        • MD5 SHA1 SHA512 TLSH

                        themes.txt

                        • Path C:\Users\Admin\AppData\Local\opencode-infinite\themes\themes.txt
                        • Size 566B
                        • SHA256 4fb303ca138cac70b6f0deac97a9f549176e2aaf4e3ace411e00d1b5d228f4af
                        • MD5 SHA1 SHA512 TLSH

                        themes.txt.ver

                        • Path C:\Users\Admin\AppData\Local\opencode-infinite\themes\themes.txt.ver
                        • Size 1B
                        • SHA256 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b
                        • MD5 SHA1 SHA512

                        upd_remote.bat

                        • Path C:\Users\Admin\AppData\Local\opencode-infinite\upd_remote.bat
                        • Size 577KB
                        • SHA256 3012d064c8f0b386f718d4b9bda9e7ae4691fdadcc20735a8929fb59438a13ea
                        • MD5 SHA1 SHA512 SSDEEP TLSH

                        CSC82EB605D7FF24AC28AE7D2931F86C916.TMP

                        • Path \??\c:\Users\Admin\AppData\Local\Temp\hfar2tt5\CSC82EB605D7FF24AC28AE7D2931F86C916.TMP
                        • Size 652B
                        • SHA256 b793fb1e15468b6dc7cc94b35f653fca63c4de4abd5d261d0d15a8249ef8f46c
                        • MD5 SHA1 SHA512 TLSH

                        hfar2tt5.0.cs

                        • Path \??\c:\Users\Admin\AppData\Local\Temp\hfar2tt5\hfar2tt5.0.cs
                        • Size 368B
                        • SHA256 a05d57ce035e19c5d936baa1d6b476896ea9f006b95bdfec9976237d026eb42f
                        • MD5 SHA1 SHA512 TLSH

                        hfar2tt5.cmdline

                        • Path \??\c:\Users\Admin\AppData\Local\Temp\hfar2tt5\hfar2tt5.cmdline
                        • Size 369B
                        • SHA256 a918b366e843c1426af6f2ac4792a0545044629f5b30de243a9a5f2977c4b8da
                        • MD5 SHA1 SHA512 TLSH

                        CSC8EE18E8EE28346A4B57A9133F471655.TMP

                        • Path \??\c:\Users\Admin\AppData\Local\Temp\trl1uhmd\CSC8EE18E8EE28346A4B57A9133F471655.TMP
                        • Size 652B
                        • SHA256 43100f9ecadc866d68f076a2169438b9fbbe477a24bacbee41ed9808bdef9725
                        • MD5 SHA1 SHA512 TLSH

                        trl1uhmd.cmdline

                        • Path \??\c:\Users\Admin\AppData\Local\Temp\trl1uhmd\trl1uhmd.cmdline
                        • Size 369B
                        • SHA256 2e0d4e0d083a7c1da65bea2fc1c64831b0c45fffee6d1a6e9105c701412419d5
                        • MD5 SHA1 SHA512 TLSH

                        memory/1420-56-0x00000242F6EB0000-0x00000242F6EBA000-memory.dmp

                        memory/1420-58-0x00000242F7120000-0x00000242F7144000-memory.dmp

                        memory/1420-55-0x00000242F6EE0000-0x00000242F6F92000-memory.dmp

                        memory/1420-54-0x00000242F6EC0000-0x00000242F6EDE000-memory.dmp

                        memory/1420-57-0x00000242F7120000-0x00000242F714A000-memory.dmp

                        memory/4252-119-0x00000239C94A0000-0x00000239C94A8000-memory.dmp

                        memory/5180-86-0x000002589A220000-0x000002589A748000-memory.dmp

                        memory/5180-85-0x00000258FFC50000-0x00000258FFE12000-memory.dmp

                        memory/5256-0-0x00007FFD6AFFF000-0x00007FFD6B000000-memory.dmp

                        memory/5256-38-0x000002A72E880000-0x000002A72E888000-memory.dmp

                        memory/5256-8-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-7-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-6-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-11-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-5-0x000002A72E7A0000-0x000002A72E7C2000-memory.dmp

                        memory/5256-9-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-41-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-13-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-12-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-2-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-18-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-17-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-16-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-1-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-10-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-15-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp

                        memory/5256-14-0x00007FFD6AE70000-0x00007FFD6B814000-memory.dmp