At the same time, such an attack would also legitimize Iran leaving the Non-Proliferation Treaty because within the treaty, there are legal ways of leaving it if the national security of the country is endangered. 