thefoundationhttp://www.thefoundation.de2010-08-23T01:30:22Z(c) 2010 Michael Kurze, Aachen, GermanyDiaspora — Can the Social Graph be Our Web of Trust?2010-08-23T01:30:22ZMichael Kurzehttp://www.thefoundation.de/about/michaeldiaspora-and-the-web-of-trust<p>On Friday we had Max, Ilya and Raphael from <a href="http://www.joindiaspora.com" title="Diaspora Project Site">Diaspora</a> over at Mozilla. They <a href="http://tieguy.org/blog/2010/08/20/notes-on-diaspora-talk/" title="Luis Villa’s Notes on the Diaspora Talk">talked</a> about their effort in creating a distributed social network. Where I think they are on the right track, and where they should think even bigger.</p><h3>Why we need Diaspora</h3> <p> Personally, I see three major challenges that everyone passionate about the <a href="http://www.mozilla.org/about/manifesto.en.html" title="Principles of the Open Web, as outlined by the Mozilla Manifesto">open internet</a> needs to make up their mind about: </p> <ul style="margin-bottom:0.5em; margin-top:0.3em; padding-top: 0;"> <li><em>The <a href="http://googlepublicpolicy.blogspot.com/2010/08/joint-policy-proposal-for-open-internet.html" title="Google Public Policy on the Verizon deal">erosion</a> of <a href="http://dig.csail.mit.edu/2006/06/neutralnet.html" title="Daniel Weitzner: The neutral internet">Net Neutrality</a></em></li> <li><em>Participants <a href="http://futureoftheinternet.org/" title="The Future of the Internet and How to Stop it by Jonathan Zittrain">switching to closed</a> environments of apps and appliances, becoming mere consumers (*)</em> </li> <li><em>People entrusting their personal data and social activity to Facebook, forced to <a href="http://www.geekymomblog.com/2010/05/18/the-facebook-dilemma/" title="Geeky Mom on the Facebook dilemma">choose</a> between control and connectedness</em></li> </ul> <p>In the context of the Diaspora talk, I’ll focus on the third issue.</p> <p>We need Diaspora because people need to be in control over with whom they share personal information. Every time Facebook <a href="http://www.aclunc.org/issues/technology/blog/facebook_places_check_this_out_before_you_check_in.shtml" title="http://arstechnica.com/web/news/2010/08/privacy-groups-facebook-already-facing-off-over-places.ars">sneaks in</a> a new default that breaks privacy, we grudgingly change the settings again — and stay, not wanting to lose our friends. Or we just don’t know about it and leave it as it is. Combined with the social monopoly that Facebook has established, this makes privacy and security optional features, subject to change like any other.</p> <h3>How Diaspora can help already</h3> <p> The main distinguishing factor of Diaspora compared to Facebook et al. is in that it decouples your social graph from the network provider, bringing back real competition to the social space. Like with E-Mail, there can be lots of network providers, loosely connected over push-interfaces. Whenever a pod (the equivalent to an e-mail-provider in Diaspora) should violate your trust, you can just switch to another one, or set up your own pod. </p> <h3>What could be done better</h3> <p> On the downside, this means that you have to trust your pod as well as all your friend’s pods. <em>No big deal?</em> Well, where the same server software is used on a distributed network, it is very prone to exploit of <a href="http://en.wikipedia.org/wiki/Sendmail#History_of_vulnerabilities" title="History of Vulnerabilities in the popular mail server sendmail">vulnerabilities</a> due to patch delay and misconfiguration (correctly setting up <abbr title="Transport Layer Security">TLS</abbr> is still a big challenge, <a href="http://www.theinquirer.net/inquirer/news/1727426/us-government-fails-secure-websites" title="The Inquirer: DHS fails to secure its website">not only</a> for regular people). </p> <p> <a href="http://en.wikipedia.org/wiki/HTTP_Secure" title="Wikipedia on HTTPS">Secure HTTP</a> is great when a large, anonymous group of people needs to trust a central service. It allows us to do online banking and purchases, free from eavesdropping and man-in-the-middle attacks. However, it is not peer-to-peer: When you fetch your mail over a secure IMAP connection, you might be sure that your password is protected, but you do not know who actually sent you that e-mail (think about it: that is the reason why phishing works). When you get it from Google Mail, you might be using TLS, but Google is still able to read your every conversation. </p> <h3>How PGP can solve this</h3> <p> I propose that Diaspora pods should be dumb post boxes that <em>are not able</em> to actually look into status updates, private messages, friend lists and so on. <em>How?</em> The technology for that has been available for quite some time and is called <a href="http://www.pgpi.org/doc/pgpintro/" title="Introduction to PGP">PGP</a>. </p> <p> Basically, PGP allows you to send and receive messages that cannot be decrypted by the servers that route them. So, if you were to encrypt your message inside your browser, you would establish secure end-to-end communication. No need to trust the shady pods that some of your friends decided to use, not knowing any better. <em>But encryption in a web client? That sounds awfully slow!</em> Well, <a href="https://addons.mozilla.org/z/en-US/firefox/addon/10868/privacy/" title="Firefox Sync (aka Weave)">Firefox Sync</a> does it already with your entire browsing history (the pass phrase to your key is never sent to the server), and I would imagine that JavaScript interpreters have become fast enough to emulate the cryptographic capabilities of a PC from 1991. </p> <p>I do have ideas on how to approach search and incremental profile updates with this, and on the new security considerations that apply here (Can you always trust your browser? Could a pod not make you use an insecure web client that transmits your passphrase?). However, that is rather technical, possibly material for a follow up post. </p> <h3>The social network is a key signing party</h3> <p> The problem with PGP has always been that people have been unable to exchange public keys in a manner that is both trustworthy and extensive. Because a <a href="http://en.wikipedia.org/wiki/Web_of_trust" title="Wikipedia on the Web of Trust">web of trust</a> can often not be established, people refrain from using encrypted e-mail. Turns out that social networks come with a mechanism that is just made for this: <em>Friending</em>. In the secure social network, accepting a friend request would be equivalent to exchanging keys. Usually you are referred to friends from people you already know, so there already is a basic level of trust. </p> <p> This means that online social networks can be transformed from a jeopardy to our security to a vehicle of the same. This idea is of course also <a href="http://serendipity.ruwenzori.net/index.php/2009/03/18/pgp-web-of-trust-meets-modern-social-networking" title="PGP web of trust meets modern social networking by Jean-Marc Liotier">not entirely new</a>. What might be new is the idea of building the social web entirely on top of PGP rather than just integrating that as an optional feature. </p> <h3>Any Comments?</h3> <p>I have not gotten around to add Commenting or Pingback to this blog, but I would love to incorporate any (links to) comments in a follow up post, please write to michael at this domain.</p> <h3>Update:</h3> <p> If I understand correctly, the diaspora guys are already planning to use GPG for cryptography <a href="http://www.joindiaspora.com/2010/04/21/a-little-more-about-the-project.html" title="Diaspora Blog: A little more about the project">somewhere</a>. This is a pretty good start. If they really already plan on generating keys for everyone, then they would only need to pull the actual encryption into the web client. </p> <p style="font-size: 85%;"><em>(*) Like any intern at Mozilla I had the opportunity to to talk to John Lilly, and I got the impression that Mozilla takes this development very seriously.</em></p>Operation e-mail2008-10-20T14:51:04ZDaniel Beckerhttp://www.thefoundation.de/about/danieloperation-email<p>E-mail communication is great …if everybody plays by the rules! A synopsis why encrypting is important and html e-mails are evil.</p><h2>Why the e-mail is dying</h2> The communication medium e-mail's advantages is the fast and easy delivery&nbsp;&ndash;&nbsp;nowadays actual worldwide. Also as a mode of group communication e-mail has great potential which in practice is rarely exploited. Though modern spam filters and mail applications made progress in handling our mail routines undesired mails still bother. In this case I do not want to constrain <q>undesired</q> to spam mails, also newsletters or mailing list mails may be of low interest in our daily routines. <h2>Ways to improve our e-mail workflows</h2> <p>Todays mail applications (online as well as offline) have powerful possibilities to filter and sort out incoming mail. This way you can create various <q>inboxes</q> to sort out priorities&nbsp;&ndash;&nbsp;at least for the moment. Furthermore you can organize your newsletters in subfolders. As for me, I am subscribed to several interesting newsletters but, honestly I read them sporadically and stacked. The smart filter capabilities are also useful to sort out e-mails of certain topics in mailing lists.</p> <p><abbr title="Internet Message Access Protocol"><a href="http://en.wikipedia.org/wiki/Imap">IMAP</a></abbr> is a nice way to keep your e-mails available everywhere. Maybe you have the possibility to redirect all your mails to one <i>central mail account</i>. This way you have all your e-mails gathered at one place, automatically filtered by recipient and moved into certain folders you have the possibility to keep different inboxes for different e-mail accounts. <a href="www.mozilla.com/thunderbird/" title="Thunderbird – Reclaim your inbox">Thunderbird</a> and <a href="http://www.apple.com/macosx/features/mail.html">Apple Mail</a> as well as the web-based e-mail application <a href="http://www.horde.org/">Horde</a> additionally provide the feature of identity management!</p><p class="annotation right">But, pst, do not tell anyone so nobody will play fast and loose with it!</p></p> Sounds a bit like conspiracy and agents! This way you are able to send e-mails from one account but use different e-mail addresses. Every mail is stored in one <abbr title="Internet Message Access Protocol"><a href="http://en.wikipedia.org/wiki/Imap">IMAP</a></abbr> sent folder&nbsp;&ndash;&nbsp;no recipient will ever notice you using another e-mail address!</p> <h3>Fine, but where can I configure these <q>identities</q>?</h3> <p>Just a short overview on how to configure these so-called identities in: <a href="www.mozilla.com/thunderbird/" title="Thunderbird – Reclaim your inbox">Thunderbird</a>, <a href="http://www.apple.com/macosx/features/mail.html">Apple Mail</a>, <a href="http://www.horde.org/">Horde</a>.</p> <dl> <dt><a href="www.mozilla.com/thunderbird/" title="Thunderbird – Reclaim your inbox">Thunderbird</a></dt> <dd>In the menu choose <code>Tools&nbsp;&rarr;&nbsp;Account Settings&nbsp;&rarr;&nbsp;[account name]&nbsp;&rarr;&nbsp;Manage Identities&nbsp;&rarr;&nbsp;Add</code>. The rest should be pretty self explanatory.</dd> <dt><a href="http://www.apple.com/macosx/features/mail.html">Apple Mail</a></dt> <dd>Again use the main menu to choose <code>Preferences&nbsp;&rarr;&nbsp;Accounts&nbsp;&rarr;&nbsp;[account name]&nbsp;&rarr;&nbsp;Account Information&nbsp;&rarr;&nbsp;e-mail address</code> and insert here a comma separated list of the different e-mail addresses you are going to use.</dd> <dt><a href="http://www.horde.org/">Horde</a></dt> <dd>After logging in into your web front-end of <a href="http://www.horde.org/">Horde mail</a> select <code>Options&nbsp;&rarr;&nbsp;Personal Information&nbsp;&rarr;&nbsp;Edit your Identities</code>. Again, the rest should be self explanatory.</dd> </dl> <h3>Who is interested in your e-mail?</h3> <p>e-mails provide a lot of possibilities to address e-mails to recipients. There is the <code>to</code>&nbsp;field, the <code>carbon&nbsp;copy</code>- and the <code>blind&nbsp;carbon&nbsp;copy</code>&nbsp;field. Make use of them! It is very convenient, knowing to be directly addressed by an e-mail or just be informed what is going on&nbsp;&ndash;&nbsp;be it the <q>scheming</q> way or be it the normal carbon&nbsp;copy way!</p> <h2>HTML e-mails are evil</h2> <p>Some people apparently have giant displays with outrageous low resolution, or they are using magnifying glasses sitting in front of their screens. Otherwise I cannot tell why this <q>Comic Sans</q> comes so damn small and blurry onto my display! There are other <q>useful</q> purposes for <abbr title="HyperText Markup Language">HTML</abbr> in e-mails! Background images and tables&nbsp;&ndash;&nbsp;oh, how we all love them.<br />More than ever I can hardly see any need for markup in e-mails. Like mentioned before, e-mail should stay a fast medium of getting message from A to B, <abbr title="HyperText Markup Language">HTML</abbr> just bloats the <q>filesize</q> thus slows down the transfer. Also there may be problems in quoting <abbr title="HyperText Markup Language">HTML</abbr> mails. I guess colorful text decreases readability in almost 100&nbsp;% of the cases and markup in general potentially breaks the correct display when viewed with another e-mail client. Attached e-mails are shown inline at the end of the e-mail in most of today's e-mail clients, which besides is convenient concerning scaled display on smaller or larger screens respectively.</p><p class="annotation notice right">No, <a href="http://theappleblog.com/2007/10/31/how-to-create-edit-your-own-mail-stationery/">Apple Mail stationaries</a> did not make that any better!</p><p>But there is another reason: many companies try to pep up their services and products by sending newsletters and spam mails containing <abbr title="HyperText Markup Language">HTML</abbr> which&nbsp;&ndash;&nbsp;at least for me&nbsp;&ndash;&nbsp;resulted in a subtle presumption to have one or another kind of unwanted or not-so important e-mail when receiving <abbr title="HyperText Markup Language">HTML</abbr> e-mails. Of course images are pretty useful for junk mail because possible text cannot be analyzed by any filter. You get the point!</p> <h2>Privacy</h2> <p>There are several reasons why you definetely should encrypt your e-mails. Although nowadays it seems, that personal communication is kinda public interest &ndash; everything is communicated using ubiquituous online interfaces, everything is twittered, everybody shows off in facebook or some of its derivations. As if this would have any public benefit! But not enough, the web features more possibilities to promote yourself. Just like the network platforms the blogosphere is stage of vanitas, …uhm, what did I say? Vanity? Guess, both! And despite the many interesting blogs about politics, web development and gadgets the majority of blogs is attended as <q>personal journal</q> &ndash; which is a periphrasis for <q>diary.</q></p> <blockquote cite="http://en.wikiquote.org/wiki/Banksy">I think Andy Warhol got it wrong: in the future, so many people are going to become famous that one day everybody will end up being anonymous for 15 minutes.</blockquote><cite><a href="http://www.banksy.co.uk/">Banksy</a>&nbsp;&ndash;&nbsp;graffiti artist<br />Bristol, UK</cite> <p>Why has nobody anything to conceal from anybody? I do not want everybody to know everything about me, neither do I want to know most things about people surrounding me. Alright, it is a bit different with my friends. But what about neighbors, fellow students and co-workers? It is really of <em>no</em> interest, which movie I am watching right now, who I am seeing, what I am writing, where I am surfing, which drink I am having at the very moment! In particular, of no interest for my boss or perhaps any kind of administrative authority.<br />That is one point: politics and administrative bodies. Nowadays we have the special situation of the <q><a href="http://en.wikipedia.org/wiki/War_on_terror">war on terror</a>.</q> Gosh, I just googled <q>terrorism</q> in order to get this <a href="http://wikipedia.org/">Wikipedia</a> link! Hopefully, nobody will recognize and suspect me to have any sympathy for things like that!</p> <blockquote cite="Forrest Gump">[…] but Mama said it was just a little white lie, it wasn't hurting nobody.</blockquote><cite><a href="http://www.imdb.com/title/tt0109830/">Forrest Gump</a></cite> <p>Although you got nothing to conceal, you may not want people watching you watching <abbr title="Television">TV</abbr> or doing this and that now and then. Or why do you ever draw your curtains? Sometimes the idea creeps up to me, that people just do not understand what they are telling <u>everybody</u> on webpages and what they are chatting to <u>individuals</u> on any chatting application! Most people do not seem to have the faintest idea that the internet is <em>public</em> indeed. Moreover nobody knows if we are attending the dawning of a new (perhaps even dark) age during these days of economic crisis and global terrorism. Thus nobody has any clue what will be appropriate in the future and you know <q><a href="http://en.wikipedia.org/wiki/Miranda_warning" title="Miranda warning!">anything you say can and will be used against you!</a></q></p> <h3>Signing and encrypting</h3> <p>The free encrypting software <a href="http://gnupg.org/index.en.html">GNU Privacy Guard (below GnuPG)</a> uses <a href="http://en.wikipedia.org/wiki/Asymmetric_encryption" title="If you want to take the deep dive into asymmetric encryption have a look at Wikipedias article on this topic!">asymmetric encryption</a> which for you results in having two different keys (public and private key) needed to encrypt something. With <a href="http://gnupg.org/index.en.html">GnuPG</a> you are able to encrypt files as well as texts. Let us presume we only want to encrypt our e-mail correspondence for this time. Along with your keys you will need the recipients public key for every instance of encrypting. One will need your public key as well, if he or she wants to encrypt something for you! While your public key consequently should be accessible for potential interlocutor of yours, your private key <em>has to be kept as save as possible</em> and only accessible for you, the owner of this key!<br />Supplemental to the encryption you can sign your e-mails with <a href="http://gnupg.org/index.en.html">GnuPG</a>, <abbr lang="la" title="from Latin: id est = that is">i. e.</abbr> everybody may verify if a particular e-mail has been sent from you. If you do not have a receiver's public key, this person would at least be able to check if your e-mail is authentic&nbsp;&ndash;&nbsp;<i>if</i> he or she knows what to do with <a href="http://gnupg.org/index.en.html">GnuPG</a> signatures!</p> <h3><abbr lang="la" title="from Latin, literally: for, on behalf of">Pros</abbr> and <abbr lang="la" title="from Latin: contra = against">cons</abbr></h3> <p>Yes, encrypting is great and outclassing. But it also has a dark side. Let me give you some arguments about the merits and demerits:</p> <h4>Advantages</h4> <ul class="inline"> <li>Verification of the e-mails sender</li> <li>Verification if the e-mail has been altered on the way through the web</li> <li>Even if your e-mail account gets hacked&nbsp;&ndash;&nbsp;your correspondence is save</li> <li>Nowadays ease of use with various mail clients and plug-ins</li> </ul> <h4>Disadvantages</h4> <ul class="inline"> <li>Without a running <a href="http://gnupg.org/index.en.html">GnuPG</a> system you are not able to read your mail</li> <li>Do not loose your private key or you will not be able to read your mails ever again</li> <li>Your e-mail client is not able to search for specific text in your e-mail archive (however you are still able to search for recipients and senders)</li> <li>You will not be able to read your e-mails online in your webmail's interface</li> </ul> <p class="annotation notice right">There is no standard routine how to exchange the public keys, thus to verify the public keys you receive. Best practice would be a personal exchange. One concept to ensure public keys are valid is the <a title="Introduction to Web of trust at Wikipedia" href="http://en.wikipedia.org/wiki/Web_of_trust">Web of trust</a>, which allows you to sign public keys.</p><p>It is up to you to appraise these arguments. Since not everybody is using <a href="http://gnupg.org/index.en.html">GnuPG</a> you will not be able to send all your messages encrypted anyways. Personally, I try to use it as often as possible&nbsp;&ndash;&nbsp;especially for personal data (accounts or access data).</p> <h3>GPG-encrypted mail with ease&nbsp;&ndash;&nbsp;Installing GnuPG</h3> <p>Since there is a bunch of very good and detailed tutorials I leave it at redirecting you to some of them:</p> <dl class="inline"> <dt><a href="http://macgpg.sourceforge.net/index.html">http://macgpg.sourceforge.net/index.html</a></dt> <dd>Home of <a href="http://gnupg.org/index.en.html">GnuPG</a> for Mac&nbsp;OS&nbsp;X</dd> <dt><a href="http://www.sente.ch/software/GPGMail/English.lproj/GPGMail.html">http://www.sente.ch/software/GPGMail/English.lproj/GPGMail.html</a></dt> <dd><a href="http://gnupg.org/index.en.html">GnuPG</a> plug-in for <a href="http://www.apple.com/macosx/features/mail.html">Apple Mail</a></dd> <dt><a href="http://fiatlux.zeitform.info/en/instructions/pgp_macosx.html">http://fiatlux.zeitform.info/en/instructions/pgp_macosx.html</a></dt> <dd>Various detailed information on <a href="http://gnupg.org/index.en.html">GnuPG</a> usage on Mac&nbsp;OS&nbsp;X</dd> <dt><a href="http://enigmail.mozdev.org/home/index.php">http://enigmail.mozdev.org/home/index.php</a></dt> <dd>Website for the <a href="www.mozilla.com/thunderbird/" title="Thunderbird – Reclaim your inbox">Thunderbird</a> plug-in <cite>Enigmail.</cite></dd> <dt><a lang="de" href="http://www.macnotes.de/2007/01/23/tutorial-sicherer-e-mailverkehr-mit-gnupg-mail/">http://www.macnotes.de/2007/01/23/tutorial-sicherer-e-mailverkehr-mit-gnupg-mail/</a></dt> <dd>Detailed german tutorial with a lot of screenshots.</dd> <dt><a href="http://entouragegpg.sourceforge.net/">http://entouragegpg.sourceforge.net/</a></dt> <dd><a href="http://www.microsoft.com/mac/products/entourage2008/default.mspx">Microsoft Entourage</a> plug-in.</dd> </dl> <p>These steps are definitely worth the effort, not just, that it is safer to communicate in times of dragnet investigation, perhaps we are able to get rid of these fatuous footer, which tells hundred things to do, if you are accidently chosen as recipient. At least in germany this form of <q>contract</q> is not valid at all. Rescue e-mail&nbps;&ndash;&nbsp;keep this medium of mass communication fast, simple and safe.</p>