News for hackers. Stuff that matters.
Re:Devuan considers machine IDs by nickysielicki on Saturday March 30, 2019 @10:39AM (#19529618)
If a file on your computer is being used by a program to send information to someone, the answer isn't to destroy/randomize the file and break other applications, the answer is to not use the program that is sending your information somewhere.
Re:Devuan considers machine IDs by mirimir on Saturday March 30, 2019 @10:53AM (#19529693)
Sure, but how do you know what programs are misusing it?
Re:Devuan considers machine IDs by btown on Saturday March 30, 2019 @11:07AM (#19529765)
This speaks to a more general need for user-friendly audit logs of which resources are accessed by which programs. I should be able to tell on any platform if Spotify called fopen on something in my documents folder.
Re:Devuan considers machine IDs by auslander on Saturday March 30, 2019 @11:17AM (#19529828)
SELinux or app-armor, keep it in enforcing mode.
Re:Devuan considers machine IDs by nickysielicki on Saturday March 30, 2019 @11:28AM (#19529890)
I think this is largely possible with eBPF, if you cared enough.
Re:Devuan considers machine IDs by yellowapple on Sunday March 31, 2019 @11:35PM (#19540254)
Rename it and see which programs complain :)
Re:Devuan considers machine IDs by jlgaddis on Saturday March 30, 2019 @01:17PM (#19530563)

  auditd(8)
Re:Devuan considers machine IDs by mirimir on Saturday March 30, 2019 @01:54PM (#19530747)
Re:Devuan considers machine IDs by 0815test on Saturday March 30, 2019 @11:02AM (#19529741)
Or sandbox the program so that it sees a "safe" version of that information.
Re:Devuan considers machine IDs by JohnFen on Sunday March 31, 2019 @06:18PM (#19538800)
But what faster way to discover which applications to remove than by deleting /etc/machine-id?
Re:Devuan considers machine IDs by ez7r6i on Saturday March 30, 2019 @11:08AM (#19529774)
Chromium reads it, but are we sure it's sending it somewhere? Maybe it uses it for bookkeeping of local sessions or something like that.
Re:Devuan considers machine IDs by koolba on Saturday March 30, 2019 @12:43PM (#19530351)
I checked the Chromium source and for Linux they explicitly mention not being allowed to send it externally[0]; they hash it via SHA1, encode it as base64, and use that value.

Interestingly for Windows they pull the machine id from the registry[1] and (at first glance) it doesn't seem like they're doing any hashing. The raw value gets used.

Haven't checked if the value gets sent externally but based upon the comment on the Linux code I'd bet it's a yes.

[0]: https://github.com/chromium/chromium/blob/aae20fb7d3616de40e...

[1]: https://github.com/chromium/chromium/blob/01a03aab2d89c93c15...

Re:Devuan considers machine IDs by jolmg on Saturday March 30, 2019 @01:28PM (#19530627)
> I checked the Chromium source and for Linux they explicitly mention not being allowed to send it externally[0]; they hash it via SHA1, encode it as base64, and use that value.

/etc/machine-id seems to be a random value. What purpose does hashing it before sending it do? The hash should still uniquely identify a machine. Am I missing something? Kind of makes me think that it's just done so people say "it's ok, because they're hashing it first, so it's secure!", while in reality hashing doesn't do anything to alleviate any concern.

Re:Devuan considers machine IDs by MaulingMonkey on Saturday March 30, 2019 @02:15PM (#19530851)
> Am I missing something?

The source code links https://www.freedesktop.org/software/systemd/man/machine-id.... mentions hashing using an "application-specific key", which would at least make it not correlatable between different apps (so $WEBSITE can't correlate machine IDs with $WELL_BEHAVED_APP 's machine IDs.)

But either I'm missing something, or Chromium is - it looks like it's straight up hashing the file and not actually using any application-specific keys!

Re:Devuan considers machine IDs by JohnFen on Sunday March 31, 2019 @06:27PM (#19538836)
> they explicitly mention not being allowed to send it externally[0]; they hash it via SHA1, encode it as base64, and use that value.

If it's sending that value out, then there is no logical difference between that and just sending out the machine-id in the first place.

Re:Devuan considers machine IDs by floatingatoll on Saturday March 30, 2019 @12:44PM (#19530355)
/etc/machine-id reading was implemented in service of the Chromium "Enterprise" component:

https://bugs.chromium.org/p/chromium/issues/detail?id=812641

Comment 26 implements Linux support for reading the machine's unique identifier:

https://chromium.googlesource.com/chromium/src.git/+/15dc90a...

That patch is Linux-only support in service of the greater patch:

https://chromium.googlesource.com/chromium/src.git/+/81a7040...

And having read several rounds of "Device enrollment" phrases now, while the design document is non-public, I would hazard a guess that this is the essential components of enterprise device management.

Google hashes the ID before making use of it, so the actual ID remains disguised, but this absolutely would be necessary if they were trying to implement ChromeOS enterprise device management. (You need a unique identifier per enterprise machine, etc.)

Presumably they only care about this id file with respect to enterprise ChromeOS installations, since they make no effort at all to locate the file in any other location than the one.

It looks more like they simply don't care about reading the file in non-enterprise circumstances, since either the machine is enterprise-managed or it isn't, and as they only transmit hashes of the ID rather than the ID itself, they're in compliance with the FreeDesktop guidelines that require this file to be present:

https://www.freedesktop.org/software/systemd/man/machine-id....

Re:Devuan considers machine IDs by JdeBP on Sunday March 31, 2019 @09:11AM (#19535392)