A thorough analysis of literary sources on the application of artificial intelligence (AI) in cyber security was carried out. During the examination, the most significant attention was paid to sources describing the use of AI-based applications to analyze and evaluate existing systems for vulnerabilities, as well as to sources that consider the features of using built-in AI mechanisms for searching, detecting, classifying, and combating attacks on the system during her works. The types, impacts, and features of attacks on web services are defined. The features of the application of AI for the classification of web services under test are considered, with the aim of further justifying the selection of the best tools for ensuring their cyber security. The methods of using AI in the cyber security of web services during the introduction of built-in mechanisms and models for searching, detecting, classifying, and countering threats are analyzed. The accuracy of machine learning methods used to detect intrusions was compared. Directions for further research can cover: the development of methods, models, and applications based on the use of AI for analyzing the source code for possible vulnerabilities of a web service with support for various programming languages and the development of mechanisms for search and classification of threats based on the use of AI built into the web service.