It's well documented. Snowden himself has admitted as much, and it requires no conspiracy — only the stupidity of a single high school dropout.
https://amp.scmp.com/news/hong-kong/politics/article/3178655...
https://amp.scmp.com/news/hong-kong/article/1260306/edward-s...
https://amp.scmp.com/news/china/article/1266821/us-hacks-chi...
Snowden wasn't stupid. He was the world's best Sharepoint administrator.
It was probably unwise of him to insult the T group director publicly, which led to the entire subsequent chain of events.