Google's Threat Analysis Group (GTIG) has identified a new, sophisticated .NET backdoor named STOCKSTAY, attributed to the Russian state-sponsored group Turla (also known as Waterbug or Venomous Bear). This malware is being actively used in cyber espionage campaigns targeting government and military organizations in Ukraine, as well as entities with interests in Italian foreign policy. STOCKSTAY is a multi-component implant that communicates over secure WebSockets and shares substantial code overlap with Kazuar, a long-standing tool in Turla's arsenal. The development and deployment of this new malware indicate a continued evolution of the group's capabilities and a persistent focus on high-value intelligence gathering from strategic targets.
Turla is leveraging STOCKSTAY as a primary implant for espionage. The malware's design suggests a focus on stealth and resilience, incorporating encrypted communications and a C2 architecture designed to evade detection. The significant code similarity with Kazuar suggests that STOCKSTAY is an evolutionary step, possibly intended to replace or augment the older implant with more modern features and a lower detection rate.
STOCKSTAY's operations are characterized by several key technical features:
T1071.001 - Web Protocols). This provides a persistent, full-duplex communication channel that can be difficult to distinguish from legitimate web traffic.T1090.003 - Multi-hop Proxy).T1190 - Exploit Public-Facing Application). This reuse allows the threat actor to leverage proven code while introducing new features.Google's analysis suggests Turla may be co-deploying STOCKSTAY and Kazuar, potentially as a way to A/B test the new implant's effectiveness and evasion capabilities in a live operational environment before fully retiring the older tool.
A successful STOCKSTAY infection provides the Turla group with long-term, stealthy access to a target's network. The primary impact is espionage and intelligence gathering. Specific consequences include:
No specific file hashes, domains, or IP addresses were provided in the summarized articles.
Security teams may want to hunt for the following patterns to identify potential STOCKSTAY activity:
wss://* or ws://*rundll32.exepowershell -encProxy Logs / Firewall LogsC:\Users\<user>\AppData\Local\Temp\*.dllDetecting Turla's activity requires a defense-in-depth approach.
wss:// connections to untrusted domains.powershell.exe or rundll32.exe loading .NET assemblies from disk or memory. EDR is crucial for implementing Process Analysis (D3-PA).T1059.001) and unusual .NET assembly loads in memory. Check for connections to public code repositories like GitHub from server infrastructure.Defending against a sophisticated actor like Turla requires a multi-layered security posture.
M1017 - User Training).Implement strict egress filtering to block outbound WebSocket connections to any destination not explicitly required for business operations.
Mapped D3FEND Techniques:
Use web proxies and filters to block access to uncategorized websites and known malicious domains, including potentially blocking general access to GitHub from servers.
Mapped D3FEND Techniques:
Use application control solutions to prevent the execution of unauthorized .NET assemblies and scripts.
Mapped D3FEND Techniques:
Deploy and maintain endpoint security solutions capable of detecting and blocking known Turla malware families through signature and behavioral analysis.
Mapped D3FEND Techniques:
To counter STOCKSTAY's WebSocket-based C2, organizations must implement robust network traffic analysis with TLS inspection capabilities. Security teams should establish a baseline of normal WebSocket traffic within their environment. Create specific SIEM alerts for any non-browser processes (e.g., svchost.exe, rundll32.exe, or unsigned executables) initiating wss:// connections. Furthermore, since Turla uses compromised WordPress sites and GitHub, outbound connections from servers to these platforms should be heavily scrutinized. Correlating network flows with endpoint process data is key to distinguishing malicious activity from legitimate traffic and identifying the source of a potential compromise.
Given that STOCKSTAY is a .NET implant, process analysis via an EDR solution is critical for detection. Security teams should monitor for suspicious loading of .NET assemblies, particularly by processes that do not typically do so. Create detection rules for processes that load the System.Windows.Forms.dll but have no visible GUI. Monitor for process chains indicative of Turla's TTPs, such as an Office application spawning PowerShell, which then loads a .NET assembly via reflection (System.Reflection.Assembly.Load). Baselining normal .NET activity on endpoints is essential to reduce false positives and effectively hunt for this type of advanced in-memory threat.
A strict egress filtering policy is a highly effective countermeasure against threats like STOCKSTAY. By default, block all outbound traffic from servers and workstations, and only allow connections to known, business-essential destinations on approved ports. Specifically for this threat, create a rule to block all outbound WebSocket traffic (ws:// and wss://) except to whitelisted application servers. Since Turla leverages GitHub for C2 infrastructure, consider blocking or proxying all traffic to github.com from server segments and non-developer workstations, requiring inspection and authentication. This proactive isolation can prevent the malware from establishing its C2 channel even if an initial compromise occurs.
Development of the STOCKSTAY malware is believed to have begun.
Google's Threat Analysis Group publishes its report on STOCKSTAY and Turla's campaign.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.