Facing ransomware in a plant, the priority is to keep the process in, or bring it to, a safe state, isolate the affected segments without shutting down blindly, preserve evidence and recover from verified clean backups. The first mistake is rebooting everything; the second is restoring without knowing how the attacker got in.
Symptom
Operators see locked screens, files with strange extensions, a note demanding payment, engineering stations or servers that do not start, historians without data, or corporate network machines that stop working, and there is doubt whether the operations network was reached. Sometimes the first sign is that the backups disappeared or that someone can no longer log in to the domain.
This guide is for the first hours and for ordering the recovery. To understand how these attacks against the power sector evolve and how they reach operations, see Trends in cyberattacks on the power sector.
First: process safety
Before the files comes the operation. Confirm with operations that the process is in a safe state and that it can be run manually, locally or with the available control backups, without depending on what is affected. Protective relays and controllers usually work without the SCADA; check that they still do and that nobody has touched them. If there is no certainty about the protection or control, decide with the person responsible for operation, which may mean reducing load, going to manual or taking equipment out of service.
Likely causes and entry routes, from most to least likely
| Route | How to recognize it |
|---|---|
| Malicious email or link on the corporate network, passing into operations through permitted connections | First affected machines in offices; then servers that talk to the operations network |
| Exposed remote access or stolen credentials (VPN, remote desktop, third-party access) | Remote logins outside working hours or from unknown origins before the encryption |
| Domain credentials compromised and reused on operations workstations | Privileged accounts used on many machines in a short time |
| Third-party equipment or infected maintenance laptop connected to the network | The first affected machine coincides with a visit or a job |
| Unpatched vulnerability on an exposed server | Compromise of a server reachable from outside followed by lateral movement |
| Compromised or permanently connected backup | The backups are also encrypted or deleted |
How to diagnose it (first hours)
- Declare the incident and note the time. Activate the plan; see OT incident response plan. Appoint one person to keep the log: time, who, what was done and why.
- Define the scope. Which machines show the symptom? Are there engineering stations, SCADA servers, historians or gateways? Compare with the asset inventory; without an inventory, the scope will be uncertain.
- Isolate without switching off blindly. Disconnect from the network (cable, switch port or firewall rule) the affected devices and segments and the links between the corporate network and the operations network. Do not disconnect what sustains process control without coordinating with operations.
- Preserve evidence. Keep affected machines without reformatting, copies of the note and of sample encrypted files, and firewall, domain and device logs. Memory is lost on shutdown; decide with the response team whether to capture it first.
- Look for the origin. First affected machine, first time, accounts used, recent remote accesses. That data decides what to close before restoring.
- Assess the backups. Where they are, what date, whether they are connected to the network, whether they were touched and whether there are offline copies. Test the restore in a separate environment, not on the production machine.
- Report. Review the reporting obligations to grid operators, authorities or clients under your local rules.
Illustrative example
Generic situation with invented data. At 06:10 workstations in a solar plant office fail; at 06:40 the historian and the SCADA server ask for a payment. The firewall log shows the link between networks was open for the historian. Operations confirms that the inverters and the plant controller keep running on local setpoints and that the protections were not affected. The link is closed, the servers are isolated and kept for analysis, and operation goes manual with radio communication. The weekly offline backup is four days old: it is restored in a separate environment, verified, and the server is rebuilt after changing all credentials and closing the remote access the attacker used. The loss of four days of historian data is recorded.
What to do
- Contain first, recover afterwards. With containment stable and the origin identified, start rebuilding.
- Restore from clean, verified backups, predating the compromise; rebuild on verified systems and not on the infected ones.
- Change all credentials (domain, local accounts, remote access, service accounts, field device passwords) and revoke certificates and keys if there was access.
- Review the field devices. Compare settings and configuration of relays, controllers and inverters against backups; see IED settings backup and recovery. If there is doubt they were altered, make the comparison a priority.
- Close the entry route and strengthen the separation between networks; see OT network segmentation: zones and conduits.
- Return to operation in stages with reinforced monitoring and return criteria defined with operations.
- Learn: lessons learned, plan update, offline backups with periodic restore tests.
Field checklist
- Operations confirmed safe state and ability to operate manually.
- Local protections and controllers verified.
- Incident declared, owner and log started.
- Affected devices and segments isolated; link between networks closed.
- Evidence preserved (machines, samples, logs).
- Origin and time of entry identified.
- Backups located, dated and tested outside production.
- Credentials changed before reconnecting.
- Field configuration compared with backups.
- Mandatory reports made.
What not to do
- Do not reboot or switch off everything by reflex, and do not reformat machines before preserving evidence.
- Do not pay or negotiate with the attacker on your own initiative: it is a decision for management with legal and incident response advice.
- Do not restore onto a network that still has the attacker inside.
- Do not connect the backup to the network before confirming it is clean.
- Do not use the affected machines to browse, send email or access privileged accounts.
- Do not operate medium- or high-voltage equipment or work on energized protections without qualified personnel and operator authorization.
When to call us
Call us when you need to verify the configuration of relays, controllers or inverters after the incident, rebuild communication and access with segmentation and new credentials, or define offline backups and a tested response plan for your plant. We configure it remotely: request configuration support.
Frequent problems
A virus encrypts files on the engineering workstation
How it shows up. The relay projects, settings backups and libraries on the engineering workstation change extension, do not open or appear next to a ransom note. Sometimes the first warning is that the configuration software says the file is damaged. What is serious is not only the loss of files: that workstation holds the settings used to configure relays and controllers, and usually has credentials and a direct connection to them.
Likely causes, in order. 1) An attachment, download or USB drive used on a machine that is also used for email or browsing. 2) Remote access by a contractor with reused credentials. 3) A shared folder on the workstation visible from the office network. 4) Configuration software installed from an unverified source.
How to diagnose. Before switching anything off, note the time of the first affected file (the modification date of the encrypted files gives it) and the list of network folders the workstation had mounted. Ask who used the machine and with what media in the last 48 hours. From another clean machine, check whether the relays still respond and whether their current configuration matches the last known backup; any difference is treated as a security incident, not as an equipment fault.
What to do. Disconnect the workstation from the network (cable, not just logging out) and leave the machine on if possible, so as not to lose evidence in memory. Revoke the passwords and keys that workstation knew, on relays and on remote access. Rebuild the workstation from a clean image and recover the projects only from an offline backup predating the detected date, comparing their content against what is loaded in the devices. To order the sequence use the response path to an OT attack and, to verify the controls ended up right, cybersecurity testing at FAT and SAT.
What not to do. Do not pay or negotiate without management and legal advice; do not connect a backup drive to the workstation to “see if it opens”; do not load any project from the affected workstation to the relays until its integrity is checked.
Related guides
- Parent guide: how power cyberattacks evolve
- How to build the OT response plan
- Substation and plant cybersecurity
- Common attacks on SCADA protocols
- Secure remote access to substations
- OT asset inventory of a substation
References
- NIST SP 800-82 Rev. 3, Guide to Operational Technology (OT) Security, 2023.
- IEC 62443-3-3, Industrial communication networks – Network and system security – Part 3-3: System security requirements and security levels.
Frequently asked questions
What should I do in the first minutes of a ransomware attack?
Activate the incident plan, notify operations and the decision maker, make sure the process is in a safe state and can be operated manually, isolate the affected devices and segments from the network without switching them off yet, and do not pay or answer the attacker on your own initiative. Note times and actions from the start.
Should I switch off the infected devices?
Not immediately and not blindly. Disconnecting them from the network stops the spread; switching them off can destroy evidence in memory and complicate the analysis. The decision depends on the device and the risk, and must be made by whoever knows the plant together with the response team.
Can I restore from the backup and carry on?
Only after checking that the backup predates the compromise, that it is clean and that the access the attacker used has been closed. Otherwise the ransomware returns. It is best to rebuild on verified systems and change all credentials.