Optimizing Cyberdeterrence: A Comprehensive Strategy for Preventing Foreign Cyberattacks