Machine Vision (MV) systems integrated with Artificial Intelligence (AI) based technologies like Convolutional Neural Network (CNN) have shown promising results in classification and sorting applications. One such application is the classification of threaded fasteners like screws, bolts, nuts, etc, during the assembly process to ensure secured assembly of the components. However, increasing penetration of the internet into manufacturing organizations introduces cybersecurity concerns that can impact the performance of AI-based MV systems. Cyberattacks such as data poisoning, and model evasion targeted towards AI systems can manipulate the input data or the model itself, leading to misclassification and potential operational failures. With an increase in MV systems being deployed in automated manufacturing, it is essential to safeguard the AI models against cyber-attacks. Hence this research is motivated by the need to analyze the impact of one such class of cyberattacks, i.e. model evasion attack on an AI-based MV system. The focus of this research will be to analyze the impact of this attack on the accuracy and confidence of the model as applied to fastener classification. Model evasion attacks can compromise a model’s ability to classify images correctly, resulting in the model’s reduced confidence levels and/or inaccurate image classification. This paper utilizes the Fast Gradient Sign Method (FGSM) to craft adversarial images of threaded fasteners, which are then used to perform model evasion attacks on the MV system for fastener classification. FGSM is particularly effective in white-box attacks, where the attacker has full knowledge of the model’s architecture and parameters. FGSM generates adversarial images of threaded fasteners quickly and efficiently by introducing subtle and nearly imperceptible modifications to the input images. It leverages the gradients of the model’s loss function to identify the optimal direction and magnitude of perturbations, ultimately deceiving the model into making incorrect predictions. The research questions answered in this study are: a) How does FGSM-generated adversarial images impact the accuracy and confidence of the classification results from the developed Efficient-Net-b0 based MV system? b) Is the XAI system implemented as part of the MV system capable of detecting FGSM-generated adversarial attacks? c) Can human-in-the-loop be a solution to mitigate the impact of FGSM-generated adversarial images? The study shows that FGSM-generated adversarial images reduced the accuracy and confidence of the classification results. The XAI system detected adversarial images by displaying skewed heat maps that highlight the image regions that were the most influential in contributing to the model’s decision. Lastly, when humans are presented with FGSM-generated adversarial images, they are still able to identify the images with high accuracy and confidence. In conclusion, the paper evaluates the impact of a cyberattack on an AI-based MV system used in manufacturing, and also validates a potential solution to mitigate the impact of such an attack.