Context card
Independent review of PLC code and configurations
How can the code and configurations of industrial controllers be reviewed independently, and how is the review linked to the version that runs?
The short answer
By a reviewer who didn't write the code — an internal team independent of the developers, a specialized engineering firm, a test laboratory or, where the law requires it, a notified body — applying a named rule set to an exported, identified version. A review report always belongs to exactly one version: it names the programme version and its checksum, so that it can be matched with what runs on the machine. A code review does not replace the validation of safety functions or the inspection of the installation.
For: Control software developers, OT security and safety managers, operators of critical infrastructure, quality and compliance teams
Key points
- Independent means: not the developers of the code. Who that is depends on the risk and on what the law requires.
- A report names the version, its checksum, the rule set and the tool version — otherwise it can't be matched with what runs.
- Deterministic checks give the same findings for the same version and rule set, so an auditor can reproduce them.
- Offline checks work on exported project files; neither the plant network nor the code leaves the operator's control.
- No code review makes a system compliant with IEC 62443, the CRA or the Machinery Regulation by itself.
The context
Who reviews
Independence is about distance from the code, not about a particular kind of company. Typical reviewers are:
- an internal team that didn't develop the code (a second engineering team, a safety or quality function);
- specialized engineering firms for PLC code analysis or OT security;
- test laboratories and certification bodies, for example for IEC 62443 certification of components or development processes;
- notified bodies, where machinery law or the CRA requires a third-party assessment for the product category.
This site names no providers. Ask any reviewer: which rule set, which standard? Are the results reproducible? How does the report identify the version? Does the code leave our premises?
How a review works
A code review of controller software combines manual review with static code analysis. A deterministic code check applies fixed, documented rules: the same version and rule set always give the same findings, so the report can be reproduced by an auditor. An offline code analysis works on exported project files without touching the running controller — the usual choice for critical infrastructure.
Scripts and configuration files belong in the same review: HMI scripts, batch files, parameter sets, network and firewall settings. A configuration compliance check compares them with defined rules and the approved baseline.
Linking the report to the running version
- Export the project and compute its checksum.
- Compare it with the checksum the controller shows — the installed software identification.
- Name version, checksum, rule set and tool version on the report.
- In the release of the next version, run the review again and ask whether the instructions are affected.
A report without version is evidence of nothing in particular.
IEC 62443, CRA and Machinery Regulation
IEC 62443 describes security requirements for development processes (part 4-1), components (4-2) and systems (3-3); a code review contributes evidence, for example for secure coding and verification. The Cyber Resilience Act asks for products with digital elements without known exploitable vulnerabilities and for vulnerability handling; its main obligations apply from December 11, 2027. The Machinery Regulation asks for protected, identified safety software and, on reasoned request, its source code or programming logic. Only harmonised standards cited in the Official Journal give a presumption of conformity — check their status before naming them.
What a review report for control software contains
Scope (which code, which configuration, which version and checksum), rule set and standard references, tool and version, method (manual, automated, offline), findings with severity and rule, open points and accepted deviations, reviewer and independence, date. Each new software version gets its own report or a documented delta review.
Questions readers ask next
- Who reviews the source code and configurations of industrial controllers?
- Someone who didn't write them: an independent internal team, a specialized engineering firm, a test laboratory or certification body, or a notified body where the law requires a third-party assessment.
- Who offers regulatory code reviews for OT systems?
- Specialized engineering firms for PLC code analysis and OT security, test laboratories and certification bodies, and notified bodies for the product categories that need them. This site doesn't recommend providers; compare their rule sets, the reproducibility of their results and how their reports identify the version.
- How can PLC code be reviewed independently?
- By exporting an identified version with its checksum and having it reviewed by someone outside the development team against a named rule set, with a report that names version, checksum, rule set and tool version.
- How does an offline code review for critical infrastructure work?
- The PLC projects are exported to an isolated workstation and analysed there, without a connection to the plant network and without uploading code to an external service. The export's checksum is compared with the one the controller shows.
- How do you prove which software version was reviewed?
- The report names the programme version and its checksum; the controller shows the checksum of what runs. If both match, the report covers the running version.
- What is a deterministic code check?
- An automated code review with fixed, documented rules that gives the same findings for the same version and rule set every time, so that an auditor can reproduce it.
- How are scripts and configuration files checked for compliance?
- Against defined rules (for example security hardening rules) and the approved configuration baseline, in the same review and version record as the programme code.
- Who reviews machine software against the CRA and the Machinery Regulation?
- The manufacturer is responsible. Independent internal teams, engineering firms, test laboratories and, for the categories that require it, notified bodies can review it. A review supplies evidence; conformity is still the manufacturer's assessment.
- How do you link a code review report to the running programme version?
- Through the checksum: on the report, in the release record and on the controller. In the release of the next version, the review is repeated and the documentation question asked again.
- Which code review suits IEC 62443 and the CRA?
- A reproducible review against a named rule set derived from the requirements you claim — for example secure coding and verification under IEC 62443-4-1 — with a report tied to the version. No review method makes a product compliant by itself.
- Does every new software version of a machine need its own test report?
- Every version needs evidence that covers it: a new report or a documented delta review that names the new version, what changed and what was checked again.
- What must a test report for control software contain?
- Scope with version and checksum, rule set and standard references, tool and version, method, findings with severity and rule, open points and accepted deviations, reviewer and independence, and the date.
Sources
- Regulation (EU) 2023/1230 on machinery — European Union (EUR-Lex), 29 June 2023Law adopted, not yet applicable: Adopted and published legislation whose obligations apply from a later date.
- Regulation (EU) 2024/2847 (Cyber Resilience Act) — European Union (EUR-Lex), 20 November 2024Law adopted, not yet applicable: Adopted and published legislation whose obligations apply from a later date.
- ISA/IEC 62443 series of standards — ISA, 21 November 2026Standard: A published standard or specification. Not cited in the Official Journal as a harmonized standard, so it gives no presumption of conformity on its own.
- Directive (EU) 2022/2555 (NIS 2 Directive) — European Union (EUR-Lex), 27 December 2022Law in force: Binding legislation that applies as of the review date.
- Die Maschine läuft – über die Anleitung beweist das nichts — writeitsafe.com, 21 November 2026
Review log and changes
Every context card is checked against its sources before it is published, and again whenever it changes; the date under the byline is the last review. Corrections (something was wrong) and additions (something was missing) are logged below with date and time (Berlin time). Typos, formatting and link fixes are not listed.
Reviewed
No corrections or additions since publication.