The global processes taking place in the international political arena are more likely to correspond to the state of a silent confrontational and information war, forcing Russia to defend itself more actively, reflecting more and more blows from potential and established opponents. Ensuring State security is an integral and one of the most important functions of the state, it has as its task the prevention and suppression of actions that violate peace and order. It is this topic that is closely interrelated with the processes of preventing and countering crime, since the success of countering crime and, accordingly, ensuring national security depends on the effective functioning of the relevant processes. Taking into account the above factors priority task of the state is to ensure both its own security and the security of its citizens. The article examines individual elements of crimes that infringe on national security, which allows us to assess the scale and depth of the chosen topic. The authors have made proposals that should contribute to strengthening the rule of law while ensuring national security.