To prevent being hit by attacks on your iPhone or other Apple device, make sure you use strong passwords to protect your Apple ID. Always apply iPhone updates when they are released and ensure you never give out information to anyone on the phone—particularly one time passcodes.