The intercepts by our electronic spy agency, the Communications Security Establishment Canada (CSEC), were almost certainly illegal, the CBC said, because the agency is supposed to track intelligence only on foreigners.