The federal government’s cyber defense agency is short-staffed, and Tehran is known for its retaliatory cyberattacks.