Also in case of the use of modal verbs in a sentence we come back to the first basic rule. Ne ... pas encloses the first conjugated verb. In the case of modal verbs it is the modal verb, that is conjugated (the other one is in infinitive) and therefore, it is enclosed by ne ... pas.