AGASTRONICS
01/13/2024, 9:40 AMuuid
logic
During the enrollment osqueryd
makes a POST
request to the server: /enroll
in which the request data contains uuid:
value is there a specific logic
behind this and in what probability
will the uuid
occur once
around the world ๐ ๐John Speno
01/13/2024, 12:29 PMAGASTRONICS
01/13/2024, 12:52 PMAGASTRONICS
01/13/2024, 1:04 PMuuid
we can generate 32 random characters
to concatenate with the actual uuid
uuid+'.'+rand_id
Note: we check the database for any existing rand_id
In this case, we split them on our server whenever we want to make use of it.
split_uuid[0]
split_uuid[1]
John Speno
01/13/2024, 1:25 PMinstance_uuid
which might be a better choice. I'd recommend reading the source to see how those things are set.AGASTRONICS
01/13/2024, 1:29 PMseph
$ osqueryd --help | grep host_identifier
--host_identifier VALUE Field used to identify the host running osquery (hostname, uuid, instance, ephemeral, specified)
--specified_identifier VALUE Field used to specify the host_identifier when set to "specified"
John Speno
01/16/2024, 3:33 PMhostIdentifier
as sent in the various logs, but it doesn't have any impact on what data is sent during the enroll process, AFAIK.seph
John Speno
01/17/2024, 5:21 PMosquery_info
table (among others) which contains both the uuid
and instance_uuid
. It also sends host_identifier
which is affected by the --host_identifier
. It would be up to the backend system to determine how to use that data. I only know what Fleet does, which is to use the uuid
seph