China has said terrorism is the biggest threat to the Beijing games and already claims to have foiled terrorist plots targeting athletes and foreigners during the Olympics .