CNCMachineRMS Emerges at the End of a BabaDeda Attack Chain
Detection stack
- AIDR
- Alert
- ETL
- Query
Summary
The investigation examines a sophisticated malware loader chain initiated through a ClickFix lure. The attack abuses the legitimate IBM SPSS IDE to execute multiple decoy DLLs before ultimately deploying a custom Remote Access Trojan (RAT) called CNCMachineRMS. The implant features a proprietary scripting language, extensive obfuscation, and broad remote administration capabilities.
Investigation
Researchers traced the multi-stage loader chain from the initial ClickFix lure through the legitimate IBM SPSS WinWrapIDE.exe process. The investigation uncovered COM object abuse used to trigger four decoy DLLs, with the final loader leveraging the EnumTimeFormatsEx API as a shellcode trampoline. The last stage was identified as CNCMachineRMS, distinguished by its unique configuration format and custom task execution engine.
Mitigation
Organizations should monitor for suspicious COM object activity and unexpected files created within %TEMP% and %LOCALAPPDATA% directories. Known C2 domains and IP addresses should be blocked, while defenders should watch for unauthorized local account creation and additions to privileged groups. Scheduled tasks should also be inspected for unusual service accounts or unexpected high-privilege execution.
Response
If CNCMachineRMS is detected, organizations should treat the compromise as a confirmed hands-on-keyboard intrusion. The affected host should be isolated immediately to limit lateral movement and further data exfiltration. Responders should conduct a comprehensive forensic investigation to determine attacker dwell time and establish whether additional payloads were deployed for data theft.
Attack Flow
Detections
The Possibility of Execution Through Hidden PowerShell Command Lines (via cmdline)
Proof of Value
Suspicious Binary / Scripts in Autostart Location (via file_event)
Proof of Value
IOCs (HashSha256) to detect: CNCMachineRMS: The Undocumented RAT At the End of a BabaDeda Chain
Proof of Value
IOCs (SourceIP) to detect: CNCMachineRMS: The Undocumented RAT At the End of a BabaDeda Chain
Proof of Value
IOCs (DestinationIP) to detect: CNCMachineRMS: The Undocumented RAT At the End of a BabaDeda Chain
Proof of Value
Outbound Connection to CNC Machine RMS Implant [Windows Network Connection]
Proof of Value
Detection of IBM SPSS WinWrap Basic IDE Misuse via Scheduled Task or Run Key [Windows Process Creation]
Proof of Value
Simulation Execution
Prerequisite: The Telemetry & Baseline Pre-flight Check must have passed.
Rationale: This section details the precise execution of the adversary technique (TTP) designed to trigger the detection rule. The commands and narrative MUST directly reflect the TTPs identified and aim to generate the exact telemetry expected by the detection logic. Abstract or unrelated examples will lead to misdiagnosis.
-
Attack Narrative & Commands: The adversary has gained initial access and seeks to establish persistence that is difficult to detect. Instead of using a known malicious binary, they identify that the
IBM SPSS WinWrap Basic IDEis installed on the system. They decide to abuse a Registry Run Key to execute a malicious command through this legitimate IDE. The adversary will modify theHKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunkey, creating a value that points to the WinWrap IDE with a payload passed as an argument. This action triggers Event ID 4657 with the ‘IBM SPSS WinWrap Basic IDE’ string in the registry object path/name. -
Regression Test Script:
# Simulation script to trigger detection of IBM SPSS WinWrap Basic IDE misuse via Registry $registryPath = "HKCU:SoftwareMicrosoftWindowsCurrentVersionRun" $name = "MaliciousWinWrapTask" $value = "C:Program FilesIBMSPSSWinWrapBasicwrb.exe /execute 'C:UsersPublicmalicious.vbs'" Write-Host "[+] Simulating registry modification for IBM SPSS WinWrap Basic IDE..." -ForegroundColor Cyan # This action should trigger Event ID 4657 containing the targeted string New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType String -Force Write-Host "[+] Simulation command executed. Check SIEM for Event ID 4657." -ForegroundColor Green -
Cleanup Commands:
# Cleanup the registry key created during simulation $registryPath = "HKCU:SoftwareMicrosoftWindowsCurrentVersionRun" $name = "MaliciousWinWrapTask" if (Get-ItemProperty -Path $registryPath -Name $name -ErrorAction SilentlyContinue) { Remove-ItemProperty -Path $registryPath -Name $name Write-Host "[+] Cleanup successful: Registry key removed." -ForegroundColor Green } else { Write-Host "[-] Cleanup failed: Key not found." -ForegroundColor Red }