The doctrine of necessity is a well-grounded concept in customary international law and has been codified into Article 25 of the International Law Commission (ILC)'s Draft Articles on State Responsibility (ILC Articles). States have also integrated essential security exception clauses in their investment agreements. 2.