Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CNAME-based tracking
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yellowzip2
n00b
n00b


Joined: 20 Feb 2021
Posts: 13

PostPosted: Fri Feb 26, 2021 6:01 am    Post subject: CNAME-based tracking Reply with quote

I finally switched from ungoogled-chromium (pf4public overlay) to Firefox (with the usual privacy tweaks) recently in part prompted by claims made recently about CNAME deception.

CNAME tracking abuses DNS records to erase the distinction between first-party and third-party contexts. Firefox running the uBlock Origin 1.25+ extension can see through CNAME deception whereas Chromium based projects running uBlock Origin may not.

Has anyone here been following developments with CNAME-based tracking with regard to browser choice?


Last edited by yellowzip2 on Sun Mar 14, 2021 3:42 am; edited 6 times in total
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Feb 26, 2021 7:28 pm    Post subject: Reply with quote

:cry:

Thanks for the heads up. I hadn't seen that one.

I find it sad that Firefox seems to be the least worst option. I've never used Chrome for personal use, and only briefly tried Chromium.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
yellowzip2
n00b
n00b


Joined: 20 Feb 2021
Posts: 13

PostPosted: Sat Feb 27, 2021 5:21 am    Post subject: Reply with quote

pjp wrote:
I find it sad that Firefox seems to be the least worst option...


Never thought we'd be here in 2021! Agree with the sentiment entirely.
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 812

PostPosted: Sat Feb 27, 2021 10:11 am    Post subject: Reply with quote

It's indeed one of the bad signs of the state to today's internet: "Gee, users don't want to be tracked and are blocking us, lets try an other way so they can't block us".

It's not a browser based solution, but my way of working seems to work against this kind of tracking as well. I'm user BIND to do DNS based blocking. I create zones for domains i wish to block and insert a wildcard in there which directs the requist to my own webserver (which answers with a 404 :) ).

For example, i have blocked doubleclick.net, so any request for anything within that domain is redirected. Now lets assume they start using cname based tracking under tracker.example.com. Now tracker.example.com will resolve into <something>.doubleclick.net, and from there it's again redirected to my own system.

I haven't actually ran into cname based tracking yet, so this is all theory. Any other insights or comments are welcome :)
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sun Feb 28, 2021 3:56 am    Post subject: Reply with quote

One of my tools is I have over 60,000 entries sent to 0.0.0.0 in /etc/hosts. 191 of them are doubleclick.net entries.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
yellowzip2
n00b
n00b


Joined: 20 Feb 2021
Posts: 13

PostPosted: Sun Feb 28, 2021 3:45 pm    Post subject: Reply with quote

none

Last edited by yellowzip2 on Wed Mar 31, 2021 7:35 am; edited 7 times in total
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sun Feb 28, 2021 4:02 pm    Post subject: Reply with quote

See my posts in the following forum page regarding my two scripts to curate your own /etc/hosts additions.
https://forums.gentoo.org/viewtopic-t-1107432-highlight-hosts.html

Don't stop at the first post. I continued to share improvements which I continue to use, shared in the last post of that thread, on the second page.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Sun Feb 28, 2021 5:37 pm    Post subject: someonewhocares Reply with quote

I've been using https://someonewhocares.org/hosts/ as my source for domains to block.

Although I try to keep my /etc/hosts clean so I pass the block list hosts -file for my dns as an additional hosts -file.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sun Feb 28, 2021 6:20 pm    Post subject: Re: someonewhocares Reply with quote

Zucca wrote:
...
I pass the block list hosts -file for my dns as an additional hosts -file.

OK, I give up. That sounds like a good trick. HOW do you do that? (Asking for a friend. :-) )
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Sun Feb 28, 2021 9:21 pm    Post subject: Reply with quote

Using dnsmasq:
part of /etc/dnsmasq.conf:
no-hosts
addn-hosts="/etc/hosts"
addn-hosts="/etc/yourbadhostsfile"


The reason setting no-hosts first and then adding /etc/hosts is because hosts in /etc/hosts now override the same ones in latter files. It's rarely neccessary, so most people would only need
Code:
addn-hosts="/etc/yourbadhostsfile"
in their config.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Sun Feb 28, 2021 9:25 pm    Post subject: Reply with quote

BTW... There is a project which merges several bad host lists from the net to a single one: https://github.com/Ultimate-Hosts-Blacklist/Ultimate.Hosts.Blacklist
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Mon Mar 01, 2021 3:00 am    Post subject: Reply with quote

Zucca wrote:
Using dnsmasq:
part of /etc/dnsmasq.conf:
no-hosts
addn-hosts="/etc/hosts"
addn-hosts="/etc/yourbadhostsfile"


The reason setting no-hosts first and then adding /etc/hosts is because hosts in /etc/hosts now override the same ones in latter files. It's rarely neccessary, so most people would only need
Code:
addn-hosts="/etc/yourbadhostsfile"
in their config.

Thanks for those details. I think I'll remain happy for now appending my host blocks to /etc/hosts, since I'm not already running dnsmasq and don't need another program installed or process running.

But someday ...
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Mon Mar 01, 2021 3:13 am    Post subject: Reply with quote

Zucca wrote:
BTW... There is a project which merges several bad host lists from the net to a single one: https://github.com/Ultimate-Hosts-Blacklist/Ultimate.Hosts.Blacklist

That's a great resource. I didn't know about that. I'm studying the site and keeping notes.

For the time being, my 60K line long hosts file does all the blocking I need.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Mon Mar 01, 2021 7:36 am    Post subject: Reply with quote

I found it while searching for the someonewhocares -site.
I think I could give it a try. My current hostlist already block smart TV commercials quite well, but some still get past it.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Mar 01, 2021 6:55 pm    Post subject: Reply with quote

Since the discussion of blocking hosts has expanded, it seems worth noting that it isn't a useful defense against the CNAME issue mentioned in the article.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
yellowzip2
n00b
n00b


Joined: 20 Feb 2021
Posts: 13

PostPosted: Tue Mar 02, 2021 3:32 am    Post subject: Reply with quote

none

Last edited by yellowzip2 on Wed Mar 31, 2021 7:35 am; edited 3 times in total
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Mar 03, 2021 9:59 pm    Post subject: Reply with quote

I'm no fan of Apple, but this was notable:
Quote:
Apple's answer to marketer angst over being denied analytic data by Safari has been to propose a privacy-preserving ad click attribution scheme that allows 64 different ad campaign identifiers – so marketers can see which worked.

Google's alternative proposal, part of its "Privacy Sandbox" initiative, calls for an identifier field capable of storing 64 bits of data – considerably more than the integer 64.

As the Electronic Frontier Foundation has pointed out, this enables a range of numbers up to 18 quintillion, allowing advertisers to create unique IDs for every ad impression they serve, information that could then be associated with individual users.
Quote:
Google Chrome has implemented its SameSite cookie scheme as a prelude to its planned 2022 phase-out of third-party cookies, maybe.
And that just means that they've found a way to not rely on 3rd-party cookies.

Privacy Sandbox seems aptly named to indicate the sandboxing of privacy.



Although from August, 2020, this was interesting (primarily the browsers / add-on comparisons):
https://blog.apnic.net/2020/08/04/characterizing-cname-cloaking-based-tracking/
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
yellowzip2
n00b
n00b


Joined: 20 Feb 2021
Posts: 13

PostPosted: Fri Mar 05, 2021 2:30 am    Post subject: Reply with quote

AdGuard : cname-trackers - in case you're not using : Ublock-Origin.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Mar 17, 2021 7:14 pm    Post subject: Reply with quote

I have Origin installed, but I don't understand how to use it. It doesn't seem to block as much as I would prefer. I still rely on uMatrix (I'm aware it has been abandoned).

While I'm not worried about those two extensions, I have always considered extensions a "concern."

Then along came...

https://krebsonsecurity.com/2021/03/is-your-browser-extension-a-botnet-backdoor/
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
yellowzip2
n00b
n00b


Joined: 20 Feb 2021
Posts: 13

PostPosted: Thu Mar 18, 2021 6:00 am    Post subject: Reply with quote

pjp wrote:
...but I don't understand how to use it...


Ublock-Origin is now a recommended extension on Firefox. Not too naive to trust them here, i hope.

How I use it - Ublock-Origin Wiki > Filter lists from around the web < FilterLists + LAN block
Back to top
View user's profile Send private message
yellowzip2
n00b
n00b


Joined: 20 Feb 2021
Posts: 13

PostPosted: Thu Mar 18, 2021 9:25 am    Post subject: Reply with quote

none

Last edited by yellowzip2 on Wed Mar 31, 2021 7:35 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Mar 18, 2021 4:04 pm    Post subject: Reply with quote

Browser extensions have always had this problem. The scope of access is so coarse that most extensions that intend to be broadly useful end up empowered to cause tremendous havoc if abused. Mozilla killed XUL extensions in part with the claim that the new permissions-based model would be so much better, because extensions would be required to declare what they wanted and users could review it. In practice, the permission scopes are too broad to be useful, and the Firefox user base fragmented. Some people refused to upgrade to XUL-free versions. Some fled to a variety of forks, many of which have as their main claim to fame that XUL-extensions still work.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Thu Mar 18, 2021 4:45 pm    Post subject: Reply with quote

Will having such a massive hosts file somehow impact web browsing speed or performance?
Thanks a lot
_________________
:)
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Thu Mar 18, 2021 4:55 pm    Post subject: Reply with quote

alamahant wrote:
Will having such a massive hosts file somehow impact web browsing speed or performance?
Thanks a lot

Short answer is no. I suspect it may be measurable but is not perceptible. My /etc/hosts file is over 60,000 lines.

I think browsing is actually faster. Advertising and tracking puts a big burden on web browsing.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Thu Mar 18, 2021 5:02 pm    Post subject: Reply with quote

figueroa wrote:
I think browsing is actually faster. Advertising and tracking puts a big burden on web browsing.

I notice that on sites that display lots of stuff from twitter or facebook that the pages load fast then about ten seconds later, jerks all around as those links load.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum