N.Y. Debtor & Creditor Law § 127
Where the state is a creditor, the papers must be served upon the attorney-general, who must represent the state in the proceedings.