How easily can you guess a GUID that might be generated?

Here is some stuff from Wikipedia (original source):

V1 GUIDs which contain a MAC address
and time can be identified by the
digit “1” in the first position of the
third group of digits, for example
{2f1e4fc0-81fd-11da-9156-00036a0f876a}.

In my understanding, they don’t really hide it.

V4 GUIDs use the later algorithm,
which is a pseudo-random number. These
have a “4” in the same position, for
example
{38a52be4-9352-453e-af97-5c3b448652f0}.
More specifically, the ‘data3’ bit
pattern would be 0001xxxxxxxxxxxx in
the first case, and 0100xxxxxxxxxxxx
in the second. Cryptanalysis of the
WinAPI GUID generator shows that,
since the sequence of V4 GUIDs is
pseudo-random, given the initial state
one can predict up to next 250 000
GUIDs returned by the function

UuidCreate1. This is why GUIDs
should not be used in cryptography, e.
g., as random keys.

GUIDs are guaranteed to be unique and that’s about it. Not guaranteed to be be random or difficult to guess.

TO answer you question, at least for the V1 GUID generation algorithm if you know the algorithm, MAC address and the time of the creation you could probably generate a set of GUIDs one of which would be one that was actually generated. And the MAC address if it’s a V1 GUID can be determined from sample GUIDs from the same machine.

Additional tidbit from wikipedia:

The OSF-specified algorithm for
generating new GUIDs has been widely
criticized. In these (V1) GUIDs, the
user’s network card MAC address is
used as a base for the last group of
GUID digits, which means, for example,
that a document can be tracked back to
the computer that created it. This
privacy hole was used when locating
the creator of the Melissa worm. Most
of the other digits are based on the
time while generating the GUID.

Leave a Comment