The article identifies the peculiarities of the current state of cybersecurity in Ukraine and emphasizes the importance of applying effective legislation aimed at protecting the cyber structure, as well as choosing the best tools and mechanisms to combat cyber threats. For the purpose of this study, the author has selected the national legislation aimed at regulating the cybersecurity sector. The key aspects of legislation affecting cybersecurity and protection of information resources of Ukraine, in particular in the context of current challenges and threats of modern cyberspace, are quite effective today, as evidenced by the results of statistics on solving problems related to hacker attacks on Ukraine during the military conflict in 2022–2024. However, despite the fact that the current legislative acts create a solid basis for the development of Ukraine’s cybersecurity system, the article discusses issues that remain unresolved. In particular, the role of artificial intelligence in the field of data protection against cyberattacks in the current environment. The role of international cooperation in ensuring cybersecurity is also considered as one of the necessary conditions for ensuring the national security protection system of Ukraine.