the man who exposed it all. >> snowden said he was risking his freedom and possibly his life. >> this was a stupendous intelligence breach. >> narrator: and the convergence of government surveillance and an information revolution. >> the googles, the facebooks collect as much of our sensitive data as possible. >> but anything you hand to a private company is potentially the government's. >> narrator: tonight on frontline... >> corporate america and the national security state know so much about us, and we know so little about them. >> narrator: "privacy lost," part two of "united states of secrets." >> frontlinis made possible by contributions to your pbs station from: and by the corporation for public broadcasting. major support for frontliis provided by the john d. and catherine t. macarthur foundation, committed to building a more just, verdant and peaceful world. more information is available at macfound.org. additional funding is provided by the park foundation, dedicated to heightening public awareness of critical issues. the wyncote foundation. and by the frontline journalism fund, with major support from john and jo ann hagler and additional support from chris and lisa kaneb and bill and cile hicks. >> narrator: hong kong, may 2013. nsa contractor edward snowden was holed up deep inside the crowded kowloon district. he chose hong kong, he would say later, because he trusted the chinese would not betray him to u.s. authorities. before leaving his home in hawaii, he had downloaded a huge store of top secret files from the nsa's internal networks, and he had sent many of them through encrypted channels to a few journalists he trusted. two of them, glenn greenwald of the guardian and documentary filmmaker laura poitras, came to the mira hotel to meet him. greenwald and poitras wanted to be sure snowden's story was rock solid. and they needed to work fast. >> we knew that this was incredibly consequential and that it was super important that we get it right. um... but also, there was always this kind of uncertainty, one might even say danger, hovering over the room. because we didn't know what the nsa knew about what he was doing. we didn't know what the chinese and hong kong governments knew about him being there. so we thought it was very possible that the door could be barged down at any moment. >> narrator: the guardian also sent a senior correspondent to vet their source. >> i asked him, do you mind if i tape the interview on an iphone? and as soon as he saw the iphone, it was like bringing out a microphone direct into the nsa headquarters. he was totally appalled. and he said, "get that out of the room as quickly as possible." >> narrator: even then, snowden still worried that someone might be recording them. >> he would often put a blanket over his head when he wanted to enter this computer system to prevent overhead cameras from picking up the passwords to the encryption. >> narrator: as snowden explained more about the tens of thousands of documents, macaskill listened carefully. >> i was sort of warming to the idea that, you know, this guy was for real. >> narrator: one of the first files they discussed was this one. it directed verizon business services to turn customer phone records over to the nsa. the journalists were stunned. >> what this document revealed is that the nsa surveillance system is not directed at very bad people or about terrorists. it's directed at the american citizenry and other citizenries around the world, indiscriminately, in bulk. >> narrator: the document directly contradicted what director of national intelligence general james clapper had said before congress just a few months earlier. >> does the nsa collect any type of data at all on millions or hundreds of millions of americans? >> no, sir. >> it does not? >> not wittingly. there are cases where they could inadvertently, perhaps, collect, but not wittingly. >> i think for snowden, the clapper testimony was the final nail in the coffin. watching president obama's top national security official go before the senate intelligence committee and outright lie about what the nsa was doing convinced him, i think, beyond any shadow of a doubt, that the only hope for public discussion and reform was for him to do what he was going to do. (cars honking) >> narrator: at tguardian's new york bureau, senior editors received a message from hong kong. (phone ringing) >> i sent a message saying "the guinness is good," which meant snowden is for real. and one of the deputy editors in new york said when he saw those words come over, he just went, "fantastic, we've got a real story." >> narrator: the guardian decided to publish the story as fast as possible. they called the white house and gave them four hours to comment. >> i remember well getting the phone call. and it was one of these situations where it almost took us a few minutes to get our minds around how big of a leak this was and how comprehensive the set of revelations were. we had very little time to react. >> narrator: they sounded the alarm and reached out to an nsa official, john delong. >> i have two computers on my desk-- a classified computer and an unclassified computer. and i'm used to seeing that document on the classified computer. and i did a real double take. i remember just sitting there for 30 seconds checking and rechecking to see what computer this classified document appeared on. the gravity of it was quite palpable, and i thought, "this is going to be a really tough story as it comes out." >> narrator: at tguardian, editor-in-chief janine gibson took a return call from the white house. >> she has the deputy head of the nsa and the white house on the phone, and they essentially are trying to persuade her not to publish. >> the white house tactic was one of, "okay, come and see us, let's talk about this, and you can chat to our officials and we can discuss what might be published and what might not." >> janine has her own script, which is to say, "look, if you have any significant objections, objections on the grounds of national security, then tell us. now is the moment to tell us." and of course, they don't. they just want to stall her. >> narrator: the guardian refused to wait. >> the british newspaper the guardian reports that verizon is providing phone records of some businesses to the u.s. government. >> narrator: it was just the beginning. at the washington posreporter barton gellman-- the only other reporter to receive documents directly from snowden-- was working on another story. before publishing, he contacted the nsa. >> i sent notes to two high-ranking people and a spokesperson in government and said, "i have something very sensitive to talk to you about." >> narrator: the story concerned another nsa program called prism. documents showed how beginning in 2007, nine internet companies were cooperating with the nsa. gellman wanted to make sure his reporting wouldn't damage national security. >> we very much did want to know what they thought would do concrete harm, and how, and why. and the u.s. government asked me not to publish the names of the nine companies that were supplying information to the government in the prism program. and i said, "why?" their argument was that if we publish the names, then the companies would be less inclined to cooperate. and i guess we agreed to disagree on that one. >> the washington post is reporting that the... >> narrator: the post went ahead. >> narrator: the prism revelations reached beyond the collection of phone records. this was about the acquisition of content from tens of thousands of nsa targets. >> did you check your account on gmail? >> secret spying program is... >> the prism program is not about metadata. it's about content. it's the photos and videos you send. it's the words of your emails. it's the sounds of your voice on a skype call. it's all the files you have stored on a cloud drive service. it's content, it's everything. >> narrator: the president was on a fundraising trip in silicon valley. at a press conference, he agreed to take one question about the leaks. >> good morning, everybody. i'm going to take one question. i don't want the whole day to just be a bleeding press conference but i'm going to take jackie calmes' question. >> mr. president, could you please react to the reports of secret government surveillance of phone and internet, and can you also assure americans that your government doesn't have some massive secret database of all their personal on-line information and activities? >> yeah. what the intelligence community is doing is looking at phone numbers and durations of calls. they are not looking at people's names and they're not looking at content. >> narrator: the president tried to downplay the revelations. >> now, with respect to the internet and emails, this does not apply to u.s. citizens and it does not apply to people living in the united states. in the abstract, you can complain about big brother and how this is a potential, you know... you know, program run amok. but when you actually look at the details... >> in hong kong, snowden was sitting with three people under contract with the guardian. they were sitting there on the bed watching the reaction on cnn. >> they are not looking at people's names and they're not looking at content. >> obama was saying the nsa isn't listening to the telephone calls or reading the emails of americans, which is absolutely wrong. there were documents that we had that proved president obama's claims in that regard were false. and we just could tell, as well, that he at that moment didn't have any idea of the true magnitude of what was coming, given how dismissive and casual his tone was. >> thank you very much, guys. >> narrator: snowden now decided to make a bold move. he would reveal his identity, posting a video he had recorded a few days earlier. >> laura set up the camera. glenn was asking the questions. and normally snowden wore a t-shirt, and glenn says, "can you not find a shirt?" and snowden went off and found the grey shirt. >> my name is ed snowden. i'm 29 years old. i worked for booz allen hamilton as an infrastructure analyst for nsa in hawaii. >> what we see is someone who is calm, rational, persuasive. >> the nsa specifically targets the communications of everyone. it ingests them by default. it collects them in its system and it filters them and it analyzes them and it measures them and it stores them. >> the language was clear, sympathetic. and when he did the interview it was as if he was a media natural. so we knew that when snowden went public it was going to be a huge story. >> why should people care about surveillance? >> because even if you're not doing anything wrong, you're being watched and recorded. >> and he sets out why he's done this thing, what his motives are, and basically sort of puts the ball in the court of the public and says, "you make up your minds as to whether this is right or not." >> these things need to be determined by the public, not by somebody who is simply hired by the government. this is the truth. this is what's happening. you should decide whether we need to be doing this. >> edward snowden, according to the guardian, is in hong kong. >> ...who leaked the existence of nsa programs... >> (woman speaking chinese) >> three weeks ago after copying a last set of documents... >> we knew that the minute we unveiled his identity that he was going to have to go into hiding, because the media horde was about to descend onto hong kong and would be looking for him. and the u.s. government would certainly be looking for him. >> at that point he knew it was untenable. some enterprising journalist had put up on twitter the pictures of the hotel room and says, "does anybody recognize these light fittings?" and someone was able to establish it was the mira. >> snowden is believed to... >> the mira hotel is just across the harbor... >> so snowden knew they were on their way, so about midday he left his hotel room. >> um, and there was definitely a kind of air of sadness over our last meeting, because i assumed that the next time i saw him, he was going to be in u.s. custody on a television screen. >> narrator: snowden left it to the journalists to decide which documents to publish, and then he disappeared into the crowded streets of hong kong. for two weeks, he managed to elude the world's press corps. >> hiding in hong kong... >> apparently still in hong kong... >> narrator: and to avoid u.s. authorities. >> edward snowden's been charged with two counts of espionage. >> this guy is a traitor, he's a defector... >> narrator: on june 23, edward snowden set off for south america via russia. >> ...transit through russia, supposedly he's headed for ecuador. >> he ended up in russia for one very simple reason, and that is that the united states government forced him to stay there by preventing him from leaving. >> snowden is believed to be holed up inside moscow's airport. >> he could no longer get a ticket and leave russia because his passport had been revoked by the u.s. government. >> people may die as a consequence of what this man did, and anybody who wants to make him a hero is misjudging how they stay safe. >> the man on the run from u.s. authorities... >> one of the greatest security breaches in american history. >> russia has granted edward snowden asylum... >> edward snowden was granted asylum in russia. >> less likely he will ever see inside of a u.s. courtroom. >> narrator: back in the u.s., at nsa headquarters, the news hit hard. >> ...headline, and it has grown bigger... >> it was hard to read in the press, "nsa is lawless, nsa out of control." none of those resonate with us. that's not us. that's not what we are aiming towards. that's not how we hold ourselves accountable. our ultimate goal is to prevent things from... bad things from happening to ensure the national security. >> you want to draw the box differently? you want to have the security community work in a smaller box? i got it. but before you do that, you got to understand, you got to understand what the costs might be. i mean, we live inside a democracy. and, you know, the public will matters in a democracy. i just hope it's informed public will. and frankly, when the decisions are made, you understand the costs. >> we have to strike the right balance between protecting our security and preserving our freedoms. >> narrator: the president did what executives in the midst of a controversy often do... >> review of our surveillance programs... >> narrator: he appointed a panel. >> so i am tasking this independent group to step back... >> narrator: this one to review the nsa's programs. >> and they will provide an interim report in 60 days and a final report by the end of this year, so that we can move forward with a better understanding... >> the president's directions were, "go wherever you want. you can see any classified program. no one can deny you any information. you can go anywhere in the intelligence community. you can recommend anything. except, realize that what i won't accept is any block between me and my constitutional oath of defending the united states." >> the highly classified program is code-named prism. >> the guardiand the washington post both reporting that the national security agency... >> narrator: on the other side of the country, in silicon valley, there was anger and confusion over just what kind of access major internet companies were giving the nsa. >> there was shock and disbelief and horror. a lot of people i know, silicon valley-type people, just felt, "it can't be right. it's not possible google, facebook, these guys are collaborating. it's not just what they would do." >> the ceos of internet companies like facebook and google denied... >> narrator: the companies scrambled to respond to the news. >> google denies that they have direct access. who's right? >> they freaked out because they'd never heard of a program called prism. and they were not letting the nsa get direct access to their servers. they were cooperating with a secret program that they really couldn't describe in sufficient detail to their customers. >> these nsa folks are saying... >> they saw here a big threat to their image, to their business model, which relies on people to trust them with their communications. and they started issuing quite heated statements, taking issue with the idea that they would be just handing over free access to the nsa. >> narrator: but then there was more bad news. >> the washington post, citing documents stolen and released by edward snowden... >> narrator: prism was only part of what the nsa was up to. >> narrator: in a program called muscular, the nsa was secretly extracting data from fiber optic cables overseas, where intelligence operations are much less restrained by surveillance laws. >> prism was a front door. prism was the court saying, "you have to cooperate with the nsa and give specific information when asked." now, they find out that through the backdoor, the government is actually breaking into their infrastructure and taking whatever they want. >> they can't intentionally look for a u.s. person's information unless they believe it's a legitimate foreign target. but otherwise they're free to collect it at... pretty much unrestricted abroad. they can hack into companies' internal networks and collect information in bulk. >> narrator: the nsa did this by invoking a reagan-era presidential order, from a time long before the modern internet. >> the nsa decided it was okay under executive order 12333 and with the backing of the justice department and the white house to break into the private links, the private data links that connect the data centers of google and yahoo around the world. you're collecting a very large fraction of the whole planet's internet traffic. and that includes a very large number of americans. >> the project identified by the code name "muscular"... >> we do not just tap into lines in the united states. overseas, the ability to do that in bulk is critical for finding the communications of people who are trying to hide. if you can look for certain patterns and dive into those communications, you find people utterly unknown to you who are very dangerous. >> narrator: google was shocked. they had leased what they thought were secure data lines. >> the idea that one of our own government agencies would go out and essentially break into google's own data streams to go beyond what google thought had been a skeptical and resistant, but nevertheless cooperative relationship, i find that quite shocking. that is sort of a betrayal of the relationship that i think google felt like it had with the government. >> narrator: the leaked files even showed the nsa operatives bragging about their accomplishment. >> there was one slide, the internal nsa slide, showing a little diagram how it worked. it sort of boasted about it and it put a little smiley face there. this little, you know, like emoji, gotcha. you know, saying, you know, "ha ha," you know, "we figured out a way to get that information." >> narrator: google, which had a better record than most companies on encryption, was criticized for leaving its internal data lines vulnerable. >> i don't know why google wasn't encrypting the information traveling between their data centers. but we know that they weren't and we know that the nsa revelations have prompted them to make massive changes in the way their systems work. and they're now trying to encrypt that data on a crash program to get all of that information encrypted. >> narrator: the nsa will now have a harder time reading google's data without google's knowledge. >> obviously, the national security agency did not design its programs on the assumption that they would be exposed. much of this damage is down to snowden, who is quite deliberately causing as much harm to u.s. companies and the u.s. national interest as he possibly can, leaking these stories in media that are most likely to hype them in ways that will be damaging to the united states. >> narrator: it should have been no surprise that the nsa would be digging into the companies' data. immediately after 9/11, the companies had been warned. >> this new law that i sign today will allow surveillance of all communications used by terrorists, including emails, the internet and cell phones. as of today we'll be able to better meet the technological challenges posed by this proliferation of communications technology. >> narrator: with the signing of the patriot act in 2001, a new era of intelligence gathering and surveillance had been set in motion. >> the american people need to know that we are collecting a lot of information and we are spending a great deal of time trying to gather as much intelligence as we possibly can to chase down every lead, to run down every hint so that we can keep america safe, and it's happening. >> narrator: it was happening, but it was veiled from public view. in san francisco in the summer of 2002, a technician at at&t, mark klein, was one of the first to witness something. >> there was some speculation of some kind of spying they are doing, having to do with the new era of fighting terrorism or something. but nobody knew. >> narrator: then one day an agent of the national security agency showed up to talk to one of klein's supervisors. >> i happened to answer the door. he comes in. he's wearing a business suit, looking very stern and not smiling at all. that's all i knew about it and i thought i would never hear about this ever again. >> narrator: but later, inside this at&t facility, klein noticed something unusual on the sixth floor. >> it's room 641a, says on the door. and what's mysterious about it is there is no door handle. so it looks kind of odd. >> narrator: klein began to investigate. >> i traced the cabling coming out of the room. i could not find direct cabling going from the secret room to the phone switch. the cabling all seemed to go upstairs. >> narrator: upstairs on the seventh floor was where at&t handled internet traffic. >> what mark klein found was an infrastructure that suggested that the government was copying all traffic going through the at&t internet backbone. >> narrator: klein got hold of engineering drawings that showed the cables he had traced were going to a device called a splitter. >> the splitter is basically a glass prism. so you put a cable in there. the light beam goes in there and it's split like that. one half is going to the secret room and the other half is going to its normal, assigned destination. but it's been copied in the process. >> and this was important because if one can split the light or divert the light out of one of those networks, one can copy everyone's traffic on the network. it's kind of an unfathomable amount of information. >> the internet chops everything up into little data packets. so there's your email, your web browsing, photos you might be sending. this was a huge dragnet operation. and i was furious because i never signed up to work for the nsa. but i was in my late 50s and i didn't want to lose my job. so i was stuck. and i was afraid. >> narrator: klein was afraid to speak out for several years. >> the new york times broke the story about the national security agency spying inside... >> narrator: but went public after reading a front page new york timstory about nsa spying in 2005. >> when mark klein came out and said, "i work at at&t and the nsa is tapping into our network," that was the first time that the american public realized how far things had gone since 9/11. how much domestic surveillance there was. he raised this allegation. no one ever acknowledged that it was actually happening. it still remains an open question. but no one has ever denied it either. >> do you remember the incident in san francisco where the technician mark klein had found the room with the splitter? >> vaguely. >> what was that about? >> i'm not going to talk about that. >> was it a legal program? >> absolutely legal, yes. >> it was? >> mm-hmm. >> was it part of warrantless wiretapping? >> (sighs) i don't think so. >> was it under a fisa court order? >> i'm not going to get into that. to the best of my knowledge, it's still a classified program and i'm not here to divulge national security information. >> one of the big stories this week: the national security agency's collection... >> narrator: news stories on warrantless wiretapping brought unwanted attention to the telecom companies. >> mr. whitacre, has at&t provided customer information to any law enforcement agency? >> senator, we protect the privacy of our customers and we follow the law. that's all i can say about that. >> are you declining to answer my question, mr. whitacre? >> we follow the law, senator. >> does at&t provide customer information to any law enforcement agency? >> we follow the law, senator. >> that is not an answer. >> at&t, verizon, the bell phone companies, have seen themselves in a kind of partnership with the government for almost 100 years. >> i'm telling you we don't violate the law. we follow the law. >> that's a legal conclusion. >> for almost 70 years, the government guaranteed them a monopoly. >> i'm asking you for a factual matter. >> and so they have always been and continue to be faithful handmaidens of the government's will. >> if you're under instructions by the federal government as a matter of state secrecy not to talk, say so. >> senator, we follow the law. >> surveillance assistance is now in the structure of these companies. it's something they're very comfortable with. there's no ceo of a telephone company that's losing sleep over the wiretap assistance that they're providing to law enforcement or the intelligence community.>> narrator: the new t companies, on the other hand, were less comfortable cooperatig with the government. but even be the nsa's prism program, they too had been complying. one ceo, however, decided to fight back. >> in 2004, i got a phone call from the fbi. and they said that they had a letter for me. and within an hour or two, an agent had come to hand-deliver a letter to me. >> the fbi handed him a letter. he looked at the letter, and it asked for what he describes as a significant array of information from his company. and he noticed that it didn't appear to have been signed by a judge. it didn't appear to be a regular court order. >> it was not a warrant. it was not stamped or signed by a court or a judge. it was this letter demanding this information from me, and it also told me that i could never tell anyone that i had gotten the letter. it said that i could tell "no person." >> narrator: nick merrill ran a small web hosting company in new york named calyx. >> it was a company that i started in 1994. we hosted mitsubishi motors, ikea, snapple, tanqueray-- you know, blue chip clients. and we hosted a lot of independent media and non-profit organizations that seemed like good people that i wanted to help, and that was really where my passion was. >> narrator: the letter merrill received was a national security letter, or nsl. after 9/11, the patriot act allowed any fbi office in the country to issue nsls without a court's review and with a gag order. >> it said he couldn't tell anyone about this letter at all. and that gag order is part of what made him concerned about going even to a lawyer. >> to be honest with you, i was terrified to talk to anyone about it, so i didn't. i didn't call any of my colleagues, i didn't speak to anyone about it. it was clear to me that this was an official and genuine document, but i thought that it was not legal and not constitutional. and so i decided to disobey the commandment that i couldn't tell anyone, and i called my lawyer. >> narrator: merrill enlisted the aid of the american civil liberties union to challenge the letter in court. >> i had doubts myself about whether i was doing the right thing, but what gave me confidence was the fact that we offered to give them the information if they would simply get a real warrant and the fact that they refused to get one. >> narrator: that same year, the fbi issued 56,000 national security letters, but merrill was the first person who had challenged a letter on constitutional grounds. >> he was an independent operator of an internet company who really cared about privacy and the trust of his users. most companies are not in that business. most companies are offering services to large numbers of users and don't really want to deal with some kind of lengthy legal fight. >> to litigate is expensive. when you're getting tens of thousands of these letters a year, to litigate any substantial number of them is ruinous. besides which, the big companies that are receiving these letters have regulatory business before the u.s. government and they don't want to annoy the authorities. >> narrator: until 2013, no major internet or phone company is known to have questioned the constitutionality of a national security letter. >> i think that nick challenged that is fantastic. i would love it if google had challenged that. >> why didn't they? >> i have no clue. no idea. i mean, the number of people at google who can know about the existence of the letter is arguably, like, two or three. you know, presumably it's the lawyer who has been designated to receive them. so maybe two people at google would know about it. you look at it on its face, it looks like it relates to national security, so you comply. >> narrator: finally, in 2013, google did challenge 19 nsls. by that time, the fbi had withdrawn merrill's national security letter after an appeals court ruled it unconstitutional. >> i think that they were afraid that we would make it to the supreme court and they were not 100% certain that they would get the answer that they want. >> the fbi dropped its request, but what's interesting is that he's still not able to talk about exactly what they requested other than that it was information. and he says that if we knew what had been requested that we would be shocked. >> narrator: the big internet companies had different priorities. at the same time as the government was expanding its intelligence gathering, the companies were trying to find out as much as possible about their users, amassing huge data troves. the nsa was watching. >> these companies are in a very difficult spot because the types of activities they engage in is very similar to surveillance. it is surveillance, just for advertising rather than for law enforcement. the private sector is where the whole game is. >> i remember i was talking to someone at google and i was like, "you mean you keep all that stuff, all those things i search for?" and he said, "well, yeah." >> narrator: from the beginning, google founders larry page and sergey brin had discovered that web searches were very revealing and very valuable. >> every search is in some sense an expression of intention. it's an expression of what you want to do, where you want to go, what you're looking for. and that maps very nicely with the desire of advertisers to target their messages towards people at the moment when they are intending to go buy something. >> narrator: from a simple search box, google struck gold. >> i think it's the most effective product the internet has ever seen. google's ads were so effective that all of a sudden, their problem was hiding how much money they made so that microsoft and other competitors didn't come after them. >> narrator: page and brin would make billions. but it was their 2004 launch of gmail with vastly more storage than microsoft's hotmail and yahoo mail that immediately sparked controversy for how it mined email content. >> they would scan your mail and try to figure out if there was a relevant ad they could show you alongside the mail. >> they said, "we're going to basically recover our costs and make a profit by showing ads when you send email or when you receive email. and in order to determine what ads to show you, they read your emails. >> there was a wave of negative news stories, comments, blog posts and so forth that came out that day. and the alarm bell was really rung by privacy advocates who said, "we cannot allow this to go forward. this is crossing a rubicon. you cannot scan our emails." >> and google tried to assure them, "really, no, no, it's not people. you know, we're just scanning the mail. other places scan your mail for spam, you know, so we're really not even doing anything different by that. we're just showing you ads." and a lot of people just felt it was creepy. >> if i were to go attach alligator clips to the phone wire, it'd be a felony. i'd go to prison for that. what gmail proposed was exactly that: a kind of wiretap of all email looking at the content to pitch advertising in real time. >> narrator: at google, andrew mclaughlin got a phone call. >> i got a phone call from a staffer for a state senator in california named liz figueroa. the staffer said, "senator figueroa is deeply concerned about this practice of targeting ads to email messages. she's very much interested in pursuing legislation that would ban this practice, and could we have a conversation?" >> we walk into this room, and it's myself and two of my staff-- my chief of staff and one of my attorneys-- and across from us was larry sergey and their attorney. all of a sudden, sergey started talking to me. he said, "senator, how would you feel if a robot went into your home and read your diary and read your financial records, read your love letters, read everything, but before leaving the house, it imploded?" he said, "that's not violating privacy." i immediately said, "of course it is. yes, it is." and he said, "no, it isn't. nothing's kept. nobody knows about it." i said, "that robot has read everything. does that robot know if i'm sad or if i'm feeling fear or what's happening?" and he looked at me and he said, "oh no, that robot knows a lot more than that." >> narrator: believing that google would never retain the information they collected, senator figueroa backed off and amended her bill. >> unbeknownst to me, ultimately they were going to store the information, and that's why they were against it. and i think it was also, "we don't want legislators interrupting our business model." they were going to move forward. and the whole tech industry went against the bill. >> i believe then and still do that gmail was a privacy disaster. the moment you allow people to look at the content of your communication for some advertising purpose is the moment that the government is going to come along and say, "if you're going to let them listen in for advertising, why don't you let us listen in for anti-terrorism or for serious crimes?" and it becomes very difficult for courts to say that the private sector can listen in but the government can't. >> narrator: in fact, much more listening and looking was about to happen. >> how big an impact has facebook had on our lives? >> it's huge. half a billion users. i mean, in terms of sheer volume, this is remarkable. >> my friends at the fbi say that they love facebook. they love it. it is a fantastic tool to see who one communicates and associates with, what they're interested in, etcetera. >> facebook realized that with the allure of a social network, people were willing to tell them just about everything about themselves. >> advertisers are willing to pay for information about people and facebook has so much data about its members, so they got into this personal data business collecting information about you and allowing advertisers to access it in order to sell you targeted ads. >> narrator: with millions of people posting on facebook, the executives at google became worried. >> there was a deep sense of anxiety inside google that facebook was nailing a new kind of interaction that google was proving to be very clunky at doing. >> and i suspect that they thought, "well shoot, facebook has something better to sell to advertisers. we need to boost our data trove too." and i think what happens is that it's a race to build the best database. >> and so it begins what you might call the data wars: the idea that to really win in this game, you need to have the most data possible. >> narrator: to muster more firepower, google had bought a leading internet advertising company: doubleclick. >> the doubleclick acquisition consolidated the fact that google was an advertising company. >> they really became the most powerful company in the internet ad world after that. one google executive told me that they made a "staggering," that was his word, amount of money from tracking where you'd been on the web. >> narrator: doubleclick had pioneered and refined the tracking of people's web browsing. >> when you go to a website, the website has the opportunity to drop a little file onto your computer called a cookie. it's basically a tracking number. it's just a id number attached to you. and anytime you go to another website that sees that id number, they know, "oh, it's that same person." >> so a cookie is a unique identifier set by any website that your computer interacts with. and to be clear, it doesn't have to be the website that you're visiting. you visit any given site and your computer will interact with dozens, if not hundreds, of servers run by different companies. >> narrator: today, all the big internet companies use advanced tracking technology. and the nsa has carefully studied their methods. for them, commercial tracking is an opportunity. >> the nsa sees all this data that's flowing to these advertisers, and they're thinking, "look at all this data about people's behavior that's just flying out there to hundreds of different parties, and oftentimes not encrypted." and so they can just snatch it. >> narrator: at twashington post, bart gellman was going through his snowden files, thousands upon thousands of them, unpacking highly technical terms, engineering jargon and computer code. then one day, he came across this slide. at first, he couldn't understand it. he consulted with his colleague, internet security expert ashkan soltani. >> the slide indicated the use of a specific google cookie-- it's called the pref cookie-- that's set by google. even if you've never been on google.com, in fact, when you turned on your computer and opened the browser, you were likely to get one of these cookies. >> and we found out that the nsa was piggybacking on that. but of course, if you're an nsa collections manager and you want to know, "how do i figure out, you know, where bart was or whether he's changed devices or all this other kind of information about him? why don't i just go and get that information that conveniently has been collected for me by silicon valley companies who do it for their own commercial motives?" >> because google's using a tracking cookie, the nsa can sit back and see all that stuff go by. they can monitor all of that activity, all those cookies, and use it in order to track your browsing activity or inject malware into your computer. and if they sent you malware, it would take over your computer and let them access all your data, all your keystrokes, all your passwords, etcetera. >> narrator: before publishing, the reporters called google for comment. >> and google pushed back very hard. they said, "you should not be associating our commercial ad cookie technology with u.s. government surveillance." and ashkan said, "we can prove it. we can prove that they're using this, that the nsa is piggybacking on your technology." >> and i had their own material indicating how it's used to track people and how it's an identifier. so we were going back and forth, and the google person was insisting that this is not a tracking cookie. and i said, "look, here's some links. this is your own video on youtube that you made in 2007 about this cookie and how it's an identifier." >> cookies remind us of your preferences from the last time you visited. >> narrator: as the article went to press, google emailed an editor at the newspaper, claiming that soltani had received funds from a foundation known for supporting privacy projects. soltani says he never received the alleged funding. >> it was a personal hit on me, and that really surprised me, that they would go after me personally. and so my editor talked to google and said, "is anything technically wrong with the story?" and the person said, "no. in fact, it was very technically accurate." >> narrator: the article had revealed the privacy risks associated with advertising. frontline asked google for an interview, but they declined. all of the major internet companies we called in the course of reporting this program refused to participate. >> google, apple, twitter, yahoo, facebook, just some of the names represented over at the white house... >> narrator: on december 17, 2013, executives from silicon valley went to the white house. >> the heads of some of the country's top tech companies speaking with the president... >> narrator: they had been called in to advise the president on how to fix the administration's troubled health care website. >> that meeting was supposed to be mainly about healthcare.gov, but the tech officials refused to go along with that agenda, and they made the nsa stuff the number one subject there. and they, you know, expressed pretty clearly how unhappy they were with the position that they'd been put in. >> they raised strong objections with president obama. the heads and general counsels of major silicon valley companies tell the president that what he's authorized and what the nsa is doing is doing huge damage to their global markets. >> all of them deeply concerned with what the nsa has been doing... >> we make a tremendous amount of money providing technology and online services, advertising and everything else to people around the world. and all of that goes away if people no longer trust the american government and the companies that are subject to its authority. >> narrator: the next day, the panel the president had appointed to review nsa policies and programs issued its report. it found that some programs like prism had played an important role in preventing terrorist attacks. but it was sharply critical of bulk data collection, dragnet surveillance and the use of national security letters. it concluded that the nsa was overreaching and that americans' civil liberties were at risk. >> we say in the report, "our concern is about what happens after the next 9/11." in that moment of national panic after a traumatic attack on the united states, will we again throw out civil liberties? will we again empower the government to erode a little bit of the constitution? as long as the government has spent taxpayers' money and built up this huge technical collection infrastructure, that could be abused at a time after some other tragedy. we've got to be damn sure, since we've built this thing, that it can't be used against us. >> narrator: over the last few months, there have been more reports. >> access the popular game angry birds... >> narrator: about potential surveillance of smartphone apps and webcam images and hundreds of millions of text messages, how the nsa is capable of recording all of a foreign country's phone calls and is racing to build a computer that can defeat most kinds of encryption. >> could allow the nsa to map out a person's life... >> look, let me give you the existential complaint of the american intelligence community. here's how it works living inside america's liberal democracy, of which, by the way, the intel guys are really a part. american political elites feel very empowered to criticize the american intelligence community for not doing enough when they feel in danger. and as soon as we've made them feel safe again, they feel equally empowered to complain that we're doing too much. >> narrator: in late december 2013, bart gellman flew to moscow. snowden had agreed to meet. >> i went to a hotel that was arranged in advance. i got a phone call. he gave me a place to meet within a certain time period, and he showed up. he met me, shook my hand, said almost nothing and led me away, and we moved to a place that he considered secure. >> narrator: gellman interviewed snowden for 14 hours over two days. >> i asked him the hard questions about being in moscow, or about whether he thought any of these stories were doing damage or, you know, all the other things that people want to know when they're thinking about his conduct. and i found a guy who was almost zen-like in his serenity and his comfort with what he had done, that he had consciously decided he was willing to take huge risks to provoke a public debate. and he provoked a public debate that no one could possibly have foreseen. >> that's a fundamentally dangerous thing to democracy... >> surveillance that the president himself said was urgent... >> you can't have 100% security and also then have 100% privacy... >> we take our role really seriously. i think it's my job to protect everyone who uses facebook and all the information that they share with us... >> so where we are now is in a place where we're living behind one-way mirrors. corporate america and law enforcement and national security state know so much about us, and we know so little about them, we know so little about what they're doing, how they're doing it. and we can't actually hold our government accountable because we truly don't know what it's doing. >> next timfrontline... two countries in crisis. two countries in crisis. on the ground in ukraine, with both sides of the conflict. and our unprecedented reporting from syria continues. uncovering how the united states is arming and training the rebels. two new reports, one exclusive hour, on the next frontline. >> go to pbs.org/frontline. how can you protect your personal data online? find out in our special podcast. what does it mean when the nsa has your number? learn what your data trail reveals about you. how did we get here? >> ...illegal and unconstitutional. >> watch part one of this series, and connect to tfrontline community. follow us on facebook, twitter or pbs.org/frontline. >> frontlinis made possible by contributions to your pbs station from: and by the corporation for public broadcasting. major support for frontliis provided by the john d. and catherine t. macarthur foundation, committed to building a more just, verdant and peaceful world. more information is available at macfound.org. additional funding is provided by the park foundation, dedicated to heightening public awareness of critical issues. the wyncote foundation. and by the frontline journalism fund, with major support from john and jo ann hagler and additional support from chris and lisa kaneb and bill and cile hicks. captioned by media access group at wgbh access.wgbh.org >> for more on this and other frontline programs, visit our website at pbs.org/frontline. frontline's "united states of secrets" is available on dvd. to order, visit shoppbs.org or call 1-800-play-pbs. frontline is also available for download on itunes. what if television... ali: i shook up the world! could remember the heroes we honored? the music we danced to? the dreams we chased? kennedy: the hope still lives, and the dream shall never die. no one tells our nation's story like pbs. give to your pbs station, and help bring america's story to life. i'm kristi yamaguchi. "japanese american lives." on march 11, 2011, the world witnessed the tragic earthquake, tsunami, and nuclear disaster in the region of japan known as tohoku. less known were the stories of the survivors and the roles many japanese americans played in the relief and recovery efforts poignantly portrayed in our next film, "stories from tohoku," which i was fortunate to be a part of. "stories from tohoku," by dianne fukami and eli olson. next on "japanese american lives." funding for this program provided by...