Under the Machinery Directive, a machine's risk assessment was about guards, stops and safety functions. Nobody asked what happens when the robot vendor's remote session is used by someone else, or when a recipe arrives on an infected USB stick. From 20 January 2027 the EU Machinery Regulation asks exactly that: whether a connection, a remote session, a software change or a deliberate attack could corrupt the machine and lead to a hazardous situation.
This post explains what the regulation asks for on cybersecurity, in plain words, and then runs a complete risk assessment of one machine against it: a fenced robotic welding cell with a safety PLC and vendor remote service. Every requirement quoted below comes from the regulation's text on EUR-Lex, and the standards status is as of 26 November 2026.
The short version: the EU Machinery Regulation, Regulation (EU) 2023/1230, applies from 20 January 2027 and adds two cybersecurity requirements to Annex III. Section 1.1.9 (protection against corruption): connecting another device or a remote device must not lead to a hazardous situation, safety-critical hardware, software and data must be protected against accidental or intentional corruption, the installed safety software must be identifiable, and the machine must collect evidence of interventions. Section 1.2.1 (safety and reliability of control systems): the control system must withstand reasonably foreseeable malicious attempts that could lead to a hazardous situation, and a tracing log of interventions and safety software versions must be enabled for five years. To meet them, draw the machine and everything that connects to it, start from the hazards, find the threats that lead to each one, score them, and keep the protections and evidence in the technical file.
What the Machinery Regulation asks for on cybersecurity
The Machinery Regulation replaces the Machinery Directive 2006/42/EC, which is repealed with effect from 20 January 2027. Like the directive, it sets essential health and safety requirements in Annex III, and the manufacturer has to show that a machine meets them before it gets the CE marking. What is new is that two of those requirements now deal with cybersecurity, and they sit inside the safety requirements rather than next to them. The question is never "is this machine secure?" but "can a cyber threat make this machine unsafe?"
| Annex III | What it requires, in plain words | What you need to show |
|---|---|---|
| 1.1.9 paragraph 1 | Connecting another device to the machine, directly or through a remote device, does not lead to a hazardous situation. | Every connection and remote access path, and why none of them can cause a hazard |
| 1.1.9 paragraph 2 | Hardware that carries signals or data relevant to safety-critical software is protected against accidental or intentional corruption, and the machine collects evidence of interventions in it. | Which components carry safety-relevant signals, how they are protected, what is recorded |
| 1.1.9 paragraph 3 | Software and data critical for compliance are identified as such and protected against accidental or intentional corruption. | A list of the safety-relevant software and data, and its protection |
| 1.1.9 paragraph 4 | The machine identifies the software installed on it that it needs to operate safely, and can show that information at all times. | Version identification on the machine itself, not only in your records |
| 1.1.9 paragraph 5 | The machine collects evidence of legitimate or illegitimate interventions in that software, or of changes to it or its configuration. | What is logged, where, and who can change it |
| 1.2.1 (a) | The control system withstands the intended operating stresses and external influences, "including reasonably foreseeable malicious attempts from third parties leading to a hazardous situation". | The attacks you considered, and why the control system withstands them |
| 1.2.1 (b), (c), (e) | Faults, logic errors and reasonably foreseeable human errors do not lead to hazardous situations. | The classic safety analysis, now including corrupted inputs |
| 1.2.1 (f) | A tracing log of interventions and of the safety software versions uploaded after the machine was placed on the market is enabled for five years after each upload. | The log, its retention, and how you would hand it to an authority |
For machines whose control systems have fully or partially self-evolving behavior or logic, 1.2.1 adds three more points: the machine must not act beyond its defined task and movement space, data on safety-related decisions must be recorded and kept for one year, and it must always be possible to correct the machine to keep it safe. Safety components that use machine learning to ensure safety functions are listed in Annex I, Part A, which means a notified body takes part in the conformity assessment.
Two details matter for a threat model. First, the requirements cover accidental and intentional corruption alike, so a technician bridging a light curtain to keep production running belongs in the same analysis as an outsider reaching the PLC. Second, the logs exist "exclusively to demonstrate the conformity" of the machine on a reasoned request from a national authority. They are evidence for the regulator, not a monitoring system, and they must be designed so that they survive the interventions they record.
The worked example: a robotic welding cell
The machine is a fenced robotic welding cell, the kind sold by integrators to car parts suppliers. A cell PLC takes weld jobs from the plant's MES and enables the robot. The robot controller drives the axes and the welding power source. A light curtain guards the loading station and an interlock guards the access door; when either trips, a safety PLC stops the robot. Operators start cycles and reset the cell from an operator panel, and the robot vendor diagnoses faults and adjusts programs through a remote service gateway. A cell event log records safety events, program changes and software versions.
The same steps work for any machine, from a packaging line to a crane with a radio remote control. They follow the order a machinery risk assessment already uses, so the security analysis can sit in the same technical file as the rest.
Step 1: Draw the machine and everything that connects to it
Paragraph 1 of 1.1.9 is about connections, so the first job is to find all of them. Draw the machine as a data flow diagram: the controllers, drives, safety devices and panels inside it, and every person, system and device outside it that sends it data or commands. Then draw a trust boundary around the machine network.
In the welding cell, three paths cross that boundary: weld jobs from the MES, commands and recipes from the operator panel, and the vendor's remote session through the gateway. Look as well for the connections that do not appear in the electrical drawings: the USB port on the panel that recipes are copied through, the engineering laptop that gets plugged into the machine network during service, the wireless pendant on another machine. Each one is a "connection of another device" in the sense of 1.1.9, and each one needs an answer to the same question: could it lead to a hazardous situation?
Step 2: Start from the hazards, not the attacks
A general IT threat model starts from assets: what could an attacker steal or break? A machinery threat model starts from the hazards your safety risk assessment already lists, because the regulation only cares about attacks that lead to a hazardous situation. Make each hazard the goal of an attack tree and work downwards: how could someone, on purpose or by accident, bring this hazard about through the machine's connections, software or data?
For the welding cell there are two goals:
- Make the robot move when or how it should not. The hazardous situation: the robot or welder moves while an operator is inside the cell, or faster than the guarding was designed for, and strikes or burns someone. The safety function it defeats is the safe stop on a light curtain or door opening.
- Change the cell without leaving evidence. The hazardous situation: an unsafe change cannot be found or traced after a near miss, so it stays in place. This goal exists because 1.1.9 and 1.2.1(f) require evidence of interventions; losing that evidence is a failure in its own right.
Record on each goal the hazardous situation, the safety function it puts at risk and that function's required performance level (PLr under EN ISO 13849-1) or SIL (under IEC 62061), for example PL d for the safe stop. The PLr comes from your safety risk assessment, not from the threat model, but writing it next to the attack tree lets a reader see straight away which threats sit on the most demanding safety functions.
Step 3: Find the threats that lead to each hazard
Now go through the diagram element by element and ask what could corrupt it. STRIDE is a good prompt list: tampering with a program or a signal, spoofing a user or a device, repudiation of a change, denial of a stop command, elevation of privilege through a default password. Keep only the threats that lead to one of your hazards, and put each one under the goal it serves. For the welding cell that gives nine threats:
| ID | Threat | Element | Annex III |
|---|---|---|---|
| M1 | Robot program changed remotely. The vendor's remote access is always on, so anyone holding the vendor's credentials can change paths or speeds without anyone at the cell knowing. | Remote service gateway | 1.1.9 connection; 1.2.1(a) |
| M2 | Safety PLC reset taken from the cell PLC. The safety PLC accepts its reset from a signal the standard PLC drives, so a change in the standard program can restart the robot while someone is inside. | Safety PLC | 1.2.1 protective devices, stopping |
| M3 | Light curtain muted outside the loading window. Muting is configured wider than the loading cycle, or the curtain is bridged to keep production running. | Light curtain and door interlock | 1.2.1 protective devices |
| M4 | Default password on the safety PLC. Anyone with a laptop on the machine network can change safety settings. | Safety PLC | 1.2.1(a) |
| M5 | Speed override written from the plant network. Any PC that reaches the cell PLC can push the robot beyond the speeds the risk assessment assumed. | Cell PLC | 1.1.9 connection; 1.2.1(b), (c) |
| M6 | Shared panel login. Mode changes and resets cannot be traced to a person. | Cell operator panel | 1.1.9 evidence |
| M7 | Event log cleared during service. Service access can remove the record of safety events and program changes. | Cell event log | 1.1.9 evidence; 1.2.1(f) |
| M8 | Safety program version not checked after service. Nobody compares the safety PLC's checksum with the validated version, so a changed safety program goes unnoticed. | Safety PLC | 1.1.9 paragraphs 3 and 4 |
| M9 | Malware on the panel from a USB stick. Recipes are copied on USB sticks, a common way for malware to reach machine networks. | Cell operator panel | 1.1.9 paragraph 3; 1.2.1(a) |
Notice that M2 and M3 would appear in a classic functional safety review too. That is the point of putting security inside Annex III: an intentional bypass and an accidental misconfiguration of a protective device end in the same hazard, and the regulation treats them together. Notice also what is missing: there is nothing here about stealing weld recipes or the plant's production data. Those are real business risks, but they belong in the plant's own security program, not in the machine's conformity assessment.
One more reason M1 matters: the regulation's idea of a substantial modification covers physical or digital changes the manufacturer did not foresee that affect the machine's safety. A program change made through a remote session that nobody authorized is exactly the kind of change you want the machine's design to prevent or, at least, to record.
Step 4: Score the threats and rank them
Score each threat for likelihood and impact on a 1 to 5 scale and multiply them, as in any risk matrix. For machinery, set the impact from the hazard: a threat that can put the robot in motion with a person in the cell is a 5 whatever its other effects. Likelihood depends on how reachable the element is and how much skill the attack needs; a bridged light curtain is far more likely than an attacker who has stolen the vendor's credentials.
| ID | Threat | Likelihood | Impact | Score | Band |
|---|---|---|---|---|---|
| M3 | Light curtain muted outside the loading window | 3 | 5 | 15 | High |
| M4 | Default password on the safety PLC | 3 | 4 | 12 | High |
| M8 | Safety program version not checked after service | 3 | 4 | 12 | High |
| M1 | Robot program changed remotely | 2 | 5 | 10 | High |
| M2 | Safety PLC reset taken from the cell PLC | 2 | 5 | 10 | High |
| M9 | Malware on the panel from a USB stick | 3 | 3 | 9 | Medium |
| M5 | Speed override written from the plant network | 2 | 4 | 8 | Medium |
| M6 | Shared panel login | 4 | 2 | 8 | Medium |
| M7 | Event log cleared during service | 2 | 3 | 6 | Medium |
The bands are ThreatTree's defaults: 1 to 4 Low, 5 to 9 Medium, 10 to 15 High, 16 to 25 Critical. None of the nine is Critical, and the top of the list is not the remote attacker but the light curtain, the default password and the unchecked safety program. That is typical for machinery: the most likely corruption comes from people at the machine, which is why 1.1.9 says "accidental or intentional".
Step 5: Choose protections, and the evidence that they work
For each threat, pick a protection, decide who owns it, and decide what evidence will show it is in place. IEC 62443 is the usual source for the protections; its system requirements (SRs) give you a shared vocabulary with integrators and auditors.
| ID | Protection | IEC 62443-3-3 | Evidence for the file |
|---|---|---|---|
| M3 | Limit muting to the loading window in the safety program, monitor muting time, test the curtain at every shift start | SR 3.3 | Safety validation record; shift test checklist |
| M4 | A unique password per machine set at commissioning, kept in the plant's password vault | SR 1.5, SR 1.7 | Commissioning checklist |
| M8 | Record the validated checksum, check it at every start-up and after service, alarm on a mismatch | SR 3.3, SR 3.4 | Checksum in the technical file; alarm test |
| M1 | The plant enables each remote session, MFA on the gateway, confirmation at the cell before a changed program runs | SR 1.13, SR 2.6 | Gateway configuration; session log |
| M2 | Reset only from a hardwired button outside the cell, verified in the safety validation | SR 2.1, SR 5.4 | Circuit diagram; validation report |
| M9 | USB storage disabled on the panel, recipes through the MES, application allowlisting | SR 2.3, SR 3.2 | Panel hardening record |
| M5 | A firewall between the machine and plant networks allowing only the MES, range checks on overrides in the PLC | SR 5.1, SR 3.5 | Firewall rules; PLC code review |
| M6 | A personal badge or login on the panel, recorded with every mode change and reset | SR 1.1, SR 2.8 | Sample of the event log |
| M7 | Events copied to a plant server as they happen, local log append-only for service accounts | SR 3.9 | Log retention design (five years for 1.2.1(f)) |
After the protections, score each threat again. If a threat still sits in a band your safety risk assessment would not accept, it needs a further protection or a design change, exactly as an unacceptable mechanical hazard would. Write down what is left as residual risk and pass the relevant parts to the user in the instructions, for example the requirement to keep the machine network separate from the plant network.
Step 6: Put it in the technical documentation
The Machinery Regulation expects the risk assessment to be in the technical documentation, and the threat model is part of it. Keep it as one package a reviewer can follow from the architecture to each hazard:
- The data flow diagram, with every connection and trust boundary.
- The attack trees, one per hazard, each naming the safety function and its PLr or SIL.
- The risk register: each threat with its score before and after, protection, owner and the Annex III point it bears on.
- The list of safety-relevant software and data, the version identification on the machine and the design of the tracing log (1.1.9 paragraphs 3 to 5, 1.2.1(f)).
- The residual risks and what the instructions tell the user to do about them.
Keep it alive. The threat model has to change when the machine does: a new remote access option, a new software release, a new connection to the plant. A machine's file is not finished when the CE marking goes on, and a stale threat model is weak evidence.
Standards and certificates: what helps today
- EN 50742, Safety of machinery: Protection against corruption, is the CENELEC standard written for 1.1.9 and 1.2.1. It was published on 20 November 2026 but, as of 26 November 2026, has not been cited in the Official Journal, so it does not yet give a presumption of conformity. It is still the best guide to what assessors will expect.
- IEC 62443 is the industrial security series most machine builders and integrators already use. Part 3-3 lists system requirements, part 4-2 component requirements, and part 3-2 the zone and conduit risk assessment, which our IEC 62443 risk assessment guide walks through.
- EN ISO 13849-1 and IEC 62061 stay the standards for the safety functions themselves. The threat model links to them; it does not replace them.
- Cybersecurity certificates. Article 20(9) of the regulation presumes conformity with 1.1.9 and 1.2.1 for machinery certified under a cybersecurity certification scheme adopted under Regulation (EU) 2019/881, once the Commission has published that scheme's reference in the Official Journal, and only as far as the certificate covers those requirements.
If the machine has software or a network connection, look at the Cyber Resilience Act too. It covers the cybersecurity of products with digital elements more broadly, including vulnerability handling and security updates; its reporting obligations have applied since 11 September 2026 and its main obligations apply from 11 December 2027. The Machinery Regulation asks whether an attack can make the machine unsafe; the CRA asks whether the product is secure. The same threat model can feed both.
Where machinery cybersecurity assessments go wrong
- Starting from the IT checklist. A list of firewall and antivirus controls says nothing about which hazards you considered. Start from the hazards and work down to the controls.
- Leaving out the people at the machine. Bridged guards, shared logins and USB sticks are the most likely corruption in most plants, and the regulation covers accidental corruption explicitly.
- Forgetting the vendor's own access. Remote service is often the widest path into a machine, and it is usually the machine builder's own.
- Logs that the intervention can erase. A log that a service account can clear is not evidence. Design the tracing log so that it survives what it records, for five years.
- Treating the PLC as the system. The machine is the PLC plus its panel, network, gateway, update path and the people who use them. Draw all of it.
- Claiming compliance from a tool. Software can organize the analysis and the evidence. Whether a machine meets Annex III is for the manufacturer, and where one is involved the notified body, to decide.
Machinery threat modeling in ThreatTree
On every plan you can draw the machine as a data flow diagram, break each hazard into an attack tree with AND/OR gates, score the threats on a 5×5 matrix and track the protections in a risk register with owners and a PDF export. The Machinery module, on Pro, adds what is specific to the regulation:
- A Machinery group in the diagram palette: machine controller, safety controller, safety device, drive, operator panel, wireless control or pendant, remote service gateway, software update channel and an intervention and version log, each with suggested threats mapped to Annex III 1.1.9 and 1.2.1 and to IEC 62443. Suggestions stay out of the register until someone reviews them.
- Fields on each attacker goal for the hazardous situation, the safety function and its required PL or SIL.
- The Machinery Regulation in the standards picker, with requirement names in our own short wording of Annex III.
- A Machinery Regulation Hazard Summary in the forest PDF report: every goal with its hazard, safety function and PL or SIL, highest first.
- Five finished templates: the welding cell in this post, a CNC machining center with remote service, a packaging machine on a connected line, autonomous mobile robots in a warehouse and an overhead crane with radio remote control.
ThreatTree is a threat modeling tool, not a notified body or legal advice, and it does not make a machine compliant. It gives you a structured place to do the analysis this post describes and to keep the evidence together.
Frequently asked questions
Does the EU Machinery Regulation require cybersecurity?
Yes. Regulation (EU) 2023/1230 makes protection against corruption part of the essential health and safety requirements in Annex III. Section 1.1.9 requires that connecting another device or a remote device does not lead to a hazardous situation, that safety-critical hardware, software and data are protected against accidental or intentional corruption, and that the machine collects evidence of interventions. Section 1.2.1 requires control systems to withstand reasonably foreseeable malicious attempts that could lead to a hazardous situation and to keep a tracing log of interventions and safety software versions.
When does the Machinery Regulation apply?
From 20 January 2027. On that date it replaces the Machinery Directive 2006/42/EC, which is repealed with effect from the same day. A few articles, such as those on notified bodies, applied earlier, but the essential requirements in Annex III, including the cybersecurity ones, apply to machinery from 20 January 2027.
What is EN 50742?
EN 50742, Safety of machinery: Protection against corruption, is the CENELEC standard written for Annex III sections 1.1.9 and 1.2.1. It was published on 20 November 2026. As of 26 November 2026 it had not been cited in the Official Journal of the EU, so applying it does not yet give a presumption of conformity. Its scope covers hardware that transmits signals or data, and software and data, where they can influence the safety of the machine.
Do I need a notified body for the cybersecurity requirements?
Usually not. Most machinery is assessed by the manufacturer itself. A notified body is needed for the machinery listed in Annex I of the regulation: always for the Part A categories, which include safety components with fully or partially self-evolving behavior using machine learning, and for Part B categories when the manufacturer does not apply harmonized standards or common specifications covering all the relevant requirements. The cybersecurity requirements are assessed by the same route as the rest of Annex III.
How long must the tracing log be kept under the Machinery Regulation?
Annex III 1.2.1(f) requires the tracing log of data generated by an intervention, and of the versions of safety software uploaded after the machine was placed on the market or put into service, to be enabled for five years after the upload. For control systems with self-evolving behavior, data on the safety-related decision-making process must be recorded and kept for one year after collection. Both exist only to demonstrate conformity on a reasoned request from a national authority.
How does the Machinery Regulation relate to IEC 62443 and the Cyber Resilience Act?
The Machinery Regulation asks whether a cyber threat can make the machine unsafe. IEC 62443 is the industrial security standard most machine builders use to choose the protections, and EN 50742 points in the same direction. The Cyber Resilience Act covers the cybersecurity of products with digital elements more broadly, including vulnerability handling and updates, with its main obligations applying from 11 December 2027 and reporting since 11 September 2026. A connected machine can fall under both regulations, so one threat model can feed the evidence for each.