Analysis
- max time kernel
115s - max time network
116s - 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:06
Static task
static1
1 signatures
Behavioral task
behavioral1
Sample
grace.exe
Resource
win7-20240221-en
9 signatures
150 seconds
General
- Target grace.exe
- Size 699KB
- Sample240515-l43pgacd3s
- SHA256 6ab2de6935249b3eda017e140655d900bd3e8eed7a96a2bbf09707a6c4e8787a
- MD5 6cb57b7bbac238426bb2f888fbfc3ed7
- SHA1 f1440efc5419037d9d353cd39af3fefa736fb541
- SHA512 b03ac8f6b54bcd24bccc53d111a6ee9e56b0eea0845bfc8304430b510b2e980fc25baf2b39d65ca6c35058ea06b197dd8f9b01beafe6b21d41e354e0ca5b14ae
- SSDEEP 12288:ZKECAXYMjhvPie/rByY7777777777777rZkG5dFTh0e6huoo9rKNJrh5dBmmf6gs:ZtCAXYMFniyymkadFTh5quoo9rKThhdN
- MD5 SHA1 SHA512 SSDEEP
Malware Config
Extracted
Family
-
agenttesla
Credentials
-
Protocol
smtp
-
Host
mail.magna.com.pk
-
Port
587
-
Username
-
Password
Ahp6wqxfZb)D
-
Email to
Signatures
- AgentTesla
Agent Tesla is a remote access tool (RAT) written in visual basic.
- Command and Scripting Interpreter: PowerShell 1 TTPs 2 IoCs
Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.
pid Process 4816 powershell.exe 4928 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-1337824034-2731376981-3755436523-1000\Control Panel\International\Geo\Nation grace.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 22 api.ipify.org 23 api.ipify.org - Suspicious use of SetThreadContext 1 IoCs
description pid Process procid_target PID 3320 set thread context of 4516 3320 grace.exe 93 - Enumerates physical storage devices 1 TTPs
Attempts to interact with connected storage/optical drive(s).
- Creates scheduled task(s) 1 TTPs 1 IoCs
Schtasks is often used by malware for persistence or to perform post-infection execution.
pid Process 3216 schtasks.exe - Suspicious behavior: EnumeratesProcesses 8 IoCs
pid Process 3320 grace.exe 4816 powershell.exe 4928 powershell.exe 3320 grace.exe 4816 powershell.exe 4516 RegSvcs.exe 4516 RegSvcs.exe 4928 powershell.exe - Suspicious use of AdjustPrivilegeToken 4 IoCs
description pid Process Token: SeDebugPrivilege 3320 grace.exe Token: SeDebugPrivilege 4816 powershell.exe Token: SeDebugPrivilege 4928 powershell.exe Token: SeDebugPrivilege 4516 RegSvcs.exe - Suspicious use of WriteProcessMemory 17 IoCs
description pid Process procid_target PID 3320 wrote to memory of 4816 3320 grace.exe 87 PID 3320 wrote to memory of 4816 3320 grace.exe 87 PID 3320 wrote to memory of 4816 3320 grace.exe 87 PID 3320 wrote to memory of 4928 3320 grace.exe 89 PID 3320 wrote to memory of 4928 3320 grace.exe 89 PID 3320 wrote to memory of 4928 3320 grace.exe 89 PID 3320 wrote to memory of 3216 3320 grace.exe 91 PID 3320 wrote to memory of 3216 3320 grace.exe 91 PID 3320 wrote to memory of 3216 3320 grace.exe 91 PID 3320 wrote to memory of 4516 3320 grace.exe 93 PID 3320 wrote to memory of 4516 3320 grace.exe 93 PID 3320 wrote to memory of 4516 3320 grace.exe 93 PID 3320 wrote to memory of 4516 3320 grace.exe 93 PID 3320 wrote to memory of 4516 3320 grace.exe 93 PID 3320 wrote to memory of 4516 3320 grace.exe 93 PID 3320 wrote to memory of 4516 3320 grace.exe 93 PID 3320 wrote to memory of 4516 3320 grace.exe 93
Processes
-
C:\Users\Admin\AppData\Local\Temp\grace.exe"C:\Users\Admin\AppData\Local\Temp\grace.exe"1⤵
- Checks computer location settings
- Suspicious use of SetThreadContext
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:3320 -
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Add-MpPreference -ExclusionPath "C:\Users\Admin\AppData\Local\Temp\grace.exe"2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:4816
-
-
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Add-MpPreference -ExclusionPath "C:\Users\Admin\AppData\Roaming\zmSyIN.exe"2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:4928
-
-
C:\Windows\SysWOW64\schtasks.exe"C:\Windows\System32\schtasks.exe" /Create /TN "Updates\zmSyIN" /XML "C:\Users\Admin\AppData\Local\Temp\tmp81D2.tmp"2⤵
- Creates scheduled task(s)
PID:3216
-
-
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe"2⤵
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:4516
-
Network
MITRE ATT&CK Enterprise v15
Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_441i12cb.sv3.ps1
- Size 60B
- SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
- MD5 d17fe0a3f47be24a6453e9ef58c94641
- SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
- SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Temp\tmp81D2.tmp
- Size 1KB
- SHA256 ff95f7f023144ef43679e0b74298537cf6e5486df3f5f28cf7750c609a126f47
- MD5 4c5f4f46b04b7d5ed773961eb31ee287
- SHA1 a058fddbf441bf70fa292c33960b509830c2de69
- SHA512 81313b3a5ac6727ea88668d8a9bb452960457dfa66dce23e43c3c621b7d7b23939119f3f021112fa2e6fe4b179a0a2d813146ee9794a2071358aff1fadfdf6a5
- MD5 SHA1 SHA512