The article explores the theoretical foundations of the concepts of «security», «national security», «economic security», «investment security», and their interrelations within the components of a state's national security. The necessity of attracting foreign investments while considering economic security is emphasized. The authors propose their interpretation of the definition of «investment security in the sphere of foreign investment». Characteristics of national interests in the field of investment security are provided, and directions for forming a system to ensure it are identified. Sources of threats to attracting foreign investments for the domestic economy are identified. The dynamics of the balance of payments according to the financial account and the volumes of foreign direct investments for the years 2014-2023 are examined, providing insight into the country's investment climate. Attention is drawn to the significance of Ukraine's investment attractiveness index, which has been the lowest in the past decade since the onset of full-scale military aggression. This indicates that the investment climate in Ukraine does not contribute to an increase in foreign investment volumes. The analysis focuses on key indicators of investment security, including the investment attractiveness index and the ratio of net FDI inflows to GDP. It is elucidated that since 2016, there has predominantly been a deficit in the balance of payments, and the share of accumulation of foreign direct investment relative to GDP has not reached the threshold level of the indicator. It is highlighted that apart from state-level security factors, there are those that depend directly on the activities of economic entities, particularly the level of timeliness of accounting and analytical support for foreign investments. The main directions of ensuring economic security in the process of attracting foreign capital are determined.