; and (ii) may not be disclosed under subsection (b)(7) of that section for purposes of immigration enforcement. (B) Destruction In the case of an alien who attempts to enlist under section 504(b)(1)(D) of title 10, United States Code, but does not successfully do so (except in the case of an alien described in subsection (e)), the Secretary of Homeland Security and the Secretary of Defense shall destroy information provided in documentation filed under this section or an amendment made by this section not later than 60 days after the date on which the alien concerned is denied enlistment or fails to complete basic training, as applicable. (3) Referrals prohibited The Secretary of Homeland Security or the Secretary of Defense (or any designee of the Secretary of Homeland Security or the Secretary of Defense), based solely on information provided in an application for naturalization submitted by an alien who has enlisted in the Armed Forces under section 504(b)(1)(D) of title 10, United States Code, or an enlistment application filed or an inquiry made under that section, may not refer the individual concerned to U.S. Immigration and Customs Enforcement or U.S. Customs and Border Protection. (4) Limited exception Notwithstanding paragraphs (1) through (3), information provided in an application for naturalization submitted by an individual who has enlisted in the Armed Forces under section 504(b)(1)(D) of title 10, United States Code, may be shared with Federal security and law enforcement agencies— (A) for assistance in the consideration of an application for naturalization; (B) to identify or prevent fraudulent claims; (C) for national security purposes pursuant to section 6611 of the National Defense Authorization Act for Fiscal Year 2020 ( 50 U.S.C. 3352f ); or (D) for the investigation or prosecution of any Federal crime, except any offense, other than a fraud or false statement offense, that is— (i) related to immigration status