The Magic of Anti-Censorship Software

Started by TehBorken, Dec 20 06 12:56

Previous topic - Next topic

TehBorken

  [a href="http://wwww.peacefire.org/"]Bennett Haselton[/a]  says "The December 1st release of [a href="http://psiphon.civisec.org/"]Psiphon[/a] has sparked renewed interest in the various software programs that can help circumvent Internet censorship in China, Iran, and other censored countries.  (Some of this interest undoubtedly being motivated by the fact that many of these programs also work for getting around blocking software at work or school.)  Have you ever wanted to understand the science behind these programs, the way that mathematicians and codebreakers understand the magic behind PGP?  If you loved the mental workout of reading [a href="http://www.schneier.com/book-applied.html"]"Applied Cryptography"[/a], have you ever wanted a tutorial to do the same for Psiphon and Tor and other anti-censorship programs?"  The rest of his editorial follows.[hr style="width: 100%; height: 2px;"]    [div class="full"]     Well, here's a primer, but you might be disappointed.  Like making the Statue of Liberty disappear, it doesn't sound very cool once you know [a href="http://en.wikipedia.org/wiki/Vanishing_the_Statue_of_Liberty"]how it's done[/a]; the truth is that most anti-censorship programs, including mine, only work because the censors are not trying very hard. [/p]  (Note that I am going to be talking about ways that certain anti-censorship programs can be defeated.  I don't believe that this is giving much help to censors, because these are obvious weaknesses that would occur to anyone who knows how the programs work.  For reasons I'll get into at the end, I don't think these weaknesses actually make much difference.) [/p]  Basically, all anti-censorship programs fall into two categories: those that require you to have a helper outside of the censored country, and those that don't. [/p]  Take Psiphon.  To use Psiphon, someone in a non-censored country has to install it on their home computer, which turns their computer into a Web server with an interface similar to [a href="http://anonymouse.org/"]Anonymouse.org[/a], where you type in the URL of the page you want to view and it fetches it for you.  The difference, of course, is that Anonymouse.org is widely known and blocked by any self-respecting Internet filtering system, while your newly created Psiphon URL pointing to your home computer is not blocked anywhere, yet.  So if you set up a Psiphon URL on your computer in the U.S. and e-mail it to your friend in China, your friend can use it to surf wherever they want.  (Note that this also has the desirable property that the person in China doesn't have to install any software, so they can use the URL even from a cybercafe computer with restricted user permissions.)  The hurdle, of course, is that the person in China has to have a contact outside the country to help them.  This is not a huge barrier for many Chinese, but it still means the program doesn't have the instant gratification property of something that you turn on and it just works. [/p]  Peacefire, by the way, had released the [a href="http://www.peacefire.org/"]Circumventor[/a] program in 2003 which did essentially the same thing.  (And the Circumventor was itself really just a wizard for installing a Web server with James Marshall's [a href="http://www.jmarshall.com/"]CGIProxy[/a] script, which deserves most of the credit, although the Circumventor did help bring it "to the masses", since most users don't have the ability to set up an SSL-enabled Web server themselves.)  Psiphon made some improvements, namely: [/p] [ul][li]Ability to create password-protected accounts to restrict the URL to certain users. [/li][li]Smaller download (although it may not matter much since only broadband users would be installing it anyway). [/li][li]Ability to run on Linux.  (Circumventor only works on Windows, although you can install [a href="http://www.jmarshall.com/"]CGIProxy[/a] on a Linux webserver if you know how.) [/li][/ul] Circumventor has some of its own advantages, although they're the kind that could easily be incorporated into Psiphon soon: [ul][li]A wizard to help users forward incoming connections on their router and enter exceptions in software firewalls to make the software work.  (If they want to.  No tweaking people's firewall settings without asking them!) [/li][li]Slightly harder to block, due to some strategies such as using a different SSL certificate for each install (Psiphon uses the same one each time). [/li][/ul] And both programs fall victim to the same attacks, although as far as I know, none of these have been implemented in practice: [/p] [ul][li]Blocking sites whose SSL certificates do not match the site hostname (easier for a censoring proxy server like the ones used in the Middle East, than for an IP firewall like the Great Firewall of China). [/li][li]Blocking outgoing Web connections to residential IP address ranges like Comcast. [/li][/ul] But basically, they're the same program -- so the difference in press coverage has been illustrative of how much context matters to reporters.  Psiphon is the "politically correct" version -- they've played down the fact that it can be used to get around blocking software in schools and played up the fact that it can be used to beat the censors in China and Iran, and the [a href="http://news.google.com/news?hl=en&ned=us&q=psiphon&ie=UTF-8&scoring=d"]press coverage[/a] has focused exclusively on that human rights aspect.  The Circumventor was also written to help foreign victims of censorship, and articles have been written about its uses for that purpose, but I've also been unapologetically promoting its use to get around blocking software at home and in school, as part of an [a href="http://www.peacefire.org/info/why.shtml"]advocacy[/a] for greater civil rights for people under 18.  (Also because the more installations there are in the U.S., the more it helps users abroad.)  As a result, some of the TV news pieces about it have used such ominous music and lighting that they practically looked like recycled footage from [a href="http://en.wikipedia.org/wiki/To_Catch_a_Predator"]"To Catch a Predator"[/a].  Of course, Psiphon can be used for exactly the same thing.  (I also emailed some of the reporters who recently wrote about Psiphon, to tell them about Circumventor; so far, I haven't heard back from any of them, but I doubt they're being politically correct this time, I think they're just not thrilled that C-Net [a href="http://news.com.com/2100-1028-997101.html"]scooped them[/a] by three years and seven months.) [/p]   So, Psiphon and Circumventor fall in the first category -- programs that only work if you've got a contact outside the censored country to help you.  In the second category is [a href="http://tor.eff.org/"]Tor[/a], which was originally written to provide mathematically secure anonymity, but had the nice property that it could be used to get around the Great Firewall of China as well.  With your browser in China using Tor as a proxy, packets are routed to other Tor nodes outside the country, which connect you with any blocked Web site that you want to see.  Best of all, you just install it on a machine in China, and presto, it works, no nagging your expat cousin in the U.S. to install something on their computer to help you.  [a href="http://www.dit-inc.us/"]Dynamic Internet Technologies[/a], run by Chinese dissident Bill Xia in North Carolina, runs another service that works "out of the box" -- you send an instant-message to one of the DIT screen names, and it replies with a list of currently running Web proxies.  (Bill has asked me not to publicize the actual screen names that perform this service, because it's intended only for Chinese users.  I think that's a case of [a href="http://en.wikipedia.org/wiki/Security_through_obscurity"]"security through obscurity"[/a], but I respect his wishes.) [/p]  Unfortunately, all such "instant gratification" solutions have the same basic weakness, which by a simple argument can be extended even to hypothetical future programs in the same category.  In the case of a program like Tor, the censor only has to install the software, look at what IP addresses the software connects to when it bootstraps itself, and add those IP addresses to the blacklist.  Even if the software chooses at random from multiple IP addresses to bootstrap to, the censor can still obtain all of them by repeatedly re-installing the software (possibly wiping the machine each time so the software can't tell that it's been installed before).  No matter how you slice it, if Alice the legitimate user and Bob the censor download the program on the same day, Bob can make the program not work for Alice if he updates the blacklist quickly enough.  He doesn't even have to reverse-engineer the software, he just has to use a network sniffer to see where it connects to.  (For DIT's proxy-by-instant-message system, the censor can instant-message the screen name repeatedly, from different accounts, until they've collected and blocked all the available proxies; this would be analogous to re-installing Tor repeatedly and seeing what IPs it connects to.) [/p]  Peacefire has produced other approach which is a simple, obvious idea, and it was quite by accident that we found out it slips through the cracks of the seemingly "unsolvable" problem with instant-gratification outlined above.  Like the other solutions, it works only as long as the censors are fairly lazy, but they are, and it does.  About 30,000 people have signed up through a [a href="http://www.peacefire.org/circumventor/"]form[/a] on our site to be notified each time we create a new Circumventor site and mail it out, every 3 or 4 days.  Agents of the blocking companies have joined the list too, of course, but we mail different sites to different subsets of the list.  Now, an attack analogous to the attacks listed in the previous paragraph, would be for the censors to join under many different accounts, and then block any site that gets mailed to any of those accounts. But the catch is that when an address joins the list, a new site doesn't get mailed to that address until some random time in the future.  So the censor has to check all of the fake Hotmail accounts that they've created, over and over, if they want to block all of the new sites as soon as they're released.  Hardly impossible, but the censor can no longer use the instantaneous approach of: (1) enter the system / join the list / install the software; (2) see where it connects to and block those points of access; (3) repeat.  (If we instantly e-mailed a randomly selected site to each new signup, then this attack would work.)  By going from instant gratification to almost-instant-gratification, you change one of the conditions for the theorem stated in the previous paragraph, so that it no longer holds true.  Still, like Tor and the DIT system, it could be blocked with a moderate amount of effort. [/p]  The Tor protocol, by the way, has been the subject of a great deal of [a href="http://tor.eff.org/svn/trunk/doc/tor-spec.txt"]sophisticated mathematical analysis[/a], really brainy stuff that is beyond the scope of this article.  But it's important to understand that that analysis focuses on the security of the Tor protocol for achieving anonymity.  For anonymity, the protocol is very strong; for routing around censorship, it's fairly straightforward to defeat.  That's not at all a criticism of the Tor developers; Tor was designed to achieve anonymity, and just turned out to work for beating censorship as well -- but only, of course, as long as the censors aren't making much effort to block it. [/p] [span class="faded"]   [/span]   [img]../source/spacer.gif" border="0" height="5" vspace="0" width="50"]
[script type="text/XXXXscript"][!-- google_ad_client = "pub-7561299841460471"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel ="6246503324"; google_color_border = "EFEFEF"; google_color_bg = "EFEFEF"; google_color_link = "0000FF"; google_color_url = "008000"; google_color_text = "000000"; //--][/script] [script type="text/XXXXscript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"] [/script][i-frame name="google_ads_frame" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-7561299841460471&dt=1166648276546&lmt=1166648258&prev_fmts=728x90_as&format=728x90_as&output=html&channel=6246503324&pv_ch=6246503324%2B&url=http%3A%2F%2Fdiscoverseattle.net%2Fforums%2Findex.php%3Ftopic%3D3396.msg42318%23msg42318&color_bg=EFEFEF&color_text=000000&color_link=0000FF&color_url=008000&color_border=EFEFEF&ad_type=text&ref=http%3A%2F%2Fdiscoverseattle.net%2Fforums%2Findex.php%3Faction%3Dpost%3Bmsg%3D42318%3Btopic%3D3396.0%3Bsesc%3D1d276085aff66c3d5ee0017537d431bf&cc=25&u_h=1024&u_w=1280&u_ah=1024&u_aw=1280&u_cd=32&u_tz=-480&u_his=15&u_j-ava=true&u_nplug=14&u_nmime=69" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="90" scrolling="no" width="728"][/i-frame]              [/p] Which all leads to the obvious question: Why have the censors not bothered? [/p]  Nobody knows for sure, but I fear the answer is that the Chinese government and other censors know that the greatest weapon in their arsenal is not IP blocking, or keyword filtering, or even the threat of arrest.  It's just apathy.  The Chinese censors know what we anti-censorware developers in the free world keep forgetting: that most Chinese are not liberty-minded Jeffersonians chomping at the bit under the oppressive yoke of their government and waiting to be freed by circumvention software.  As Michael Chase and James Mulvenon of the RAND Corporation put it in their report on Internet usage by Chinese dissidents, [a href="http://www.rand.org/pubs/monograph_reports/MR1543/index.html"]You've Got Dissent![/a]: "[A]lthough some peer-to-peer applications... are designed specifically to combat censorship on the Internet and address privacy concerns, most Chinese Internet users are undoubtedly more interested in using peer-to-peer applications for entertainment purposes such as downloading MP3 music files."  The censors know what Netscape knew when they fought tooth and nail against Microsoft including Internet Explorer on the desktop of every Windows machine: defaults matter.  It doesn't matter that users can go to Netscape's site and download their browser, and it doesn't matter that users can access a banned site by installing a cool p2p program.  Most people just don't. [/p]  When I first started working on the Circumventor, I assumed that since the Chinese Internet censorship bureau reportedly employed about 30,000 people, surely if they were already spending that much effort and money, they'd throw plenty of resources at defeating any new anti-censorship program, so the Circumventor would have to be able to withstand any such attack.  But I was wrong.  According to the RAND corporation paper, the censors have been quite busy, for example, policing political forums for dissident postings that other users might casually run into.  But they apparently assume -- correctly, it seems -- that content doesn't pose much of a threat if users have to go out of their way and download a program to access it.  And if the user has to have a friend outside the country to help them, then forget it. [/p]  This is not to downplay the enormous good that programs like Tor, Circumventor and Psiphon can do in bringing free speech to the people in censored countries who want it.  But it's easy to forget that those often do not comprise a large part of the population. [/p]  One of the biggest disappointments for me came in May 2005 when I was looking for ways to get around the word filter on MSN China's blogging service.  Microsoft, apparently acting on public relations advice from Lex Luthor, had decided to filter the words "freedom", "democracy", and "Taiwan independence" from the titles of blogs on MSN China.  (I know, I know, they have to comply with Chinese laws to do business there.  But I don't think the Chinese have actually outlawed the word "democracy".)  Eventually I did [a href="http://www.globalvoicesonline.org/?p=232"]find a loophole[/a], so I searched on MSN for some Chinese blogs published by expatriates to ask them to help test the workaround for me.  With a few exceptions, most of the bloggers were rather hostile, saying that they supported their government's efforts to censor the Internet and to stamp out Falun Gong as a dangerous "cult".  (These were expats living in the U.S., so presumably they were not worried about the Chinese government sending a tank across the Pacific to run them over if they criticized the ruling party.  Even if they thought they had to watch what they said because they might someday return to China, or because they still had family there, surely it would have been easier just to ignore me; the hostility that I encountered sounded genuine.)  The moral is, no matter how much your movement believes in its efforts to help oppressed people, you can't just assume you'll be greeted as liberators (ahem). [/p]  So now you know most of what there is to know about the state of the art in anti-censorship software.  It's just that there is less to understand than the hype originally suggests -- the programs aren't really secure, but they work because the censors aren't really trying.  And there aren't any cool mathematical formulas that you can impress your friends with -- for that, you'll still have to go back to Applied Cryptography.  It's a lot less impressive to be the Bruce Schneier of circumvention algorithms than it is to be the [a href="http://www.schneier.com/book-applied.html"]real Bruce Schneier[/a]. [/p]    [/div]    
The real trouble with reality is that there's no background music.