; or (B) causes the Secretary to carry out any action to prevent, minimize, or abate the destruction or loss of, or injury or risk to, any system resource; or (2) an in rem action against any instrumentality (including a vessel, vehicle, aircraft, or other equipment or mechanism) that— (A) destroys, causes the loss of, or injures any system resource; or (B) causes the Secretary to carry out any action to prevent, minimize, or abate destruction or loss of, or injury or risk to, a system resource. (b) Affirmative defenses It shall be an affirmative defense in an action under subsection (a) that— (1) the applicable destruction or loss of, or injury to, the system resource was caused by an otherwise legal act or omission that occurred outside of the boundaries of the system resource; (2) the applicable destruction or loss of, or injury to, the system resource was caused by an activity performed in accordance with Federal, State, or local law, regulation, or court order; (3) the applicable destruction or loss of, or injury to, the system resource was caused solely by an act of God or an act of war; (4) (A) the applicable individual, entity, or instrumentality exercised due care; and (B) the applicable destruction or loss of, or injury to, the system resource was caused solely by an act or omission of a third party, other than an employee or agent of the individual, entity, or instrumentality; or (5) (A) the applicable destruction or loss of, or injury to, the system resource was caused by an individual, entity, or instrumentality, including an employee or agent of the individual, entity, or instrumentality, acting in physical self-defense or defense of others against physical harm; and (B) the physical defense was— (i) reasonably necessary; (ii) without reasonable alternative