In websites/privacy-sensitive-analytics#16 a counter has been implemented so that session IDs rotate every 3 uses.
Currently, there's a 1:10 random chance of a rotation - we'll very, very, very rarely encounter that happening now that it only has a 3 use lifetime.
The random rotation was left in with the intention of it increasing uncertainty when trying to correlate requests, but it doesn't currently achieve that.
So, we should either remove it, or increase the probability of it firing
#16 | Give session IDs a max life-time |
Activity
05-Apr-22 11:10
assigned to @btasker
05-Apr-22 11:10
marked this issue as related to #16
05-Apr-22 12:26
Ideally, we want it to trigger frequently enough to be able to disrupt pattern analysis, whilst not triggering so often that it becomes a signal it's own right.
With a 1:10 chance, I'd say that the majority of the time, it won't trigger before standard rotation.
If we went for a 1:3 chance, the rotation pattern would be
Is 1:3 too high though, do we perhaps want 1:5?
05-Apr-22 12:31
I guess we need to think about why we want rollover at all.
If we get a bunch of pings without rollover
We can
sess-1234
for the first few requestssess-789
is probably the same user as it appeared at the known ID rotation pointWith random rollover enabled, that same log might look like
There's now no definite point we can rely on as the rollover point.
Of course, if that user is the only active user at that time, then we don't gain anything, but if there are multiple active users (all using rollover) it becomes harder to tie a chain of requests together.
So what we're trying to do is strike a balance where
Essentially, we need each user to have a good - but not guaranteed - chance of rotating session ID at each point
07-Apr-22 14:48
Actually, I'm thinking about the odds backwards.
If there's a 1:3 chance of rotation then there's a 2:3 chance a given write is related to another. If we change the odds of rotation to 1:5 we're increasing certainty (4:5 chance of being related) not decreasing it
07-Apr-22 15:23
mentioned in commit 03c3049
Message
Move to a 1:3 chance of a session ID rotating (websites/privacy-sensitive-analytics#17)
This decreases certainty about whether two seperate writes are related.
07-Apr-22 15:24
I've moved us to a 1:3 chance of rotation.