Executive Summary
A worker that carries no separate payload
This sample does not drop a distinct piece of malware into other processes. It copies itself. On launch it grants itself SeDebugPrivilege, walks every running process, sorts them by whether their token belongs to NT AUTHORITY or an ordinary user, and injects a full copy of its own executable image into the ones it can reach, SYSTEM-owned processes first. We watched this succeed against a real process on the analysis VM.
It hides roughly fifty API calls, threading, file I/O, ARP-table enumeration, from static import-table scanners by resolving them at runtime with XOR-decrypted names. It drops registry and Startup-folder persistence, then builds a kill-script that we watched it decrypt live: delete every shadow copy, wipe common backup file types, stop around 150 security and backup services, and force-kill around 40 office, database, and mail applications.
Breaking on the routine that assembles its ransom note gave us the complete plaintext note and, sitting right next to it in the same decrypted memory, the embedded RSA-2048 public key. We stopped the debugger once the process had grown past sixty threads, judging that we already had what mattered. That call came slightly too late: the encryption routine had already reached real files, including the analysis tooling's own directory. Tracing that routine after the fact, once the VM had already been reverted, is section 06 below.
Section 02 · Defense Evasion
Fifty API calls the import table never shows
A dedicated routine, FUN_140005b10, resolves roughly fifty additional Windows API functions at runtime rather than importing them statically: CreateThread, WaitForMultipleObjects, GetIpNetTable, MoveFileExW, FindFirstFileExA/FindNextFileA, and more. None of them appear in the sample's PE import table.
The decoder that recovers each function name is deliberately convoluted, a self-correcting multiply-and-add sequence that produces array indices, while the actual XOR key bytes come from a short, mostly static key string. The complexity buys nothing cryptographically; it exists to slow down whoever is reading the decompiled code.
An import-table-only scan of this binary would miss the sample's threading and network-topology-enumeration capability entirely, even though both are central to how it spreads. This is the sample's real evasion mechanism, not the routine IsDebuggerPresent/CPUID checks that Ghidra's automated anti-analysis scan also flagged, those turned out to be ordinary MSVC CRT boilerplate on inspection.
Section 03 · Self-Injection
Four passes, SYSTEM-owned processes first
Before touching anything else, the sample enumerates every running process with Toolhelp32Snapshot, opens each token, and reads the owning SID's domain. Anything under NT AUTHORITY gets one classification; everything else gets another. It then runs four full passes over that list, deliberately targeting SYSTEM-owned processes first.
Breaking on the injection routine captured a real target process ID, 0xDE8, from the debugger. Stepping to the return showed RAX = 5: the full OpenProcess → VirtualAllocEx → WriteProcessMemory → CreateRemoteThread chain succeeded against a live process. We removed the breakpoint after this one confirmed hit rather than let it fire for every process on the box.
FUN_140001ad0, stays valid as the new thread's start address once the copy lands at the identical place in the target process.Section 04 · Live Detonation
Watching it inject itself, then lose count of its own threads
Unlike a hands-on-keyboard debugging session, this run was AI-driven end to end: Claude Code set eight breakpoints across the chain identified statically, then drove x64dbg directly through an MCP tool connection, deciding when to step, when to read memory, and when to stop. The analyst authorized the detonation up front, in an isolated, snapshot-backed VM, and reviewed the output afterward, but did not operate the debugger by hand during the run itself.
Section 05 · Ransom Note & Crypto
The note, and the key sitting right next to it
Breaking on the note-assembly routine, letting it finish decrypting, and reading its output buffer directly from memory recovered the complete plaintext:
Your network has been penetrated. All files on each host in the network have been encrypted with a strong algorithm. Backups were either encrypted or deleted or backup disks were formatted. Shadow copies also removed, so F8 or any other methods may damage encrypted data but not recover. We exclusively have decryption software for your situation No decryption software is available in the public. DO NOT RESET OR SHUTDOWN - files may be damaged. DO NOT RENAME OR MOVE the encrypted and readme files. DO NOT DELETE readme files. This may lead to the impossibility of recovery of the certain files. To get info (decrypt your files) contact us at WayneEvenson@protonmail.com or WayneEvenson@tutanota.com BTC wallet: 14hVKm7Ft2rxDBFTNkkRC3kGstMGp2A4hk Ryuk No system is safe
Sitting in the same decrypted region, immediately after the note, was a Microsoft CryptoAPI public-key structure:
| Offset | Bytes | Field | Decoded |
|---|---|---|---|
| +0x00 | 06 | bType | PUBLICKEYBLOB |
| +0x04 | 00 A4 00 00 | aiKeyAlg | CALG_RSA_KEYX (0x0000A400) |
| +0x08 | 52 53 41 31 | magic | "RSA1" |
| +0x0C | 00 08 00 00 | bitlen | 2048 |
| +0x10 | 01 00 01 00 | pubexp | 65537 (0x10001) |
| +0x14 | 3B 3D F3 97 … | modulus | 256 bytes, little-endian |
Both the note and this 276-byte key blob were read directly out of live process memory, not reconstructed from static strings. The provider name string, Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype), was sitting in the same region, confirming the sample asks Windows's own legacy CryptoAPI for its cryptography rather than shipping a custom implementation.
Section 06 · The Encryption Routine
Found after the VM was already reverted
The debug session ended before the actual file-encrypt loop was ever caught under a breakpoint. Every document in this case flagged that as the open question. It was resolved afterward, statically, in a fresh Ghidra session, by following the call graph forward from the recursive directory walker rather than by searching for crypto-related strings, since the relevant names are resolved dynamically and never appear as plaintext imports.
CreateThread call per qualifying file, drawn from a fixed 250-slot pool, each thread running straight through to the encryption routine.// FUN_140004560, recursive directory walk skip folders: AV vendors, browsers, recycle bin skip files: RyukReadMe.txt, UNIQUE_ID_DO_NOT_REMOVE for each remaining file: CreateThread(NULL, 0, FUN_140006aa0, work_item) // pool of 250 slots // FUN_140006aa0, thin thread wrapper FUN_140003a30(path, key_material, wrap_key, should_encrypt_flag)
FUN_140003a30 is the encryption routine itself:
- Opens the file read-write, skips anything at or under 24 bytes.
- For files over roughly 290 bytes, reads the last 25 bytes and scans for the literal sequence
H E R M E S. If found, the file is skipped as already processed, this is the exact mechanism behind the marker found on disk. - Generates a key with a call shaped exactly like
CryptGenKey(hProv, 0x6610, CRYPT_EXPORTABLE, &hKey).0x6610is the documented Windows constantCALG_AES_256, a fresh AES-256 key per file. - Loops the file in roughly 1MB chunks: seek, read, a call shaped like
CryptEncrypt, seek back, write. Encrypted in place, no separate output file. - Builds the literal string
HERMESdirectly from packed bytes in the decompile, then writes it to the file, appending size-encoded fields on larger files. - Wraps the AES key with the RSA-2048 public key from section 05 via a call shaped like
CryptExportKey, and appends that blob too.
This trace was done after the fact, once the debug session had already ended and the VM snapshot had already been reverted. Unlike every other finding in this case, no breakpoint confirmed this specific function running. Confidence is high, the 0x6610 constant and the literal tag construction are unambiguous, but it carries this caveat rather than being live-confirmed like the rest of the timeline.
Section 07 · Scorecard
What was confirmed, and what wasn't
| Capability | Present | Evidence |
|---|---|---|
| Privilege escalation, SeDebugPrivilege | Yes | RAX=1 on return, live |
| Process self-injection | Yes | RAX=5 against live PID 0xDE8 |
| Persistence, registry Run key | Yes | value name svchos, decompiled |
| Defense evasion, dynamic API resolution | Yes | ~50 APIs absent from the static import table |
| Shadow-copy and backup destruction | Yes | decrypted and read live |
| Mass service and process termination | Yes | ~150 services, ~40 processes in the decrypted list |
| Lateral movement, ARP-driven self-copy | Attempted | 60+ worker threads observed, exact success not confirmed |
| Ransom note and RSA key | Yes | recovered directly from live memory |
| File encryption, AES-256 + RSA wrap | Yes | routine identified statically; real-world effect confirmed post-session |
| C2 / exfiltration | Not observed | ransom note gives out-of-band contact only |
Section 08 · ATT&CK Mapping
Techniques observed
| Tactic | Technique | ID | Source |
|---|---|---|---|
| Privilege Escalation | Access Token Manipulation, SeDebugPrivilege | T1134 / T1548 | live |
| Defense Evasion | Process Injection: PE Injection | T1055.002 | live |
| Defense Evasion | Native API, dynamic resolution | T1106 | static |
| Defense Evasion | Obfuscated Files or Information | T1027 | static |
| Defense Evasion | Deobfuscate/Decode Files or Information | T1140 | live |
| Persistence | Boot or Logon Autostart Execution | T1547.001 | static |
| Discovery | Process Discovery | T1057 | live |
| Impact | Inhibit System Recovery | T1490 | live |
| Impact | Service Stop | T1489 | static, expanded live list |
| Impact | Data Encrypted for Impact | T1486 | confirmed executed and identified |
| Impact | Financial Theft / Ransom Demand | T1657 | live |
| Lateral Movement | Lateral Tool Transfer | T1570 | static, partial live |
Section 09 · Detection Content
Rules built from what we actually found
Only indicators confirmed live or by unambiguous decompiled constants made it into a rule below. A few candidates were left out on purpose, listed at the end, because the underlying signal is too weak or too easily produced by unrelated software.
YARA
rule Ryuk_SelfInjecting_Worker_stage2 { meta: description = "Detects the Ryuk self-injecting worker analyzed in this case" confidence = "high, static decompilation and live detonation" strings: $note_file = "RyukReadMe.txt" ascii $marker = "UNIQUE_ID_DO_NOT_REMOVE" wide $slogan = "No system is safe" ascii $vss1 = "vssadmin Delete Shadows /all /quiet" ascii $vss2 = "vssadmin resize shadowstorage" ascii $svc1 = "net stop \"Sophos" ascii $svc2 = "net stop AcronisAgent" ascii $svc3 = "net stop wbengine" ascii $proc1 = "/IM winword.exe /F" ascii $proc2 = "/IM sqlservr.exe /F" ascii $proc3 = "/IM outlook.exe /F" ascii $csp = "Microsoft Enhanced RSA and AES Cryptographic Provider" wide $runval = "svchos" ascii wide $selfdel = "del %0" ascii condition: uint16(0) == 0x5A4D and 5 of ($note_file, $marker, $slogan, $vss1, $vss2, $svc1, $svc2, $svc3, $proc1, $proc2, $proc3, $csp, $runval, $selfdel) }
Sigma: shadow-copy deletion + mass backup wipe
title: Shadow Copy Deletion Followed by Mass Backup File Deletion
logsource:
category: process_creation
product: windows
detection:
selection_vss:
Image|endswith: '\vssadmin.exe'
CommandLine|contains|all: ['Delete', 'Shadows', '/quiet']
selection_del:
Image|endswith: '\cmd.exe'
CommandLine|contains|all: ['/s', '/f', '/q']
CommandLine|contains: ['.bkf', '.wbcat', 'Backup']
condition: selection_vss and selection_del
level: critical
Sigma: mass service termination
title: Mass Security and Backup Service Termination via net.exe
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: '\net.exe'
CommandLine|contains: 'stop'
CommandLine|contains: ['Sophos', 'Veeam', 'Acronis', 'MSSQL$', 'SQLAgent$', 'wbengine', 'BackupExec']
condition: selection
falsepositives:
- Legitimate IT maintenance stopping one of these services individually; correlate as a burst of several distinct names from the same parent process within a short window for higher confidence
level: high
Sigma: mass process termination
title: Mass Process Termination of Office, Database, or Mail Applications
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: '\taskkill.exe'
CommandLine|contains: '/F'
CommandLine|contains: ['winword.exe', 'excel.exe', 'outlook.exe', 'sqlservr.exe', 'mysqld.exe']
condition: selection
falsepositives:
- Helpdesk scripts killing a single hung application; stronger signal when several distinct targets appear from the same parent within a short window
level: high
Sigma: registry Run key persistence
title: Suspicious Registry Run Key Value 'svchos'
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\svchos'
condition: selection
falsepositives:
- Unverified whether any legitimate software uses this exact value name
level: high
Hunting queries built from the same logic
Microsoft Sentinel / Defender:
DeviceProcessEvents
| where FileName =~ "net.exe" and ProcessCommandLine has "stop"
| where ProcessCommandLine has_any ("Sophos","Veeam","Acronis","MSSQL$","SQLAgent$","wbengine","BackupExec")
| summarize DistinctServices = dcount(ProcessCommandLine), Services = make_set(ProcessCommandLine)
by DeviceId, InitiatingProcessId, bin(Timestamp, 5m)
| where DistinctServices >= 5
Splunk:
index=sysmon EventCode=1 (Image="*\\net.exe" OR Image="*\\taskkill.exe") | eval hit=if(match(CommandLine, "(?i)Sophos|Veeam|Acronis|MSSQL\$|SQLAgent\$|wbengine|winword\.exe|sqlservr\.exe|outlook\.exe"), 1, 0) | where hit=1 | bin _time span=5m | stats dc(CommandLine) as distinct_targets values(CommandLine) as targets by ComputerName, ParentProcessId, _time | where distinct_targets >= 5
The distinct-count thresholds above are a starting point, not a value derived from this case, tune against each environment's own baseline before enabling in blocking mode.
A standalone rule for the HERMES marker alone: six ASCII bytes near the end of a file is too easy to false-positive on unrelated data. A rule for the same-base-address self-injection technique: real and live-confirmed, but needs Sysmon Event ID 8/10 correlation rather than a portable process or registry rule. A rule for the CryptGenKey/CryptEncrypt/CryptExportKey sequence: confirmed in the decompile, but ordinary process and registry logs don't capture CryptoAPI calls, this needs EDR-specific ETW telemetry.
Section 10 · Correlation Material
Indicators specific to this build
| Artifact | Value |
|---|---|
| Contact email | WayneEvenson@protonmail.com |
| Contact email | WayneEvenson@tutanota.com |
| BTC wallet | 14hVKm7Ft2rxDBFTNkkRC3kGstMGp2A4hk |
| RSA public key blob, SHA-256 | e3a7d8067442e7bf50cfb180a26eda0bcabe65612c1173b9cc4becdac4dbf1bf |
| Registry persistence value | svchos |
| Encrypted-file marker | HERMES |
Section 11 · Full Kill-Lists
Every service and process this build targets
The category summaries above are useful for reading, but a defender writing rules needs the literal strings. Both lists below are reproduced in full, decrypted and read live during the session, then cross-checked against the static string scan.
Process kill-list, taskkill /IM <name> /F, 41 entries
agntsvc.exe CNTAoSMgr.exe dbeng50.exe dbsnmp.exe encsvc.exe excel.exe firefoxconfig.exe infopath.exe isqlplussvc.exe mbamtray.exe msaccess.exe mspub.exe msftesql.exe mydesktopqos.exe mydesktopservice.exe mysqld-nt.exe mysqld-opt.exe mysqld.exe ocautoupds.exe ocomm.exe ocssd.exe onenote.exe oracle.exe outlook.exe PccNTMon.exe powerpnt.exe sqbcoreservice.exe sqlagent.exe sqlbrowser.exe sqlservr.exe sqlwriter.exe steam.exe synctime.exe tbirdconfig.exe thebat.exe thebat64.exe thunderbird.exe tmlisten.exe visio.exe winword.exe wordpad.exe xfssvccon.exe zoolz.exe Ntrtscan.exe
Service kill-list, net stop "<name>" /y, 150+ entries
Acronis VSS Provider AcrSch2Svc AcronisAgent Antivirus ARSM BackupExecAgentAccelerator BackupExecAgentBrowser BackupExecDeviceMediaService BackupExecJobEngine BackupExecManagementService BackupExecRPCService BackupExecVSSProvider bedbg DCAgent EhttpSrv Enterprise Client Service EPSecurityService EPUpdateService EraserSvc11710 ESHASRV EsgShKernel FA_Scheduler IISAdmin IMAP4Svc kavfsslp klnagent macmnsvc masvc MBAMService MBEndpointAgent McAfeeEngineService McAfeeFramework McAfeeFrameworkMcAfeeFramework McShield McTaskManager mfefire mfemms mfevtp MMS mozyprobackup MsDtsServer MsDtsServer100 MsDtsServer110 MSExchangeES MSExchangeIS MSExchangeMGMT MSExchangeMTA MSExchangeSA MSExchangeSRS msftesql$PROD MSOLAP$SQL_2008 MSOLAP$SYSTEM_BGC MSOLAP$TPS MSOLAP$TPSAMA MSSQL$BKUPEXEC MSSQL$PRACTICEMGT MSSQL$PRACTTICEBGC MSSQL$PRACTTICEBGC MSSQL$PROD MSSQL$PROFXENGAGEMENT MSSQL$SBSMONITORING MSSQL$SHAREPOINT MSSQL$SOPHOS MSSQL$SQL_2008 MSSQL$SQLEXPRESS MSSQL$SYSTEM_BGC MSSQL$TPS MSSQL$TPSAMA MSSQL$VEEAMSQL2008R2 MSSQL$VEEAMSQL2012 MSSQLFDLauncher MSSQLFDLauncher$PROFXENGAGEMENT MSSQLFDLauncher$SBSMONITORING MSSQLFDLauncher$SHAREPOINT MSSQLFDLauncher$SQL_2008 MSSQLFDLauncher$SYSTEM_BGC MSSQLFDLauncher$TPS MSSQLFDLauncher$TPSAMA MSSQLSERVER MSSQLServerADHelper MSSQLServerADHelper100 MSSQLServerOLAPService MySQL57 MySQL80 NetMsmqActivator ntrtscan OracleClientCache80 PDVFSService POP3Svc ReportServer ReportServer$SQL_2008 ReportServer$SYSTEM_BGC ReportServer$TPS ReportServer$TPSAMA RESvc sacsvr SamSs SAVAdminService SAVService SepMasterService ShMonitor Smcinst SmcService SMTPSvc SNAC SntpService Sophos Agent Sophos AutoUpdate Service Sophos Clean Service Sophos Device Control Service Sophos File Scanner Service Sophos Health Service Sophos MCS Agent Sophos MCS Client Sophos Message Router Sophos Safestore Service Sophos System Protection Service Sophos Web Control Service sophossps SQL Backups SQLAgent$BKUPEXEC SQLAgent$CITRIX_METAFRAME SQLAgent$CXDB SQLAgent$ECWDB2 SQLAgent$PRACTTICEBGC SQLAgent$PRACTTICEMGT SQLAgent$PROD SQLAgent$PROFXENGAGEMENT SQLAgent$SBSMONITORING SQLAgent$SHAREPOINT SQLAgent$SOPHOS SQLAgent$SQL_2008 SQLAgent$SQLEXPRESS SQLAgent$SYSTEM_BGC SQLAgent$TPS SQLAgent$TPSAMA SQLAgent$VEEAMSQL2008R2 SQLAgent$VEEAMSQL2012 SQLBrowser SQLSafeOLRService SQLsafe Backup Service SQLsafe Filter Service SQLSERVERAGENT SQLTELEMETRY SQLTELEMETRY$ECWDB2 SQLWriter SstpSvc svcGenericHost swi_filter swi_service swi_update swi_update_64 Symantec System Recovery TrueKey TrueKeyScheduler TrueKeyServiceHelper UI0Detect VeeamBackupSvc VeeamBrokerSvc VeeamCatalogSvc VeeamCloudSvc VeeamDeploymentService VeeamDeploySvc VeeamEnterpriseManagerSvc VeeamHvIntegrationSvc VeeamMountSvc VeeamNFSSvc VeeamRESTSvc VeeamTransportSvc wbengine Zoolz 2 Service
Both lists reproduced from .data at 0x140024ab0 through 0x14002804d, confirmed by both static string extraction and a live-decrypted copy read during the session.
Section 12 · What Remains Open
Honest gaps, not filled in
- The sample's own SHA-256. Never independently computed in this session, no host-to-VM file bridge was available.
- Two network-share helpers,
FUN_1400028d0andFUN_1400059b0, part of lateral movement, not individually decompiled. - Whether the UAC prompt for the kill-script fired or the VM simply had elevation disabled was never determined.
- The exact byte layout of the size-encoded fields appended after
HERMESon large files, and the precise trigger for the routine's dry-run mode, were not decoded. - Whether a locale or keyboard-layout check reads the
Nls\Languageregistry key that was observed as a decrypted string was never traced to consuming code.
