IY2S512 CW2 CPS/ICS Modbus Security Demonstration Sample (USW)

For information and reference only – not to be submitted as your own work.

This extract shows how a strong answer to the University of South Wales IY2S512 Critical Systems Infrastructure Practical Written Work 2 could be structured. The brief asks for a 2,000-word report that demonstrates the operation and security of a cyber-physical system in a sandboxed environment; you can read the full requirements on the IY2S512 CW2 CPS/ICS security demonstration question page. For a step-by-step approach to the lab and the write-up, read our guide on how to write an IY2S512 CW2 CPS/ICS security demonstration report. Every IP address, register value and timing below is illustrative. Your own report must use your own lab, your own screenshots and your own results.

Planning table

Brief section Weighting Suggested words (illustrative) What the marker looks for
Introduction 10% 200 Clear scope, named CPS, sandbox justified, aims stated, brief ethical statement
CPS function demonstration 10% 200 Normal operation shown with evidence before any attack
Vulnerabilities and threats demonstration 10% 200 Reconnaissance, identification and a controlled demonstration, each tied to a figure
Mitigations 20% 400 Mitigations actually implemented, then verified by repeating the test
Technical discussion of system, vulnerabilities and impacts 20% 400 Architecture, connectivity, data storage, protocols, and physical-process impact
Attack vectors, attack surfaces and recommended mitigations 20% 400 Analysis beyond the lab, with justified, standards-based recommendations
Clarity and structure; USW Harvard referencing 5% + 5% about 200 (conclusion, captions) Logical flow, numbered figures, accurate in-text and end-of-text references

Check the exact word-count rules for tables, captions and the Evidence Log in the module handbook before you finalise your plan.

Model answer extract

Introduction

This report demonstrates the operation and security of a simulated water-pump station, implemented as a Modbus/TCP cyber-physical system (CPS) in an isolated virtual laboratory. Modbus is a request/response application protocol first designed for serial links and later carried over TCP on port 502 (Modbus Organization, 2012). It has no built-in authentication or encryption, which makes it a clear teaching example of the gap between operational technology (OT) protocols and modern security expectations (Knapp and Langill, 2015).

The aim is to show the system working normally, demonstrate one realistic weakness in a controlled way, apply layered mitigations and verify that they work. All activity took place on a host-only network with no route to the university network or the internet. The ethical position is simple: only systems built for the exercise were tested, and no technique was used that falls outside the module brief.

Demonstration of CPS function

The target virtual machine (VM) runs a Python pymodbus server that simulates a programmable logic controller (PLC) (pymodbus, n.d.). The simulated process is a storage tank with an inlet pump. Holding registers represent tank level and pump speed; a coil represents the pump run command. A simple web-based human-machine interface (HMI) on the same VM polls the server every two seconds and shows the level and pump state.

To demonstrate normal operation, the pump coil was set to ON through the HMI and the tank level was observed rising in steps. When the level crossed the high-level setpoint, the control logic switched the pump OFF. Figure 1 (in your report: screenshot of the HMI showing the tank level rising and the pump state changing) and Figure 2 (in your report: screenshot of the server log showing legitimate read and write requests from the HMI) provide this evidence. Establishing a baseline matters because every later change can be compared against it.

Demonstration of vulnerabilities and threats

The attacker VM runs Kali Linux on the same host-only network (illustrative addressing: attacker 192.168.56.10, target 192.168.56.20). Reconnaissance used Nmap, which identified TCP 502 as open and a Modbus service responding (Lyon, 2009). Figure 3 (in your report: screenshot of the Nmap scan output showing port 502 open) records this step.

A short Python script using pymodbus then enumerated the coil and register map, returning the pump coil and the level register. Figure 4 (in your report: screenshot of the enumeration output) shows that no credentials were requested at any point. This is the core vulnerability: Modbus/TCP accepts any well-formed request from any host that can reach port 502.

For the controlled demonstration, a Write Single Coil request (function code 05) was sent from the attacker VM to switch the pump OFF while the HMI was showing it ON. Figure 5 (in your report: screenshot of the HMI and server log showing the unauthorised write) shows the HMI state diverging from the real process state until the next poll. This maps to the MITRE ATT&CK for ICS techniques for unauthorised command messages and loss of control (MITRE, n.d.). Only the minimum action needed to prove the point was performed, and the original state was restored afterwards.

Mitigations implemented and verified

Four mitigations were applied in sequence, and the same test was repeated after each.

Firewall allow-list. A host firewall rule on the target permitted TCP 502 only from the HMI address and dropped all other sources. Figure 6 (in your report: screenshot of the firewall ruleset) shows the rule. Repeating the Write Single Coil test from the attacker VM then timed out, and the Nmap scan reported the port as filtered (illustrative result).

Function-code filtering. Where an application-layer proxy or gateway is available, the HMI’s read-only polling can be restricted to read function codes (01, 02, 03, 04), with write codes (05, 06, 15, 16) permitted only from an engineering workstation. In the lab this was demonstrated with an allow-list in the pymodbus server wrapper.

Intrusion detection. A Snort or Suricata rule was written to alert on any Modbus write function code from a source outside the allow-list, and on a burst of read requests typical of enumeration. Figure 7 (in your report: screenshot of the IDS alert triggered by a repeat test) provides verification.

Authenticated transport. Modbus/TCP Security wraps Modbus in TLS 1.2 or later on TCP 802, with mutual certificate authentication and an optional role carried in the client certificate (Modbus Organization, 2021). It was not implemented in the lab because the chosen server library does not support it out of the box. This limitation is stated honestly and treated as a recommendation for real systems where devices support it.

Verification matters more than description here. A mitigation that was never tested against the original attack earns little credit.

Technical discussion

Architecture. The lab comprises two VMs: a target (pymodbus server and HMI) and an attacker, joined by a host-only virtual switch. This mirrors the Purdue-style separation of enterprise, supervisory and control levels in simplified form (Stouffer et al., 2023).

Connectivity and protocols. The HMI and attacker both use Modbus/TCP over IPv4. The protocol is stateless at the application layer, with a transaction identifier, unit identifier and function code in each frame. Nothing in the frame identifies or authenticates the sender (Modbus Organization, 2012).

Data storage. Process values live in the server’s in-memory data store, with a text log on disk for the HMI and the evidence trail. A real PLC would hold similar values in its register memory, and a historian would archive them. That historian is itself an attack surface, because it often bridges OT and IT networks (Knapp and Langill, 2015).

Vulnerabilities and impact. The weaknesses demonstrated are lack of authentication, lack of encryption and no integrity protection. The lab impact was a false pump state and a briefly diverging HMI display. In a real water plant, an unauthorised stop command could cause supply interruption, and a sustained loss of view could mean operators cannot trust the HMI. The safety consequence is why NIST treats availability and integrity as primary OT concerns, not confidentiality alone (Stouffer et al., 2023).

Attack vector or surface Weakness exploited Potential impact Recommended mitigation
Open TCP 502 on the control network Unauthenticated Modbus/TCP service Unauthorised read and write commands Allow-list firewall, segmentation, Modbus/TCP Security where supported
HMI and engineering workstation Compromised host with legitimate network access Malicious commands appear legitimate Hardening, least privilege, application allow-listing, multi-factor access
IT/OT boundary (historian, remote access) Flat or weakly filtered routing Lateral movement from corporate network DMZ, one-way data flow where possible, jump host with logging
Management interfaces and credentials Default or shared passwords Configuration change, loss of control Credential management, change control, disable unused services
Absence of monitoring No detection of write commands or scans Long attacker dwell time Passive network monitoring, IDS rules, central logging

The recommended approach is defence in depth. IEC 62443-3-3 organises systems into zones and conduits and sets security levels per zone, so the control network is its own zone, and every route to it (HMI, historian, remote support) is a controlled conduit (IEC, 2013). The NCSC Cyber Assessment Framework gives UK operators of essential services a structured way to assess outcomes such as network security, monitoring and incident response (NCSC, n.d.), and the Network and Information Systems Regulations 2018 make such outcomes a legal duty for in-scope operators (UK Government, 2018). Mitigations should be prioritised by risk: segmentation and allow-listing first, monitoring second, protocol-level authentication as devices are refreshed. Legacy PLCs often cannot be patched or upgraded, so compensating controls at the network layer are usually the realistic option.

Evidence log

Step Activity Tool used Evidence
1 Demonstrate normal tank and pump operation in the isolated lab HMI, pymodbus server Figure 1 (in your report: screenshot of the HMI showing the level rising and the pump switching)
2 Record legitimate HMI read and write requests as a baseline Server log Figure 2 (in your report: screenshot of the baseline log)
3 Modbus server discovery Nmap Figure 3 (in your report: screenshot of scan output)
4 Register and coil enumeration Python script (pymodbus client) Figure 4 (in your report: screenshot of enumeration output)
5 Write Single Coil (FC05) demonstration pymodbus client Figure 5 (in your report: screenshot of HMI divergence and log entry)
6 Apply firewall allow-list on TCP 502 Host firewall Figure 6 (in your report: screenshot of ruleset)
7 Verify mitigation and IDS alert Nmap, pymodbus client, Snort or Suricata Figure 7 (in your report: screenshot of blocked request and alert)

Need help with your own CPS security report?

If your lab is built but the write-up is not, our network security assignment help team can review your evidence and structure. For layout, captions and referencing, see our report writing help, and for scripting problems with the pymodbus client, our Python assignment help is available. You can also compare how a related industrial control unit is handled in this distributed control systems sample.

Please Write Fresh Non Plagiarized Assignment on this Topic

References

IEC (2013) IEC 62443-3-3:2013 Industrial communication networks – Network and system security – Part 3-3: System security requirements and security levels. Geneva: International Electrotechnical Commission. Available at: https://webstore.iec.ch/publication/7033 (Accessed: 1 December 2026).

Knapp, E.D. and Langill, J.T. (2015) Industrial network security: securing critical infrastructure networks for smart grid, SCADA, and other industrial control systems. 2nd edn. Waltham, MA: Syngress.

Lyon, G. (2009) Nmap network scanning: the official Nmap project guide to network discovery and security scanning. Sunnyvale, CA: Insecure.Com LLC. Available at: https://nmap.org/book/ (Accessed: 1 December 2026).

MITRE (n.d.) ATT&CK for ICS matrix. Available at: https://attack.mitre.org/matrices/ics/ (Accessed: 1 December 2026).

Modbus Organization (2012) MODBUS application protocol specification V1.1b3. Hopkinton, MA: Modbus Organization. Available at: https://modbus.org/modbus-specifications (Accessed: 1 December 2026).

Modbus Organization (2021) MODBUS/TCP security protocol specification. Hopkinton, MA: Modbus Organization. Available at: https://www.modbus.org/docs/MB-TCP-Security-v36_2021-07-30.pdf (Accessed: 1 December 2026).

National Cyber Security Centre (NCSC) (n.d.) Cyber Assessment Framework. Available at: https://www.ncsc.gov.uk/collection/cyber-assessment-framework (Accessed: 1 December 2026).

pymodbus (n.d.) PyModbus documentation. Available at: https://pymodbus.readthedocs.io/ (Accessed: 1 December 2026).

Stouffer, K., Pease, M., Tang, C., Zimmerman, T., Pillitteri, V., Lightman, S., Hahn, A., Saravia, S., Sherule, A. and Thompson, M. (2023) Guide to operational technology (OT) security. NIST Special Publication 800-82 Revision 3. Gaithersburg, MD: National Institute of Standards and Technology. Available at: https://csrc.nist.gov/pubs/sp/800/82/r3/final (Accessed: 1 December 2026).

UK Government (2018) The Network and Information Systems Regulations 2018. SI 2018/506. Available at: https://www.legislation.gov.uk/uksi/2018/506 (Accessed: 1 December 2026).

Prepared by
Students Assignment Help UK Editorial Team

Students Assignment Help UK Editorial Team

This model answer was prepared by our editorial team in response to a real assignment brief we received. It shows one way to approach the task and is meant as a study guide, not for submission.

do you want plagiarism free & researched assignment solution!

UPTO 35% DISCOUNT

Get Your Assignment Completed At Lower Prices

Plagiarism Free Solutions
100% Original Work
24*7 Online Assistance
Native PhD Experts
Hire a Writer Now

Facing Issues with Assignments? Talk to Our Experts Now!Download Our App Now!

Have Questions About Our Services?
Download Our App!

Get the App Today!

QRcode