N.Y. Not-for-Profit Corporation Law § 112
(a) The attorney-general may maintain an action or special proceeding:
(b) In an action or special proceeding brought by the attorney-general under any of the provisions of this chapter:
(c) In any such action or special proceeding against a foreign corporation which has not designated the secretary of state as its agent for service of process under section 304 (Statutory designation of secretary of state as agent for service of process), any of the following acts in this state by such foreign corporation shall constitute the appointment by it of the secretary of state as its agent upon whom process against such foreign corporation may be served.