SOC Prime Bias: Critical

24 Jun 2026 06:53 UTC

How Sinobi Ransomware Encrypts Files and Destroys Backups

Author Photo
SOC Prime Team linkedin icon Follow
How Sinobi Ransomware Encrypts Files and Destroys Backups
shield icon

Detection stack

  • AIDR
  • Alert
  • ETL
  • Query

Summary

Sinobi is a ransomware-as-a-service strain, likely a rebranded version of Lynx ransomware, first observed in July 2025. It uses Curve25519 together with AES-128-CTR for file encryption and applies advanced backup destruction techniques, including abuse of DeviceIoControl to remove Volume Shadow Copies. The malware also empties the Recycle Bin and leverages the Restart Manager API to close processes that keep target files open.

Investigation

The investigation described an intrusion in which an affiliate used stolen credentials from a third-party managed service provider to access a SonicWall SSL VPN. After gaining entry, the attacker escalated privileges by creating a local and domain administrator account named Assistance. The operator then disabled security services by changing binary paths and used RClone to exfiltrate data before launching encryption.

Mitigation

Defenders should secure VPN infrastructure with multi-factor authentication and closely review third-party MSP access. Organizations should also monitor for unauthorized creation of administrative accounts and suspicious service configuration changes, especially altered binary paths. Protecting Volume Shadow Copies and detecting misuse of the Restart Manager API can also help interrupt the ransomware chain.

Response

If Sinobi activity is detected, responders should immediately isolate compromised accounts, especially privileged accounts such as Assistance. Unauthorized RClone processes should be terminated, and all service changes in the Windows Service Control Manager should be investigated. Offline backups should be verified and prepared for recovery, since Sinobi is designed to destroy online shadow copies and Recycle Bin contents.

"graph TB %% Class Definitions Section classDef initial_access fill:#f96,stroke:#333,stroke-width:2px classDef escalation fill:#f9f,stroke:#333,stroke-width:2px classDef persistence fill:#bbf,stroke:#333,stroke-width:2px classDef defense_impairment fill:#dfd,stroke:#333,stroke-width:2px classDef collection fill:#ffd,stroke:#333,stroke-width:2px classDef impact fill:#f66,stroke:#333,stroke-width:2px %% Initial Access Section action_initial_access["<b>Action</b> – <b>T1078 Valid Accounts</b><br/>Attacker uses stolen credentials from a third-party MSP<br/>to authenticate via SonicWall SSL VPN appliance."] class action_initial_access initial_access %% Privilege Escalation and Persistence Section action_priv_esc["<b>Action</b> – <b>T1098.007 Account Manipulation: Additional Local or Domain Groups</b><br/>Creation of secondary administrative account named Assistance<br/>and promotion to local and domain administrator groups."] class action_priv_esc escalation action_persistence_power["<b>Action</b> – <b>T1653 Power Settings</b><br/>Rewriting Carbon Black security service binary path<br/>to point to ransomware payload and forcing reboot."] class action_persistence_power persistence %% Defense Impairment Section action_def_impair_tool["<b>Action</b> – <b>T1685 Disable or Modify Tools</b><br/>Targeting and disabling security processes."] class action_def_impair_tool defense_impairment action_def_impair_svc["<b>Action</b> – <b>T1489 Service Stop</b><br/>Stopping SQL and Veeam services to unlock files for encryption."] class action_def_impair_svc defense_impairment %% Collection Section action_collection_rclone["<b>Action</b> – <b>T1560.001 Archive Collected Data: Archive via Utility</b><br/>Using rclone.exe to sync business-relevant data<br/>to a remote destination."] class action_collection_rclone collection %% Impact Section action_inhibit_recovery["<b>Action</b> – <b>T1490 Inhibit System Recovery</b><br/>Destruction of Volume Shadow Copies via DeviceIoControl<br/>and emptying the Recycle Bin via SHEmptyRecycleBinA."] class action_inhibit_recovery impact action_encryption["<b>Action</b> – <b>T1486 Data Encrypted for Impact</b><br/>Encryption using Curve-25519 and AES-128-CTR.<br/>Files appended with .SINOBI extension.<br/>Ransom note README.txt dropped."] class action_encryption impact %% Connections action_initial_access –>|leads_to| action_priv_esc action_priv_esc –>|leads_to| action_persistence_power action_persistence_power –>|enables| action_def_impair_tool action_persistence_power –>|enables| action_def_impair_svc action_def_impair_tool –>|precedes| action_collection_rclone action_def_impair_svc –>|precedes| action_collection_rclone action_collection_rclone –>|leads_to| action_inhibit_recovery action_inhibit_recovery –>|leads_to| action_encryption "

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 and is now executing the ransomware payload. To maximize impact and demand, the adversary’s goal is to encrypt user documents and leave instructions. The script will simulate this by: 1) Creating a dummy document, 2) “Encrypting” it by renaming it to document.pdf.SINOBI, 3) Writing a ransom note named README.txt, and 4) Writing a file containing the specific metadata curve25519_pubkey to simulate the ransomware’s encryption footer.

  • Regression Test Script:

    # Sinobi Ransomware Simulation Script
    $targetDir = "$env:USERPROFILEDesktopSinobi_Sim"
    if (!(Test-Path $targetDir)) { New-Item -Path $targetDir -ItemType Directory }
    
    Write-Host "[+] Simulating file encryption..."
    $originalFile = "$targetDirimportant_data.pdf"
    "Sensitive Data Content" | Out-File -FilePath $originalFile
    
    # Trigger selection_ext and selection_ransom
    Rename-Item -Path $originalFile -NewName "important_data.pdf.SINOBI"
    "YOUR FILES ARE ENCRYPTED! PAY BITCOIN TO..." | Out-File -FilePath "$targetDirREADME.txt"
    
    Write-Host "[+] Simulating encryption metadata (selection_footer)..."
    # Trigger selection_footer
    $metadataFile = "$targetDirmetadata.dat"
    "Encryption_mode: AES256; curve25519_pubkey: 0xABC123" | Out-File -FilePath $metadataFile
    
    Write-Host "[!] Simulation Complete. Check SIEM for alerts."
  • Cleanup Commands:

    Remove-Item -Path "$env:USERPROFILEDesktopSinobi_Sim" -Recurse -Force
    Write-Host "[+] Cleanup complete."