The Islamic State group commonly known as Daesh had ambitious plans for Afghanistan, but Taliban resistance, US drone strikes, and a society less scarred by sectarianism mean the extremists have so far failed to repeat their Middle Eastern breakthrough.
The group, which controls large areas of Syria and Iraq, has been trying for months to establish itself in Afghanistan´s eastern badlands, challenging the Taliban on their own turf.
Its franchise in the war-torn country has managed to recruit disaffected Taliban fighters, as the fractious Afghan militant movement wrestles with a bitter power transition.
But the loss of senior commanders in drone strikes and the group´s signature brutality, which repels many Afghans, has helped stem its advance.
Frequent clashes and firefights with Taliban insurgents have also hampered its bid to capture significant territory.
“In Iraq and Syria, you might say (IS) are in stage six or seven or eight,” top US military officer General Martin Dempsey said last month.
“In Libya, they are in stage three or four, and in Afghanistan they are in stage one or two.”
His views are echoed by other NATO officials who say that IS in Afghanistan are not yet capable of carrying out the sort of coordinated operations they are conducting in Iraq and Syria, although the potential exists for them to evolve into a bigger threat.
Some Taliban insurgents, particularly in the restive eastern provinces of Kunar and Nangarhar, have adopted the Daesh flag to rebrand themselves as a more lethal force as NATO troops depart after 14 years of war.
The risk of defections grew after the July announcement of Mullah Omar´s demise, with many angry Taliban fighters accusing the leadership of covering up the supremo´s death for two years.
Some top cadres including Omar´s son and brother have refused to pledge allegiance to new leader Mullah Akhtar Mansour, saying the process to select him was rushed and even biased.
“The Taliban have no redeeming features,” said Mullah Mirwaïs, a former Taliban militant who is now a Daesh commander in the Kajaki district in the southern province of Helmand.
Michael Kugelman, Afghanistan expert at the Washington-based Woodrow Wilson International Center for Scholars, said Daesh is “flavour of the month right now. It has a dramatic appeal to a lot of alienated militants.”
But the Taliban are attempting to counter that, with an aggressive drive north from their southern and eastern strongholds, as well as a wave of fatal bombings in the Afghan capital, Kabul.
Experts say the escalating violence demonstrates Mullah Mansour´s bid to boost his image within the Taliban, which could halt the defections to Daesh.
“The Taliban remain a formidable fighting force. It´s in a position to fight back and push back against Daesh inroads,” Kugelman said.
“The Taliban has been able to keep IS at bay in eastern Afghanistan.”
US drone strikes in recent weeks have also dealt a significant blow to Daesh in Afghanistan, killing dozens of suspected cadres, including the group´s regional chief Hafiz Saeed.
NATO spokesman Colonel Brian Tribus said Daesh is an “operationally emergent” group but the Taliban pose a “greater threat” to the Afghan government and foreign forces.
Crucially, beyond the battlefield the Taliban have been far more successful than Daesh in attracting the support of local Afghans.
“Daesh militants are cruel — they kill without reason,” explained a resident of the volatile district of Achin in eastern Nangarhar province.
The Taliban, who have themselves often been accused of savagery during their 14-year insurgency, are seeking to appear as a bulwark against Daesh´s rein of brutality and as a legitimate group waging war.
Earlier this month the Taliban condemned a “horrific” video that apparently showed Daesh fighters blowing up bound and blindfolded Afghan prisoners with explosives.
“This un-Islamic act… can never be justified,” the Taliban said.
One other reason Daesh have struggled to gain a firmer foothold in Afghanistan, Kugelman said, is because of the lack of a deeply sectarian environment.