As with most nation-states, the Iranian ruling regime is threatened mostly by its own subjects/citizens. As long as their eyes point outward, they won't as easily see the corruption going on behind their backs.
The biggest actual external threat to Iran is the US becoming a net oil exporter.
The biggest actual external threat to Iran is the US becoming a net oil exporter.