A top U.S spymaster has said that Pakistan-based terrorist groups are “planning to attack” both India and Afghanistan.

"Islamabad has failed to curb militants and terrorists in Pakistan," Daniel Coats, Director of the U.S National Intelligence told members of the United States Senate Select Committee on Intelligence during a Congressional hearing on Worldwide threats on Thursday.

"These groups will present a sustained threat to the United States' interest in the region and continue to plan and conduct attacks in India and Afghanistan," Coats said.

He said Pakistan is expanding its nuclear arsenal in pursuing tactical nuclear weapons, potentially lowering the threshold for their use.

He said that in South Asia, the intelligence community assesses that the political and security situation in Afghanistan will almost certainly deteriorate through 2018 even with a modest increase in military assistance by the United States and its partners.

“This deterioration is undermined by its dire economic situation. Afghanistan will struggle to curb its dependence on external support until it contains the insurgency or reaches a peace agreement with the Taliban," he said.

"Meanwhile, we assess that Taliban is likely to continue to make gains especially in rural areas. Afghan Security Forces performance will probably worsen due to a combination of Taliban operations, combat casualties, desertion, poor logistic support and weak leadership," Coats said.