I. Introduction
The sustainable development of Ukraine at the present stage requires the protection of the vital interests of a person and citizen, as well as society and the state, which ensure the timely identification, prevention and neutralization of real and potential threats to national interests. At the same time, national security is a system for optimizing the relationship between conscious threats and the resources that society has to counter these threats. There are always threats to society, but the level of protection from them will not be maximized. Therefore, national security is a dynamic means of achieving and maintaining a balance between real and potential threats and the ability of a subject to counter them [1]–[5].