Google Details Turla's New 'STOCKSTAY' .NET Backdoor Used in Espionage Against Ukraine

Russian APT Turla Unleashes New 'STOCKSTAY' Backdoor in Ukraine Espionage Attacks

HIGH
June 26, 2026
5m read
Threat ActorMalwareCyberattack

Related Entities

Organizations

Google Threat Analysis Group

Other

STOCKSTAYKazuar Google GitHub UkraineItaly

Full Report

Executive Summary

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.

Threat Overview

  • Threat Actor: Turla (APT), a highly sophisticated Russian state-sponsored group known for its complex malware and stealthy operations targeting governments, militaries, and diplomatic entities worldwide.
  • Malware: STOCKSTAY, a new backdoor written in .NET using the Windows Forms framework. Its primary function is to establish persistent access, execute commands, and exfiltrate data from compromised Windows systems.
  • Targeting: The campaign has been observed targeting government and military entities in Ukraine, demonstrating a clear alignment with Russian geopolitical interests. Secondary targeting of organizations related to Italian foreign policy has also been noted.

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.

Technical Analysis

STOCKSTAY's operations are characterized by several key technical features:

  1. Implant Architecture: The backdoor is written in .NET and uses Windows Forms. This choice allows for rapid development and potential cross-compatibility, though current observations are limited to Windows systems.
  2. Command and Control (C2): The malware communicates with its C2 servers using a secure WebSocket connection (T1071.001 - Web Protocols). This provides a persistent, full-duplex communication channel that can be difficult to distinguish from legitimate web traffic.
  3. Infrastructure Obfuscation: Turla employs a multi-hop C2 infrastructure to hide the true location of its servers. Researchers discovered a public GitHub repository containing a Python script acting as a victim-side WebSocket server controller. This suggests victims may connect to intermediate nodes (potentially compromised servers or public infrastructure) that then proxy traffic to the final C2, a technique consistent with Turla's established TTPs (T1090.003 - Multi-hop Proxy).
  4. Code Reuse: The significant code overlap between STOCKSTAY and Kazuar points to a shared development team. Both malware families are built on .NET and have been observed using compromised WordPress sites for operational purposes (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.

Impact Assessment

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:

  • Theft of Sensitive Data: The backdoor can be used to exfiltrate classified government documents, military plans, diplomatic communications, and other sensitive state secrets.
  • Persistent Foothold: Once established, STOCKSTAY allows the actor to maintain access for extended periods, enabling them to monitor internal communications, pivot to other systems, and deploy additional malicious tools.
  • Strategic Advantage: The intelligence gathered from these campaigns can provide the Russian government with significant strategic, military, and political advantages.

IOCs — Directly from Articles

No specific file hashes, domains, or IP addresses were provided in the summarized articles.

Cyber Observables — Hunting Hints

Security teams may want to hunt for the following patterns to identify potential STOCKSTAY activity:

Type
network_traffic_pattern
Value
wss://* or ws://*
Description
Outbound WebSocket connections from non-browser processes, especially from servers or user workstations.
Type
process_name
Value
rundll32.exe
Description
Turla has historically used rundll32.exe to launch its .NET payloads. Monitor for rundll32 spawning unusual child processes.
Type
command_line_pattern
Value
powershell -enc
Description
Look for encoded PowerShell commands used for initial execution or lateral movement, a common TTP for APTs.
Type
log_source
Value
Proxy Logs / Firewall Logs
Description
Hunt for connections to known compromised WordPress hosting providers or unusual GitHub URLs.
Type
file_path
Value
C:\Users\<user>\AppData\Local\Temp\*.dll
Description
Payloads are often dropped in temporary or user-profile directories. Monitor for newly created .NET DLLs.

Detection & Response

Detecting Turla's activity requires a defense-in-depth approach.

  1. Network Traffic Analysis: Implement Network Traffic Analysis (D3-NTA) with SSL/TLS inspection to identify anomalous WebSocket connections. Create alerts for non-browser processes initiating wss:// connections to untrusted domains.
  2. Endpoint Detection and Response (EDR): Use an EDR solution to monitor for suspicious process chains, such as powershell.exe or rundll32.exe loading .NET assemblies from disk or memory. EDR is crucial for implementing Process Analysis (D3-PA).
  3. Signature-Based Detection: Deploy antivirus and network intrusion prevention systems with up-to-date signatures for Turla, Kazuar, and emerging threats like STOCKSTAY.
  4. Threat Hunting: Proactively hunt for PowerShell execution (T1059.001) and unusual .NET assembly loads in memory. Check for connections to public code repositories like GitHub from server infrastructure.

Mitigation

Defending against a sophisticated actor like Turla requires a multi-layered security posture.

  1. Application Control: Use application control solutions like AppLocker to restrict the execution of unauthorized software, which aligns with M1038 - Execution Prevention.
  2. Egress Traffic Filtering: Implement strict egress filtering to block outbound connections to unknown or uncategorized domains. Allow WebSocket traffic only to known-good, business-required services. This is a form of M1037 - Filter Network Traffic.
  3. PowerShell Hardening: Constrain PowerShell language mode and enable robust script block and module logging to detect malicious usage, a key aspect of M1028 - Operating System Configuration.
  4. User Training: Train users to recognize and report phishing attempts, which are often used as an initial access vector by APT groups (M1017 - User Training).

Timeline of Events

1
December 1, 2022
Development of the STOCKSTAY malware is believed to have begun.
2
June 26, 2026
Google's Threat Analysis Group publishes its report on STOCKSTAY and Turla's campaign.
3
June 26, 2026
This article was published

MITRE ATT&CK Mitigations

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:

D3FEND Defensive Countermeasures

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.

Timeline of Events

1
December 1, 2022

Development of the STOCKSTAY malware is believed to have begun.

2
June 26, 2026

Google's Threat Analysis Group publishes its report on STOCKSTAY and Turla's campaign.

Sources & References

Weekly Intelligence Report - 26 Jun 2026
CYFIRMA (cyfirma.com) June 26, 2026

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

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.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Tags

TurlaSTOCKSTAYKazuarAPTEspionageUkraineGoogleThreat IntelligenceMalware

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

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.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

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 Generator

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.