
Introduction
Ransomware attacks against industrial organizations jumped 87% in 2024, hitting 1,693 incidents, with manufacturing taking the hardest blow. In 75% of the ransomware cases Dragos responded to, the attack caused a partial OT shutdown; a quarter caused a full shutdown (Dragos, 2025).
For a machine shop, that statistic isn't abstract. It means an altered CNC program running on a live spindle, corrupted tool offsets, scrapped parts, and a production line frozen while nobody can confirm which file is actually safe to run.
CNC cybersecurity isn't purely an IT problem. It spans engineering workstations, CAM and DNC systems, removable media, machine controllers, shop-floor networks, and the people who touch all of it every day. This guide walks through what actually protects a machine shop's programs, media, and networks — and where most shops go wrong.
Key Takeaways
- Version-control CNC programs with engineering approval before any file reaches a machine
- Treat every USB drive and contractor laptop as untrusted until scanned and approved
- Segment IT, engineering, DNC servers, and machine cells so one bad device can't reach everything
- Test patches and changes off production first, and involve machinists before making network changes
- Rehearse isolation and recovery so the shop can restore known-good programs fast
Safety Guidelines for OT Cybersecurity in Machine Shops
Machine-shop OT security protects the availability, integrity, and safe operation of CNC equipment — not just business data confidentiality. A compromised controller doesn't leak a spreadsheet; it can scrap a part, damage tooling, or put an operator at risk.
The relevant threats are specific:
- Malware riding in on a USB stick
- Unauthorized program edits
- Compromised remote-access sessions
- Outdated controller operating systems
- Weak or shared passwords
- Flat networks with no segmentation
- Vendor connections nobody tracked A well-designed network can still get undermined by one unmanaged USB drive or an unapproved file loaded in a hurry.
Protection here isn't a one-time project. Review your assets, users, files, media, network connections, and backups every time equipment, software, suppliers, or workflows change.
General Cybersecurity Precautions
Start with an honest inventory. List every CNC controller, HMI, engineering workstation, DNC/file server, switch, wireless bridge, and remote-access tool. For each, record:
- Model and firmware/OS version
- Owner and physical location
- Network connections
- Business impact if it goes down Next, build role-based access. Operators, programmers, maintenance staff, IT admins, and outside vendors each need distinct accounts with least-privilege access — and former employees' access should disappear immediately, not eventually. Write a baseline for normal activity: which workstation sends files to which machine, who can edit programs, what protocols are expected. That baseline is what lets you spot something unusual without treating every routine transfer as a red flag.
Frameworks worth leaning on: NIST SP 800-82 Rev. 3 is the current federal guide for OT security and explicitly addresses the reliability and safety constraints that make OT different from office IT (NIST, 2023). NIST CSF 2.0 organizes the work into Govern, Identify, Protect, Detect, Respond, and Recover. ISA/IEC 62443 adds a zones-and-conduits risk methodology. None of these replace your machine builder's instructions or shop-specific validation. They guide the plan, not the machine.
Protecting CNC Programs and Engineering Data
CNC programs, postprocessor outputs, tool offsets, macros, and setup sheets are operational assets. Treat them that way. An unauthorized edit or an accidentally overwritten master file can be just as damaging as malware. A controlled file lifecycle looks like this:
- Create or modify the program in an approved engineering environment
- Review and simulate where applicable
- Assign a revision identifier and get formal approval
- Transfer only the approved version to the machine
- Log who released it and when Separate master files from shop-floor working copies. Operators shouldn't have permission to overwrite the master — and someone specific needs authority over emergency edits made at the machine.
This is a workflow Controlink Systems LLC has focused on since 1998. Its Machine Link™ QUICK Serve pushes the latest engineering-approved file directly to the machine control, old or new, and routes any machine-side edits back to engineering for review before they reach the library. Ametek, Inc.'s DNC workflow follows a similar principle: corrected programs returned from the machine sit in an Engineering folder for review before they're allowed into the CNC program library. That single step keeps an unreviewed edit from becoming tomorrow's production run.

Backups matter just as much as approval. Keep tested, offline (or otherwise protected) copies of programs, controller configurations, offsets, and DNC server data. An untested backup is only a guess until you've restored from it. File hashes, revision IDs, or comparison tools can confirm a file hasn't changed unexpectedly, as long as the method fits your controller and DNC software.
Securing Removable Media and Portable Devices
USB drives, memory cards, contractor laptops, and diagnostic tools can walk straight past network defenses and plug directly into a controller or engineering workstation. That's exactly how Stuxnet spread: CISA's advisory identifies USB drives as the primary infection mechanism, with Siemens WinCC and Step7 systems and PLCs among the affected technologies (CISA, 2014). Treat that as a cautionary example, not proof that every shop faces the same threat, and not a reason to assume an air gap alone solves anything.
Build a media-control process:
- Label approved devices; prohibit personal media outright
- Keep an issue-and-return log
- Scan all media on a designated staging system before it touches production
- Quarantine anything unidentified or suspicious
Machine shops have their own history here. Before electronic file transfer, floppy disks were a routine failure point: lost or damaged disks meant lost programs. One shop, Combi Packaging Systems LLC, solved this decades ago by linking its CNC mills directly to an office computer for electronic backup, cutting out the floppy-disk risk entirely. The lesson still applies: the fewer hands and devices a file passes through, the fewer chances something goes wrong.
For files that do move on removable media, define the path:
- Scan the media
- Validate the sender and revision
- Compare against the approved master
- Confirm the destination machine and job
- Transfer through an authorized workstation Where compatible with production, layer on endpoint protection, application allowlisting, disabled autorun, or restricted USB ports. Test those controls first so they don't interrupt a machine mid-run.
Third-party laptops from machine builders or tooling vendors need the same discipline: documented authorization, malware scanning, time-limited access, and removal of any temporary accounts once the work is done.

Securing Machine Networks and Remote Access
Map every communication path: corporate IT to engineering systems, engineering to DNC servers, DNC to machine cells, and any remote vendor connections. Undocumented wireless bridges, modems, and "temporary" cables are where a lot of shops get surprised. Segmentation by function is the fix. Corporate IT stays separate from engineering systems; engineering and DNC services stay separate from machine cells; critical cells stay separate from each other where practical. Firewalls or controlled conduits should permit only the traffic that's actually required.
The Purdue Model is a useful planning aid here: physical processes and controllers at the bottom, enterprise IT at the top, and a DMZ in between. Use it as a starting map, not as proof of security by itself. It pairs well with hardware like a MOXA NPort device server, which bridges older RS232-connected machines onto Ethernet, and monitoring tools such as iMonitor for real-time visibility into shop-floor activity.
Remote access deserves particular attention:
- Route it through a brokered, approved pathway with MFA and named accounts — never shared credentials
- Grant time-limited authorization, not always-on VPN access
- Log every session
- Have an immediate disablement process ready
Favor passive, OT-aware monitoring over aggressive active scanning. Legacy CNC equipment can react badly to unexpected traffic, reboots, or untested security agents. Alerts worth chasing down:
- An engineering workstation sending files to an unfamiliar machine
- A program arriving outside the approved schedule
- A new device appearing in a cell
- Repeated login failures
Safety During Installation, Integration, and Change
Before you connect anything new — a CNC, a DNC server, a switch, a vendor laptop — verify its provenance, patch status, default credentials, and network configuration. Every change needs a pre-change review covering affected machines, expected downtime, rollback steps, and a production-approved maintenance window. Test patches, firmware, firewall rules, and DNC integrations somewhere other than live production first. Confirm compatibility with the controller and postprocessor before it touches the floor. Stop the work if:

- The device's origin or update status is unknown
- There's no current backup
- You can't restore the prior configuration if something breaks
- The change hasn't been reviewed by both operations and IT/OT staff
For a smaller shop starting from zero, tackle controls in this order:
- Inventory assets
- Protect and test backups
- Control removable media
- Remove default credentials
- Segment the highest-risk machines
- Secure remote access
- Add monitoring Integration partners like Controlink can help design controlled file and communication pathways between engineering systems and machine controllers. Verify scope and responsibilities before treating any single vendor as your complete security program.
Safety While Operating Machines and Transferring Programs
Operators and programmers should verify machine identity, job number, program revision, and approval status every time — before loading, not after something looks wrong. A short list of behavioral rules prevents most incidents:
- Never bypass media scanning to save time
- Never use a personal USB drive on shop equipment
- Never share passwords or connect an unauthorized vendor device
- Never make undocumented controller edits
If compromise is suspected:
- Pause the operation safely
- Isolate the affected device or segment with IT/OT guidance
- Preserve logs
- Notify the designated contact Do not erase evidence or reboot repeatedly. Recovery means restoring known-good programs and offsets, then running a verification pass before normal production resumes. Train staff on realistic scenarios: an unexpected program revision, a suspicious USB drive, a new vendor laptop.
Environmental and System Safety Considerations
Dust, heat, vibration, and older controller hardware all affect how security equipment performs on a shop floor. Industrial-rated hardware, selected to manufacturer spec, holds up where consumer-grade gear won't. Some systems — a DNC server, a single switch, an authentication service — sit underneath many machines at once. Document those single points of failure and have an offline operating procedure ready if one goes down. For equipment that can't be patched or run endpoint software, compensating controls carry the load: segmentation, allowlisting, restricted access, read-only master files, and closer monitoring. And cybersecurity changes always defer to machine safety controls and lockout/tagout — no security fix should ever risk creating a hazardous machine state. Reassess whenever you add a machine, replace a controller, upgrade CAM/DNC software, onboard a new vendor, or experience an incident. Each of those is a trigger to re-check the attack surface.
Common Cybersecurity Mistakes to Avoid
Most machine-shop incidents trace back to a handful of repeated errors:
- Skipping asset discovery. Assuming the machine network is "isolated" while an undocumented modem or wireless bridge quietly bypasses that isolation.
- Treating USB drives as harmless. Drives that "only" carry CNC files can still deliver malware, outdated programs, or a revision that's wrong for that controller.
- Shared passwords and always-on VPNs. Every shared credential and permanent vendor connection erases accountability and makes containment harder.
- Patching or scanning live controllers without testing. A well-intended IT action, run without OT constraints in mind, can cause downtime or unsafe behavior.
- One backup, never tested. A backup isn't a recovery plan until you've confirmed the programs, offsets, and configurations actually restore and run.
- Assuming segmentation alone solves it. Network segmentation without file controls, media discipline, and training still leaves gaps.
- Not reporting emergency edits. When operators stay silent, suspicious files and unexpected behavior stay hidden until they become incidents—a non-blaming culture gets those issues escalated early.
Conclusion
Machine-shop OT cybersecurity depends on the whole workflow working together—and on a recovery plan that has been tested, not just written down:
- Approved CNC programs
- Controlled removable media
- Segmented networks
- Authenticated access
- Careful change management
These controls exist to cut scrap, downtime, equipment risk, and unauthorized changes while keeping production running safely.
Start with an asset and data-flow inventory. Prioritize the machines and workflows where a mistake would cost the most. Bring machinists, controls engineers, IT, and qualified integration partners into every major change. The floor knows things a network diagram doesn't show.
Frequently Asked Questions
What's the difference between IT and OT security?
IT security protects information systems and data. OT security protects physical processes, machinery, safety, and availability. Machine shops need both working together, not one substituting for the other.
What is OT in cybersecurity?
Operational technology (OT) cybersecurity protects the hardware, software, controllers, and networks that monitor or directly control physical processes, such as CNC machining, tool offsets, and machine parameters.
What is the difference between OT and IoT?
OT controls or monitors a physical industrial process directly. IoT is a broader category of connected devices that collect or transmit data. When IIoT sensors connect into a machine-shop network, they can expand the attack surface if not properly segmented.
Can you give an example of OT security in a machine shop?
Practical examples include segmenting CNC machine cells from the corporate network, requiring approved and scanned USB media before use, restricting DNC access to authorized accounts, and monitoring for unauthorized program transfers.
What is the NIST standard for OT security?
NIST SP 800-82 Rev. 3 is the primary NIST guide for OT and ICS security. NIST CSF 2.0 complements it by organizing governance, protection, detection, response, and recovery activities.


