Classification of attack mechanisms and research of protection methods for systems using machine learning and artificial intelligence algorithms