Six months into the U.S.-Iran war, Tehran’s military is slowly shifting from retaliation to offense in a bid to gain leverage and break the stalemate, analysts say.

Since U.S.-Israeli strikes launched the war on Feb. 28, Tehran has largely portrayed its strikes against the United States, Israel and Gulf countries as revenge for attacks on the Islamic republic.

Now, Iranian officials are openly talking about giving offensive operations a greater priority while keeping control over the strategic Strait of Hormuz, a key source of leverage against Washington that has disrupted a vital global energy route and driven up energy prices.

Iran's Supreme Leader Mojtaba Khamenei outlined that approach in a reshuffle of top military commanders earlier this month, calling for "strengthening maximum deterrence and preparing to conduct large-scale offensive operations against the enemy."

Last week, a deputy commander of Iran's Revolutionary Guards indicated that Tehran was revising its military doctrine to give "offensive operations" strategic priority.