OpenSource and Data Privacy.
Tags: opensource, datascience, security, tutorial
Published: 2020-11-01 09:27:27

Let's face it. Each and everyone of us have heard that Big Tech is "stealing" our data, and misusing it. We've heard of anti-trust lawsuits, hearings, everything. But have we ever wondered what exactly is this "data" which they steal?

_And yes, why is it that big of a deal anyway?_

##<center>Let's see why it is.</center>

A lot of things come under the aegis of valuable data. If you're on your phone right now, and use Google Photos, open it up, there will be a mapping feature, which condenses your memories as heat signatures over a map for you to explore.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/fbhxwar0zbwtoovtkv1c.jpg)

*Pretty cool, right?*

__NO.__

Not only is this the biggest ad company out there, but it knows the exact time, date, location and the nature of your activity, the people there with you, what sort of a phone you were using, and can use all this data individually and together to build a profile on your ***food, travel, socialising habits, interests and even financial and political beliefs.***

And this is possible because most smartphone cameras store basic metadata about the photograph in your camera roll. There are ways to strip the metadata off of your photos, but by default this is how the system works.

### And this is just your gallery.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qtoh1wp5xajj2564ycfa.jpg)

##<center>Whatsapp and Signal.</center>

Whatsapp uses the open-source [Signal Protocol](https://github.com/signalapp/libsignal-protocol-rust) for it's messaging end to end encryption. Well, it claims to, anyway. That often gives users the idea that all their data is secure on Whatsapp, as no one, not even Whatsapp, can read your messages. True. 

Completely honest? No.

The message's metadata, like the *sender's* and *receiver's mobile numbers*, *the time of the message*, and the *IP addresses of the devices involved in the transmission*, are ***still stored and recorded by Whatsapp***.

This is still very much power in the hands of a Facebook owned company whose business model is based on completely closed source.

This is again, the same company, which only recently has become transparent on the "off Facebook" activity which it logs. Basically all your other apps which you use on your phone.

A very viable solution to the Whatsapp situation is Signal  itself, as it strips all messages of the message metadata, and removes location/time/device metadata from any messages, by default.

#<center>We must Onion-ise 🧅</center>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5jdqilmx0ufrp5nylktt.jpeg)

TOR, The Onion Router, is a name you might have already heard, most probably in the context of the deep/dark web. In the words of the great Wikipedia,

"Tor is a free and open-source software for enabling anonymous communication."

Chrome is also built upon the open-source browser Chromium developed by Google.

{% github chromium/chromium no-readme %}

However, it comes with **minimal privacy protection measures**, and if you think about it, Google being the largest online advertising firm (with Google Ads), it's against their interest to stop websites from collecting your data.

So they don't. *Cookies persist on your machine unless you manually clear them*, a simple browser scrape will dump every-single info about your local PC configuration( *including IPs*), its literally an open-for-all data buffet.

**This is where TOR differs from Chrome.**

The internal workings of TOR are beyond the scope of this article, yet its implications are not.

TOR's data encryption at every step throughout its global network relay keeps your identity hidden, thus making it almost impossible for any meaningful data to be extracted from your online activity.

**No IPs, no locations, your online identity remains protected.**

And it being open-source drastically reduces the time of the feedback-patch loop, as vulnerabilities are detected and patched super quick. The amount of data collection that occurs even at the smallest of websites when using something like Chrome is almost mind-numbing. Use TOR, get some peace of mind.

[Here's the code for it](https://gitlab.torproject.org/tpo)

However, there is a caveat to all this power. Websites can detect when you are using TOR, and may choose to restrict access to some content, or even the site itself. Wikipedia, for example, does not let you edit articles if you are using TOR.

*This is where we suggest another, much more robust solution to the online privacy problem.*

#<center>VPNs</center>

Ah yes, Virtual Private Networks.

The magical thing every single one of your favourite Youtubers seem to be advertising these days.

All your data encrypted, access to location restricted content, it all sounds magical indeed. But it comes at a price, literally.

VPNs, at least the ones you should trust, are usually subscription based services. VPNs are the best solution we have to this online privacy problem.

Popular VPNs include ExpressVPN and NordVPN (yes, I only know two of these, I watch the same Youtubers as you) provide you privacy in exchange for a premium price tag.

However there is a potential catch to this as well. Encryption occurs before data is sent out on the web, but how can you be sure that your VPN itself is not collecting your data prior to encryption?

Again, a classic

>"Who shall watch the watchers?"

scenario.

This privacy business really is a pain in the compiler. Well I may still have and option for you.

##<center>ProtonVPN </center>

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zggtqf4gqye0383htroh.png)

You may have heard of Proton before, they provide the secure email service ProtonMail as well. ProtonVPN is also a premium service, although it does have a free tier.

ProtonVPN is different from the other services owing to the fact that its client applications are all open-source

{% github ProtonVPN/linux-cli no-readme %}

Any data collection that may occur has to take place at the client level itself. **Having the client source code open source means we can easily go through it and check for shenanigans anytime we want.**

This is a huge power move on the part of ProtonVPN to prove their stand on the no-data-collection policy.

## <center>Privacy, ground up.</center>

Windows, remains by far, the most popular consumer desktop operating system. As an open-source club, the fact that Windows is completely proprietary, raises a lot of issues, but a few recent developments, have made the case very weak for Team Redmond.

**Windows shows ads for various services, directly baked into the Start menu, Lock Screen, Action Center and Notifications even.**

This is an operating system, which still sells licenses for it's real, fully-fledged copies. Forget safer networking, if advertisement APIs are baked into the very core of your OS, how can you ever be certain of their intentions?

Add to that DLL hell and Registry hell in Windows, and even third party applications can access sensitive permissions and data on a very trivial basis.

*Let's see open source solutions to this.*

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/z9wjn9w1riiv43z6t7gp.jpg)

This is Tails OS. Tails is an operating system which can be run in it's complete form from a thumb-drive, and has default network configuration to use Tor in all it's networking functions. It wipes all files, passwords applications as a part of it's amnesic approach, and doesn't interact with the hard disk of the system you're using as a system for it's Live system.

You can check out their code [here](https://gitlab.tails.boum.org/).

There a lot of other privacy focused Linux distributions, like Qubes OS, which containerizes all applications to run independently, disallowing Read-Write access and network permissions on a granular level.

{% github QubesOS/qubes-core-agent-linux no-readme %}


These are a few of the many, many technologies out there which promise internet anonymity. This might seem like a small deal, but in a world where companies like Cambridge Analytica try to  influence global elections with news and counter fake news, wherein activists and journalists are hunted down for telling the truth, small steps, that's all we can take.

*Data privacy being an actual issue might seem like some paranoid dystopia,but with us being at cusp of the AR/VR boom, wherein, wearable cameras will become a part of daily lives, it is important to take a step back, and look at where are we heading.*

**Until then, we must persevere.**

**************
__We hope you found this insightful.__
Do visit our [website](https://nitdgplug.org/) to know more about us and also follow us on :
* [Facebook](https://www.facebook.com/nitdgplug)
* [Instagram](https://www.instagram.com/nitdgplug/)
* [Linkedin](https://www.linkedin.com/company/lugnitdgp/)
* [YouTube](https://www.youtube.com/channel/UCYZPnN5vP5B1sINLLkI1aDA)

Also do not forget to like and comment.

Until then, 
__stay safe, and May the Source Be With You!__

![Star Wars Who?](https://dev-to-uploads.s3.amazonaws.com/i/cplzcsry6s5r8m1pale8.gif)

This article was co-written by 
{% user knightvertrag %}
###<center>AND</center>
{% user vrohan %}