American programs of "war on drugs" and "war on terror" has done a great job of making sure most of their client states are run by beefed up security forces behind a thin veneer of democracy.
The US's involvement in Pakistan is much older and historical than the war on drugs/terror. They were flying U2s out of Peshawar in the 1960s. For a while, Chuck Yeager (yes, that Chuck Yeager) was the US military representative directly to the Pakistani military.