Attackers reached a plant’s safety controllers, the last-resort system that shuts a process down to prevent disaster, and loaded malware onto them. A bug in the malware tripped the plant and exposed the attack before anyone was hurt.
Allegedly state-backedWay in: Phishing emailinferredSafety system targetedHigh-consequence site
Limited official information. The plant’s owner has never published an account or been officially named. Official detail comes from US government sanctions, criminal charges and an FBI alert; the technical account comes from security researchers and Schneider Electric, the controller’s maker.
In 2017, attackers reached the safety instrumented systemsSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do. at a petrochemical plant in the Middle East and loaded custom malware, TRITON (also called TRISIS and HatMan), onto Schneider Electric Triconex safety controllers. A safety instrumented system is the last-resort layer that shuts a process down safely in an emergency, the thing standing between a fault and an explosion or a toxic release.
A first incident in June 2017 tripped the plant. The attack was discovered only after a second trip in August (on 4 August, according to press), when several controllers detected a fault caused by bugs in the malware and took the plant to a safe state. The apparent goal was to disable or subvert the safety system; a coding mistake exposed it instead, and no one was hurt.
Key dates
Way inAbout 2016A custom backdoorA hidden way into a system that an attacker leaves behind so they can return without going through the normal login. gives the attackers a foothold on the corporate IT network
Preparation2016 to 2017Stolen credentials and ordinary admin tools carry them through the DMZDemilitarised zone: a buffer network between the office network and the plant, so nothing connects straight through; in plant layer models it is called Level 3.5. into OT
Preparation2017The safety engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network. is reached and TRITON is loaded onto the controllers
ImpactJune 2017First unplanned plant trip; the malware is not found
Impact4 August 2017 (press)Second trip; the investigation uncovers TRITON
AftermathOctober 2018 to March 2022Hardened Tricon CX released; US sanctions and an indictment follow
How did that happen
The way in, and the way through
The attackers compromised the IT network and worked through the DMZDemilitarised zone: a buffer network between the office network and the plant, so nothing connects straight through; in plant layer models it is called Level 3.5. into the OT network over about a year, using standard administration tools and stolen credentials and covering their tracks. They reached a safety-system engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network. and used TRITON, which speaks the proprietary TriStationThe engineering software and network protocol used to program and reconfigure Triconex safety controllers from an engineering workstation. protocol, to talk to the controllers.
The controllers’ physical key switchThe physical key on a controller that must be turned from RUN to PROGRAM before its logic can be changed, so no remote command on its own can reprogram it. had been left in PROGRAM mode during operation, which is what let the malware download logic. TRITON then used a previously unknown 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. flaw to read and write controller memory and inject an implant. A bug in the implant caused controllers to fault and the plant to trip, which is how the whole operation came to light.
The path through the plant, step by step (the numbers are the steps told below)
Attribution: Alleged, not established: the US Treasury sanctioned a foreign government research institute over TRITON in 2020 and the DOJ charged one of its employees; Mandiant assessed with high confidence that the institute supported the activity. The charges have not been tested in court
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 · InstallationEnterprise ITFrom about 2016
A long-term foothold on the corporate IT network
How the attackers first got in is not settled. The US Treasury says the malware was initially deployed through phishingAn email or message that tricks someone into opening an attachment, clicking a link or giving up a password; spear-phishing is the same thing aimed at a named person. aimed at the facility; FireEye, which investigated, says only that the group was in the networks for almost a year before it reached the safety engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network.. What is known is that a backdoorA hidden way into a system that an attacker leaves behind so they can return without going through the normal login. built on Cryptcat, a small tool for sending data over an encrypted connection, gave them their first foothold, and that it was set to run again every day as a scheduled task. Their files were named after Microsoft update files so that they looked like part of Windows.
From inside, nothing looked wrong. The group did not behave like spies: FireEye saw no keystroke recorders, no screenshots and no bulk theft of documents, only a steady effort to find the way to the plant network. It used standard remote-desktop and administration tools that pass for an administrator at work, deleted its tools when it had finished with them, and altered file timestamps so that an examiner would not spot new arrivals. Whether anything on the office machines ever flagged the backdoorA hidden way into a system that an attacker leaves behind so they can return without going through the normal login. or its daily task is not recorded; the foothold held for almost a year, which says enough.
That year bought the attackers what they wanted most: time to map the route from the office network, through the buffer network between office and plant (the DMZDemilitarised zone: a buffer network between the office network and the plant, so nothing connects straight through; in plant layer models it is called Level 3.5.), to the control system, and then to the safety system behind it.
“A sample of a Cryptcat-based backdoor used to establish the initial foothold was recovered during the investigation; the sample was compiled and uploaded to a malware testing environment by the actor in 2014.”
1The office network is the first target; what watches it is not recorded.
2They plant a backdoor dressed as a daily Windows task.
3The foothold holds for almost a year, unnoticed.
2
Stage 1 · Lateral movementIT to OT boundary2016 to 2017
Patiently through the DMZ toward OT
Most of the group’s effort went into reaching the OT network. It moved from machine to machine with remote desktopRemote Desktop Protocol: the Windows feature for using a computer’s screen, keyboard and mouse from somewhere else, and a favourite target when it is left open to the internet. and standard remote-execution tools, pushed its toolkit through encrypted Secure Shell (SSH) tunnels, and harvested passwords with MimikatzA freely available tool that pulls passwords and login tokens out of a Windows computer’s memory once an attacker has administrator rights on it., a widely used password-stealing program, and a custom tool of its own called SecHack. With those credentials it crossed the DMZDemilitarised zone: a buffer network between the office network and the plant, so nothing connects straight through; in plant layer models it is called Level 3.5., the buffer network between office and plant, looking to anyone watching like an administrator at work. Just before it reached the engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network. it swapped its ordinary tools for custom backdoorsA hidden way into a system that an attacker leaves behind so they can return without going through the normal login. in the IT and OT DMZs.
Nothing public describes what firewalls or rules stood between IT and OT, whether the passwords harvested in the office were the ones that opened the control side, or whether any alarm was raised as the group crossed. What is clear is that harvested credentials, remote desktopRemote Desktop Protocol: the Windows feature for using a computer’s screen, keyboard and mouse from somewhere else, and a favourite target when it is left open to the internet. and ordinary administration tools, in the hands of an actor imitating an administrator, were enough to get through.
By 2017 the group held a foothold on the distributed control systemDistributed control system: the plant-wide control system of continuous processes such as refining and chemicals, where controllers, servers and operator screens come as one package., the computers that run the process itself. It did not touch the process from there. It was after something else.
“They relied on encrypted SSH-based tunnels to transfer tools and for remote command/program execution.”
1A path runs from the office network through the DMZ into the plant.
2Stolen passwords and admin tools carry them across the DMZ.
3They reach a foothold on the control system itself.
3
Stage 1 · Lateral movementSafety system2017
Reaching the safety-system engineering workstation
With a foothold on the process control system, the attackers could have studied the plant or tampered with its controllers. FireEye found they did neither. Having spent almost a year getting this far, they went straight for the safety-system engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network., the Windows PC used to program the Triconex safety controllersSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do., and once on it put nearly all their effort into delivering and refining a payload for those controllers.
The safety network should have been out of reach. The vendor’s own guidance says as much, and FireEye’s advice afterwards included that a PC able to program safety controllersSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do. should never be connected to two networks at once. Here the attackers, already holding a foothold on the DCSDistributed control system: the plant-wide control system of continuous processes such as refining and chemicals, where controllers, servers and operator screens come as one package. and custom backdoorsA hidden way into a system that an attacker leaves behind so they can return without going through the normal login. in the OT DMZDemilitarised zone: a buffer network between the office network and the plant, so nothing connects straight through; in plant layer models it is called Level 3.5., went on to reach the safety engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network.. Which of those footholds the final hop was made from, and whether the station sat on two networks or simply on a shared one, is not recorded; what is recorded is that a path into the safety layer existed.
From this workstation the group could speak to the safety controllersSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do. in their own language. What it needed next was for the controllers to listen.
“The actor was present in the target networks for almost a year before gaining access to the Safety Instrumented System (SIS) engineering workstation.”
1The safety network is not walled off from the control system.
2They reach the PC that programs the safety controllers.
3Now they can speak to the safety controllers directly.
4
Stage 2 · Deliver ICS payloadSafety system2017
Malware talks to the safety controllers, which were in program mode
On the engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network. the attackers ran a program called trilog.exe, named after a genuine Triconex tool for reading logs. It was TRITON: a Python program packaged as a Windows executable that spoke TriStationThe engineering software and network protocol used to program and reconfigure Triconex safety controllers from an engineering workstation., the vendor’s own undocumented protocol for configuring Triconex controllers, which, FireEye said, suggested the group had taken the protocol apart and worked it out for itself. Pointed at one controller’s address at a time, it could halt the controller, read its memory or load a new program into it.
The controllers accepted the download because of a key. Each Triconex has a physical key switchThe physical key on a controller that must be turned from RUN to PROGRAM before its logic can be changed, so no remote command on its own can reprogram it., and its logic can only be changed while that key is in PROGRAM. At this plant the switch had been left in PROGRAM during normal operation, so a download over the network was possible. The group also did its work on the controllers out of hours, when fewer people were on site to react to any alarm that might result.
With the door open, TRITON could append its payload to the controller’s program memory. What it put there was not a logic change an engineer would recognise.
“The Triconex SIS Controller was configured with the physical keyswitch in ‘program mode’ during operation.”
1The controllers’ key switch is left in program mode.
2A fake vendor tool speaks the controllers’ own protocol.
3The malware writes its payload into the safety controllers.
5
Stage 2 · Deliver ICS payloadSafety system2017
A firmware flaw injects an implant into the controller
TRITON’s payload was two pieces of code: an injector, inject.bin, and a backdoorA hidden way into a system that an attacker leaves behind so they can return without going through the normal login. for the controller itself, imain.bin. The injector used a flaw nobody outside the attackers knew about. In Tricon MP3008 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. versions 10.0 to 10.4, the firmware kept a copy of the processor’s working state at a fixed spot in memory, and writing to that spot let the code raise itself to supervisor level. From there it could read, write and run code anywhere in the controller’s memory. It planted its backdoor so that the firmware ran it on every cycle, and switched off a consistency check in the firmware that might otherwise have noticed.
The record describes nothing in the plant that verified what the safety controllersSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do. were actually running, so an implant in memory had nothing to hide from. The flaw itself was unpatched because no fix existed yet: it was fixed in later 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. and given CVECommon Vulnerabilities and Exposures: the public numbering scheme for known software flaws, written as CVE, the year and a serial number, so everyone refers to the same bug. numbers in 2018, after the attack had been analysed. The US indictment describes malware built to stop the safety system working while the control system appeared normal.
The implant was designed to give the attackers lasting control of the safety controllersSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do.. It also carried a mistake.
“Triton is able to read, write and execute code in memory on the safety controller at an arbitrary address ...”
1A firmware flaw in the safety controller allows a hidden implant.
2The flaw injects a hidden implant into the controller.
3The attackers hold lasting control of the safety system.
6
Stage 2 · ImpactSafety systemJune and August 2017 (press: 4 August)
The controllers trip the plant, and the attack is found
The attack came to light because it went wrong. In June 2017 a safety controllerSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do. tripped part of the plant; according to press, Schneider specialists examined the unit, found nothing unusual, and the plant restarted. Then on the evening of 4 August, again according to press, two emergency shutdown systems activated and took part of the plant offline. FireEye’s investigation found that application code in the controllers’ redundant processors had failed a validation check, producing a diagnostic failure, and that TRITON’s writes to controller memory were the likely cause: a bug in the malware, not the attackers’ intent, had tripped the plant.
In the control room there was nothing to see but the trip. Weekend engineers, press reported, spotted nothing out of the ordinary on their screens or on the plant floor; the safety system had simply done its job and failed safe. Because the controllers had tripped rather than carried on with corrupted logic, the operator opened an investigation. Press reported that investigators, casting a wider net after the second trip, found unusual communications from the IT network to the operational workstations and then the malware itself, and that by mid-August the attackers realised they had been spotted. Nothing in the record suggests any alarm had told anyone that a safety controllerSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do.’s program had changed, or that the key had been in PROGRAM all along.
According to press, the plant stayed down for more than a week while the investigation ran, and the attackers deleted traces of their tools from the engineering workstationsThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network. in a belated effort to cover their tracks; the US Federal Bureau of Investigation (FBI) adds that after the August attack they again got into a file server to collect information on how the facility had responded. The analysis that followed led to Schneider’s advisories, the Tricon CX release, and in time to sanctions and an indictment.
Inside the plant: Press reported that on the evening of 4 August two emergency shutdown systems activated and the weekend shift saw nothing else unusual on its screens or on the plant floor; FireEye found that the controllers had reported a diagnostic failure, and the plant’s operator started the investigation that found the malware.
“The facility automatically entered a safe state after several of the Triconex ICS safety controllers detected an anomaly, caused by software bugs in the TRITON malware.”
The same steps, as decisions. At most steps you pick the control that would have stopped the attack at a cost a high-consequence 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 shield0 / 1 insight
High-consequence site · the band this exercise judges by
A petrochemical plant whose safety instrumented system is the last line against an explosion or toxic release. Attacking that layer puts human life directly at risk, so high-assurance controls on the safety system are justified here in a way they are not at a water utility.
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 · InstallationFrom about 2016
A long-term foothold on the corporate IT network
1The office network is the first target; what watches it is not recorded.
2They plant a backdoor dressed as a daily Windows task.
3The foothold holds for almost a year, unnoticed.
A custom backdoor hidden as a daily Windows task
FireEye assessed the group had been operating since as early as 2014, based on the compile dates of its custom tools (a date it says is unrelated to this intrusion’s timeline). In the victim’s networks a Cryptcat-based backdoorA hidden way into a system that an attacker leaves behind so they can return without going through the normal login. established the initial foothold, with persistence tasks scheduled to run daily, and the actor was present for almost a year before it reached the safety engineering workstationThe PC that holds the vendor software used to write, download and change controller programs, which makes it the most powerful machine on the plant network.. The intrusion was patient and quiet. Re-read this step in the story
Before the control: where in the plant was the attacker at this step? 1 insight point
02
Stage 1 · Lateral movement2016 to 2017
Answer the step above
Patiently through the DMZ toward OT
03
Stage 1 · Lateral movement2017
Answer the step above
Reaching the safety-system engineering workstation
04
Stage 2 · Deliver ICS payload2017
Answer the step above
Malware talks to the safety controllers, which were in program mode
05
Stage 2 · Deliver ICS payload2017
Answer the step above
A firmware flaw injects an implant into the controller
06
Stage 2 · ImpactJune and August 2017 (press: 4 August)
Answer the step above
The controllers trip the plant, and the attack is found
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
The safety system did its job: the controllers failed safe and shut the plant down, and because the malware was buggy the intrusion was found during the investigation rather than causing harm. Schneider Electric worked with the customer and ICS-CERT, issued a security notification, and in October 2018 released the enhanced Tricon CX controller version 11.4 against the TRITON techniques, with guidance to keep the key switchThe physical key on a controller that must be turned from RUN to PROGRAM before its logic can be changed, so no remote command on its own can reprogram it. out of PROGRAM mode, keep controllers in locked cabinets, deploy safety systems on isolated networks and alarm whenever the key switch is in PROGRAM mode. Allegations followed: US Treasury sanctions on a foreign government research institute in October 2020 and a DOJ indictment of one of its employees, returned in June 2021 and unsealed in March 2022. TRITON is treated as a watershed because it was the first attack aimed squarely at the layer that protects human life.
Take this to your plant
1The cheapest control here was free: a key switchThe physical key on a controller that must be turned from RUN to PROGRAM before its logic can be changed, so no remote command on its own can reprogram it. in RUN during operation would have blocked the logic download. Turn it, and lock the cabinet.
2The safety system belongs in its own isolated zone. An intruder in the process control network should never be able to reach the safety controllersSafety instrumented system: an independent controller with its own sensors and valves that trips the process to a safe state when a limit is crossed, whatever the normal controls do..
3Attacks on the safety layer put human life in the line of fire, which is why high-assurance controls, logic integrity, isolation, independent protection, are justified here and not at every plant.
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.
Primary sources identify the victim only as “a petrochemical facility in the Middle East” (Dragos, US Treasury, FBI) or “a foreign refinery” (DOJ). The name Petro Rabigh and the location in Saudi Arabia come from press (E&E News, 2019) and are not officially confirmed.
The dates of the two trips are only partly official: the FBI says the malware was used in June and again in August 2017 and the DOJ says it caused two automatic emergency shutdowns; the day of the second trip, 4 August 2017, comes from press.
The first-entry method and date are not pinned down: the US Treasury says the malware was initially deployed through phishing of the facility; FireEye says only that the actor was in the networks for almost a year before reaching the safety engineering workstation, and that the group’s custom tools show it has been operating since as early as 2014, which dates the group, not this intrusion. The dwell time shown is therefore approximate.
Whether the attackers intended a physical, potentially lethal event or only to disable the safety system is assessed (FireEye, moderate confidence) and alleged (DOJ indictment), not proven; the plant tripped because of a bug, not a deliberately triggered unsafe state.