all repos — birabittoh.github.io @ 56641958e50713ed23779fb76308a53b097d5859

My current website, built with Zola.

blog/data-volatility/index.html (view raw)

1<!doctype html><html lang=en><head><meta charset=UTF-8><meta content="IE=edge" http-equiv=X-UA-Compatible><meta content="text/html; charset=UTF-8" http-equiv=content-type><meta content="width=device-width,initial-scale=1,user-scalable=no" name=viewport><meta content="index, follow" name=robots><title>Data volatility</title><meta content="Data volatility" name=title><meta content="Tech and privacy ramblings from a random italian dude." name=description><meta content=website property=og:type><meta content=https://birabittoh.github.io/blog/data-volatility/ property=og:url><meta content=BiRabittoh property=og:site_name><meta content="Data volatility" property=og:title><meta content="Tech and privacy ramblings from a random italian dude." property=og:description><meta content=summary_large_image property=twitter:card><meta content=https://birabittoh.github.io/blog/data-volatility/ property=twitter:url><meta content="Data volatility" property=twitter:title><meta content="Tech and privacy ramblings from a random italian dude." property=twitter:description><link href=https://birabittoh.github.io/blog/data-volatility/ rel=canonical><link href=https://birabittoh.github.io/atom.xml rel=alternate title=RSS type=application/atom+xml><link href=https://birabittoh.github.io/css/style.css rel=stylesheet><body><div class=wrapper><header><nav class=navBar><a href=/>/home/</a><a href=/about>/about/</a><a href=/links>/links/</a><a href=/blog>/blog/</a><div class=themeSwitch><button class="themeButton light" onclick="setTheme('light')" title="Light mode">◐</button><button class="themeButton dark" onclick="setTheme('dark')" title="Dark mode">◑</button></div><script>const setTheme=a=>{document.documentElement.className=a;localStorage.setItem(`theme`,a)};const getTheme=()=>{const a=localStorage.getItem(`theme`);const b=a?a:`dark`;setTheme(b)};getTheme()</script></nav><div><a href=..>..</a>/<span class=metaData>data-volatility</span></div><time datetime=2022-01-14>Published on: <span class=metaData>2022-01-14</span></time><h1>Data volatility</h1></header><main><p>I tried to access my domain at smol.pub yesterday and I noticed the service went down. Fear started rushing through my veins as I noticed I would have to choose another platform and, most importantly, write everything back from scratch since I don’t have a backup. This made me think about the importance of always having a backup stored somewhere.<h2 id=why-though>Why though</h2><p>Creating a backup of your important data is crucial. On a daily basis, people discover vulnerabilities that allow remote code execution on any host machine. Try to imagine what would happen if someone ran a ransomware program on your PC. Would you be safe?<p>This genuinely feels like fearmongery, but it’s something that can seriously happen: you can be attacked by someone that specifically targets you. If you run Windows, you might be part of a botnet (think about all of the unsigned EXE files you’ve run since you installed the OS). What happens when someone doesn’t need your machine anymore? Well, that person might try and squeeze some money from you by holding your files hostage.<h2 id=cloud-backups>Cloud backups</h2><p>Most people define cloud storage as follows:<blockquote><p>Cloud storage is a way for businesses and consumers to save data securely online so that it can be accessed anytime from any location and easily shared with those who are granted permission. Cloud storage also offers a way to back up data to facilitate recovery off-site.</blockquote><p>Source: <a href=https://www.investopedia.com/terms/c/cloud-storage.asp rel=noopener target=_blank>Investopedia</a>.<p>In reality, cloud storage is no more than some dude’s computer.<p>As soon as you upload your personal data to any service, you’re trusting it to store it in a safe and private way. If that software is not open source, you’re basically asking to get spied on.<p>Most people do not care about that, that’s why cloud storage solutions are very popular and basically enabled by default on any device you might buy nowadays.<p>I personally use cloud storage but I would never actually upload anything I actually care about on it… If you have to choose, I have a few suggestions.<h3 id=don-t-trust-non-encrypted-solutions>Don’t trust non-encrypted solutions</h3><p>Everybody has a Google account nowadays. If you forget your password, there is a way to recover it and get access to everything inside, including your Google Drive contents. As long as there is a password that can be changed or reset, your files are NOT encrypted and fully visible to anyone who has access to the Drive servers (Google or any other government agency that might want to take a peek). Most cloud solutions work like this, and it’s actually frightening how many people trust megacorporations to have all of their private information available unencrypted.<p>One encrypted solution I use is mega.nz. While I can’t be sure that the mega team isn’t spying on me, at least they’re hiding it well if they do. Mega includes an encryption key with your account, which is not tied to your login information. This means that if you lose your key, you also lost all of your files, there is absolutely no way to get them back, even if you change your account password.<p>Now, Mega is not open source, so you can never be sure that there isn’t any backdoor, or that keys aren’t stored together with your personal information, but at least it’s something.<h3 id=encrypt-your-data-yourself>Encrypt your data yourself</h3><p>If you really need to trust Google, Apple or Amazon with your files, you can encrypt your files locally with the gpg command. This way, feds and big tech are going to need another password to actually access your private files.<p>It’s really easy, just two commands mainly.<p>Encrypt:<pre><code>gpg -c --cipher-algo AES256 secret.file
2</code></pre><p>Decrypt:<pre><code>gpg segret.file.gpg
3</code></pre><p>If you need to encrypt a folder, you can compress it first:<pre><code>tar -cf output.tar.gz secret-folder
4</code></pre><p>Then encrypt your output.tar.gz archive as if it was a single file.<p>After decrypting it, you can extract your archive through this command:<pre><code>tar -xf output.tar.gz
5</code></pre><p>Check out Mental Outlaw’s <a href=https://invidio.us/M0O7vhvQW30 rel=noopener target=_blank>video</a> about this very topic.<h2 id=local-backups>Local backups</h2><p>This is the best way to backup your data. You don’t need to encrypt it if you have full physical access to your data, but you would still be vulnerable if it gets lost or stolen, so it’s always better to keep it encrypted and safe.<p>Of course, if you have a backup hard drive always plugged in your PC, it’s not really secure at all, since one could remotely execute a ransomware that encrypts everything in your PC, including all drives both internal and external, so you would get your backup encrypted with the original files voiding everything you’ve done.<p>This is why you should keep a GNU/Linux device that only serves backup purposes and is turned OFF most of the time. As long as no current runs through your CPU, your files are safe. You should only turn it on once a month and copy everything important over, so you have a safe and offline backup.<p>You could also use a USB stick or external hard drive, as long as you only plug them in your PC when necessary.</main><footer><p class=tagsData><a href=/tags/advice>#advice</a> <a href=/tags/foss>#foss</a> <a href=/tags/privacy>#privacy</a><hr><div class=footContainer><div class=footLeft><p>Licensed under <a rel="noopener noreferrer" href=https://fr.wikipedia.org/wiki/Licence_MIT target=_blank>MIT</a><br> Built with <a rel="noopener noreferrer" href=https://www.getzola.org target=_blank>Zola</a> using <a rel="noopener noreferrer" href=https://github.com/BiRabittoh/anemone target=_blank>anemone</a> theme & <a rel="noopener noreferrer" href=https://github.com/Speyll/veqev target=_blank>veqev</a> colors.<br></div><div class=footRight><a href=https://wobble.town/visit/528 target=_blank><img class="footGif noStyle" alt=footGif loading=lazy src=https://wobble.town/visit/528/wobble.gif></a><a rel="noopener noreferrer" title="Subscribe via RSS for updates." class=metaData href=https://birabittoh.github.io/atom.xml target=_blank>RSS</a></div></div></footer></div>