War has many levels, crudely divided recently into cold and hot war. This example is in between, perhaps best described as tepid war, where there is violence but not by people or military might. If this worm did disable the mullah's bomb making plans, so much the better. It is too bad for them that they have to rely on the west for everything technical, because there their vulnerabilities are the greatest.
If this helps prevent a hot war, which seemed to be more and more likely the closer the mullahs got to creating their own nuke, then the risks are very much worth it.