In 2015, a CIA whistleblower who actually created the software to spy on foreign terror threats, revealed that the CIA had turned the surveillance weapon against American citizens. The CIA and the NSA are generally barred from investigating Americans or U.S. businesses, but alas, they operate outside the law with impunity.
Source