Hexastrike Details S5PIVOT Proxy in Qilin Ransomware Intrusion

· Original article ↗

Summary

Hexastrike reconstructs a Qilin intrusion at a German company, detailing S5PIVOT, a Python-based SOCKS5 backconnect proxy, credential-led access, evidence of cloud exfiltration and encryption, and defensive lessons. The total data transferred remains unknown.

Key points

  • Hexastrike attributes the intrusion to Qilin affiliates and says initial access most likely used valid credentials on a SonicWall SSL-VPN without MFA; the exact credential source remains uncertain.
  • The attackers exploited excessive domain privileges, exposed service-account credentials and reused local administrator passwords to move through the network.
  • S5PIVOT used a SYSTEM scheduled task and Python startup hook to load a layered payload, then maintained an outbound TLS connection for SOCKS5 proxy access.
  • A Windows Error Reporting dump preserved AzCopy commands and progress showing 145 of roughly 4,300 files uploaded at the time of a crash; the total volume and complete file list could not be established.
  • The Qilin/Agenda encryptor disabled exclusion filters, encrypted system directories and left several servers unbootable; event logs were cleared, but other host artifacts supported reconstruction.
  • The report recommends phishing-resistant MFA, reduced privileged access, centralized logging, application controls, restricted server egress and protected, tested backups.

Article Details

Attack Vectors
  • Initial access most likely used valid domain credentials to log on through the SonicWall SSL-VPN, which did not require MFA; the article reports no evidence of an exploit, phishing, or unauthorized remote-support access.
  • The operator tested credentials against domain accounts and used a password spray against the built-in Administrator account; shared local administrator passwords and accounts already holding Domain Admin rights enabled broader access.
  • The backup account, which had Domain Admin rights, was used for WinRM sessions to deploy S5PIVOT and run exfiltration activity.
  • S5PIVOT persisted through a SYSTEM scheduled task that repeatedly launched an embeddable Python runtime; a sitecustomize.py hook loaded the proxy payload without a script appearing on the command line.
  • AzCopy commands copied selected business documents to an attacker-controlled Azure blob container. The article reports that the amount transferred and full object list could not be recovered.
  • The Qilin/Agenda encryptor disabled recovery-related services, encrypted files including system directories, cleared Windows event logs, and persisted through a Run registry value that later relaunched it.
Defensive Notes
  • Require phishing-resistant MFA on remote-access paths, restrict VPN access to managed devices or expected locations, forward VPN logs centrally, and retain them for several months.
  • Alert on VPN-originated NTLM logons with default or unrecognized workstation names, and on bursts of event 4776 credential-validation failures interleaved with successful logons for the same accounts.
  • Limit privileged group membership, prevent service accounts from using Domain Admin or Enterprise Admin privileges, use group managed service accounts where appropriate, and remove unnecessary local administrator grants.
  • Use Windows LAPS to provide unique, automatically rotated local administrator passwords across machines.
  • Apply application control to prevent interpreters from running out of writable locations such as ProgramData; alert on recurring interpreter tasks without script arguments, numeric task names, and suspicious Register-ScheduledTask commands.
  • Restrict server egress to approved destinations and alert on new, long-lived TLS sessions and unusual outbound volume. Where feasible, limit uploads to organizational storage accounts.
  • Alert on shadow-copy deletion, backup or database services being disabled, suspicious Defender policy changes, and unusual SMB or symbolic-link configuration changes.
  • Forward Security, System, PowerShell, and Sysmon events to central storage as they are written; retain them for at least 90 days and alert on event 1102 and bursts of event 104.
  • Neutralize suspicious scheduled tasks and autostart entries before interactive logon to affected hosts; maintain backups protected by separate credentials and test restores regularly.

Indicators of compromise

TypeIndicatorContext
DOMAINkyowa-spring[.]comS5PIVOT backconnect command-and-control endpoint.
DOMAINsdf557hht5[.]blob[.]core[.]windows[.]netAzure blob destination used for attacker-controlled data exfiltration.
DOMAINsports-chamber[.]comS5PIVOT backconnect command-and-control endpoint.
DOMAINzeroseum[.]comS5PIVOT backconnect command-and-control endpoint.
SHA256228c7ac798b4ffe26fb8439a53fbcfe2453b3a7d6f606f7116e319063f5a9c05S5PIVOT file hash listed in the article's indicators.
SHA2563aabad36c1502b866410c7784c313f47b25d57d3403cb8380bffab9688a1d966S5PIVOT file hash listed in the article's indicators.
SHA2565eac10e0ff9e39597749b54b46400f1f0e5b217117a9be84a61ee1301ef467a4S5PIVOT file hash listed in the article's indicators.
SHA256675e7aeac1e1a95c2a2608319ffd6a197130d17f58639724e28b9ee3cdc974f2S5PIVOT file hash listed in the article's indicators.
SHA256709a5116d5634236a3d69db61261ee334d5f61a6537f299eb2114d91cf694399S5PIVOT file hash listed in the article's indicators.
SHA25681cc9db1c0a1a979fdc9cb351f6e401f4d48fea7bcf69ad2d0ee601c8141832aS5PIVOT file hash listed in the article's indicators.
SHA2568ab791f083e47086d8286f3ac20fb3d3c5640d3b7a2a68e2cad5e497aa49f31eS5PIVOT file hash listed in the article's indicators.
SHA256936bed238410aee76f4ad4ff385fdb8dbfbb88a4ba540923e42fdd14c698a5d1S5PIVOT file hash listed in the article's indicators.
SHA2569fa892212460b6670fad23f702d12e18a2405ccb8845b20d59615141b9d3b2baS5PIVOT file hash listed in the article's indicators.
SHA256a59b1da93649db7f802c81be575034fa4e8def0e298c44aebcbd215027110160S5PIVOT file hash listed in the article's indicators.
SHA256c7effa4b730275ccb9df54a468ecda1b59b214d1f73f008bdfb2def53adcca08S5PIVOT file hash listed in the article's indicators.
SHA256cd578333a4be96988080597063b8e35a46452b578f5f70abf2f81374924bc45eS5PIVOT file hash listed in the article's indicators.
SHA256d651b5d26bcd0979bd85415664ddd73c18458f6fdbb1d3803dc8ae8050181fe9S5PIVOT file hash listed in the article's indicators.
SHA256f138753c6fd62f18317a7455d71dd1f45d0e9cb1edab7d0a0bbe21513c29a088S5PIVOT file hash listed in the article's indicators.
SHA256f8681f691d1177dd3be9ada794b475d96c3514259cd8e68905101cac19130834S5PIVOT file hash listed in the article's indicators.

MITRE ATT&CK

T1021.006 · Windows Remote ManagementWinRM sessions under the backup account were used to register S5PIVOT tasks and conduct other remote operations.T1053.005 · Scheduled TaskRandomly named scheduled tasks running as SYSTEM launched pythonw.exe every minute to maintain S5PIVOT.T1059.001 · PowerShellPowerShell commands registered the scheduled tasks and were used in repeated passes to clear event logs.T1059.006 · PythonThe scheduled Python runtime loaded sitecustomize.py, which invoked runpy.run_path to execute the S5PIVOT payload.T1070.001 · Clear Windows Event LogsThe encryptor cleared Windows event logs on ten servers after encryption.T1078 · Valid AccountsThe intrusion used valid domain credentials, including a backup account with Domain Admin rights, for access across the estate.T1090 · ProxyS5PIVOT established an outbound SOCKS5 backconnect proxy session that the operator used to reach internal systems.T1110.003 · Password SprayingThe operator password-sprayed the built-in Administrator account and tested candidate credentials against other accounts.T1133 · External Remote ServicesThe operator most likely gained initial access through the company's SonicWall SSL-VPN using valid domain credentials.T1486 · Data Encrypted for ImpactThe Qilin/Agenda encryptor encrypted files, including system directories, leaving several servers unbootable.T1489 · Service StopThe encryptor disabled the volume shadow copy service, backup-agent services, and database services.T1490 · Inhibit System RecoveryThe encryptor deleted shadow copies as part of inhibiting recovery.T1547.001 · Registry Run Keys / Startup FolderThe encryptor persisted through a machine-level Run registry value that relaunched it at later interactive logons.T1562.001 · Disable or Modify ToolsThe operator set the DisableAntiSpyware policy value on two servers; the article assesses that it likely disabled Defender Antivirus, though this was not confirmed by surviving logs.T1567.002 · Exfiltration to Cloud StorageAzCopy commands uploaded selected business documents to an attacker-controlled Azure blob container.

Threat Actors

Malware

Vendors

Products

Tools

Related Articles