The U.S. military has tried to take action to prevent attacks by Afghan forces, appointing monitors to provide security for troops working with Afghans, boosting its counterintelligence infrastructure in Afghanistan, adopting an eight-step vetting process for Afghan recruits and revising the training they receive.