← Lab /Security & privacy

Turla has deployed a .NET backdoor called STOCKSTAY targeting Ukrainian government agencies since 2022

Turla has continuously developed and deployed the STOCKSTAY .NET backdoor against Ukrainian government and military organizations since December 2022.

Security & privacy Mandiant / GTIG 25 Jun 2026 Attack Real-world evidence

Published as “STOCKSTAY Another Day: The Latest Addition to Turla’s Intelligence Gathering Apparatus”

Why it matters

STOCKSTAY expands Turla’s espionage toolkit, giving defenders new indicators to detect Russian cyber-espionage against Ukrainian and European targets.

Summary

Google Threat Intelligence analyzed a multi-component .NET backdoor named STOCKSTAY that uses secure WebSocket C2 and environmental keying. The malware has been observed in the wild since December 2022, primarily targeting Ukrainian government and military entities and occasionally European ministries. Its architecture mirrors Turla’s earlier KAZUAR toolkit, and it is delivered via malicious RDP files, compromised infrastructure, and GitHub-hosted server code. The evidence consists of dozens of samples, configuration files, and telemetry from incidents reported by partners.

What they found 3

  1. STOCKSTAY is a multi-component .NET backdoor that communicates via secure WebSocket

    “STOCKSTAY is a multi-component backdoor written in .NET, using the Windows Forms framework, which communicates with its command and control (C2) via a secure WebSocket connection, utilizing the open-source websocket-sharp library.”

  2. The malware uses environmental keying of its encrypted configuration

    “STOCKSTAY has been observed using the hash of the target’s hostname or domain name during the decryption of its configuration data, preventing disclosure of C2 infrastructure unless operating in the intended environment.”

  3. STOCKSTAY deployment is linked to Turla’s targeting of Ukrainian defense and military organizations

    “A significant proportion of STOCKSTAY operations observed by GTIG have been targeted at Government or Military organizations within Ukraine, consistent with Russian interests in relation to the ongoing conflict between the two countries.”

Caveats 7

  • The authors state low confidence that STOCKSTAY was deployed alongside KAZUAR as a failsafe.
  • They were unable to determine whether multiple operators are leveraging STOCKSTAY due to insufficient telemetry.
  • Passwords for early environmental keying could not be recovered, limiting full configuration analysis.
  • Low confidence in some attribution statements (e.g., overlap with KAZUAR as a failsafe).
  • Inability to recover environmental keying passwords for early samples.
  • Uncertainty about the number of distinct operators using STOCKSTAY.
  • Limited visibility into active use of some GitHub-hosted C2 servers.

What’s new here 4

  • Identification of STOCKSTAY, a new .NET backdoor with a multi-component architecture
  • Use of secure WebSocket communication via the open-source websocket-sharp library
  • Environmental keying of configuration data to bind execution to specific hosts
  • Overlap with Turla’s KAZUAR toolkit and deployment through malicious RDP files and cloud-hosted C2