The manufacturing execution system sits between ERP and the plant floor, so when it is compromised or lost, production usually stops even if no controller is touched. MES servers hold work orders, recipes, genealogy and quality records, and they talk to almost everything: ERP above, historians, SCADA and line controllers below, and LIMS, warehouse and label systems to the side. That makes Level 3 the place where most IT to OT compromise paths cross and where most restart dependencies sit. This guide is for OT security leads, manufacturing IT and plant engineering. It covers placement, threats, access control for people, service accounts and vendors, integration security, segmentation, and recovery including manual operating mode. For a programme view for smaller plants, see Cybersecurity for Small Manufacturers.
Key takeaways
- MES is Level 3 by definition: ISA-95 places manufacturing execution systems in Level 3, manufacturing operations management, with ERP at Level 4, so MES is the bridge that segmentation has to respect.
- Integrations are the attack surface: each ERP, historian, SCADA, LIMS and PLC interface carries a service account, a protocol and a firewall rule; inventory them first.
- Nothing should cross from enterprise to Level 3 directly: NIST SP 800-82 Rev. 3 calls for a DMZ so traffic does not pass directly between corporate and OT networks.
- Service and vendor accounts are the usual way in: dormant VPN and integrator accounts without MFA have led to production shutdowns.
- Recovery is a production decision: agree how long each line can run without MES, rehearse manual operating mode, and keep restorable MES images and databases offline.
Where MES sits in the Purdue model
Picture the plant as a stack. At the top, Levels 4 and 5 hold enterprise systems: ERP, email, finance, planning. Below them sits an industrial DMZ (often called Level 3.5) holding replicated or brokered services. Level 3 is site operations: MES application and database servers, the site historian, batch and recipe management, engineering and patch services for the plant. Level 2 holds supervisory control: SCADA, HMIs and DCS operator stations. Level 1 holds PLCs and controllers, and Level 0 the sensors, drives and actuators.
ISA-95 (IEC 62264) describes Level 3 as manufacturing operations management, covering MES and systems such as SCADA that manage operations, and Level 4 as business planning and logistics, including ERP. The standard mainly addresses the interface between Levels 3 and 4, which is exactly the boundary MES security is about. NIST SP 800-82 Rev. 3 notes organisations may segment using the Purdue model, ISA-95 levels, an IIoT tiered model or a mix, with DMZs as enforcement boundaries. For the full segmentation model, see the OT Network Segmentation, Purdue Model and IEC 62443 Zones and Conduits Guide.
Why Level 3 is different
- It runs IT technology: Windows servers, SQL databases, web front ends and Active Directory, so it is exposed to the same ransomware as the enterprise.
- It is production-critical: work orders, electronic batch records and traceability often cannot be skipped without breaking quality or regulatory rules.
- It is owned by several teams: manufacturing IT, plant engineering, the MES vendor and integrators, which blurs who patches and who approves change.
Threats to MES
| Threat | How it reaches MES | Typical impact | ATT&CK v20 |
|---|---|---|---|
| Ransomware spreading from IT | Shared AD domain, flat routing, RDP from office network | MES and database encrypted, lines stop for lack of work orders | T1486, T1021.001 |
| Compromised remote access | Vendor VPN or remote desktop tool with a dormant or shared account | Direct interactive access to Level 3 servers | T1133, T1078 |
| Service account abuse | Integration account with domain rights or a password in a config file | Lateral movement into OT and data tampering | T1078 |
| Data integrity attack | Changed recipes, specifications or genealogy records | Out-of-spec product, recalls, safety risk | No single technique; treat as impact on integrity |
| Precautionary shutdown | IT incident with unclear blast radius | Plant stops even though OT was not reached | Not an attack technique; a dependency problem |
The last row matters as much as the others. At the Jaguar Land Rover cyberattack, the company proactively shut down its systems and vehicle production was paused from 1 September 2025 until a phased restart from 8 October. At the Colonial Pipeline ransomware attack, the pipeline was shut down as a precaution although there was no evidence attackers touched pipeline controls. Clear Level 3 boundaries and a tested manual mode are what let a plant keep running while IT is contained.
Access control for Level 3
NIST SP 800-82 Rev. 3 recommends centralising identity management, suggests separate IT and OT authentication servers, and warns that authenticated IT accounts with access to OT carry added risk. In practice that means a separate OT or Level 3 directory, not the enterprise forest.
| Identity type | Control | What good looks like |
|---|---|---|
| MES administrators | Separate OT admin accounts, phishing-resistant MFA at the DMZ jump host, no email or browsing | Named accounts, privileged sessions recorded, reviewed quarterly |
| Operators and supervisors | MES roles mapped to job, badge or PIN on shared stations, electronic signature where batch records require it | No shared generic logins for record signing |
| Integration service accounts | One account per interface, least privilege on the database or API, no interactive logon, managed passwords or gMSA where supported | Owner, purpose and rotation date recorded per account |
| Vendor and integrator access | Brokered through the DMZ, time-bound, approved per session, MFA, recorded | Connection created at the start of maintenance and torn down after |
| Emergency access | Sealed local admin credentials for when the OT directory is down | Tested during recovery drills, rotated after each use |
Service accounts
MES integrations often run under accounts created at commissioning and never touched again. Build the inventory from the directory, the database logins and the middleware configuration, then deny interactive logon, remove domain-wide rights and split accounts shared across interfaces. The How to find service accounts shared by several applications or hosts and split them and How to detect interactive logons by service accounts guides give the method. Where the platform supports it, convert Windows service accounts with Group Managed Service Accounts (gMSA).
Vendor remote access
NIST SP 800-82 Rev. 3 says remote maintenance should authenticate maintenance staff, connect only at the start of maintenance, tear down immediately afterwards, and log the activity. CISA, FBI, EPA and DOE add phishing-resistant MFA, least privilege and disabling dormant accounts. Terminate vendor sessions on a jump host in the DMZ, never on an MES server directly. The plant-wide picture is in the OT Remote Access Guide and Manufacturing Identity and OT Access Guide.
Integrations with ERP, historians and PLCs
Start with an interface register. Every row below should become a documented conduit with an owner, a firewall rule and a named service account.
| Interface | Direction | Common protocols | Where it should terminate | Key controls |
|---|---|---|---|---|
| ERP (Level 4) | Orders down, confirmations and consumption up | HTTPS web services or REST (443), message queues, file transfer, ISA-95 style messages | Broker or integration server in the DMZ | Mutual TLS or signed messages, schema validation, one service account per flow |
| Historian | Process data up from Level 2; summaries to enterprise | OPC UA (TCP 4840 by default), vendor protocols, SQL (1433 for SQL Server) | Site historian at Level 3, replica in DMZ for enterprise users | Enterprise users read the replica only; see the OT Process Historian Security Guide |
| SCADA and HMI | Setpoints, recipes and orders down; status up | OPC UA, OPC Classic (DCOM), vendor APIs | Level 3 to Level 2 conduit | OPC UA with SignAndEncrypt and certificate trust lists; retire DCOM where possible |
| PLCs and line controllers | Recipe download, counts, machine state | Modbus TCP (502), EtherNet/IP (44818), S7 (102), MQTT (1883, 8883 with TLS) | Through SCADA or an edge gateway, not MES servers directly | Write paths restricted and logged; read-only where possible |
| LIMS and quality | Samples and results, release decisions | Web services, database links, file drops | Level 3 or DMZ depending on LIMS location | Integrity checks on results, change audit trail |
| Warehouse and labelling | Material movements, label print jobs | Web services, printer protocols | Level 3 | Separate accounts, no shared file shares with IT |
- Prefer push through a broker: ERP posts to a DMZ broker and MES pulls from it, so no session originates in the enterprise and lands in Level 3.
- Restrict write paths: the interfaces that can change recipes or setpoints deserve the tightest rules, change approval and logging.
- Remove database links that cross zones: linked servers and ODBC connections from enterprise reporting tools straight to the MES database bypass every other control.
- Keep credentials out of configuration files: store integration secrets in a vault or the platform's protected store and rotate them on a schedule agreed with the vendor.
Segmentation and the industrial DMZ
NIST SP 800-82 Rev. 3 recommends a DMZ architecture with firewalls so network traffic does not pass directly between corporate and OT networks, firewall rules that permit connections only between adjacent levels, outbound rules from the control network as strict as inbound ones, and unidirectional gateways where one-way flow is enough. CISA's primary mitigations make the same point: segment IT and OT and use a DMZ to pass control data.
Mapping to IEC 62443 zones and conduits
IEC 62443 groups assets with the same security requirements into zones and treats every communication path between zones as a conduit with its own requirements. The risk assessment in IEC 62443-3-2 sets a target security level per zone, and IEC 62443-3-3 lists the system requirements to reach it. A workable MES design uses these zones:
| Zone | Contents | Conduits allowed |
|---|---|---|
| Enterprise | ERP, reporting, office users | To DMZ broker and historian replica only |
| Industrial DMZ | Integration broker, historian replica, jump hosts, patch and antivirus staging | To enterprise and to named Level 3 services only; no pass-through |
| Level 3 operations | MES application and database, site historian, OT directory, backup server | To DMZ and to supervisory zones on named ports |
| Supervisory and control cells | SCADA, HMIs, PLCs per line or area | To Level 3 via defined conduits; cell to cell only where the process needs it |
| Safety systems | Safety instrumented systems | No MES conduit; monitoring only where the safety case allows |
See the IEC 62443-3-2 OT Risk Assessment Guide and IEC 62443-3-3 and 4-2 Security Levels Guide for setting target levels.
Backup, recovery and manual fallback
NIST SP 800-82 Rev. 3 calls for backing up OT state, data, configuration and programs at regular intervals, restoring in a timely way, putting human and environmental safety first before restart, and testing plans. It also describes manual control mechanisms that let operators act without the digital system. CISA lists maintaining manual operations capability as a primary mitigation.
| Item | Recovery objective to agree | How to protect it |
|---|---|---|
| MES database | Maximum data loss per line (recovery point) and restore time | Frequent backups plus offline or immutable copies; test restore to an isolated host |
| MES application servers | Rebuild time | Golden images with installed versions and licences recorded |
| Recipes and specifications | Last approved version available at the line | Signed, version-controlled exports held offline at the plant |
| OT directory and certificates | Time to restore authentication | Separate backup; sealed emergency credentials |
| Interface configuration | Time to reconnect ERP and historian | Exported configuration and the interface register, stored with the runbook |
Manual operating mode
- Decide line by line: plant engineering and quality agree how long each line can run without MES and what it needs: printed work orders, paper batch records, local HMI recipes, manual labelling.
- Prepare the kit: current paper forms, label stock and a recipe set at each line, refreshed on a schedule.
- Define the switch: who decides to go manual, how it is announced, and how records are reconciled into MES afterwards.
- Rehearse: run a planned shift on manual mode at least yearly and time the switch back.
- Restore in order: OT directory, database, application, interfaces to Level 2, then ERP. Bring the ERP link back last, after the enterprise side is declared clean.
- Roll back safely: if a restored MES misbehaves, return to manual mode rather than pushing unverified recipes to lines.
The OT Backup, Recovery and Golden Image Guide and OT Ransomware Response Playbook go deeper on restore and response.
Phased rollout
- Build the interface register and service account inventory (weeks 1 to 4).
- Put vendor access behind a DMZ jump host with MFA and session approval (weeks 4 to 8).
- Introduce the DMZ broker and historian replica, running old and new paths in parallel, then cut over line by line with a rollback window.
- Apply firewall rules in log-only or monitor mode first, review a full production cycle of hits, then enforce.
- Separate the OT directory and move MES servers into it during a planned outage.
- Run the first manual mode rehearsal and a full restore test.
Detection and metrics
- Monitor: logons to MES servers by account type, any interactive logon by a service account, new firewall flows crossing the DMZ, recipe and specification changes, backup job results.
- Conduit coverage: share of MES interfaces with a documented owner, rule and dedicated account (target 100%).
- Direct paths: count of flows from enterprise to Level 3 that bypass the DMZ (target zero).
- Vendor sessions: share brokered, approved and recorded.
- Restore time: measured time to restore MES database and application in the latest test, against the agreed objective.
- Manual mode: date of last rehearsal and time to switch back per line.
For network sensors at these boundaries, see the OT Network Security Monitoring Guide.
Framework mapping
| Area | NIST CSF 2.0 | NIST SP 800-53 Rev 5 | ISO/IEC 27001:2022 Annex A | IEC 62443 |
|---|---|---|---|---|
| Segmentation and DMZ | PR.IR-01 | SC-7, AC-4 | A.8.22 Segregation of networks | Zones and conduits (3-2), system requirements (3-3) |
| Access and service accounts | PR.AA-05 | AC-6, IA-2 | A.8.2 Privileged access rights | 3-3 identification and authentication, use control |
| Vendor remote access | PR.AA-05 | AC-17 | A.5.19 Information security in supplier relationships | 2-4 service provider requirements |
| Backup and recovery | PR.DS-11, RC.RP-01 | CP-9, CP-10 | A.8.13 Information backup; A.5.30 ICT readiness for business continuity | 2-1 asset owner programme |
Common failure patterns
- MES joined to the enterprise domain: a domain compromise becomes an MES compromise in one step.
- Dormant vendor or VPN accounts without MFA: the pattern behind the Colonial Pipeline intrusion, and a common way into plant networks.
- Reporting tools with direct database links: a convenient enterprise report quietly creates a conduit that nobody reviews.
- One integration account for everything: rotation is never done because it would break every interface at once.
- Backups on the same domain and storage: ransomware encrypts the backups with the servers.
- Manual mode only on paper: forms out of date, no recipe copies at the line, nobody rehearsed, so a precautionary IT shutdown becomes a long production stop.
Practitioner checklist
- Document MES placement at Level 3 with a diagram showing every conduit to the DMZ and Level 2.
- Complete the interface register: direction, protocol, port, account, owner and firewall rule per integration.
- Remove every direct flow from the enterprise network into Level 3; route through a DMZ broker or replica.
- Give each integration its own least-privilege service account with no interactive logon and a rotation date.
- Broker vendor access through a DMZ jump host with phishing-resistant MFA, per-session approval and recording.
- Move MES servers to an OT directory separate from the enterprise forest.
- Keep offline or immutable backups of the MES database, images, recipes and interface configuration; test restores.
- Agree recovery objectives per line with production and quality, and rehearse manual operating mode yearly.
- Monitor service account logons, recipe changes and new cross-zone flows.
Standards and references
- NIST: SP 800-82 Rev. 3 Guide to Operational Technology (OT) Security
- ISA: ISA/IEC 62443 Series of Standards
- ISA: ISA-95 Enterprise-Control System Integration
- CISA: Primary Mitigations to Reduce Cyber Threats to Operational Technology
- MITRE ATT&CK: T1133 External Remote Services
- MITRE ATT&CK: T1486 Data Encrypted for Impact
Related NHI Mgmt Group resources: Cybersecurity for Small Manufacturers · Manufacturing Cybersecurity Programme Guide · IEC 62443 vs NIST SP 800-82 · Manufacturing Cyber Regulation Map