This file is indexed.

/usr/share/doc/parcimonie/design.mdwn is in parcimonie 0.9-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Assumptions
===========

Let us consider an individual's public keyring as an unordered set of
public OpenPGP keys.

We assume there probably exists at least one subset of public keys in
this keyring that identifies it, i.e. no other individual's keyring
contain the same subset of public keys. This unproven assumption is
the basis for any subsequent design thought about parcimonie.

It is generally considered good practice to refresh such public keys
from public keyservers on a regular basis, notably since public
OpenPGP keys can be compromised and thus revoked.

The usual way to refresh a public keyring is to run the `gpg
--refresh-keys` command that queries the configured keyserver for
updates of every public key stored in the to-be-refreshed keyring.

Combined with the identifying subset assumption, this "query all keys
at a time" way of refreshing a keyring might disclose private
information to an adversary.

The adversary
=============

Network-wise we assume the same type of threat that Tor does: an
non-global adversary who has full control over the network traffic of
some fractions of the Internet.

OpenPGP keyservers administrators are in a privileged position to
observe public keys requests.

To put it short, the rest of this document will call "the adversary"
anyone able to monitor a given individual's connections to her
configured OpenPGP keyserver(s) on a regular basis.

The adversary is able to establish the identifying subset <->
individual.
XXX: explain why/how the adversary may be able to do so.

Threats
=======

Using Tor
---------

(application-level leakage)

The adversary gains knowledge of the rest of the keyring.

Not using Tor
-------------

(IP-level + application-level leakage)

The adversary gains knowledge of the rest of the keyring + user location.

Possible workarounds
====================

Greatly increase the cost of correlating every key update.

parcimonie refreshes one key at a time, over Tor; between every key
update it sleeps a random amount of time, long enough for the
previously used Tor circuit to expire.

Refresh rate
============

parcimonie sleeps a random amount of time between every key fetch;

- the longest the delay is, the longest it takes for a published key
  update (e.g. revocation certificate) to become locally available
- the shortest the delay is, the cheaper a correlation attack is

this lapse time is computed in function of the number of public keys
in the keyring:

   if rand(2 * (seconds in a week / number of pubkeys)) >= MaxCircuitDirtiness:
       rand(2 * (seconds in a week / number of pubkeys))
   else:
       MaxCircuitDirtiness + rand(MaxCircuitDirtiness)

Note that the MaxCircuitDirtiness value is 10 minutes in current Tor.

Examples:
  - 50  public keys -> average lapse time =~ 200 min.
  - 500 public keys -> average lapse time =~ 20 min.
  - 5000 public keys -> lapse time = 10 min. + rand(10 min.)
  - 50000 public keys -> lapse time = 10 min. + rand(10 min.)

Feedback to the user
====================

The parcimonie daemon sends a D-Bus signal before and after every key
fetch attempt. The applet registers to this signal and displays status
information accordingly.