British security agencies have confronted dozens of lethal plots traced to Iran in recent years.