BlackEnergy3
- Type
- Backdoor
- Capabilities
- Initial accessLateral movementPost exploitation
- Delivery
- SpearphishingLure
- Platforms
- Windows
BlackEnergy3 is a Windows backdoor used to establish remote access to compromised networks, notably in Sandworm operations against Ukrainian electricity utilities. Sandworm is associated with Russia’s GRU unit 74455. BlackEnergy3 played an enabling role in the December 2015 Ukrainian power-grid attack by providing access to enterprise IT networks from which the attackers could pivot toward operational technology environments.
In the Ukrainian utility intrusions, spearphishing emails delivered malicious Microsoft Excel attachments containing macros. Enabling the macros executed a downloader that installed BlackEnergy3. The attackers maintained access for months before the disruptive operation, using additional tools and stolen credentials to reach control-system environments.
BlackEnergy3 was not an industrial-protocol-specific attack tool. The resulting power disruption involved attackers manually operating SCADA/HMI interfaces to open circuit breakers. The broader operation also employed the separate KillDisk destructive component, malicious device firmware, and telephone denial-of-service activity to impede recovery and outage reporting. These disruptive actions should be distinguished from BlackEnergy3’s network-access role. GREYENERGY is recognized as its successor.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
While BlackEnergy3 is not “industrial-specific” in the same sense as either Industroyer variant or other items such as Triton, it did serve a critical enabling function as part of the overall attack sequence leading up to power disruption.
BLACKENERGY3 which served as the access tool to the IT networks that allowed the adversary to pivot to OT networks and orchestrate the 2015 cyber attack on Ukraine’s electric system.
Techniques & procedures
25 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
对乌克兰境内的电力系统和能源公司开展了大规模的渗透。攻击者通过多轮鱼叉钓鱼攻击,成功获取了多个乌克兰境内关键基础设施单位的内网访问权限,并在内网中进行了深入的信息收集,包括电力网络的运行状况、电力系统拓扑架构等关键数据。
Initial Access
4 techniques
Initial Access
该VPN账号使攻击者在没有触发安全告警的情况下长期访问目标内网,完成对电力系统的远程控制。
该VPN账号可以直接访问电力控制系统的人机界面(HMI)。
BlackEnergy2 spreads mainly through targeted phishing attacks by e-mail containing the malware installer. ... BlackEnergy 3 Malware Installation Cybercriminal groups perform e-mail phishing attacks containing Microsoft Office files (Excel, Word, PowerPoint, etc.) with malicious VBA macros to infected target systems.
沙虫APT组织利用鱼叉式钓鱼攻击,通过投递带有宏恶意代码的Excel邮件附件,成功控制乌克兰国家电网某工作站人员的电脑。
Execution
5 techniques
Execution
vba_macro.exe作为下载器,将BlackEnergy恶意程序释放到目标主机并执行,同时与攻击者的命令与控制(C2)服务器建立连接。
The following command, executed by the installer, copies the driver component to the Windows driver folder and starts its Windows service: /c "ping localhost -n 8 & move /Y ..." ... After that, the installer will exit by running the following command: /s /c "for /L %i in (1,1,100) do ( del /F ... )"
当恶意Excel文件被打开之后,内嵌的宏代码会在系统的临时文件目录释放文件vba_macro.exe,然后立即启动执行。
2014 年 8 月 13 日左右,沙虫APT组织通过包含 0day 漏洞(CVE-2014-4114)的PowerPoint文件,结合BlackEnergy2/3恶意木马实施攻击。
该攻击通过社会工程学手段而非软件漏洞实施,旨在诱骗受害者启用宏功能。
Persistence
4 techniques
Persistence
该VPN账号使攻击者在没有触发安全告警的情况下长期访问目标内网,完成对电力系统的远程控制。
该VPN账号可以直接访问电力控制系统的人机界面(HMI)。
To make itself persistent, the malware installs itself as a hidden DLL file under %APPDATA% folder and then creates a Windows Shortcut File (LNK) at Startup that executes it.
After that, vba_macro.exe will write a file shortcut under the Startup menu: %HOMEPATH%\Start Menu\Programs\Startup\<GUID>.lnk ... This mechanism makes it possible for the malware to persist on the infected machine.
Privilege Escalation
4 techniques
Privilege Escalation
Once installed and running, the executable file behind the hidden device driver will inject code to %WINDIR%\system32\svchost.exe process and start the backdoor... FONTCACHE.DAT will inject code to %WINDIR%\system32\svchost.exe process which will instantiate iexplorer.exe instances from time to time.
该VPN账号使攻击者在没有触发安全告警的情况下长期访问目标内网,完成对电力系统的远程控制。
To make itself persistent, the malware installs itself as a hidden DLL file under %APPDATA% folder and then creates a Windows Shortcut File (LNK) at Startup that executes it.
After that, vba_macro.exe will write a file shortcut under the Startup menu: %HOMEPATH%\Start Menu\Programs\Startup\<GUID>.lnk ... This mechanism makes it possible for the malware to persist on the infected machine.
Stealth
6 techniques
Stealth
The VBA macro contains obfuscated malicious code stored as a set of arrays of values in decimal format... Both the malware dropper (vba_macro.exe) and core (FONTCACHE.DAT) are Portable Executable files with encrypted contents.
Once installed and running, the executable file behind the hidden device driver will inject code to %WINDIR%\system32\svchost.exe process and start the backdoor... FONTCACHE.DAT will inject code to %WINDIR%\system32\svchost.exe process which will instantiate iexplorer.exe instances from time to time.
这一操作清除了SCADA系统主机的系统文件和主引导记录(MBR),同时删除了恶意操作的相关日志和记录,试图掩盖攻击痕迹。
该VPN账号使攻击者在没有触发安全告警的情况下长期访问目标内网,完成对电力系统的远程控制。
The file shortcut points to: %windir%\System32\rundll32.exe "%APPDATA%\FONTCACHE.DAT",#1
When executed, vba_macro.exe will decrypt and write FONTCACHE.DAT to the disk as a hidden file under %APPDATA% folder.
Credential Access
2 techniques
Credential Access
通过查找主机文档、提取浏览器保存的凭证、部署键盘记录器等方式,沙虫APT组织最终获取了电网员工的VPN账号。
通过查找主机文档、提取浏览器保存的凭证、部署键盘记录器等方式,沙虫APT组织最终获取了电网员工的VPN账号。
Lateral Movement
1 technique
Lateral Movement
攻击者通过横向移动窃取电网员工的VPN账号和密码,成功获得了对乌克兰电网SCADA系统的远程访问权限。
Collection
1 technique
Collection
通过查找主机文档、提取浏览器保存的凭证、部署键盘记录器等方式,沙虫APT组织最终获取了电网员工的VPN账号。
Command and Control
3 techniques
Command and Control
BlackEnergy was originally designed to be an HTTP-based botnet... Commands are sent by the C2 server to the bot clients through HTTP POST requests with Base64 encoded data... Following is an example of a HTTP request sent from the malware to the C2.
Commands are sent by the C2 server to the bot clients through HTTP POST requests with Base64 encoded data... Where ‘body’ contains Base64 encoded data which refers to bot and operating system information.
沙虫APT组织通过HMI界面手动执行断路器关闭操作。他们远程操作鼠标,逐步点击HMI界面中的选项,断开了30多个变电站的断路器。
Impact
2 techniques
Impact
攻击者还向串口-以太网网关设备上传了特制的恶意固件。该固件使网关设备陷入不可恢复的状态,无法通过常规方式重启或者修复。
攻击者通过BlackEnergy3木马上传了破坏性程序KillDisk(硬盘数据擦除插件)。攻击者利用KillDisk遍历所有硬盘设备,并直接向硬盘前256个扇区写入零。
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.