In 2013, a National Security Agency contractor named Edward Snowden revealed US surveillance programs that involved the massive and warrantless gathering of Americans’ electronic communications. Two of the programs, called Upstream and Prism , are allowed under Section 702 of the Foreign Intelligence Surveillance Act.