The Navy issued warnings to sailors and their families to lock up their social media accounts amid online threats during the Iran war.