Kashmiri rejected orders to serve under Maulana Masood Azhar in the newly founded jihadist organisation Jaish-e-Mohammed and was once even targeted by the group. Falling out of favour with the Pakistani military, he was taken into custody and tortured in late 2003 in the wake of an attempt to assassinate President Musharraf. From his release in February 2004 until the 2007 Siege of Lal Masjid he apparently did little, but later returned to the 313 Brigade in the terrorist organisation Harkat-ul-Jihad-al-Islami (HUJI), which is closely tied to al-Qaeda. Kashmiri rebuilt its strength while collaborating with the Taliban. This was part of a broader movement of Kashmir militants moving to Waziristan, and Kashmiri reportedly moved personnel from his Kotli (Kashmir) training camp to a new one in Razmak (North Waziristan). A U.S. indictment of Kashmiri stated that he "was in regular contact with "al Qaeda" [their italics] and in particular with Mustafa Abu al Yazid..."