Possibly, but internal power struggle is also possible. Military and intelligence chiefs may want to get rid of competitors. Money and power may be motive.
Also, iran is 3rd world country and army research is risky. Accidents fo happen in poor countries.
You’re correct, it is very possible. There are a number of anti-regime grps in Iran (both Iranian & foreign) who may cooperate when necessary.
Iranian authorities probably suspect the same - so, I think the recent reported capture of spies in Iran & Lebanon is related to this & recent events. They were mostly Lebanese & Iranians, not foreign nationals. In the past for example, an Iranian opposition grp tried to assassinate present supreme leader Khamenei. It wasn’t successful, but Khamenei lost the use of his right arm after a bomb hidden inside a tape recorder detonated while he was giving a news conference..