Analysis
- max time kernel
116s - max time network
135s - platform
windows10-2004_x64 - resource
win10v2004-20240802-en - resource tags
arch:x64arch:x86image:win10v2004-20240802-enlocale:en-usos:windows10-2004-x64system - submitted
09/08/2024, 09:09
Static task
static1
Behavioral task
behavioral1
Sample
sahost.exe
Resource
win7-20240705-en
Behavioral task
behavioral2
Sample
sahost.exe
Resource
win10v2004-20240802-en
General
- Target sahost.exe
- Size 635KB
- Sample240809-k4h5dssemf
- SHA256 d9863b7b710599bc2b308a0b78970da8c42ee5bc6d3dcda05c2de52a88125726
- MD5 92e7773bd2be4ff8dd137c8cfdef08c3
- SHA1 dbcf1772fc6d31aa65b6a481662c808880ce5611
- SHA512 7d3caa57f6585ffe44d3418df60f56e0ebe3937362788f5b509b3ac242852fd01aa833818d01130d192aed975783b3f3036c5e29a2d2a2deb84dff2b49d0b159
- SSDEEP 12288:UPH4AnF0/ZDVliwXM0QxetWs2wqH4qRN7icI+bqs2kC:UAkEN5XMHxjYgwbo
- MD5 SHA1 SHA512 SSDEEP
Malware Config
Extracted
-
snakekeylogger
-
Protocol
smtp
-
Host
us2.smtp.mailhostbox.com
-
Port
587
-
Username
-
Password
Password: )NYyffR0 1
-
Email to
Signatures
- Snake Keylogger
Keylogger and Infostealer first seen in November 2020.
- Snake Keylogger payload 1 IoCs
resource yara_rule behavioral2/memory/2204-24-0x0000000000400000-0x0000000000426000-memory.dmp family_snakekeylogger - Credentials from Password Stores: Credentials from Web Browsers 1 TTPs
Malicious Access or copy of Web Browser Credential store.
- Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs
Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.
pid Process 4264 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-2392887640-1187051047-2909758433-1000\Control Panel\International\Geo\Nation sahost.exe - 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.
- Accesses Microsoft Outlook profiles 1 TTPs 3 IoCs
description ioc Process Key opened \REGISTRY\USER\S-1-5-21-2392887640-1187051047-2909758433-1000\Software\Microsoft\Office\15.0\Outlook\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676 sahost.exe Key opened \REGISTRY\USER\S-1-5-21-2392887640-1187051047-2909758433-1000\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676 sahost.exe Key opened \REGISTRY\USER\S-1-5-21-2392887640-1187051047-2909758433-1000\Software\Microsoft\Office\16.0\Outlook\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676 sahost.exe - Looks up external IP address via web service 1 IoCs
Uses a legitimate IP lookup service to find the infected system's external IP.
flow ioc 17 checkip.dyndns.org - Suspicious use of SetThreadContext 1 IoCs
description pid Process procid_target PID 1576 set thread context of 2204 1576 sahost.exe 92 - Enumerates physical storage devices 1 TTPs
Attempts to interact with connected storage/optical drive(s).
- System Location Discovery: System Language Discovery 1 TTPs 4 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 sahost.exe Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language sahost.exe Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language powershell.exe Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language schtasks.exe - Scheduled Task/Job: Scheduled Task 1 TTPs 1 IoCs
Schtasks is often used by malware for persistence or to perform post-infection execution.
pid Process 4240 schtasks.exe - Suspicious behavior: EnumeratesProcesses 8 IoCs
pid Process 4264 powershell.exe 1576 sahost.exe 1576 sahost.exe 1576 sahost.exe 1576 sahost.exe 2204 sahost.exe 4264 powershell.exe 2204 sahost.exe - Suspicious use of AdjustPrivilegeToken 3 IoCs
description pid Process Token: SeDebugPrivilege 4264 powershell.exe Token: SeDebugPrivilege 1576 sahost.exe Token: SeDebugPrivilege 2204 sahost.exe - Suspicious use of WriteProcessMemory 20 IoCs
description pid Process procid_target PID 1576 wrote to memory of 4264 1576 sahost.exe 86 PID 1576 wrote to memory of 4264 1576 sahost.exe 86 PID 1576 wrote to memory of 4264 1576 sahost.exe 86 PID 1576 wrote to memory of 4240 1576 sahost.exe 88 PID 1576 wrote to memory of 4240 1576 sahost.exe 88 PID 1576 wrote to memory of 4240 1576 sahost.exe 88 PID 1576 wrote to memory of 724 1576 sahost.exe 90 PID 1576 wrote to memory of 724 1576 sahost.exe 90 PID 1576 wrote to memory of 724 1576 sahost.exe 90 PID 1576 wrote to memory of 2616 1576 sahost.exe 91 PID 1576 wrote to memory of 2616 1576 sahost.exe 91 PID 1576 wrote to memory of 2616 1576 sahost.exe 91 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 PID 1576 wrote to memory of 2204 1576 sahost.exe 92 - outlook_office_path 1 IoCs
description ioc Process Key opened \REGISTRY\USER\S-1-5-21-2392887640-1187051047-2909758433-1000\Software\Microsoft\Office\16.0\Outlook\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676 sahost.exe - outlook_win_path 1 IoCs
description ioc Process Key opened \REGISTRY\USER\S-1-5-21-2392887640-1187051047-2909758433-1000\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676 sahost.exe
Processes
-
C:\Users\Admin\AppData\Local\Temp\sahost.exe"C:\Users\Admin\AppData\Local\Temp\sahost.exe"1⤵
- Checks computer location settings
- Suspicious use of SetThreadContext
- System Location Discovery: System Language Discovery
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:1576 -
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Add-MpPreference -ExclusionPath "C:\Users\Admin\AppData\Roaming\gApdcwqSVchd.exe"2⤵
- Command and Scripting Interpreter: PowerShell
- System Location Discovery: System Language Discovery
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:4264
-
-
C:\Windows\SysWOW64\schtasks.exe"C:\Windows\System32\schtasks.exe" /Create /TN "Updates\gApdcwqSVchd" /XML "C:\Users\Admin\AppData\Local\Temp\tmpD2D1.tmp"2⤵
- System Location Discovery: System Language Discovery
- Scheduled Task/Job: Scheduled Task
PID:4240
-
-
C:\Users\Admin\AppData\Local\Temp\sahost.exe"C:\Users\Admin\AppData\Local\Temp\sahost.exe"2⤵PID:724
-
-
C:\Users\Admin\AppData\Local\Temp\sahost.exe"C:\Users\Admin\AppData\Local\Temp\sahost.exe"2⤵PID:2616
-
-
C:\Users\Admin\AppData\Local\Temp\sahost.exe"C:\Users\Admin\AppData\Local\Temp\sahost.exe"2⤵
- Accesses Microsoft Outlook profiles
- System Location Discovery: System Language Discovery
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- outlook_office_path
- outlook_win_path
PID:2204
-
Network
MITRE ATT&CK Enterprise v15
Execution
Command and Scripting Interpreter
1PowerShell
1Scheduled Task/Job
1Scheduled Task
1Credential Access
Credentials from Password Stores
1Credentials from Web Browsers
1Unsecured Credentials
2Credentials In Files
2Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_aqc2tlii.ref.ps1
- Size 60B
- SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
- MD5 d17fe0a3f47be24a6453e9ef58c94641
- SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
- SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Temp\tmpD2D1.tmp
- Size 1KB
- SHA256 7e39a927c235457588d243e995cda3b4dbf9b28b23c552a580d3d7a59c60f80e
- MD5 ab9c3351019c36f04f0735bbb58894e9
- SHA1 3e6719f6bf2a984dbca0e2b23fe507009b929025
- SHA512 325f4ab2d58af0bdafc40000bba187e083bd7ecd7f7a28b5fadc0ce182dd4793b3f45d38af330ad60f05c96d43809f409749ee151b9285a30b2b607d33e1e20d
- MD5 SHA1 SHA512