N.Y. Real Property Law § 224
The attornment of a tenant to a stranger is absolutely void and does not in any way affect the possession of the landlord unless made either: