The increasing reliance on Global Positioning System (GPS) technology across various sectors has exposed vulnerabilities to malicious attacks, particularly GPS jamming and spoofing. This thesis presents an analysis into detection and mitigation strategies for enhancing the resilience of GPS receivers against jamming and spoofing attacks. The research entails the development of a simulated GPS signal and a receiver model to accurately decode and extract information from simulated GPS signals. The study implements the generation of jammed and spoofed signals to emulate potential threats faced by GPS receivers in practical settings. The core innovation lies in the integration of machine learning techniques to detect and differentiate genuine GPS signals from jammed and spoofed ones. By leveraging the machine learning capability of the Support Vector Machine (SVM) algorithm to classify signal attributes as nominal or abnormal and an Artificial Immune System (AIS) framework to create an optimized Health Management System (HMS), the system adapts and learns from various signal characteristics, enabling it to make informed decisions regarding the authenticity of the received signals. After conducting training, validation, and fault detection, the model successfully returned an average 95.3% spoofed signal detection rate. The proposed machine-learning-based detection mechanism is expected to enhance the robustness of GPS receivers against evolving spoofing techniques