Needle in a Haystack: Detecting Subtle Malicious Edits to Additive Manufacturing G-code Files
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Increasing usage of Digital Manufacturing (DM) in safety-critical domains is increasing attention on the cybersecurity of the manufacturing process, as malicious third parties might aim to introduce defects in digital designs. In general, the DM process involves creating a digital object (as CAD files) before using a slicer program to convert the models into printing instructions (e.g. g-code) suitable for the target printer. As the g-code is an intermediate machine format, malicious edits may be difficult to detect, especially when the golden (original) models are not available to the manufacturer. In this work we aim to quantify this hypothesis through a red-team/blue-team case study, whereby the red-team aims to introduce subtle defects that would impact the properties (strengths) of the 3D printed parts, and the blue-team aims to detect these modifications in the absence of the golden models. The case study had two sets of models, the first with 180 designs (with 2 compromised using 2 methods) and the second with 4320 designs (with 60 compromised using 6 methods). Using statistical modelling and machine learning (ML), the blue-team was able to detect all the compromises in the first set of data, and 50 of the compromises in the second.
Key facts. Cited by 4 papers in the map (data through 13 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 2 of its 20 references that are in the map. First posted on arXiv 24 Nov 2021.
Builds on
2 of 20 references.
References · 2
Built on by
Citing papers per year: 2024: 2; 2025: 0; 2026: 2.
4 papers.
- 2024LLM-3D Print: Large Language Models To Monitor and Control 3D Printingcited by 18
- 2024FDM-Bench: A Comprehensive Benchmark for Evaluating Large Language Models in Additive Manufacturing Taskscited by 4
- 2026Engineering Attack Vectors and Detecting Anomalies in Additive Manufacturingcited by 2
- 2026LLM-ADAM: A Generalizable LLM Agent Framework for Pre-Print Anomaly Detection in Additive Manufacturingcited by 0
- 2026LLM-ADAM: A Generalizable LLM Agent Framework for Pre-Print Anomaly Detection in Additive Manufacturing5 May 2026
- 2026Engineering Attack Vectors and Detecting Anomalies in Additive Manufacturing1 Jan 2026
- 2024FDM-Bench: A Comprehensive Benchmark for Evaluating Large Language Models in Additive Manufacturing Tasks13 Dec 2024
- 2024LLM-3D Print: Large Language Models To Monitor and Control 3D Printing26 Aug 2024
Similar, not cited
Close in wording, no citation either way
- 2025Image2Gcode: Image-to-G-code Generation for Additive Manufacturing Using Diffusion-Transformer Model
- 2025Multimodal RAG-driven Anomaly Detection and Classification in Laser Powder Bed Fusion using Large Language Models
- 2026Task-Driven 3D Printability Assistance via Geometry- and Knowledge-Grounded LLM Reasoning
- 2026On the Generation and Mitigation of Harmful Geometry in Image-to-3D Models
- 2026Trustworthy Visual Quality Inspection under Data Scarcity in Manufacturing
- 2026AIForge-Doc: A Benchmark for Detecting AI-Forged Tampering in Financial and Form Documents
- 2025Detecting and Preventing Data Poisoning Attacks on AI Models
- 2025FantasyID: A dataset for detecting digital manipulations of ID-documents