Havex, also known as Backdoor.Oldrea and the Energetic Bear RAT, is a Windows remote access trojan identified in 2013 and used for espionage and reconnaissance against industrial control system (ICS) environments. It is associated with Dragonfly, also tracked as Energetic Bear and Crouching Yeti. U.S. authorities attributed the Dragonfly/Havex campaign to officers of Russia’s FSB Center 16. Targets included energy-sector organizations, utilities, oil and gas companies, nuclear power facilities, and ICS software suppliers.
Havex communicates with attacker-controlled command-and-control servers, exfiltrates collected information, and supports deployment of additional payloads. It gathers host and network information, including running processes, the current username, network adapter configuration, connected computers, and shared resources. It also extracts Outlook address-book data and information from VPN applications; some samples incorporate a publicly available browser password recovery tool. It establishes persistence through registry-based autostart mechanisms, injects into the Windows shell process, and includes a cleanup module that removes traces of infection. Variants use encoding, compression, and cryptographic transformations to process command-and-control data.
Its ICS reconnaissance payload uses classic DCOM-based OPC to enumerate industrial servers, connected devices, and OPC tags, collecting server metadata and tag properties to map control-system environments. Analyzed payloads did not contain functionality to control or modify connected industrial hardware. Testing nevertheless demonstrated intermittent crashes of common OPC platforms, potentially disrupting applications dependent on OPC communications.
Distribution included phishing and spearphishing emails, malicious spam, compromised websites, and watering-hole attacks. A prominent supply-chain technique involved compromising ICS vendors and embedding Havex in legitimate software installers and updates, allowing industrial users to introduce the malware into their networks through trusted software distribution channels.
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The Havex RAT gathers information about the infected computers and the networks they are connected to and sends it to servers under the control of the attackers. A program that appears to be have been developed in-house, Havex is also known as Backdoor.Oldrea and the Energetic Bear RAT.
Developed one of only a handful of industrial control system (ICS) specific malware variants through ICS-aware modules for Havex.
Beginning in 2013 and continuing through 2014, the threat actor leveraged Havex malware on Energy Sector networks... Havex is a remote access Trojan (RAT) that communicates with a command and control (C2) server.
Beginning in 2013 and continuing through 2014, the threat actor leveraged Havex malware on Energy Sector networks... Havex is a remote access Trojan (RAT) that communicates with a command and control (C2) server.
39 distinct techniques documented for this family, organized by ATT&CK tactic.
uses the classic DCOM-based (Distributed Component Object Model) version of the Open Platform Communications (OPC) standard to gather information about connected control system devices and resources within the network.
Russian state-sponsored APT actors have developed and deployed malware, including ICS-focused destructive malware.
These include phishing emails, redirections to compromised web sites and most recently, trojanized update installers on at least three ICSs vendor web sites, in what are referred to as watering-hole style attacks.
Dragonfly operators hacked websites of at least three different companies providing ICS software... there had already been 250 downloads of the trojanized software... In addition to trojanizing legitimate software used by its victims... the group has more recently begun infecting suppliers
The repackaging of legitimate software with a malicious implant. Such trojanized software is either hosted on the official yet compromised website of a software company or spread via BitTorrent or other similar hosting zones.
These include phishing emails, redirections to compromised web sites and most recently, trojanized update installers on at least three ICSs vendor web sites, in what are referred to as watering-hole style attacks.
Sometimes threat actors will plan a multi-pronged attack. For example, an intruder may decide to use a targeted spear-phishing attack to infiltrate the corporate network and use it as a vector into the control system architecture.
After unsuspecting customers downloaded Havex-infected updates, the conspirators would use the malware to, among other things, create backdoors into infected systems and scan victims’ networks for additional ICS/SCADA devices.
"Corrupted websites in this campaign used the LightsOut and Hello exploit kits... The LightsOut exploit kit abused Java and browser vulnerabilities to deliver the Havex and Karagany payloads."
Across the content, malware repeatedly 'adds Registry Run keys', 'creates Registry entries', 'modifies the Windows Registry', or 'overwrites registry keys' to maintain persistence.
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) adds Registry Run keys to achieve persistence.(Citation: Symantec Dragonfly)(Citation: Gigamon Berserk Bear October 2021)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) injects itself into explorer.exe.(Citation: Symantec Dragonfly)(Citation: Gigamon Berserk Bear October 2021)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) adds Registry Run keys to achieve persistence.(Citation: Symantec Dragonfly)(Citation: Gigamon Berserk Bear October 2021)
"ADVSTORESHELL encrypts with the 3DES algorithm and a hardcoded key prior to exfiltration."; "Agent Tesla can encrypt data with 3DES..."; "APT32's backdoor has used...RC4 encryption before exfiltration."; "Epic encrypts collected data using a public key framework..."; "Some variants encrypt...with AES and encode it with base64..."; "Prikormka...encrypts it with Blowfish."; "VERMIN encrypts the collected files using 3-DES."; "Zebrocy...RC4...as well as AES...and hexadecimal for encoding"
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) injects itself into explorer.exe.(Citation: Symantec Dragonfly)(Citation: Gigamon Berserk Bear October 2021)
Examples throughout the content include deleting tools, logs, malware-related files, staged archives, screenshots, temporary files, and exfiltrated data 'to cover their tracks,' 'reduce their footprint,' 'remove traces of activity,' or as part of 'post-intrusion cleanup.'
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) contains a cleanup module that removes traces of itself from the victim.(Citation: Symantec Dragonfly)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) can use rundll32 for execution on compromised hosts.(Citation: Gigamon Berserk Bear October 2021)
Across the content, malware repeatedly 'adds Registry Run keys', 'creates Registry entries', 'modifies the Windows Registry', or 'overwrites registry keys' to maintain persistence.
Among other things, it extracts data from a victim’s Outlook address book and virtual private networking (VPN) programs... It’s capable of collecting passwords
Some [Backdoor.Oldrea](https://attack.mitre.org/software/S0093) samples contain a publicly available Web browser password recovery tool.(Citation: Symantec Dragonfly)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) collects information about the Internet adapter configuration.(Citation: Symantec Dragonfly)(Citation: Gigamon Berserk Bear October 2021)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) can enumerate and map ICS-specific systems in victim environments.(Citation: Gigamon Berserk Bear October 2021)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) collects the current username from the victim.(Citation: Symantec Dragonfly)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) can use a network scanning module to identify ICS-related ports.(Citation: Gigamon Berserk Bear October 2021)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) collects information about running processes.(Citation: Symantec Dragonfly)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) collects information about the OS and computer name.(Citation: Symantec Dragonfly)(Citation: Gigamon Berserk Bear October 2021)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) collects information about available drives, default browser, desktop file list, My Documents, Internet history, program files, and root of available drives. It also searches for ICS-related software files.(Citation: Symantec Dragonfly)
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) collects address book information from Outlook.(Citation: Symantec Dragonfly)
The HAVEX malware leveraged legitimate functionality in the OPC protocol to map out the industrial equipment and devices on an ICS network.
The next stage in the intrusion involves the enumeration of the asset owners’ OPC servers, specifically targeting a vulnerability in the OPC Classic protocol.
These data are stored in a file that is created in the user’s TEMP directory under a random name with an extension of '.tmp.dat.' When all information has been written to this file, an encrypted version of this file is created in the same directory with a random name and a '.tmp.yls' extension. The plain text file is then deleted.
Among other things, it extracts data from a victim’s Outlook address book and virtual private networking (VPN) programs.
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) writes collected data to a temporary file in an encrypted form before exfiltration to a C2 server.(Citation: Symantec Dragonfly)
Some Backdoor.Oldrea samples use standard Base64 + bzip2... gh0st RAT has used Zlib to compress C2 communications data before encrypting it... HOPLIGHT has utilized Zlib compression to obfuscate the communications payload.
The Havex RAT gathers information about the infected computers and the networks they are connected to and sends it to servers under the control of the attackers.
[Backdoor.Oldrea](https://attack.mitre.org/software/S0093) can download additional modules from C2.(Citation: Gigamon Berserk Bear October 2021)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
Some [Backdoor.Oldrea](https://attack.mitre.org/software/S0093) samples use standard Base64 + bzip2, and some use standard Base64 + reverse XOR + RSA-2048 to decrypt data received from C2 servers.(Citation: Symantec Dragonfly)
It employed the “Havex” Remote Access Trojan (RAT) within targeted spear-phishing campaigns against industry asset owners...
While we don’t have a particular case study to prove the attacker’s next steps, it is likely after these files are created and saved, they will be exfiltrated to a command and control server for further processing.
Once the scanning completes, the log is deleted and the contents are encrypted and stored into a file named %TEMP%\[random].tmp.yls.
81 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.