150 lines
No EOL
17 KiB
XML
150 lines
No EOL
17 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Caught in the Net (Posts about cryptography)</title><link>francescomecca.eu</link><description></description><atom:link href="francescomecca.eu/categories/cryptography.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 <a href="mailto:francescomecca.eu">Francesco Mecca</a> </copyright><lastBuildDate>Wed, 28 Feb 2024 09:29:25 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>A short talk about cryptography at the Berkman Klein Center</title><link>francescomecca.eu/blog/2016/7/7/pres-berk/</link><dc:creator>Francesco Mecca</dc:creator><description><p>The 7th of July me and <a href="http://studentprivacy.ca">Aaron</a>, as interns at the <a href="http://cyber.law.harvard.edu">Berkman Klein for Internet and Society</a>, gave a presentation on the basics of cryptography and a quick overview on the essential tools.</p>
|
|
<p>What follows is a short summary of that presentation. The slides are available <a href="francescomecca.eu/wp-content/uploads/2016/fwneas.pptx">here</a></p>
|
|
<h4>Whose Security?</h4>
|
|
<p>Let's define what security is. Security is the possibility to being set free from structural costraints, and as that we can distinguish various levels of security depending on who we are.</p>
|
|
<p>Also, if we want to investigate security we should also define our threats: security, as being set free, from intelligence surveillance can be our target. Our concerns as different if we consider instead security from censorship or corporation data mining.</p>
|
|
<p><img alt="uber god view" src="francescomecca.eu/wp-content/uploads/2016/godmode.png">
|
|
<img alt="facebook law enforcement form" src="francescomecca.eu/wp-content/uploads/2016/fb.png"></p>
|
|
<p>What is shown above is the <a href="http://www.theverge.com/2016/1/6/10726004/uber-god-mode-settlement-fine">Uber God View</a>, a tool Uber used to track a Buzzfeed's journalist locations, and the Facebook standard form that is given to law enforcement when requested.</p>
|
|
<h4>Security is a state of mind</h4>
|
|
<p>Security is hard. It is really rare to reach a state of complete security and even in that case, it depends on our target.</p>
|
|
<p>What is important is to train ourselves to security. Security is a state of mind and there are no tools that automatically protect us without our active partecipation.</p>
|
|
<p>Let's explore that in details.</p>
|
|
<h4>The layers of security</h4>
|
|
<p>We can distinguish four layers of security:</p>
|
|
<ul>
|
|
<li>Device Security</li>
|
|
<li>Network Security</li>
|
|
<li>Message Security</li>
|
|
<li>Human Security</li>
|
|
</ul>
|
|
<h6>Device Security, where everything happens</h6>
|
|
<p>Device security is related to the "physical host".</p>
|
|
<p>If the computer we use is tampered, at the hardware level, or the phone is bugged, there is no way to escape using higher level tools.</p>
|
|
<p>In other words, it doesn't matter if we use a super secure password if our computer is registering all our keystrokes and send them to a third party.</p>
|
|
<p>Also, device security is useful if we consider that our device can fall into the hands of attackers that may be able to traceback all the activities.</p>
|
|
<p>Some precautions for this purpose:</p>
|
|
<ul>
|
|
<li>full disk encryption</li>
|
|
<li>minimal set of application installed</li>
|
|
<li>open source operating systems</li>
|
|
</ul>
|
|
<h6>Network Security</h6>
|
|
<p>The network is the infrastructures that our device is attached to. In most of the case, when we consider our computer is the internet (and the GSM network in case of mobile phones).</p>
|
|
<p>Network security is essential to evade censorship, behavioural tracking and identity theft.</p>
|
|
<p>Some tools that may help in this case:</p>
|
|
<ul>
|
|
<li>vpn</li>
|
|
<li>tor</li>
|
|
<li>p2p networks</li>
|
|
<li>mesh networks</li>
|
|
</ul>
|
|
<p>And for the web:</p>
|
|
<ul>
|
|
<li>opensource web browsers (such as firefox)</li>
|
|
<li>no google apps on android phones</li>
|
|
<li>https</li>
|
|
</ul>
|
|
<h6>Message Security</h6>
|
|
<p>Message security is the level of protection regarding the content that you want to send or receive.</p>
|
|
<p>Message security is essential if you want to avoid any third party snooping and the confidentiality of your messages.</p>
|
|
<p>The tools we can use in this context:</p>
|
|
<ul>
|
|
<li>OTR</li>
|
|
<li>opensource messaging protocols (XMPP, matrix)</li>
|
|
<li>Signal</li>
|
|
<li>PGP</li>
|
|
</ul>
|
|
<p>Also, always remember that encrypting the content of the message doesn't guarantee that your identity and the metadata are hidden.</p>
|
|
<h6>Human Security, the weakest link</h6>
|
|
<p>Everything comes down to the human level at a certain point.</p>
|
|
<p>This is way it is important to train ourselves in security.</p>
|
|
<p>If we consider <a href="https://en.wikipedia.org/wiki/Kevin_Mitnick">Kevin Mitnick's history</a>, or the recent <a href="http://thehackernews.com/2015/11/fbi-cia-director-hack.html">FBI deputy director hack</a> we see that social engineering plays a big role when we want to undermine the security of an individual of interest.</p>
|
|
<p>But security matters even if we are not target of interest.</p>
|
|
<p>For example let's consider our password. If we use the same password on every site and one cracker manages to gain access to just one of them, our whole activities online can be exposed and our identity stolen. <a href="http://www.nydailynews.com/news/national/mark-zuckerberg-twitter-account-hacked-password-dadada-article-1.2662351">This is relevant</a>. Myspace had its database breached and the password of Zuckerberg (even a simple one) was exposed. Given that he used the same password on twitter and other sites, his multiple accounts were compromised.</p>
|
|
<h4>What is TOR and how it works</h4>
|
|
<p>When you visit a website with your mobile phone or a browser on your computer lots of things go on under the hoods.</p>
|
|
<p>Your computer, as a client, makes what is called an <a href="https://en.wikipedia.org/wiki/Transmission_Control_Protocol#Connection_establishment">handshake</a> with the server.</p>
|
|
<p>After telling the server that the client is interested in its content, a series of packets containing data is exchanged.</p>
|
|
<p>That is the content of a connection. Inside this packets there are a multitude of information of two kinds:</p>
|
|
<ul>
|
|
<li>the web page or the content we are trying to visualize</li>
|
|
<li>information on the status of both the server and the client</li>
|
|
</ul>
|
|
<p>The informations contained in every packet can be analized to understand the "identity" of the client that is requesting the content on the server, first of all the IP that is a sort of web address that every computer on the net has.</p>
|
|
<p>Not only, during the transmission of this packets, various entity on the communication channel can analize the content and mine our data.</p>
|
|
<p><img alt="Cute infographic" src="francescomecca.eu/wp-content/uploads/2016/tor-https-0.png"></p>
|
|
<p>TOR still uses this kind of routine to gather the content of a web page, but instead of connecting directly to the destination server it goes through a series of other servers called relay: instead of going directly from A to B, it goes from A to C to D to E to F to B.</p>
|
|
<p>If the web was a kindergarden Alice instead of telling directly her phrase to Bob, she would tell the word to a friend that in turn would tell the word to a friend and so on, until Bob heards the word, without knowing that Alice said that at the beginning.</p>
|
|
<p>At this point you should ask yourself: are the data more protected if it goes through a network of relays? It actually is given that every time you send a packet through the TOR network, it gets encrypted so that no one knows it's content.</p>
|
|
<p>To tell the truth, actually the relay (called exit node) that will send the packet to the destination server, knows the content of the packet but does not know the origin.</p>
|
|
<p>Ultimately a website can be entirely hosted on the TOR network, called the onion network, so that the packets never exit from the relays and the relay don't know the phisycal location of the server, so every entity on the network reach a perfect level of anonimacy.</p>
|
|
<h4>Who owns the relays?</h4>
|
|
<p>Actually every one can host and own a relay if they are willing to do so.
|
|
I personally host one right now and there are many others that share a little fraction of their network connection.</p>
|
|
<p><img alt="My little raspi is moving some packets right now" src="francescomecca.eu/wp-content/uploads/2016/screenraspy.png"></p>
|
|
<p>Running a relay node is very easy and everybody should do so. Running an exit node instead is more troublesome and I don't suggest it if you are not a big entity that can handle some sorts of occasional trouble.</p>
|
|
<h4>Don't play the fool on the TOR network</h4>
|
|
<p>Of course TOR doesn't guarantee you perfect anonimacy. At the end it all comes to the human layer.</p>
|
|
<p>It's no use to surf the web through TOR if we then log in to our personal blog or our personal facebook page.</p>
|
|
<p>But there are other subtle factors that can be exploited by web companies to gather info and track their users.A</p>
|
|
<p>Such factors are:</p>
|
|
<ul>
|
|
<li>the size of the screen and the colors supported by it</li>
|
|
<li>the timezone</li>
|
|
<li>canvas and images that the server asks your computer to generate</li>
|
|
<li>information about your OS that are sent through packets</li>
|
|
<li>the fonts available on your system</li>
|
|
<li>touch support</li>
|
|
<li>cookies</li>
|
|
<li>ads and cross site requests</li>
|
|
</ul>
|
|
<p>In particular, most of these are exploitable using a web programming language, javascript, that lots of web pages uses to render content. TOR users should avoid the use of javascript.</p>
|
|
<h4>Public Private Key Encryption</h4>
|
|
<p>While TOR is recent technology, public key encryption is a concept way older.</p>
|
|
<p>What happens when we use public / private key encryption tools is conceptually similar to what happens with our physical correspondence.</p>
|
|
<p>A public key is similar to our mailbox.</p>
|
|
<p>Everyone that knows the location of a person's mailbox can write a message and put it inside but only the owner of that mailbox, using is own key can open the mailbox and read the various messages.</p>
|
|
<p>When we use PGP or GPG (an implementation of the public key encription concept) we generate a pair of key.</p>
|
|
<p>A public one that we should broadcast or at least share with our social circle, and a private key that must remain secret at any cost.</p>
|
|
<p>Everyone can encrypt every kind of digital content using our public key (that is just a really long string) and only the owner of the private key can proceed to decryption of the content.</p>
|
|
<p>This also means that we know who is gonna read the message if encrypted using this kind of technologies.</p>
|
|
<p>One easy tool for GPG encryption is <a href="https://www.gnupg.org/%28en%29/related_software/gpa/index.html">GPA</a></p>
|
|
<h4>Metadata</h4>
|
|
<p>What would you do if you were asked to put under surveillance one person?</p>
|
|
<p>For sure placing a bug with microphone and recording capabilities would be the best option.</p>
|
|
<p>But what if, instead of recording every thing the subject does, we just take a note of all his actions, without taking care of the content. For example, if the subject speaks to someone, we record the time, the place, the duration of the conversation and all the info of the person he is talking with.
|
|
What if, when the person walks into a mall, we record the time, the location, the shops he entered, the money he spent, the number of things bought, but not the things he bought, in detail.</p>
|
|
<p>You can see that you can have a fairly precise idea of the habits of the person under your surveillance.</p>
|
|
<p>Actually from metadata is easy to grab all kinds of personal information. Also, if a tiny portions of the information we have on the subject are more detailed (for example social network photos) we have a picture as clear as never.</p>
|
|
<p>This is not just one of the biggest concern that should pop into your mind when you are talking about nation wide mass surveillance, it is also the core of the business of corporations like Facebook and Google.</p>
|
|
<p>Whatsapp does not read the content of your messages but it stores every single bit of metadata that comes with it.</p>
|
|
<p>Metadatas are enought to build a complete profile of the users and they are even more dangerous in the hands of an evil state agency.</p>
|
|
<h4>Nothing to hide</h4>
|
|
<p>Even if we have nothing to hide, we have much to fear.</p>
|
|
<p>The "nothing to hide" argument is something that everyone of us in this room has heard, at least one time.</p>
|
|
<p>We should fear this sentence because it is the ultimate ammision of a big misunderstanding on the whole debate.</p>
|
|
<p>Privacy, first of all, is <strong>control</strong> over our data, not only the right to secrecy.</p>
|
|
<h6>Transparency should be for everyone</h6>
|
|
<p>There is a big incoherence when asking to your citizens to handle over their data. </p>
|
|
<p>Transparency should be a two way thing, while at the current state big three letter agencies, but high level people as well, cover their tracks and are not transparent on their reports. </p>
|
|
<p>This enhance a situation of big inequality between the people and the State.</p>
|
|
<p>Even worse, it is not the citizen by himself that can choose if he has something to hide, but the autority.</p>
|
|
<p>This may seem a little naive to say, but with Bruce words:</p>
|
|
<blockquote>
|
|
<p>If you give me six lines written by the hand of the most honest of men, I will find something in them which will hang him.</p>
|
|
</blockquote>
|
|
<p>This is true even without considering social discrimination and mass media manipolation.</p>
|
|
<h6>The fundamental of society</h6>
|
|
<p>Every action can be seen as either legal or illegal. When we take a decision this is one of the first, implicit concern.</p>
|
|
<p>This is not true in a surveillance system: when you are doing something your concern is all about the possibility of raising suspicion.</p>
|
|
<p>An idea not an action is what is needed in such a dystopic condition to prove a citizen guilty.</p>
|
|
<h6>Sometimes two wrongs make a right</h6>
|
|
<p>In America we are now discussing weed legalization.</p>
|
|
<p>Do you think that such debate would have been possible if no one could had the possibility, even if against the law, to try that substance and show other citizen the real implications of their actions?</p>
|
|
<p>The same goes for gay marriages, that we are discussing in Italy. Challenging the law, breaking it if needed, is a way to improve the current system.</p>
|
|
<p>Inside the panopticon every <strong>potential</strong> criminal would be persecuted and this kind of advancement would not be possible.</p>
|
|
<h4>To hide is to care</h4>
|
|
<p>A simple truth is that we don't close the windows to cover up our crimes. </p>
|
|
<p>Our innermost experiences become in our intimacy, which is the most sacred place.</p></description><category>Berkman Center internet and society</category><category>Berkman Klein internship</category><category>cryptography</category><category>encription</category><category>nothing to hide</category><category>PesceWanda</category><category>public key private key</category><category>TOR</category><guid>francescomecca.eu/blog/2016/7/7/pres-berk/</guid><pubDate>Thu, 07 Jul 2016 00:00:00 GMT</pubDate></item></channel></rss> |