While Afghanistan had made definite gains over the past year and the Government was determined to take a lead role in rebuilding the country and economy, the persistent lack of security still threatened the peace process at all levels, a senior United Nations official told the Security Council today.