Afghanistan is poised to acquire four attack helicopters from India to help it fight a growing Taliban insurgency, a small but significant deal marking a shift in Kabul's search for allies that is likely to anger Pakistan.

Soon after he took over, Afghan President Ashraf Ghani held off military assistance from India while he courted Pakistan's political and military leadership to end years of mutual hostility and steer the Taliban, many of who live in Pakistan, toward negotiations.

But a wave of bombings in Kabul that Ghani said were plotted in Pakistan, followed by the Taliban encircling major cities including briefly taking over Kunduz in the north, has prompted a scramble to shore up support in the region.

Afghan National Security Adviser Mohammad Hanif Atmar is due in New Delhi this weekend to finalise the transfer of the Russian-made Mi-25 helicopters, said sources in New Delhi and Kabul who are involved in the plans.

Afghan forces badly need air power to reverse gains by the Taliban and in particular helicopter gunships that have range as well as firepower, the officials said.

While the United States has agreed to supply Afghan forces with light McDonnell Douglas MD 530 helicopters, which can be fitted with weapons, many Afghan officers prefer the bigger, sturdier Russian machines.

Atmar will be discussing with his Indian hosts the fight against terrorism as well as air force equipment issues, the Afghan National Security Council said in a Twitter post.

"We are going to give them the helicopters, this is a one-off arrangement," said an Indian security official, speaking on condition of anonymity because of the sensitivity of the matter.

The supply of the assault helicopters will be the first offensive weapon to Afghanistan since India signed a strategic partnership agreement with Kabul in 2011 that riled old enemy Pakistan. It has donated light helicopters, vehicles and provided military training in the past.

An Afghan source confirmed the plan to induct Mi-25s from India, saying Kabul was looking to regional players to help it fight the Taliban.

"We are the ones who are fighting the Islamic State, al Qaeda and the Taliban, everyone else is only talking," the source said. "But terrorism is everyone's problem."

Atmar will also be discussing a proposal to train Afghan Special Forces in counter insurgency schools in India, the Afghan source said, in addition to about 1,000 Afghan army officers who visit India for training each year.

Pakistan's foreign ministry declined to comment on the Afghan plan to obtain attack helicopters from India, saying it was a matter between those two countries. The military did not respond to a request for comment.