qnli question: When did Afghanistan sign a security agreement with the US? sentence: In September 2014, Afghanistan and the United States signed a security agreement, which permits United States and NATO forces to remain in Afghanistan until at least 2024.