Most plants believe their controllers are backed up until the day a CPU is wiped and the only project file on the share is two years old, will not open in the installed software, or does not match what was running. This guide is the controller-level procedure: what a complete backup of one PLC, safety controller or RTU must contain, how to capture it, how to prove it is intact and equal to the running logic, and how to test a restore onto spare hardware. It is written for controls engineers, OT security leads and integrators who own individual controllers. For plant-wide backup architecture, golden images of servers and restoration order, see the OT Backup, Recovery and Golden Image Guide; this page does not repeat it.
Key takeaways
- A program file is not a backup. A restorable controller backup is the project plus hardware configuration, firmware revision, protection settings, network parameters, the engineering software version that opens it, and the change record that explains it.
- Use two integrity checks, not one. A SHA-256 hash proves the stored file has not changed; a semantic compare in the engineering tool proves the stored logic equals what the controller is running. Neither replaces the other.
- Capture after every approved change, and on a schedule. CISA's Cross-Sector Cybersecurity Performance Goals set once a year as the minimum backup and test cadence; a controller that changes monthly needs a capture per change and a periodic drift check.
- Only a restore onto a spare CPU proves the backup. Load the stored project onto hardware of the same model and firmware, then confirm it runs and compares equal to the master.
- Protect the backup path as an attack path. The account and workstation that can read every controller can also write to every controller; treat the backup tool's credentials and storage as Level 3 crown jewels.
What a complete controller backup contains
CISA's Cross-Sector Cybersecurity Performance Goals (goal 2.R, System Backups) state that OT backups should include, at a minimum, device configurations, roles, PLC logic, engineering drawings and tools. Translated to one controller, the backup set looks like this:
| Item | Why it is needed on restore | Where it usually lives |
|---|---|---|
| Offline project file (logic, tags, data types, add-on instructions or function blocks) | The authoritative source, including comments and symbol names that may not be fully recoverable from an upload | Engineering workstation or project repository |
| Upload of the running controller | Evidence of what was actually running at capture time, used for the equivalence check | Captured by the engineering tool or a change management system |
| Hardware configuration (rack, I/O modules, remote I/O, comms modules) | A project that does not match the installed modules will not go to run | Inside the project on most platforms |
| Firmware revision of CPU and key modules | Many platforms refuse to download a project to a CPU on a different major revision | Asset register entry and capture manifest |
| Protection settings (access levels, passwords held in the vault, know-how or source protection, key switch policy) | Restoring logic without protection reopens the controller to unauthorised change | Project settings, documented in the manifest (never the secrets themselves) |
| Network parameters (IP, subnet, gateway, VLAN, protocol services enabled) | A restored CPU on the wrong address breaks HMI, historian and peer communication | Project and network drawings |
| Safety signature or safety checksum (safety controllers) | Proves the restored safety program is the validated one | Safety project and validation record |
| Retentive values and recipes that matter to the process | A logic restore may reset setpoints and counters to the values held in the file | Exported data or recipe files, HMI or historian |
| Drive, servo and smart instrument parameter files | A replaced drive with default parameters can stop a line as surely as a lost PLC | Drive commissioning tool exports |
| Engineering software version, licence details, device description files (EDS, GSD, DTM) | A file you cannot open is not recoverable | Media library with installer hashes |
The last row is the one most often missed. Record the exact engineering software version and patch level used for each capture in the manifest, and keep the matching installer and description files in the media library. The plant-level treatment of engineering workstation images is in the Engineering Workstation Security Guide.
Offline master versus upload: which one is the backup
Engineers argue about this, and the answer is both, with different jobs.
- The offline master is what you restore from. It carries comments, descriptions, symbol names and structure that the engineering team relies on, and it is the version under change control.
- The upload is your evidence. Taken at capture time and compared with the master, it tells you whether the master truly reflects the controller. If they differ and no change ticket explains it, you have either an undocumented online edit or an unauthorised change.
- When they differ: do not overwrite the master with the upload by reflex. Raise it with the controller owner, review the differences, then either update the master through change control or schedule a corrective download. An upload can carry an attacker's modification into your "known good" copy, which is the persistence risk ATT&CK for ICS describes as T0889 Modify Program.
Uploads are also a security event in their own right. ATT&CK for ICS lists T0845 Program Upload as a collection technique, so an upload outside the backup schedule or from an unexpected workstation deserves a look.
Capture procedure for one controller
- Confirm the change context. Note the change ticket that triggered the capture, or mark it as a scheduled drift check.
- Connect from the designated backup workstation only, using a named or vaulted account, never a shared engineering login. Confirm the target is the right controller (serial number or project-to-controller match where the platform supports it).
- Upload the running program into a new working folder. Do not upload over the master.
- Run the compare between the upload and the current master in the engineering tool and save the compare report.
- Record controller metadata: CPU and module firmware, operating mode, key switch position, safety signature, protection state.
- Export auxiliary data that the project does not hold: drive parameters, recipes, retentive values agreed with operations.
- Package and hash. Put the master, upload, compare report and exports in one capture folder, compute SHA-256 for every file, and write the manifest (see below).
- Commit to the repository with the change ticket reference, then copy to the offline or immutable store.
- Disconnect and log off. Leave the controller in its normal operating mode and confirm the operating mode alarm clears.
Siemens and Rockwell are the examples used on this page and are listed alphabetically; the steps apply to any platform. Siemens TIA Portal provides an offline/online comparison that shows the status of each object in the project against the device. Rockwell's Logix Designer Compare Tool compares project files (ACD, L5K or L5X) and can be run from the command line to save a report, which suits scripted captures. Check your own platform's documentation for the equivalent feature and how it handles comments and protected blocks.
Hashes and equivalence checks
Two different questions need two different checks.
| Check | Question it answers | How | Limits |
|---|---|---|---|
| File hash (SHA-256) | Has the stored backup changed since capture? | Hash every file at capture, store hashes in the manifest and separately from the files, re-verify before any restore and on a schedule | Says nothing about whether the logic matches the controller; some native project formats can change on open or save, so hash the capture as stored and do not open the archive copy |
| Semantic compare (engineering tool) | Is the stored logic the same as the running logic? | Offline/online or file-to-file compare; save the report with the capture | Depends on the tool's handling of protected blocks and comments; needs a licensed seat |
| Controller checksum or signature (where offered) | Has the running program changed since baseline? | Read the platform value after each approved change and compare daily from HMI or monitoring | Not available on every platform; detects change, not who made it |
The ISA Global Cybersecurity Alliance's Top 20 Secure PLC Coding Practices recommend (practice 5) calculating a checksum or hash of PLC code and alarming on change, and suggest that where the controller has no native checksum, engineering software or the HMI can compare against a reference value, for example daily. Practice 1 suggests storing a hash of each tested module so later changes can be checked against the tested version.
Store the manifest hashes in two places: alongside the capture and in a separate system (a ticket, a signed log or a second repository). An attacker who can rewrite both the file and its neighbouring hash defeats the first copy only.
Manifest fields
- Identity: asset ID, controller name, location, owner, safety classification.
- Hardware: CPU model and serial, firmware revisions, module list.
- Software: engineering tool name, version and patch level used; description file versions.
- Capture: date and time (synchronised clock), operator, workstation, change ticket or "scheduled".
- Integrity: SHA-256 per file, compare result (equal or differences with ticket), controller checksum or safety signature.
- Restore status: date of last successful test restore and on what hardware.
Storing and protecting controller backups
- Repository: one folder per controller, one subfolder per capture, named by date and ticket. Version control works well for exported text formats; keep binary project files as immutable capture artefacts.
- Separation: CISA goal 2.R asks for backups stored separately from source systems. Keep at least one copy offline or on immutable storage outside the OT domain's normal administrative reach. The design patterns are in the Backup Security and Immutable Backup Guide.
- Encryption and access: project files reveal process design, setpoints and sometimes embedded credentials. Encrypt at rest (NIST SP 800-53 CP-9(8)) and limit read access to the engineers who need it.
- Secrets out of the archive: controller passwords and source protection keys belong in the vault with the backup record pointing to them, never in a text file next to the project.
Where identity fits
Automated controller backup tools work by logging into engineering software or directly into controllers on a schedule. That service identity can read every program in the plant and, on most platforms, the same protocol access permits download. Give it its own account, scoped to the controllers it backs up, with credentials in a vault and rotated, and alert on its use outside the backup window. Disable write or download permissions in the backup tool where the product allows it. See the OT and ICS Identity and Access Guide and the Service Account Security Guide.
Restore testing onto spare hardware
CISA goal 2.R asks for backups to be tested at least once a year; CISA and partner agencies also advised in advisory AA23-335A to create and test strong backups of PLC logic and configurations to enable fast recovery, and to keep cold-standby or replacement hardware of similar models. A restore test for one controller:
- Select the capture from the immutable store, not the working share.
- Verify hashes against the separately stored manifest. Stop if any differ. NIST CSF 2.0 RC.RP-03 expects the integrity of restoration assets to be verified before use.
- Prepare the bench: spare CPU of the same model, firmware set to the recorded revision, isolated from production networks, engineering workstation built from the media library.
- Open the project in the recorded engineering software version. A failure here is a finding: the backup is not restorable as it stands.
- Download to the spare CPU, set protection settings as recorded, and go to run with simulated or disconnected I/O.
- Compare the bench controller online against the master and confirm equal. Confirm the controller checksum or safety signature matches the manifest.
- Restore auxiliary data (recipes, drive parameters) to bench equivalents where practical, or at least confirm the files open in their tools.
- Time it from "media retrieved" to "controller in run, compare equal". This is your real recovery time for that controller.
- Record the result in the manifest and wipe the bench CPU.
Rotate through controllers so every critical controller is tested at least once a year, and after any engineering software upgrade. Use the Backup and Recovery Testing Checklist to record evidence.
Rollback during a change
Every change ticket that downloads to a controller should name its back-out capture: the hash-verified master taken immediately before the change. If the change fails, the engineer restores that capture, compares equal, and records the rollback. Without a pre-change capture there is no clean back-out, only the hope that the last scheduled backup is recent enough.
Choosing manual or automated capture
| Approach | Fits | Trade-offs |
|---|---|---|
| Manual capture by engineers per change | Small sites, few controllers, low change rate | Cheap and simple; depends on discipline; drift between changes goes unseen |
| Scheduled scripted capture using vendor compare tools | Medium sites with in-house scripting skills and one or two platforms | Repeatable and cheap; scripts and their credentials need the same care as any automation |
| Dedicated OT change management and backup platform | Large or multi-vendor estates, regulated sites | Scheduled backup, compare and alerting in one place; the platform becomes a high-value identity and network path that must be hardened |
Small organisations should start with the manual procedure and a quarterly drift check on critical controllers. Large estates gain most from automation, provided the backup server sits in a controlled zone with tightly limited conduits to Level 1, as set out in the OT Network Segmentation, Purdue Model and IEC 62443 Zones and Conduits Guide.
Detection and measurement
- Compare differences without a ticket: treat as a security event and investigate.
- Program downloads and mode changes: correlate with change tickets (ATT&CK for ICS T0843 Program Download and T0858 Change Operating Mode). See the OT Network Security Monitoring Guide.
- Backup job failures and skipped controllers: alert, do not just log.
Metrics that show the programme works:
- Percentage of critical controllers with a capture newer than their last approved change (target 100 per cent).
- Percentage of captures whose compare result was equal or explained by a ticket.
- Percentage of critical controllers with a successful bench restore in the last 12 months.
- First-time restore pass rate (the project opened, downloaded and compared equal without fixes).
- Median bench restore time per controller family, compared with the agreed recovery objective.
Framework mapping
| Framework | Reference | What this page implements |
|---|---|---|
| NIST CSF 2.0 | PR.DS-11 | Backups created, protected, maintained and tested |
| NIST CSF 2.0 | RC.RP-03 | Hash verification before restore |
| NIST SP 800-53 Rev 5 | CP-9, CP-9(1), CP-9(8) | System backup, testing for reliability and integrity, cryptographic protection |
| NIST SP 800-53 Rev 5 | CP-10 | Recovery and reconstitution onto spare hardware |
| NIST SP 800-53 Rev 5 | CM-2, CM-3, SI-7(1) | Baseline master, change control, integrity checks of running logic |
| CISA CPGs | 2.R System Backups | Scope of OT backup content, separation, annual minimum test |
| ATT&CK for ICS | T0889, T0843, T0845, T0809 | Threats the integrity checks and restores counter: modify program, program download, program upload, data destruction |
NIST SP 800-82 Rev. 3 provides the wider OT security context for these controls.
Common failure patterns
- The unopenable backup: the project was saved in a newer engineering software version than any workstation now has, or the licence lapsed. Record the version and keep the installer.
- Uploading over the master: an undocumented online edit, or a malicious one, becomes the "known good" copy.
- Hash next to the file only: anyone who can change the backup can change the hash beside it.
- No spare CPU: the restore was never tested because there was nothing to restore onto, and the first real test is during an outage.
- Logic restored, parameters lost: drives, recipes or retentive setpoints return to defaults and the line will not run correctly even though the PLC is "back".
- Backup account with write access everywhere: the automation intended to protect controllers becomes the easiest way to change them all.
Practitioner checklist
- List every controller with owner, criticality, firmware and engineering software version.
- Define the backup set per controller family using the content table above.
- Capture the master and an upload after every approved change and on a drift schedule.
- Save a compare report with every capture and investigate unexplained differences.
- Hash every file with SHA-256 and store the manifest separately from the files.
- Keep one copy offline or immutable, encrypted, with access limited to named engineers.
- Hold spare CPUs for critical controller families and test a bench restore at least annually.
- Name a pre-change back-out capture in every download change ticket.
- Give automated backup tools a dedicated, scoped, vaulted identity and monitor its use.
- Report the five metrics above to the OT risk owner each quarter.
Standards and references
- CISA: Cross-Sector Cybersecurity Performance Goals
- CISA: IRGC-Affiliated Cyber Actors Exploit PLCs in Multiple Sectors (AA23-335A)
- NIST: SP 800-82 Rev. 3, Guide to Operational Technology (OT) Security
- NIST: SP 800-53 Rev. 5, Security and Privacy Controls
- ISA Global Cybersecurity Alliance: Top 20 Secure PLC Coding Practices
- MITRE ATT&CK for ICS: Modify Program
- Rockwell Automation: Logix Designer Compare Tool User Manual
- Siemens: TIA Portal offline/online comparison
Related NHI Mgmt Group resources: OT Backup, Recovery and Golden Image Guide · PLC Security Guide · Engineering Workstation Security Guide · OT Management of Change for Cyber