She's leaned on her foreign policy experience since the Hamas attack on Israel on Oct. 7.