COMP-222 · Lesson 6 of 12 · 19 min

Industrial control and IoT systems

▶ Video coming soon A video version of this lesson is on the way.

On November 19, 2026, while the Prairiefold report was being drafted, Marguerite and Dario held a scoping call with Copperline Logistics, a trucking and warehousing company whose owned distribution centre ran conveyor sortation, automated dock doors, refrigerated storage and warehouse control servers that tied them together. Testing was planned for early 2027, after the peak shipping season, with the industrial work led by an OT specialist subcontractor and Copperline's controls engineer present. The next afternoon Dario showed Tobias the first draft of the assessment plan. The first page did not list a single scan. It listed meetings with the controls engineer, a walk of the warehouse floor, a review of network drawings, and the words: no active probes on level 1 or below without the controls engineer present.

Objective 3.1 includes industrial control system vulnerability assessment and names two techniques: manual assessment and port mirroring. Attacks on specialized systems belong to objective 4.9 and PenTest+: Attacks and Exploits. This lesson explains why industrial and Internet of Things environments need a different discovery approach, what those techniques involve, which weaknesses testers typically find, and how organizations defend these systems. Because the Copperline assessment had not yet started, Dario illustrated the plan with the kinds of results such assessments commonly produce; the Copperline examples below are hypothetical.

What makes industrial systems different

An industrial control system (ICS) monitors and controls physical processes: moving parcels on a conveyor, holding a freezer at minus 20 degrees Celsius, opening a dock door when a truck backs in. The term covers several kinds of system. Programmable logic controllers (PLCs) run control logic and drive motors, valves and sensors. Human-machine interfaces (HMIs) give operators screens to watch and adjust the process. Supervisory control and data acquisition (SCADA) systems gather data and send commands across a site or a wide area. Historians record process data over time. Engineering workstations hold the software used to program controllers. Operational technology (OT) is the broader name for technology that interacts with the physical world, in contrast with information technology (IT).

Three properties change how testers approach these systems. First, priorities are reversed. In IT, confidentiality often comes first; in OT, availability and safety dominate. A frozen conveyor stops a warehouse, and a controller that misbehaves can damage equipment or hurt people. Second, devices are fragile. Many controllers run small network stacks built for predictable traffic from known peers. A port scan, a malformed packet or simply a burst of connections can make one stop responding or fault into a safe state that halts the process. Third, lifetimes are long. Controllers and HMIs often run for fifteen or twenty years, so outdated operating systems and unpatched firmware are normal, and patching may require a planned shutdown and vendor approval.

The Purdue model

The Purdue model is a reference architecture that divides industrial networks into levels, and it gives testers a shared vocabulary for where systems sit and what should talk to what.

A layered diagram of the Purdue model for the Copperline distribution centre. Level 5 and 4: enterprise network with email and business applications. Level 3.5: industrial demilitarized zone with a historian replica and remote access gateway. Level 3: site operations with the warehouse management system server and historian. Level 2: supervisory control with HMIs and the engineering workstation. Level 1: basic control with PLCs for conveyors, dock doors and refrigeration. Level 0: physical process with motors, sensors and actuators. A firewall separates levels 4 and 3.5 and another separates 3.5 and 3. A switch at level 2 has a mirror port feeding a passive monitoring sensor.
The Purdue levels as they applied at Copperline's distribution centre, with a mirror port feeding a passive sensor.
Purdue levels with examples from the Copperline scoping notes.
LevelNameCopperline example
4 and 5EnterpriseOffice network, email, finance systems
3.5Industrial demilitarized zoneRemote access gateway, historian replica for business reports
3Site operationsWarehouse management system server, historian
2Supervisory controlOperator HMIs, engineering workstation
1Basic controlPLCs for sortation conveyors, dock doors and refrigeration
0Physical processMotors, photo-eyes, temperature sensors, door actuators

In a well-designed environment, traffic between enterprise and control networks passes through the industrial demilitarized zone, and nothing on the enterprise network talks directly to level 2 or below. A core question in any ICS assessment is whether reality matches that design. At Copperline, the network drawing showed a clean separation. Dario's plan treated that as a claim to test, not a fact.

Industrial and IoT protocols

Industrial devices speak protocols designed for reliability on closed networks, usually without authentication or encryption. Recognising them in scan results or captured traffic is part of discovery.

Common industrial and IoT protocols and their default ports.
ProtocolTypical portUsed forSecurity note
Modbus TCPTCP 502Reading and writing controller registersNo authentication; any client that can connect can issue commands
EtherNet/IP (CIP)TCP 44818, UDP 2222Controller communication, common in North American manufacturingDevice identity queries reveal model and firmware
Siemens S7commTCP 102Communication with Siemens controllersOlder versions lack authentication
DNP3TCP 20000Utilities and wide-area SCADASecure authentication extension exists but is not always used
BACnetUDP 47808Building automation: heating, cooling, lightingOften exposed on enterprise networks
OPC UATCP 4840Modern interoperability between systemsSupports authentication and encryption if configured
MQTTTCP 1883, or 8883 with TLSLightweight messaging for IoT sensorsBrokers sometimes allow anonymous access

Manual assessment

Manual assessment in the ICS context means learning about systems mostly without touching them. It draws on several sources.

  • Document review. Network drawings, asset lists, firewall rule sets, remote access procedures, vendor support agreements and previous assessments.
  • Interviews. Controls engineers, operators, IT staff and vendors explain how systems really connect and how they are maintained, which often differs from the drawings.
  • Physical walkdowns. Walking the floor with an engineer reveals unlabelled switches, wireless bridges, maintenance laptops and modems that never appear on a drawing.
  • Configuration review. Exported firewall and switch configurations, controller project files and HMI settings can be examined offline, away from the live process.
  • Advisory research. For each controller and HMI model and firmware version, the tester checks vendor advisories and CISA's industrial control system advisories for known vulnerabilities and published mitigations.
  • Careful, targeted active checks. Where the owner permits, a tester may query a specific device with a gentle, protocol-correct request, for example to read its identity and firmware version, with the controls engineer present and a plan to stop if anything changes.

Dario's favourite illustration of why walkdowns matter was hypothetical but typical. Imagine that behind a conveyor control cabinet, the controls engineer points out a small cellular router that a conveyor vendor had installed years earlier for remote support. It connects the PLC network directly to the internet, bypassing the demilitarized zone and every firewall on the drawing, and nobody in IT knows it exists. No scan from the enterprise network would ever find it, because it does not route through the enterprise network at all.

Port mirroring and passive monitoring

The second technique named in the objective is port mirroring. A managed switch can copy all traffic from selected ports or VLANs to a designated mirror port, a feature often called SPAN (switched port analyser). A sensor connected to that port sees the traffic without sending anything to the industrial devices. A network tap, a hardware device placed inline on a cable, achieves the same result with less chance of dropping packets when the switch is busy, but needs a brief disconnection to install.

Passive monitoring tools then decode the traffic. Wireshark and Zeek include dissectors for many industrial protocols, and specialized OT monitoring products build asset inventories automatically: which devices exist, their vendors and firmware versions, which hosts talk to which controllers, and which commands they send. Over a few days, a passive sensor can build a picture of the environment that is more accurate than the drawings and carries no risk to the process.

A hypothetical passive inventory of the kind the plan expected from a level 2 mirror port at Copperline.
Passive inventory summary - Copperline DC level 2 mirror, 72 hours
Assets observed        : 61
PLCs                   : 14  (3 vendors, 6 firmware versions)
HMIs                   : 5   (2 running an unsupported desktop OS)
Unexpected talkers     : 2
  OFFICE-WS-114 -> PLC-SORT-03  Modbus TCP write  (enterprise network)
  PLC-SORT-07   -> external     HTTPS via cellular gateway
Cleartext logins       : 3   (HMI to engineering workstation, VNC)

Each line of such a summary points to a discovery. Two HMIs run an operating system no longer supported by its vendor. A workstation on the enterprise network writes Modbus registers on a sortation PLC, meaning that an office computer can change conveyor behaviour directly; in Dario's experience this is often a reporting script a well-meaning analyst wrote to reset a counter each morning, using a library that could just as easily write any other register. A PLC talking to an external address would confirm an out-of-band link like the cellular router above. Remote desktop sessions to the engineering workstation use VNC without encryption.

Port mirroring has its own precautions. Configuring a mirror port changes the switch configuration, which in some plants requires change control. Mirroring too much traffic can overload an older switch. The sensor itself must never transmit onto the mirrored network, which is why many teams use taps or receive-only network cards. And captured traffic may include sensitive operational data that needs the same handling rules as any other evidence.

IoT devices

Internet of Things devices sit somewhere between IT and OT: IP cameras, badge readers, smart thermostats, temperature sensors, printers, digital signage, vehicle telematics. They are often managed by facilities teams or vendors rather than IT, connected to whatever network is convenient, and rarely patched. Discovery techniques combine the ordinary and the cautious: passive observation first, then gentle active checks such as reading a device's web interface or querying its management service.

Common IoT findings follow a familiar list: default or shared credentials; web management interfaces exposed to broad networks or the internet; outdated firmware with published vulnerabilities; unencrypted protocols; cloud management accounts with weak access control; and devices on flat networks where a compromise gives a path to more valuable systems. Copperline's reconnaissance had already shown an MQTT broker on its public address block, so the plan included a hypothetical case to rehearse: refrigerated storage sensors publishing temperature readings to a broker that accepts anonymous connections. Reading the readings would be harmless; if the broker also accepted anonymous publishing, a false temperature reading could be injected into the alarm system. The plan said a tester would show this by reading the broker's configuration and subscribing as an anonymous client, never by publishing anything.

Internet exposure can be checked passively. Search engines that index internet-connected devices, such as Shodan and Censys, record banners from devices on public addresses. Searching them for an organization's address ranges, covered under open-source intelligence in PenTest+: Reconnaissance and Enumeration, often shows exposed cameras, building controllers and remote access gateways without sending a packet to the target.

Safety rules for ICS discovery

The draft Copperline rules of engagement set out ICS-specific protections that are typical of the field.

ICS safety rules from the draft Copperline rules of engagement.
RuleCopperline practice
No active scanning at level 1 or belowPLCs and field devices assessed passively and by document review only
Engineer presentThe controls engineer present for any active check at level 2 and able to stop testing
Test windowsActive checks only during planned maintenance windows when conveyors were idle
Test on spares firstAny new check run first against a spare controller in the maintenance shop
Stop conditionsAny unexpected fault, alarm or change in process behaviour ends testing immediately
No writesNo writes to any controller register or configuration, ever

Defending industrial and IoT systems

The remediations that follow ICS discovery are well established. Segmentation enforces the Purdue levels with firewalls and an industrial demilitarized zone, so enterprise systems cannot talk directly to controllers. Remote access goes through a single managed gateway with multifactor authentication and session recording; unmanaged modems and cellular routers are removed. Asset inventory is kept current, ideally by continuous passive monitoring. Monitoring watches for new devices, new communication paths and unexpected commands such as controller writes from unfamiliar hosts. Compensating controls protect devices that cannot be patched, such as tight allow lists and application whitelisting on HMIs. Frameworks such as the ISA/IEC 62443 series and NIST Special Publication 800-82, Guide to Operational Technology Security, give structure to these programs.

For findings like the hypothetical cellular router and counter-reset script, the fixes are simple: disconnect the router and route vendor support through the existing remote access gateway, and rewrite the script to go through the historian rather than writing to the PLC directly. Dario told Tobias that this was the typical shape of ICS findings: the worst problems were rarely exotic vulnerabilities in controllers, and usually connections that should not have existed.

Worked problem

Choosing a safe technique

A tester wants to know the firmware versions of 14 conveyor PLCs. The controls engineer says one PLC model is known to fault when it receives unexpected traffic. What sequence of techniques should the tester use?

Show solution
  1. Start with document review: asset lists, maintenance records and controller project files often record firmware versions.
  2. Use passive monitoring from a mirror port, since identity information often appears in normal traffic.
  3. For PLCs still unknown, ask whether the engineer can read the version from the engineering software during maintenance.
  4. Only if needed and permitted, send a single protocol-correct identity query to a spare PLC first, then to live PLCs during a maintenance window with the engineer present.

Answer: Documents, then passive observation, then the engineer's own tools, and only last a careful active query tested on a spare.

Common mistakes

  • MistakeRunning a standard network scan against PLCs.

    InsteadUse document review and passive monitoring; active checks only with permission, the engineer present and a spare tested first.

  • MistakeTrusting the network drawing as the real architecture.

    InsteadConfirm with walkdowns, configuration exports and passive traffic analysis.

  • MistakeLetting the passive sensor transmit onto the mirrored network.

    InsteadUse a receive-only interface or a tap.

  • MistakeProving an anonymous MQTT publish flaw by publishing false data.

    InsteadDemonstrate it from configuration and an anonymous read, without changing the process.

  • MistakeRecommending immediate patching of every controller.

    InsteadRecommend segmentation, monitoring and compensating controls alongside planned, vendor-approved patching.

Summary and key terms

  • ICS and OT prioritize availability and safety, use fragile devices and have long lifetimes, so discovery must avoid disruption.
  • The Purdue model divides industrial networks into levels and an industrial demilitarized zone.
  • Industrial protocols such as Modbus, EtherNet/IP, S7comm and DNP3 often lack authentication.
  • Manual assessment uses documents, interviews, walkdowns, configuration review, advisories and only careful active checks.
  • Port mirroring copies switch traffic to a passive sensor that builds an inventory without touching devices.
  • IoT devices commonly have default credentials, exposed interfaces, outdated firmware and weak cloud management.
  • Defences include segmentation, managed remote access, continuous inventory, monitoring and compensating controls.
Industrial control system
Systems that monitor and control physical processes, including PLCs, HMIs and SCADA.
Programmable logic controller
A ruggedized controller that runs control logic for machinery.
Human-machine interface
The operator screens used to watch and adjust a process.
Purdue model
A reference architecture dividing industrial networks into levels.
Port mirroring
Copying switch traffic to a monitoring port for passive analysis; also called SPAN.
Network tap
A hardware device that copies traffic from a cable to a monitoring tool.
Industrial demilitarized zone
A buffer network between enterprise and control systems.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why might a port scan be dangerous on a level 1 network?

    Show answer

    Controllers with fragile network stacks can stop responding or fault into a safe state that halts the process.

  2. What could a walkdown find that a network scan from the enterprise network cannot?

    Show answer

    Out-of-band connections such as cellular routers or modems that bypass the enterprise network entirely.

  3. Name one advantage of a network tap over a switch mirror port.

    Show answer

    It is less likely to drop packets when the switch is busy and does not depend on switch configuration.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz