Trade wars and national security concerns are making it harder to safeguard products and communication networks.