N.Y. Comp. Codes R. & Regs. tit. 9, § 6171.7
(a) Eligible witness information.
Information, files and records created pursuant to this Part in the possession of provider agencies and related solely to service provided by such agency are confidential and may not be disclosed by any person. Such information, files and records are not subject to disclosure in any judicial or administrative proceeding unless the court in which the criminal proceeding is pending or was disposed of, upon notice to the district attorney and an opportunity to be heard, determines that such disclosure would not endanger the health, welfare or safety of the witness or the family of the witness and is compelled by the interests of justice.
(b) Funding prohibition.