File /etc/machine-id Security and Privancy Concern

Message
Author
User avatar
figueroa
Posts: 1097
Joined: Thu Dec 20, 2018 11:20 pm

Re: File /etc/machine-id Security and Privancy Concern

#21 Post by figueroa »

Adrian wrote: Thu Mar 14, 2019 7:31 pm If for example you have a number of virtual machines you might need to be able to distinguish them.
Let's not loose sight of the fact that creation and synchronization of these two files is currently running amuck. I would personally like the one of these files recreated at each reboot and the other symlinked to the other and locked down that way. That would just be a feather in MX's cap.
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

User avatar
figueroa
Posts: 1097
Joined: Thu Dec 20, 2018 11:20 pm

Re: File /etc/machine-id Security and Privancy Concern

#22 Post by figueroa »

I've solved the problem with having a permanent machine-id by adding the following to /etc/rc.local

Code: Select all

rm /var/lib/dbus/machine-id
/usr/bin/dbus-uuidgen --ensure
With each reboot, the file /var/lib/dbus/machine-id is deleted, then recreated new. For compatibility, I have put a permanent symlink /etc/machine-id to /var/lib/dbus/machine-id. FYI, including a command to make the file rw root-only resulted in and error in /var/log/lightdm/seat0-greeter.log

There are NO new machine-id related errors in in /var/log. I'll report back after more experience. Mainly, I don't know what will happen when systemd gets an update. Will it overwite my symlink /etc/machine-id with a regular file? Will it just overwrite the file in /var/lib/dbus/?
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

User avatar
Adrian
Developer
Posts: 8876
Joined: Wed Jul 12, 2006 1:42 am

Re: File /etc/machine-id Security and Privancy Concern

#23 Post by Adrian »

I don't think it updates /etc/machine-id, it probably just checks if it exists if it doesn't it creates it, to my knowledge it doesn't touch the other d-bus file.

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: File /etc/machine-id Security and Privancy Concern

#24 Post by skidoo »

From my bookmarks, the most comprehensive and enlightening factual (drama-free, emotionless) explanation is this:
stackexchange.com/questions/395331/is-machine-id-a-uuid
Not using systemd, I'm unaware what details may have changed subsequent to the date of that stackexchange post.

User avatar
figueroa
Posts: 1097
Joined: Thu Dec 20, 2018 11:20 pm

Re: File /etc/machine-id Security and Privancy Concern

#25 Post by figueroa »

skidoo wrote: Fri Mar 15, 2019 5:30 pm From my bookmarks, the most comprehensive and enlightening factual (drama-free, emotionless) explanation is this:
stackexchange.com/questions/395331/is-machine-id-a-uuid
Not using systemd, I'm unaware what details may have changed subsequent to the date of that stackexchange post.
That's a very informative, but dated, link. Thanks for posting that.

My observations are that MX installation scripts take care of creating the needed machine-id, because it exists after installation. But, it's permanent and does not change, probably a minor privacy concern. And, if /var/lib/dbus/machine-id is deleted, it is not created by ordinary shutting down and booting. However, the dbus init script is supposed to check, and create if not found /var/lib/dbus/machine-id. Manually running the dbus init script does create a /var/lib/dbus/machine-id if the file is missing, but rebooting doesn't do it. Conclusion: something else is starting dbus and the dbus init script just fails quietly when init tries to run it. I'm happy with my interim solution, which does not directly help the MX and upstream Debian ecosystems.
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

User avatar
crazysquirrel
Posts: 103
Joined: Thu Mar 14, 2019 5:59 pm

Re: File /etc/machine-id Security and Privancy Concern

#26 Post by crazysquirrel »

How to HIDE those security exploited machine id's?

Far too often companies and others you do NOT want to have that info take it anyway.

Most 'portals' access your machine ID's. And who KNOW what hacker exploits that info or what the company does with it.

Especially CPU serial numbers and hard drive serials.
Mx 19.2 XFCE, dual boot with XP Media Center Edition 2005, core i5, 8gb ram, WD 500GB NvMe drive (4 lanes) + other storage drives.

User avatar
crazysquirrel
Posts: 103
Joined: Thu Mar 14, 2019 5:59 pm

Re: File /etc/machine-id Security and Privancy Concern

#27 Post by crazysquirrel »

the old /sd* system provided far greater anonymity that the current uuid system.

I constantly get the do you want ______ to access canvas?

If they are doing that then what ELSE are they getting their hands on?

I do not see any reason linux needs machine id's - just another exploit that is happening....

I do wonder why no linux except perhaps QuBes OS or similar won't sandbox browsers and such automatically in order to prevent said browsers from accessing other items in a system.

I used to use sandboxie years ago. And another one M$ gave away for free that was excellent for the time back then.

So long as linux (firefox included) caters specifically to corporate demands, we can experience a lot of concerns.

Now best question - what do we the users do to hide or prevent access to those machine id's?
Mx 19.2 XFCE, dual boot with XP Media Center Edition 2005, core i5, 8gb ram, WD 500GB NvMe drive (4 lanes) + other storage drives.

User avatar
MX-16_fan
Posts: 331
Joined: Mon Feb 13, 2017 11:09 am

Re: File /etc/machine-id Security and Privancy Concern

#28 Post by MX-16_fan »

@figueroa:
figueroa wrote: Thu Mar 14, 2019 10:27 pm (...) Let's not loose sight of the fact that creation and synchronization of these two files is currently running amuck. I would personally like the one of these files recreated at each reboot and the other symlinked to the other and locked down that way. That would just be a feather in MX's cap.
Removing the whole process of generation of these IDs from the boot process would be not only more than a feather in MX's cap but a real necessity. Mind that users have never been asked to consent to automatic assignment of IDs to their machines.


Greetings, Joe

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: File /etc/machine-id Security and Privancy Concern

#29 Post by skidoo »

The innards of systemd and Chrome are beyond the distro devs' purvue.
Anyone who has read this forum topic now has the howto knowledge, if so inclined, to DIY mitigate the perceived issue.
Now best question - what do we the users do to hide or prevent access to those machine id's?
Anyone who has attentively read this forum topic now has the howto knowledge, if so inclined, to DIY mitigate the perceived issue.
I constantly get the do you want ______ to access canvas?
canvas and... sandboxie... and Qubes == offtopic :exclamation:

User avatar
figueroa
Posts: 1097
Joined: Thu Dec 20, 2018 11:20 pm

Re: File /etc/machine-id Security and Privancy Concern

#30 Post by figueroa »

crazysquirrel wrote: Sat Mar 16, 2019 12:40 pm Most 'portals' access your machine ID's. And who KNOW what hacker exploits that info or what the company does with it.
Especially CPU serial numbers and hard drive serials.
Do you have a reference for that "Most portals access your machine ID" and other hysteria?
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

Post Reply

Return to “Software / Configuration”