; and (BB) in order to prevent or mitigate this threat, the query must be conducted before authorization pursuant to subparagraph (I) can, with due diligence, be obtained; and (bb) a description of the query is provided to the Foreign Intelligence Surveillance Court and the congressional intelligence committees and the Committees on the Judiciary of the House of Representatives and of the Senate in a timely manner; (III) such person or, if such person is incapable of providing consent, a third party legally authorized to consent on behalf of such person, has provided consent to the query on a case-by-case basis; or (IV) (aa) the query uses a known cybersecurity threat signature as a query term; (bb) the query is conducted, and the results of the query are used, for the sole purpose of identifying targeted recipients of malicious software and preventing or mitigating harm from such malicious software; (cc) no additional contents of communications retrieved as a result of the query are accessed or reviewed