The sophistication of the October 7 Hamas attack on Israel using motorised paragliders, drones, and a combined air, sea and land invasion by heavily armed fighters, all under a coordinated barrage involving 5,000 missiles, bears the well-defined fingerprints of the Iranian regime.

It was certainly a massive failure by Israeli intelligence. But pundits who claim this was because Binyamin Netanyahu took his eye off the ball while he wrangled internally with political factions are way off the mark.

The intelligence services must surely operate at arms-length from government. Their job is to advise on potential threats, not to ignore them until domestic political struggles are resolved.

READ MORE: Israel and Gaza: What happens next?

Surely, four days before the Hamas invasion, someone in Israeli intelligence must have noticed the statement by Iran’s Supreme Leader Ayatollah Ali Khamenei, who said: “The usurper regime is coming to an end. Today, the Palestinian youth and the anti-oppression, anti-occupation movement in Palestine is more energetic, more alive, and more prepared than ever during the past 70 or 80 years. God willing, the movement will achieve its goals.”

That should have rung the alarm bells in Jerusalem and Tel Aviv.

There is no way Hamas could have armed, trained and financed this assault without months of detailed preparation and assistance from Iran and Hezbollah. For years, the theocratic regime in Iran has been the main backer of the terrorist groups Hamas in Gaza and Hezbollah in Lebanon. But tough sanctions and a collapsing economy have put the brakes on the mullahs’ aggressive adventurism in the Middle East.

That came to a sudden end with President Joe Biden’s recent capitulation to Tehran’s hostage diplomacy, when he released five convicted Iranian felons, in a prisoner-swap deal with Tehran.

By doing so, Joe Biden may have set the scene for the Hamas invasion of Israel. The five Iranians were exchanged for four innocent US and one British citizen who had been held hostage in Iran, charged with trumped-up claims of spying.

READ MORE: Andy Maciver: Scotland has failed this week's big test on Israel

The Biden administration’s doleful act of appeasement was compounded by the release of $6bn of frozen assets, returned to the clerical regime via a bank in Qatar. This windfall may have provided the missing link in Iran’s plans to cover the cost of the Hamas attack.

Accumulated debts to pay for the missiles, drones, motorised hang-gliders, technical support, military equipment, ammunition and Hamas fighters’ wages could now be met, thanks to President Biden. Indeed, senior security officials from Iran’s Islamic Revolutionary Guards Corps (IRGC) met with Hezbollah and Hamas in Beirut on Monday October 2, no doubt to give the green light to the planned attack, entitled Al-Aqsa Storm.

For years, Iran has connived with Hamas to provide arms and equipment to Palestinian militants in the tiny Gaza Strip enclave, which is nestled between Israel, Egypt and the Mediterranean Sea.

Gaza is one of the most densely populated areas in the world. Only six miles wide and twenty-five miles long, it is home to over two million Palestinians, 40% of whom are under the age of 15. There is high unemployment, soaring poverty and deep resentment against neighbouring Israel, which is regarded as an occupying force.

Iran and Hezbollah have smuggled weapons and rocket manufacturing materiel to Gaza by sea, evading the Israeli blockade by dropping floatable items for Palestinian fishermen to pick up near the Gaza coast. The border with Egypt is also often blocked so that Hamas tries to smuggle goods in via a network of tunnels, some of which are so large that they have even been fitted with rail tracks. Although the tunnels have been repeatedly bombed by the Israelis, some are still active.

Officers from the IRGC have for years instructed Shiite resistance fighters in religion, revolutionary ideology and guerilla tactics, and provided weapons, funds, training and encouragement to Hamas and Hezbollah fighters in Lebanon’s Beqaa Valley.

READ MORE: Teen sisters among Britons missing from Israel as Gaza aid efforts continue

Following the Hamas invasion, members of the Iranian Parliament chanted, “Death to Israel,” and Ayatollah Ali Khamenei’s top military adviser and former IRGC senior commander, Yahya Rahim Safavi, said Tehran supported the attacks by Hamas against Israel.

He commented: “We support the commendable Al-Aqsa Storm operations, and will continue to back the Islamist fighters until the liberation of Palestine and Jerusalem.”

Meanwhile, despite all the growing signs, US Secretary of State Antony Blinken told CNN: “We have not yet seen evidence that Iran directed or was behind this particular attack, but there is certainly a long relationship.” ⁠ Blinken’s wilful efforts to overlook anything that might prejudice his policy of appeasing the mullahs are shameful. The rising death toll in Israel and Gaza have exposed the fallacy of Western appeasement. No wonder Blinken rushed to Tel Aviv last week to pledge America’s unwavering support for Israel.

The Hamas attack is also a clear manifestation of the Iranian regime’s hostility to countries in the Middle East which have signed the Abraham Accords on Arab Israeli normalisation. Countries like the United Arab Emirates and Saudi Arabia are now thinking twice about improving relations with Israel in case it ignites a wider Middle East conflict.

Ayatollah Khamenei warned recently: “The position of the Islamic Republic is that countries that make the gamble of normalisation with Israel will lose. They are betting on a losing horse.”

Hezbollah has also linked the Hamas invasion with the Saudi rapprochement, saying in a statement the attack was a “decisive response to Israel’s continued occupation and a message to those seeking normalisation with Israel.”

The West must not surrender to such threats and menaces. Appeasement doesn’t work.

The criminal Iranian regime is behind every conflict in the Middle East from Syria, Yemen, Iraq, Lebanon to Gaza and now Israel. They are behind the sponsorship of international terror abroad and brutal oppression at home.

Now the mullahs, by supplying Vladimir Putin with kamikaze drones, have for the first time, become involved in a major war on the European continent. Surely this must be the tipping point for the West?

As the humanitarian crisis in Gaza spirals out of control, the focus of the West must now be on supporting the Iranian people to topple the mullahs’ subversive regime. That is the only way to restore peace, freedom, justice and human rights to Iran and to the wider Middle East.

Struan Stevenson represented Scotland in the European Parliament from 1999 to 2014. He was President of the Parliament's Delegation for Relations with Iraq (2009-14) and chairman of the Friends of a Free Iran Intergroup (2004-14). Struan is also Chair of the  In Search of Justice (ISJ) committee on the protection of political freedoms in Iran. He is the Coordinator of the Campaign for Iran Change (CiC). He is an international lecturer on the Middle East and is also president of the European Iraqi Freedom Association (EIFA). His latest book is entitled Dictatorship and Revolution. Iran - A Contemporary History.