May 2023 · Energy, mostly smaller operators · Denmark

Danish energy sector 2023

A critical flaw in internet-facing Zyxel firewalls let attackers take 11 energy companies in one coordinated strike, and 22 within a fortnight. A sector-wide sensor network, not the utilities themselves, caught it.

Not attributedWay in: Device exposed to the internetPre-positioning, no disruptionBaseline site

What happened

The short version

On 11 May 2023 attackers exploited a critical flaw in internet-facing Zyxel firewalls at 16 Danish energy companies, taking 11 of them immediately. Over the next two weeks further companies were hit, reaching 22. SektorCERT, the sector’s non-profit cyber centre, spotted the pattern across its members through a shared sensor network and coordinated the clean-up; some utilities cut their internet connection and ran in island modeRunning the plant with its network cut off from the office and the internet, so production can continue while the rest of the company deals with an incident., one for six days.

In a second wave from 22 May the compromised firewalls were pulled into Mirai botnetsA large group of hacked computers or devices, such as home routers, that an attacker controls remotely and uses to hide traffic or launch attacks. and used for denial-of-service attacks on targets in the United States and Hong Kong. No Dane lost electricity or heat, but SektorCERT judged that the attackers could have reached deep into Danish infrastructure had they not been stopped.

Key dates

  1. Preparation25 April 2023Zyxel publishes the critical firewall flaw and fixed firmwareThe built-in software inside a device such as a PLC, switch or firewall, below the user programs, which the maker updates from time to time.
  2. Preparation1 May 2023SektorCERT issues an extraordinary warning to update
  3. Way in11 May 2023One crafted packet each compromises 11 of 16 targeted firewalls
  4. Impact22 to 25 May 2023Second wave: firewalls load botnetA large group of hacked computers or devices, such as home routers, that an attacker controls remotely and uses to hide traffic or launch attacks. software and join denial-of-service attacks
  5. Response22 to 31 May 2023Members disconnect, run islandedRunning the plant with its network cut off from the office and the internet, so production can continue while the rest of the company deals with an incident. (one for six days) and replace firewalls
  6. AftermathNovember 2023SektorCERT publishes its report with 25 recommendations

How did that happen

The way in, and the way through

Zyxel published the vulnerability (CVE-2023-28771) and a patch on 25 April 2023, and SektorCERT warned its members on 1 May, but many had not updated: some assumed a relatively new firewall was already current, some had opted out of updates because the supplier charged to install them, and some did not know they had the devices. On 11 May a single crafted packet gave the attackers full control of each unpatched firewall with no credentials.

The firewall was often the only thing between the internet and the utility’s operational network, so taking it meant reaching the infrastructure behind it. The attackers pulled back each firewall’s configuration and usernames; from 22 May, further firewalls were loaded with botnetA large group of hacked computers or devices, such as home routers, that an attacker controls remotely and uses to hide traffic or launch attacks. malware, and at one company internal production traffic stopped too.

The path through the plant, step by step (the numbers are the steps told below)

Attribution: Not attributed. SektorCERT saw two single packets in the second wave go to addresses it linked to the Sandworm group but said Sandworm’s involvement could not be stated with certainty; Forescout’s later analysis concluded the second wave was indiscriminate botnet exploitation, not a targeted state attack

The sequence of events

How it unfolded, step by step

The record in order, from the first foothold to the recovery. Each step says what was done, how it worked, what it looked like from inside the plant, and where the attacker was in the plant at that moment. Read this first; the game that follows asks what would have stopped each step.

  1. Stage 1 · ReconnaissanceInternet25 April to 10 May 2023

    A critical firewall flaw is patched; many do not apply it

    On 25 April 2023 Zyxel published a critical flaw in a range of its firewalls, rated 9.8 out of 10, together with fixed firmwareThe built-in software inside a device such as a PLC, switch or firewall, below the user programs, which the maker updates from time to time.. Many of SektorCERT’s members used exactly these firewalls to protect their control systems, and the flaw let anyone on the internet run commands on the device without a password. SektorCERT sent its members an extraordinary warning on 1 May: install the update now.

    Inside the energy companies, very little happened. Some believed a firewall bought only recently must already be up to date. Some had declined updates because the supplier charged to install them, although the software itself was free. Some did not know they had the device at all, because a supplier had installed it without telling them.

    That left a window of more than two weeks in which a known and fixable flaw sat open on the internet at company after company. How the attackers knew which of the 300 members to aim at has never been explained; SektorCERT records only that they did not miss a single shot.

    “the attackers knew exactly who to attack. ... To this day, there is no clear explanation of how the attackers had the necessary information, but we can state that among the 300 members, they did not miss a single shot.”

    Source 1: The attack against Danish critical infrastructure (TLP:CLEAR)
    1. 1Internet-facing firewalls protect the plants, some unknown to staff.
    2. 2A critical flaw and its free fix are published; few update.
    3. 3A known, fixable flaw sits open for two weeks.
  2. Stage 1 · ExploitationIT to OT boundary11 May 2023

    One packet takes 11 firewalls at once

    On 11 May the attackers sent a single, specially crafted packet to each of 16 chosen firewalls, aimed at the service that listens on the internet for remote connections, a service open to any address in the world. The flaw made the device run the attackers’ commands with its highest level of control, and no login was asked for at any point. Eleven firewalls fell at once; the other five attempts failed, possibly because the packets were malformed.

    For most of these companies the firewall was the only thing between the internet and the network that ran their plant, with no second layer behind it. Taking the firewall therefore meant standing at the door of the operational network. Nothing at the companies themselves is recorded as raising an alarm; what gave the attack away was SektorCERT’s shared sensor network seeing the same thing happen at eleven members on the same day.

    By the time each company was secured, the attackers had already run what they wanted on its firewall, which is the next step.

    Inside the plant: SektorCERT’s analysts worked on through the afternoon, evening and night of 11 May, although it had no staffing for work outside normal hours, and with help from suppliers and members every one of the 11 compromised companies was secured.

    “In a coordinated attack against 16 carefully selected targets among Danish energy companies ... 11 companies were compromised immediately”

    Source 1: The attack against Danish critical infrastructure (TLP:CLEAR)
    1. 1One firewall is the only wall before the plant network.
    2. 2One crafted packet seizes the firewall, no login needed.
    3. 3Eleven firewalls fall in a single coordinated strike.
  3. Stage 1 · Command and controlIT to OT boundary11 May 2023

    Firewalls hand over their configuration and call home

    On every firewall they had taken, the attackers ran a command that sent back the device’s configuration and its list of usernames. SektorCERT read this as reconnaissance: learning how each firewall was set up, what sat behind it and which accounts existed, before deciding what to do next. The compromised firewalls also made contact with infrastructure the attackers controlled.

    Nothing suggests any of this appeared where the operators could see it: the report shows no firewall logs being collected and no small company watching for a firewall talking to a stranger. The only reason anyone knew was that SektorCERT’s sensors, installed at its members as a shared service, saw the same pattern at company after company.

    Then, for the next ten days, there was silence from the attackers. What they meant to do with the access is not known; SektorCERT’s judgement was that, left alone, they could have reached deep into the infrastructure behind the firewalls.

    “the attackers executed code on the firewall that caused it to hand their configuration ... as reconnaissance to see how the respective firewalls were configured”

    Source 1: The attack against Danish critical infrastructure (TLP:CLEAR)
    1. 1The small utilities watch nothing their firewalls do.
    2. 2Each firewall sends back its settings and user list.
    3. 3Only the shared sensors see the pattern spread.
  4. Stage 2 · Deliver ICS payloadIT to OT boundary22 May 2023

    Second wave: a firewall is made to pull down new software

    On the afternoon of 22 May the sensors raised an alarm: a member’s firewall was downloading new software from an address on the internet over an insecure connection, and the download changed how the device behaved. The alarm came only once the download was already under way. SektorCERT leaned towards this being a different group from the first wave, possibly using two further flaws in the same firewalls that Zyxel did not announce until 24 May.

    On SektorCERT’s advice the member cut its internet connection and ran in island operation, with the plant working on its own. A second member was hit the same evening and did the same. In that second case the only way to get the attackers out proved to be replacing the firewall altogether, and the old device never went back into service.

    If the attackers really were using flaws that had not yet been announced, patching could not have helped. What decided whether a company kept running was whether its firewall was the plant’s only wall, and whether it could disconnect and carry on without it.

    Inside the plant: Just before 15:00 the member closed its internet connection completely and went into island operation; the second member, hit that evening, had done the same by about 20:00.

    “the member closed, just before 15, their internet connection completely and went into island operation. ... It later proved necessary to completely replace the firewall to get the attackers out”

    Source 1: The attack against Danish critical infrastructure (TLP:CLEAR)
    1. 1The firewall is the plant’s only wall, even once patched.
    2. 2A firewall is forced to pull down new software from outside.
    3. 3Operators cut the line and run the plant islanded.
  5. Stage 2 · ImpactInternet22 to 25 May 2023

    Compromised firewalls join botnets and attack others

    A few minutes after the 22 May download, the firewall began behaving as part of Mirai, a well-known botnetA large group of hacked computers or devices, such as home routers, that an attacker controls remotely and uses to hide traffic or launch attacks. of hijacked internet devices. Under the botnet’s orders it took part in denial-of-service attacks, flooding one target in the United States and one in Hong Kong with traffic. On 24 May the sensors watched further members’ firewalls pull down different payloads and join in, one of them being taken into the Mirai Moobot network.

    From inside a utility there was nothing to see. A firewall attacking strangers can go on passing normal traffic, and nobody at these companies was watching how much data left the site or where it went. Once again the shared sensors were the only witness. Forescout later argued that this second wave looked like indiscriminate mass exploitation of unpatched Zyxel firewalls everywhere, not an attack aimed at Denmark.

    On the evening of 24 May one firewall sent a single 1,340-byte packet, with no reply, to an address SektorCERT had reliable information belonged to the Sandworm group; in the early hours of 25 May another member’s firewall sent one more such packet to a second suspected Sandworm server. Those two packets are the whole basis for the Sandworm question, and SektorCERT itself said whether Sandworm was involved could not be said with certainty.

    Inside the plant: On 24 May one member’s firewall was so overloaded by the attack traffic it was sending that it stopped working and took the member’s own network down with it.

    “participated in DDoS attacks with two targets in the USA and Hong Kong ... included in the well-known Mirai Moobot network.”

    Source 1: The attack against Danish critical infrastructure (TLP:CLEAR)
    1. 1No one watches how much traffic leaves each site.
    2. 2Hijacked firewalls flood strangers with denial-of-service traffic.
    3. 3The utilities become weapons against distant targets.
  6. Stage 2 · Response and recoveryControl network11 to 31 May 2023

    Clean-up, firewall replacements, and a sector that held

    SektorCERT set up an incident team, told every member to patch at once, and secured each compromised company in turn. Members cut their internet connections, ran in island operation and replaced firewalls. On 25 May SektorCERT also brought in the police’s national cybercrime centre and the Danish Centre for Cyber Security, and sent analysts on site.

    At one member the firewall also served as the router for the operational network, so when it went down on 25 May the company lost sight of three remote sites and its production traffic stopped. The company shut down all its internet connections but kept the dead firewall running so that any malware in its memory would not be lost, ordered a new one from its supplier, and as a result ran islandedRunning the plant with its network cut off from the office and the internet, so production can continue while the rest of the company deals with an incident. for six days.

    No Dane lost electricity or heat, and SektorCERT judged the consequences for critical infrastructure to have been minimal. What the six days exposed was a plant that stopped when one box at the edge did, with no spare on the shelf and no agreed line on whose job the box was. SektorCERT’s report set out 25 recommendations for its members, and more than 100 of them joined its monthly member call on 31 May.

    Inside the plant: Staff at the member whose firewall failed drove out to each of its remote sites to run them by hand; the operations manager’s remark was that it was good weather for driving.

    “chose to order a new firewall from the supplier and therefore ended up running in island operation for 6 days ... the attacks have had minimal consequences for the critical infrastructure”

    Source 1: The attack against Danish critical infrastructure (TLP:CLEAR)
    1. 1No spare firewall, no plan, no segmentation behind the device.
    2. 2Members disconnect, swap firewalls and run islanded.
    3. 3No Dane loses electricity or heat; the sector holds.

That is the record. Now the question each step raises:

Could you have stopped it?

Now you decide

Could you have stopped it?

The same steps, as decisions. At most steps you pick the control that would have stopped the attack at a cost a baseline site can carry; at some you place the attacker on the plant map first, or spot the one control that does not act. A nuclear-grade answer at a water utility scores less than the right-sized one, because the money and the people are not infinite. Round 2 hands you a budget. “Would have stopped” means in this exercise’s judgement, with the control in place and working; the record rarely says what the operator actually had, and no control is a guarantee.

Step 1 of 6
0 / 18 shield 0 / 1 insight
Baseline site · the band this exercise judges by

Mostly smaller energy operators, whose firewall was often all that stood between the internet and the plant. The reasonable expectation is hygiene: patch the edge, reduce exposure, know what you have, and be able to run disconnected.

Target security levels come from the site's own IEC 62443-3-2 risk assessment; these bands are how the game judges what is proportionate. The reasoning under each answer says why a control is the right weight for this site.
01
Stage 1 · ReconnaissanceInternet25 April to 10 May 2023

A critical firewall flaw is patched; many do not apply it

  1. 1Internet-facing firewalls protect the plants, some unknown to staff.
  2. 2A critical flaw and its free fix are published; few update.
  3. 3A known, fixable flaw sits open for two weeks.

Targeting a published firewall flaw left unpatched

Zyxel released its advisory and fixed firmwareThe built-in software inside a device such as a PLC, switch or firewall, below the user programs, which the maker updates from time to time. for CVE-2023-28771, rated 9.8, on 25 April, and SektorCERT issued an extraordinary warning on 1 May. Many members did not update: some believed a relatively new firewall must be current, some had opted out of updates because the supplier charged to install them, and some did not know they had the devices. Re-read this step in the story

What would have closed the window at a small energy operator?

02
Stage 1 · Exploitation11 May 2023
Answer the step above

One packet takes 11 firewalls at once

03
Stage 1 · Command and control11 May 2023
Answer the step above

Firewalls hand over their configuration and call home

04
Stage 2 · Deliver ICS payload22 May 2023
Answer the step above

Second wave: a firewall is made to pull down new software

05
Stage 2 · Impact22 to 25 May 2023
Answer the step above

Compromised firewalls join botnets and attack others

06
Stage 2 · Response and recovery11 to 31 May 2023
Answer the step above

Clean-up, firewall replacements, and a sector that held

Scoring: 3 points for the proportionate control, 2 for one that works but is heavier than this site needs, 1 for a control that helps, 0 for one that does not act at that step. In an odd-one-out step, 3 points for spotting the control that does not act. Plant-map questions earn insight points. Sources are listed at the end of the page. Jump to sources

Response and recovery

How they got back

SektorCERT formed an incident team, warned all members to patch immediately, and secured each of the compromised companies, with staff working beyond its normal hours. During the second wave members cut their internet connections and ran in island modeRunning the plant with its network cut off from the office and the internet, so production can continue while the rest of the company deals with an incident., replaced compromised firewalls, and in one case ran islanded for six days after the production network stopped. No Dane lost electricity or heat. SektorCERT published 25 recommendations covering exposure, updates, logging, segmentation, device inventory and supplier management, and more than 100 members joined its next sector call.

Take this to your plant

  • 1The firewall facing the internet is the one device that must be patched within days of a critical advisory. The patch and the warning both existed here; acting on them was the gap.
  • 2When the firewall is the only thing between the internet and the plant, losing it is losing the plant. Segment behind it and keep a spare, so you can drop it and keep running.
  • 3Small operators cannot each run a monitoring team. A shared sector sensor network is how they get the visibility that caught this campaign.

Sources

Where this record comes from

Government advisories, the victim's own statements, court and parliamentary records, and the technical reports of the teams that analysed the malware. Press is used only where no primary record exists, and is marked.

  1. 1
    The attack against Danish critical infrastructure (TLP:CLEAR) SektorCERT (Denmark), 2023 · Sector CERT report
  2. 2
  3. 3
  4. 4
    CVE-2023-28771 Detail NIST National Vulnerability Database, 2023 · Government vulnerability record
Where the record is uncertain
  • Attribution is contested: SektorCERT observed a single 1340-byte packet on 24 May to an IP address it had reliable information belonged to the Sandworm group, and one more from another member early on 25 May to a second suspected Sandworm server, but said Sandworm’s involvement could not be stated with certainty and that the evidence did not support accusing a state; Forescout concluded the second wave was indiscriminate botnet exploitation, not a targeted state attack.
  • Whether the two waves were one campaign or separate events is disputed; SektorCERT itself leaned towards two different groups, and Forescout concluded the waves were unrelated.
  • The affected companies are anonymised in the report, which does not give their size or staffing. That they were mostly smaller operators follows from SektorCERT’s note that the Zyxel firewalls involved are typically used in smaller companies; that members had no monitoring of their own is inferred from the reliance on the shared sensors.

Talk to RelyBlue

Which of these doors is open in your plant?

An assessment that starts from the attacks that actually happened, scoped to what a site like yours should carry.

  • You talk to a senior advisor, never a salesperson