TL;DR
OffRAMPS is an FPGA-based "machine-in-the-middle" platform designed to intercept and manipulate the control signals of 3D printers. By sitting between the controller and the hardware drivers, it provides a high-precision testbed for researchers to both emulate sophisticated cyber-physical attacks (Trojans) and develop real-time, digital-twin-style defenses.
What Problem Does This Paper Address?
As Additive Manufacturing (AM) moves into safety-critical sectors like aerospace and medicine, the threat of sabotage becomes a life-and-death issue. Malicious actors could introduce "Trojans"—subtle modifications to a part’s geometry or internal structure—at various stages of the digital thread (CAD files, slicers, or firmware).
The challenge for researchers is twofold:
- Benchmarking: There hasn't been a generalized, open-source hardware platform to systematically test how different attacks affect physical parts.
- Detection Accuracy: Existing defenses often rely on "side-channels" (like recording the sound of motors or monitoring power consumption). These methods are often noisy, expensive to scale, or lack the granularity to catch very subtle modifications.
Methods
The authors developed OffRAMPS, a custom PCB that interfaces a Digilent Cmod-A7 FPGA with the widely used Arduino Mega/RAMPS 1.4 control stack.
The FPGA acts as a transparent intermediary. It can operate in three modes:
- Bypass: Signals pass through untouched.
- Signal Modification: The FPGA injects or blocks pulses (e.g., adding extra steps to an axis or masking extruder pulses) to emulate hardware or firmware Trojans.
- Signal Recording: The FPGA counts the digital "step" and "direction" pulses for all axes in real-time.
Because the FPGA runs at 100MHz, it can monitor and modify signals at a much higher resolution than the printer's own firmware. The authors implemented several VHDL modules, including an Edge Detection Module to track movements and a Homing Detection Module to synchronize the defense system with the start of a print.
Datasets
The paper does not use a traditional large-scale machine learning dataset. Instead, it utilizes a "Golden Model" approach for evaluation:
- Reference Prints: Known-good pulse counts captured from a clean "Golden Print."
- Flaw3D Trojans: The authors emulated the Flaw3D benchmark, which consists of 8 specific Trojan test cases involving the reduction of extruded material (by 2% to 50%) or the relocation of filament.
- Custom Trojan Suite: The authors developed 9 of their own Trojans (T1-T9) covering part modification, Denial of Service (DoS), and destructive physical damage.
Key Insights and Ideas
- Digital Precision over Analog Noise: By monitoring the raw digital pulses sent to motor drivers rather than secondary effects like sound or vibration, OffRAMPS achieves near-perfect visibility into the printer's intended actions without environmental interference.
- The "Time Noise" Factor: The authors discovered that even identical G-code prints have slight timing variations (asynchronous behavior). They determined that a 5% margin of error in pulse counts is the "sweet spot"—broad enough to ignore natural timing jitter but tight enough to catch malicious edits.
- Hardware-Level Stealth: Because the FPGA sits after the firmware, it can detect attacks that originate within the printer’s own "brain" (malicious firmware/bootloaders) which would otherwise be invisible to software-based checks.
- Versatility of Sabotage: The paper demonstrates that Trojans aren't just about changing shapes; they can be used for "Thermal Runaway" attacks, forcing heaters to stay on until the hardware physically fails, bypassing all firmware safety checks.
Key Results
- Successful Emulation: OffRAMPS successfully implemented 9 different types of Trojans, including "Z-wobble," "Loose Belt" simulation, and "Thermal Runaway."
- 100% Detection Rate: In tests against the Flaw3D Trojan suite, the system detected all 8 attack scenarios.
- Subtle Catch: The system successfully identified the "stealthiest" Trojan in the set—a modification that reduced extrusion by only 2%, which is typically invisible to the naked eye but compromises structural integrity.
- Negligible Overhead: The propagation delay introduced by the FPGA was measured at ~12.9 nanoseconds, which has zero impact on print quality or speed.
Limitations and Future Work
- Data Bottleneck: The current prototype lacks a high-speed interface (like Ethernet or USB 3.0) to stream high-frequency data to a PC for more complex, real-time analysis.
- Heating Element Blindspot: While it can control the signals to the heaters, the current power isolation design prevents it from detecting Trojans that might be physically embedded within the heating hardware itself.
- Physical Access: The platform currently requires a physical "man-in-the-middle" connection, making it a tool for research and high-end industrial monitoring rather than a consumer plug-and-play solution.
- Future Directions: The authors suggest integrating more side-channel sensors (acoustic/optical) into the FPGA framework to create a multi-modal defense system.
Summary updated