SOC Prime Bias: High

16 Jul 2026 13:59 UTC

Inside a Threat Hunting Case Study on Scattered Spider

Author Photo
SOC Prime Team linkedin icon Follow
Inside a Threat Hunting Case Study on Scattered Spider
shield icon

Detection stack

  • AIDR
  • Alert
  • ETL
  • Query

Summary

Scattered Spider is a highly capable threat actor that relies on aggressive social engineering to bypass multifactor authentication and secure initial access. Once inside a target environment, the group often deploys legitimate Remote Monitoring and Management tools such as AnyDesk to maintain access and control. Its operations combine trusted administrative software with offensive utilities to move laterally across both cloud and on-premises systems.

Investigation

The investigation centers on detecting silent installation of RMM software, with a particular focus on AnyDesk deployed through command-line arguments. Analysts used Splunk and Windows Event logs to search for a distinct pattern involving AnyDesk, silent installation flags, and Windows-specific startup parameters. The hunt emphasizes behavioral indicators of automated deployment rather than reliance on static file hashes.

Mitigation

Organizations should enforce strict application control policies to limit execution of unauthorized RMM tools. Strengthening employee awareness around advanced social engineering and help-desk impersonation is also critical. In addition, monitoring for unusual command-line arguments tied to software installation can help identify unauthorized deployment activity.

Response

If a suspicious silent installation is detected, security teams should isolate the affected endpoint immediately to prevent further lateral movement. Investigators should determine whether the installation was part of approved IT activity or an unauthorized action. If confirmed as malicious, a full forensic investigation should be conducted to assess the extent of compromise and identify additional persistence mechanisms such as Brute Ratel.

Attack Flow

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 to the workstation and seeks to establish a persistent remote access channel. To avoid manual interaction and user prompts, they attempt to deploy AnyDesk using its silent installation flags. The goal is to use the --silent and --start-with-Windows arguments to ensure the tool installs in the background and survives a reboot. This action is intended to trigger the specific command-line pattern defined in the detection rule.

  • Regression Test Script:

    # Simulation of AnyDesk Silent Installation
    # This script simulates the presence of an AnyDesk binary and executes it with the target flags.
    
    $simulationPath = "$env:TEMPAnyDesk.exe"
    
    # Create a dummy file to simulate the AnyDesk executable
    New-Item -Path $simulationPath -ItemType File -Force | Out-Null
    
    Write-Host "[+] Simulating AnyDesk installation..." -ForegroundColor Cyan
    
    # Execute the dummy file with the specific command line arguments to trigger the rule
    # Note: In a real environment, the .exe would actually run. 
    # Here we use Start-Process to ensure the command line is captured by Windows Event Logs.
    Start-Process -FilePath "cmd.exe" -ArgumentList "/c echo Simulating AnyDesk --silent --start-with-Windows" -Wait
    
    # To ensure the rule sees the exact string in a process creation event:
    Start-Process -FilePath $simulationPath -ArgumentList "--silent", "--start-with-Windows" -ErrorAction SilentlyContinue
    
    Write-Host "[+] Simulation command executed." -ForegroundColor Green
  • Cleanup Commands:

    # Remove the dummy AnyDesk file
    Remove-Item -Path "$env:TEMPAnyDesk.exe" -Force -ErrorAction SilentlyContinue
    Write-Host "[+] Cleanup complete." -ForegroundColor Yellow