Security and privacy in Machine Learning (ML) refer to the measures and practices implemented to protect ML systems, data, and…