Join our Newsletter — 33% off our NHI Course
Home› Guides› How to Back Up PLC and Controller Configurations:…
Guide OT & IoT Security

How to Back Up PLC and Controller Configurations: Scope, Integrity Checks and Restore Tests

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 15 min read
On this page

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:

ItemWhy it is needed on restoreWhere 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 uploadEngineering workstation or project repository
Upload of the running controllerEvidence of what was actually running at capture time, used for the equivalence checkCaptured 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 runInside the project on most platforms
Firmware revision of CPU and key modulesMany platforms refuse to download a project to a CPU on a different major revisionAsset 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 changeProject 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 communicationProject and network drawings
Safety signature or safety checksum (safety controllers)Proves the restored safety program is the validated oneSafety project and validation record
Retentive values and recipes that matter to the processA logic restore may reset setpoints and counters to the values held in the fileExported data or recipe files, HMI or historian
Drive, servo and smart instrument parameter filesA replaced drive with default parameters can stop a line as surely as a lost PLCDrive commissioning tool exports
Engineering software version, licence details, device description files (EDS, GSD, DTM)A file you cannot open is not recoverableMedia 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

  1. Confirm the change context. Note the change ticket that triggered the capture, or mark it as a scheduled drift check.
  2. 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).
  3. Upload the running program into a new working folder. Do not upload over the master.
  4. Run the compare between the upload and the current master in the engineering tool and save the compare report.
  5. Record controller metadata: CPU and module firmware, operating mode, key switch position, safety signature, protection state.
  6. Export auxiliary data that the project does not hold: drive parameters, recipes, retentive values agreed with operations.
  7. 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).
  8. Commit to the repository with the change ticket reference, then copy to the offline or immutable store.
  9. 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.

CheckQuestion it answersHowLimits
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 scheduleSays 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 captureDepends 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 monitoringNot 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:

  1. Select the capture from the immutable store, not the working share.
  2. 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.
  3. 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.
  4. Open the project in the recorded engineering software version. A failure here is a finding: the backup is not restorable as it stands.
  5. Download to the spare CPU, set protection settings as recorded, and go to run with simulated or disconnected I/O.
  6. Compare the bench controller online against the master and confirm equal. Confirm the controller checksum or safety signature matches the manifest.
  7. Restore auxiliary data (recipes, drive parameters) to bench equivalents where practical, or at least confirm the files open in their tools.
  8. Time it from "media retrieved" to "controller in run, compare equal". This is your real recovery time for that controller.
  9. 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

ApproachFitsTrade-offs
Manual capture by engineers per changeSmall sites, few controllers, low change rateCheap and simple; depends on discipline; drift between changes goes unseen
Scheduled scripted capture using vendor compare toolsMedium sites with in-house scripting skills and one or two platformsRepeatable and cheap; scripts and their credentials need the same care as any automation
Dedicated OT change management and backup platformLarge or multi-vendor estates, regulated sitesScheduled 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

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

FrameworkReferenceWhat this page implements
NIST CSF 2.0PR.DS-11Backups created, protected, maintained and tested
NIST CSF 2.0RC.RP-03Hash verification before restore
NIST SP 800-53 Rev 5CP-9, CP-9(1), CP-9(8)System backup, testing for reliability and integrity, cryptographic protection
NIST SP 800-53 Rev 5CP-10Recovery and reconstitution onto spare hardware
NIST SP 800-53 Rev 5CM-2, CM-3, SI-7(1)Baseline master, change control, integrity checks of running logic
CISA CPGs2.R System BackupsScope of OT backup content, separation, annual minimum test
ATT&CK for ICST0889, T0843, T0845, T0809Threats 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

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

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.