Security was deteriorating rapidly , particularly in the mountains along the Afghan border that harbor al-Qaeda and the Taliban , intelligence chiefs reported , and there were signs that those groups were working with indigenous extremists in Pakistan 's populous Punjabi heartland .