The GCC region includes Saudi Arabia, UAE, Bahrain, Kuwait, Qatar, and Oman, which are of critical geopolitical and economic importance, being rich in oil and positioned along vital maritime routes. However, the region faces complex security challenges, ranging from traditional threats like interstate conflicts to nontraditional risks such as cyber-attacks, piracy, and environmental concerns. This study investigates the safety and security index for six GCC countries using machine learning techniques, specifically XGBoost, to forecast security trends for the next five years. Data from the Global Peace Index and World Bank development indicators were employed to construct the model. Key indicators related to economic, political, and environmental factors were selected using the Edit Distance on Real Sequence feature selection method. The model demonstrated high accuracy, with a mean absolute percentage error of less than 10% across all countries. The results indicate that Bahrain and Saudi Arabia are likely to experience improvements in their safety and security indexes. At the same time, Kuwait and Oman may face challenges in maintaining their current levels of security. The findings suggest that economic diversification, environmental sustainability, and social stability are critical for ensuring long-term security in the region. This study provides valuable insights for policymakers in designing proactive strategies to address emerging security threats.