BlackEnergy

BlackEnergy, Black Energy
(Type: ICS malware, Reconnaissance, Backdoor, Rootkit, Banking trojan, Keylogger, Info stealer, Wiper, DDoS, Worm)

BlackEnergy, its first version shortened as BE1, started as a crimeware being sold in the Russian cyber underground as early as 2007. Initially, it was designed as a toolkit for creating botnets for conducting DDoS attacks. It supported a variety of flooding commands including protocols like ICMP, TCP SYN, UDP, HTTP and DNS. Among the high profile targets of cyber attacks utilising BE1 were a Norwegian bank and government websites in Georgia three weeks before Russo-Georgian War. Version 2 of BlackEnergy, BE2, came in 2008 with a complete code rewrite that introduced a protective layer, a kernel-mode rootkit and a modular architecture. Plugins included mostly DDoS attacks, a spam plugin and two banking authentication plugins to steal from Russian nad Ukrainian banks. The banking plugin was paired with a module designed to destroy the filesystem. Moreover, BE2 was able to - download and execute a remote file; - execute a local file on the infected computer; - update the bot and its plugins; The Industrial Control Systems Cyber Emergency Response Team issued an alert warning that BE2 was leveraging the human-machine interfaces of industrial control systems like GE CIMPLICITY, Advantech/Broadwin WebAccess, and Siemens WinCC to gain access to critical infrastructure networks. In 2014, the BlackEnergy toolkit, BE3, switched to a lighter footprint with no kernel-mode driver component. Its plugins included: - operations with victim's filesystem - spreading with a parasitic infector - spying features like keylogging, screenshoots or a robust password stealer - Team viewer and a simple pseudo “remote desktop” - listing Windows accounts and scanning network - destroying the system Typical for distribution of BE3 was heavy use of spear-phishing emails containing Microsoft Word or Excel documents with a malicious VBA macro, Rich Text Format (RTF) documents embedding exploits or a PowerPoint presentation with zero-day exploit CVE-2014-4114. On 23 December 2015, attackers behind the BlackEnergy malware successfully caused power outages for several hours in different regions of Ukraine. This cyber sabotage against three energy companies has been confirmed by the Ukrainian government. The power grid compromise has become known as the first-of-its-kind cyber warfare attack affecting civilians.

[News Analysis] Trends:

Total Trend: 25

Trend Per Year
1
2007
3
2010
2
2014
1
2015
1
2016
3
2017
2
2019
5
2020
2
2021
5
2022


Trend Per Month
1
Oct 2007
2
Mar 2010
1
Jul 2010
1
Oct 2014
1
Nov 2014
1
Feb 2015
1
Jan 2016
1
May 2017
1
Jul 2017
1
Sep 2017
1
Jan 2019
1
May 2019
1
2020
1
May 2020
2
Oct 2020
1
Dec 2020
1
Aug 2021
1
Sep 2021
1
Feb 2022
3
Apr 2022
1
May 2022



[News Analysis] News Mention Another Threat Name:

7 - Anchor7 - AppleJeus7 - Attor7 - BBSRAT56 - BlackEnergy7 - Carbanak13 - Cobalt Strike7 - DuQu16 - VPNFilter19 - DanaBot13 - DoppelDridex24 - Emotet33 - EternalPetya13 - GoldMax27 - Industroyer13 - Sality13 - SmokeLoader13 - TrickBot19 - Triton13 - Zloader7 - Agent Tesla7 - Amadey7 - Cobian RAT7 - COZYDUKE7 - Empire Downloader7 - Kimsuky13 - Killnet12 - Mirai6 - HermeticWiper6 - WhisperGate3 - Gameover P2P3 - Zeus3 - DarkSide3 - DistTrack3 - Stuxnet9 - WellMail9 - elf.wellmess9 - Agent.BTZ9 - Havex RAT9 - Ryuk9 - WellMess14 - Olympic Destroyer6 - Cardinal RAT6 - Downdelph6 - Kazuar6 - RokRAT6 - SOUNDBITE16 - GreyEnergy11 - KillDisk6 - TeleBot6 - TeleDoor7 - Gandcrab7 - SamSam8 - CyclopsBlink8 - Exaramel8 - MimiKatz8 - Sandworm


[TTP Analysis] Technique Performance:

reconnaissance
0/43
resource development
0/45
initial access
0/19
execution
1/36
persistence
4/113
privilege escalation
6/96
defense evasion
6/184
credential access
3/63
discovery
7/44
lateral movement
1/22
collection
2/37
command and control
2/39
exfiltration
0/18
impact
1/26


[TTP Analysis] Mitre Attack Matrix:

TA0043 TA0042 TA0001 TA0002 TA0003 TA0004 TA0005 TA0006 TA0007 TA0008 TA0009 TA0011 TA0010 TA0040
Reconnaissance Resource Development Initial Access Execution Persistence Privilege Escalation Defense Evasion Credential Access Discovery Lateral Movement Collection Command and Control Exfiltration Impact
T1047
Windows Management Instrumentation
T1547.001
Boot Or Logon Autostart Execution : Registry Run Keys / Startup Folder
T1547.009
Boot Or Logon Autostart Execution : Shortcut Modification
T1543.003
Create Or Modify System Process : Windows Service
T1574.010
Hijack Execution Flow : Services File Permissions Weakness
T1548.002
Abuse Elevation Control Mechanism : Bypass User Account Control
T1547.001
Boot Or Logon Autostart Execution : Registry Run Keys / Startup Folder
T1547.009
Boot Or Logon Autostart Execution : Shortcut Modification
T1543.003
Create Or Modify System Process : Windows Service
T1574.010
Hijack Execution Flow : Services File Permissions Weakness
T1055.001
Process Injection : Dynamic-link Library Injection
T1548.002
Abuse Elevation Control Mechanism : Bypass User Account Control
T1574.010
Hijack Execution Flow : Services File Permissions Weakness
T1070
Indicator Removal
T1070.001
Indicator Removal : Clear Windows Event Logs
T1055.001
Process Injection : Dynamic-link Library Injection
T1553.006
Subvert Trust Controls : Code Signing Policy Modification
T1555.003
Credentials From Password Stores : Credentials From Web Browsers
T1056.001
Input Capture : Keylogging
T1552.001
Unsecured Credentials : Credentials In Files
T1083
File And Directory Discovery
T1046
Network Service Discovery
T1120
Peripheral Device Discovery
T1057
Process Discovery
T1082
System Information Discovery
T1016
System Network Configuration Discovery
T1049
System Network Connections Discovery
T1021.002
Remote Services : Smb/windows Admin Shares
T1056.001
Input Capture : Keylogging
T1113
Screen Capture
T1071.001
Application Layer Protocol : Web Protocols
T1008
Fallback Channels
T1485
Data Destruction


[Infrastructure Analysis] Based on Related IOC:

IP:Port Timestamp
Domain Timestamp
URL Timestamp


[Target Analysis] Region/Sector:

No information


References:

News Article (Credit @Malpedia)

Malware development: persistence - part 4. Windows services. Simple C++ example.

2022-05-09 by cocomelonc from cocomelonc

AA22-110A Joint CSA: Russian State-Sponsored and Criminal Cyber Threats to Critical Infrastructure

2022-04-20 by CISA from CISA

Malware development: persistence - part 1. Registry run keys. C++ example.

2022-04-20 by cocomelonc from cocomelonc

Alert (AA22-110A): Russian State-Sponsored and Criminal Cyber Threats to Critical Infrastructure

2022-04-20 by CISA from CISA

Report OSINT: Russia/ Ukraine Conflict Cyberaspect

2022-02-24 by TESORION from Tesorion

Dark Covenant: Connections Between the Russian State and Criminal Actors

2021-09-09 by Insikt Group from Recorded Future

Attacks Against Critical Infrastructure: A Global Concern

2021-08-05 by Threat Hunter Team from Symantec

Russian cyber attack campaigns and actors

2020-12-21 by Adam Hlavek from IronNet

Revisited: Fancy Bear's New Faces...and Sandworms' too

2020-10-19 by Curtis from Riskint Blog

UK exposes series of Russian cyber attacks against Olympic and Paralympic Games

2020-10-19 by ForeignCommonwealth & Development Office from UK Government

T1055 Process Injection

2020-05-21 by Süleyman Özarslan from PICUS Security

IRON VIKING

2020 by SecureWorks from Secureworks

2019 Data Breach Investigations Report

2019-05-08 by Verizon Communications Inc. from Verizon Communications Inc.

BLACK ENERGY – Analysis

2019-01-18 by Mark Edmondson from

Casting a Light on BlackEnergy

2017-09-18 by Paul Vann from ThreatConnect

BlackEnergy – what we really know about the notorious cyber attacks

2017-07-03 by Anton Cherepanov from ESET Research

Sandworm Team

2017-05-31 by MITRE ATT&CK from MITRE

BlackEnergy APT Attacks in Ukraine employ spearphishing with Word documents

2016-01-28 by GReAT from Kaspersky Labs

BE2 extraordinary plugins, Siemens targeting, dev fails

2015-02-17 by Kurt Baumgartner from Kaspersky Labs

BE2 custom plugins, router abuse, and target profiles

2014-11-03 by Kurt Baumgartner from Kaspersky Labs

CVE‑2014‑4114: Details on August BlackEnergy PowerPoint Campaigns

2014-10-14 by Robert Lipovsky from ESET Research

Black DDoS

2010-07-15 by Dmitry Tarakanov from Kaspersky Labs

Black Energy Crypto

2010-03-03 by Julia Wolf from FireEye

BlackEnergy Version 2 Threat Analysis

2010-03-03 by Joe Stewart from Secureworks

BlackEnergy DDoS Bot Analysis

2007-10 by Jose Nazario from Arbor Networks

Basic Information (Credit @etda.or.th)

Tool: BlackEnergy

Names: BlackEnergy, Black Energy

Description: BlackEnergy, its first version shortened as BE1, started as a crimeware being sold in the Russian cyber underground as early as 2007. Initially, it was designed as a toolkit for creating botnets for conducting DDoS attacks. It supported a variety of flooding commands including protocols like ICMP, TCP SYN, UDP, HTTP and DNS. Among the high profile targets of cyber attacks utilising BE1 were a Norwegian bank and government websites in Georgia three weeks before Russo-Georgian War. Version 2 of BlackEnergy, BE2, came in 2008 with a complete code rewrite that introduced a protective layer, a kernel-mode rootkit and a modular architecture. Plugins included mostly DDoS attacks, a spam plugin and two banking authentication plugins to steal from Russian nad Ukrainian banks. The banking plugin was paired with a module designed to destroy the filesystem. Moreover, BE2 was able to - download and execute a remote file; - execute a local file on the infected computer; - update the bot and its plugins; The Industrial Control Systems Cyber Emergency Response Team issued an alert warning that BE2 was leveraging the human-machine interfaces of industrial control systems like GE CIMPLICITY, Advantech/Broadwin WebAccess, and Siemens WinCC to gain access to critical infrastructure networks. In 2014, the BlackEnergy toolkit, BE3, switched to a lighter footprint with no kernel-mode driver component. Its plugins included: - operations with victim's filesystem - spreading with a parasitic infector - spying features like keylogging, screenshoots or a robust password stealer - Team viewer and a simple pseudo “remote desktop” - listing Windows accounts and scanning network - destroying the system Typical for distribution of BE3 was heavy use of spear-phishing emails containing Microsoft Word or Excel documents with a malicious VBA macro, Rich Text Format (RTF) documents embedding exploits or a PowerPoint presentation with zero-day exploit CVE-2014-4114. On 23 December 2015, attackers behind the BlackEnergy malware successfully caused power outages for several hours in different regions of Ukraine. This cyber sabotage against three energy companies has been confirmed by the Ukrainian government. The power grid compromise has become known as the first-of-its-kind cyber warfare attack affecting civilians.

Category: Malware

Type: ICS malware, Reconnaissance, Backdoor, Rootkit, Banking trojan, Keylogger, Info stealer, Wiper, DDoS, Worm

Information: https://www.recordedfuture.com/blackenergy-malware-analysis/

Information: https://threatconnect.com/blog/casting-a-light-on-blackenergy/

Information: https://securelist.com/blackenergy-apt-attacks-in-ukraine-employ-spearphishing-with-word-documents/73440/

Information: https://securelist.com/be2-extraordinary-plugins-siemens-targeting-dev-fails/68838/

Information: https://securelist.com/be2-custom-plugins-router-abuse-and-target-profiles/67353/

Information: https://marcusedmondson.com/2019/01/18/black-energy-analysis/

Information: https://en.wikipedia.org/wiki/BlackEnergy

Mitre-attack: https://attack.mitre.org/software/S0089/

Malpedia: https://malpedia.caad.fkie.fraunhofer.de/details/win.blackenergy

Alienvault-otx: https://otx.alienvault.com/browse/pulses?q=tag:blackenergy

Last-card-change: 2022-12-30

Source: https://apt.etda.or.th/cgi-bin/listtools.cgi

TTP Info (Credit @Mitre)

TA0043 TA0042 TA0001 TA0002 TA0003 TA0004 TA0005 TA0006 TA0007 TA0008 TA0009 TA0011 TA0010 TA0040
Reconnaissance Resource Development Initial Access Execution Persistence Privilege Escalation Defense Evasion Credential Access Discovery Lateral Movement Collection Command and Control Exfiltration Impact
T1047
WINDOWS MANAGEMENT INSTRUMENTATION
a blackenergy 2 plug-in uses wmi to gather victim host details.
T1547.001
BOOT OR LOGON AUTOSTART EXECUTION : REGISTRY RUN KEYS / STARTUP FOLDER
the blackenergy 3 variant drops its main dll component and then creates a .lnk shortcut to that file in the startup folder.
T1547.009
BOOT OR LOGON AUTOSTART EXECUTION : SHORTCUT MODIFICATION
the blackenergy 3 variant drops its main dll component and then creates a .lnk shortcut to that file in the startup folder.
T1543.003
CREATE OR MODIFY SYSTEM PROCESS : WINDOWS SERVICE
one variant of blackenergy creates a new service using either a hard-coded or randomly generated name.
T1574.010
HIJACK EXECUTION FLOW : SERVICES FILE PERMISSIONS WEAKNESS
one variant of blackenergy locates existing driver services that have been disabled and drops its driver component into one of those service's paths, replacing the legitimate executable. the malware then sets the hijacked service to start automatically to establish persistence.
T1548.002
ABUSE ELEVATION CONTROL MECHANISM : BYPASS USER ACCOUNT CONTROL
blackenergy attempts to bypass default user access control (uac) settings by exploiting a backward-compatibility setting found in windows 7 and later.
T1547.001
BOOT OR LOGON AUTOSTART EXECUTION : REGISTRY RUN KEYS / STARTUP FOLDER
the blackenergy 3 variant drops its main dll component and then creates a .lnk shortcut to that file in the startup folder.
T1547.009
BOOT OR LOGON AUTOSTART EXECUTION : SHORTCUT MODIFICATION
the blackenergy 3 variant drops its main dll component and then creates a .lnk shortcut to that file in the startup folder.
T1543.003
CREATE OR MODIFY SYSTEM PROCESS : WINDOWS SERVICE
one variant of blackenergy creates a new service using either a hard-coded or randomly generated name.
T1574.010
HIJACK EXECUTION FLOW : SERVICES FILE PERMISSIONS WEAKNESS
one variant of blackenergy locates existing driver services that have been disabled and drops its driver component into one of those service's paths, replacing the legitimate executable. the malware then sets the hijacked service to start automatically to establish persistence.
T1055.001
PROCESS INJECTION : DYNAMIC-LINK LIBRARY INJECTION
blackenergy injects its dll component into svchost.exe.
T1548.002
ABUSE ELEVATION CONTROL MECHANISM : BYPASS USER ACCOUNT CONTROL
blackenergy attempts to bypass default user access control (uac) settings by exploiting a backward-compatibility setting found in windows 7 and later.
T1574.010
HIJACK EXECUTION FLOW : SERVICES FILE PERMISSIONS WEAKNESS
one variant of blackenergy locates existing driver services that have been disabled and drops its driver component into one of those service's paths, replacing the legitimate executable. the malware then sets the hijacked service to start automatically to establish persistence.
T1070
INDICATOR REMOVAL
blackenergy has removed the watermark associated with enabling the testsigning boot configuration option by removing the relevant strings in the user32.dll.mui of the system.
T1070.001
INDICATOR REMOVAL : CLEAR WINDOWS EVENT LOGS
the blackenergy component killdisk is capable of deleting windows event logs.
T1055.001
PROCESS INJECTION : DYNAMIC-LINK LIBRARY INJECTION
blackenergy injects its dll component into svchost.exe.
T1553.006
SUBVERT TRUST CONTROLS : CODE SIGNING POLICY MODIFICATION
blackenergy has enabled the testsigning boot configuration option to facilitate loading of a driver component.
T1555.003
CREDENTIALS FROM PASSWORD STORES : CREDENTIALS FROM WEB BROWSERS
blackenergy has used a plug-in to gather credentials from web browsers including firefox, google chrome, and internet explorer.
T1056.001
INPUT CAPTURE : KEYLOGGING
blackenergy has run a keylogger plug-in on a victim.
T1552.001
UNSECURED CREDENTIALS : CREDENTIALS IN FILES
blackenergy has used a plug-in to gather credentials stored in files on the host by various software programs, including the bat! email client, outlook, and windows credential store.
T1083
FILE AND DIRECTORY DISCOVERY
blackenergy gathers a list of installed apps from the uninstall program registry. it also gathers registered mail, browser, and instant messaging clients from the registry. blackenergy has searched for given file types.
T1046
NETWORK SERVICE DISCOVERY
blackenergy has conducted port scans on a host.
T1120
PERIPHERAL DEVICE DISCOVERY
blackenergy can gather very specific information about attached usb devices, to include device instance id and drive geometry.
T1057
PROCESS DISCOVERY
blackenergy has gathered a process list by using tasklist.exe.
T1082
SYSTEM INFORMATION DISCOVERY
blackenergy has used systeminfo to gather the os version, as well as information on the system configuration, bios, the motherboard, and the processor.
T1016
SYSTEM NETWORK CONFIGURATION DISCOVERY
blackenergy has gathered information about network ip configurations using ipconfig.exe and about routing tables using route.exe.
T1049
SYSTEM NETWORK CONNECTIONS DISCOVERY
blackenergy has gathered information about local network connections using netstat.
T1021.002
REMOTE SERVICES : SMB/WINDOWS ADMIN SHARES
blackenergy has run a plug-in on a victim to spread through the local network by using psexec and accessing admin shares.
T1056.001
INPUT CAPTURE : KEYLOGGING
blackenergy has run a keylogger plug-in on a victim.
T1113
SCREEN CAPTURE
blackenergy is capable of taking screenshots.
T1071.001
APPLICATION LAYER PROTOCOL : WEB PROTOCOLS
blackenergy communicates with its c2 server over http.
T1008
FALLBACK CHANNELS
blackenergy has the capability to communicate over a backup channel via plus.google.com.
T1485
DATA DESTRUCTION
blackenergy 2 contains a "destroy" plug-in that destroys data stored on victim hard drives by overwriting file contents.