One of the main trends in banking in the modern world is the use of digital technologies. The implementation of digital technologies in banking contributes to the development of an inclusive society, the availability and improvement of the quality of financial services, financial literacy and culture, and management efficiency. Digitization has provided new opportunities for increasing banks' competitiveness and increasing the number of customers and institutions' profits. At the same time, it has caused new challenges and threats related to ensuring the confidentiality of information, mistrust and limited access to digital technologies, insufficient level of digital competencies, cyber-attacks, etc. The purpose of the article is to analyze trends in the financial security of Ukrainian banks in the conditions of war and rapid digitization, as well as to analyze possible cyber threats to the banking system of Ukraine. The article determines Ukraine's place in the Digital Competitiveness Rating for 2017–2022. An analysis of the main indicators of digitalization of Ukrainian banks during 2018–2023 was conducted, which showed a high level of digitalization. To assess the impact of digitalization on the financial security of banks, the dynamics of changes in the main indicators of banking institutions of Ukraine during 2018–2023 were studied. Based on this, the level of financial security of banks was determined using indicators and an integral indicator. Thus, during the analyzed period, the level of financial security of banks was assessed as unsatisfactory. It is emphasized that the digitalization of the banking sector poses a serious threat – a large number of cyber attacks and fraud, which has an extremely negative impact on the level of financial security of banks. Measures and methods of ensuring the cyber security of banks by the NBU in the conditions of a large-scale invasion of Ukraine are considered. The article analyzes the main trends in the financial security of Ukrainian banks in the context of digitalization for the period from 2018 to 2022, which showed an increase in the number of cyber attacks on the banking sector. It has been proven that the war on the territory of Ukraine has a negative effect on the functioning of the banking system. However, thanks to the effective regulatory activities of the National Bank of Ukraine, the banking system quickly adapted to negative changes, and despite military actions, terror and cyber attacks, continues its work. Digitization of the banking system remains an important factor in the development and promotion of the state's economy. It opens up new perspectives for improving customer experience, increasing efficiency and implementing innovations.