Of course it's not a CIA operation — that agency is foreign intelligence agency. The domestic intelligence agency is called NSA.
NSA's mission, as outlined in Executive Order 12333 in 1981, is to collect information that constitutes "foreign intelligence or counterintelligence" while not "acquiring information concerning the domestic activities of United States persons".
– WikipediaWhether they abide by that is another matter.
Also the NSA is a "signals intelligence" agency... Wouldn't the FBI be the local analog to the CIA? Or maybe the DHS?