Skip to content

check_infected also considers SK keys that were never used by the infected user #12

Open

Description

@LCBH

Because of

days_infected = (now-infect_date).days

for day in range(days_infected, -1, -1):

check_infected will compute all the SKs between the first infectious period (argument date) and the current time. To avoid trivial false positives triggered by a malicious agent, one should limit the computation to the days between the start of the infectious period and the day before SK_t has been published. See https://github.com/DP-3T/documents/blob/master/DP3T%20White%20Paper.pdf page 11.

Activity

  1. added 2 commits that reference this issue on Apr 15, 2020
  2. LCBH commented on Apr 15, 2020

    @LCBH
    Author

    #7937bc9 exemplifies the problem. Alice was considered at risk before this PR.

  3. rkunnema commented on Apr 16, 2020

    @rkunnema

    Hi! Alternatively, the backend witholds SK_t until the next day. This way, contacts on the day the infection was diagnosed can be alerted.

  4. LCBH commented on Apr 16, 2020

    @LCBH
    Author

    I don't think this would totally solve the problem. Consider for example the following scenario:

    • day n: Alice is tested positive and upload SK_{n-14}, her SK key from 14 days ago
    • day n+1: Backend publishes S_{n-14}
    • day n+1: Bob fetches new keys, in particular SK_{n-14} and computes all infected EphIDs corresponding to this key and for the days n-14 to n+1. In particular, it computes EphIDS for the day n+1 that anyone can compute. Bob is thus exposed to easy, targeted false positive attacks.

    The PR #13 should fix this.

  5. rkunnema commented on Apr 17, 2020

    @rkunnema

    SK_{n+1} would be out of range, though (more than 14 days). For smaller intervals, this could be enforced by basically the change in PR #13 (if I read it correctly, the diff is super long) or a more hacky solution (Phone takes current day - 1 when it receives SK_{n-14}). This is in addition to witholding the key and securing the channel from HA to Backend.

    I think capturing contacts on day n may be worth it -- when someone goes to the doctor, they may have symptoms that facilitate spreading the disease, like coughing.

  6. LCBH commented on Apr 17, 2020

    @LCBH
    Author

    The current implementation does not check that S_{k+1} is out of range. (The specification does, but it also uses the publication date as done in #13.

    Yes the PR also contains some sanitization, which makes it hard to read as a whole. The commit #548e8ab actually fixes the issue and the diff is much smaller.

    The specification/design 1 does not capture contacts on day n to avoid false positives as anyone would then be able to compute valid, infected EPhIDs. I guess, one would have to rotate the key more often to have it all, or to not randomize the list of EphIDs and include the epoch of the SK publication (but this also come with a slight privacy loss).

  7. rkunnema commented on Apr 21, 2020

    @rkunnema

    Ah, now I see. (For the record: there is no use in securing the channel HA -> Backend as the Backend broadcasts the <sk2,t2> tuple anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions