This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
test_manifest.txt
327 lines (314 loc) · 10.8 KB
/
test_manifest.txt
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
TODO:
V2:
- public key parsing & tag tests (p, s, t, n, k, ...)
- dns failure tests
- better testing of tag & header syntax(unicode, other malformed possibilities?)
- dkim tags (z, x, l, q, ...)
- qp-section, dkim-quoted-printable format
- international domains & selector not an A-label - Section 2.3 of [RFC5890]
- > 50 hops???
HOW?
- dkim key size
- signers must use >= 1024?
- ordering & placement of fields
VALIDATION TESTS:
--- Arc Seal
- structure
* as_struct_i_na
* as_struct_i_empty
* as_struct_i_zero
* as_struct_i_invalid
* as_struct_dup
* as_struct_missing
- format
- tag=value list
- pass
* whitespace around ; (as_format_sc_wsp)
* whitespace around = (as_format_eq_wsp)
* optional ";" at end of tag-list (as_format_tags_trail_sc)
* unknown tags(changes signature, but isnt invalid) (as_format_tags_unknown)
- fail
* invalid tag key (as_format_inv_tag_key)
* duplicate tag (as_format_tags_dup)
* case change on tag key (as_format_tags_key_case)
* case change on tag value (as_format_tags_val_case)
* add whitespace (as_format_tags_wsp)
* random semicolon (as_format_tags_sc)
- fields
- i=
* duplicated AS i= 1 (as_fields_i_dup)
* duplicated AS i= 2 (as_fields_i_dup2)
* missing AS i= (as_fields_i_missing)
- a=
- pass
- fail
* NA (as_fields_a_na)
* empty (as_fields_a_empty) BREAKS_DNS_SERVER
* a=sha-rsa1(changes signature) (as_fields_a_sha1)
* unknkown algorithm(not rsa-sha256) (as_fields_a_unknown)
- b=
- pass
* ignores whitespace (as_fields_b_ignores_wsp)
- key size
* signed with 1024 key (as_fields_b_1024)
* signed with 2048 key (as_fields_b_2048)
- cannonicalization
* header fields case insensitive (as_fields_b_head_case)
* header field lines unfolded (as_fields_b_head_unfold)
* eol whitespace stripped (as_fields_b_eol_wsp)
* inline whitespace reduced (as_fields_b_inl_wsp)
* whitespace surrounding colon stripped (as_fields_b_col_wsp)
- fail
* NA (as_fields_b_na)
* empty (as_fields_b_empty)
* not base64 (as_fields_b_base64)
* signed with 512 key (as_fields_b_512)
- invalid value
* modify signature (as_fields_b_mod_sig)
- modified headers
- check each header that should be included
* AAR(1) (as_fields_b_aar1)
* AMS(1) (as_fields_b_ams1)
* ASB(1) (as_fields_b_asb1)
- cv=
- fail
* NA (as_fields_cv_na)
* empty (as_fields_cv_empty)
* invalid value (as_fields_cv_invalid)
- d=
- fail
* NA (as_fields_d_na)
* empty (as_fields_d_empty)
- invalid format
* not valid domain name (as_fields_d_invalid)
- s=
- fail
* NA (as_fields_s_na)
* empty (as_fields_s_empty)
- t=
- pass
* NA (as_fields_t_na)
- fail
* empty (as_fields_t_empty)
* invalid format (as_fields_t_invalid)
--- Arc Message Signature
- structure
* ams_struct_i_na
* ams_struct_i_empty
* ams_struct_i_zero
* ams_struct_i_invalid
* ams_struct_dup
* ams_struct_missing
- format
- tag=value list
- pass
* whitespace around ; (ams_format_sc_wsp)
* whitespace around = (ams_format_eq_wsp)
* optional ";" at end of tag-list (ams_format_tags_trail_sc)
* unknown tags(changes signature, but isnt invalid) (ams_format_tags_unknown)
- fail
* invalid tag key (ams_format_inv_tag_key)
* duplicate tag (ams_format_tags_dup)
* case change on tag key (ams_format_tags_key_case)
* case change on tag value (ams_format_tags_val_case)
* add whitespace (ams_format_tags_wsp)
* random semicolon (ams_format_tags_sc)
- fields
- a=
- pass
- fail
* NA (ams_fields_a_na)
* empty (ams_fields_a_empty)
* a=sha-rsa1(changes signature) (ams_fields_a_sha1)
* unknkown algorithm(not rsa-sha256 ) (ams_fields_a_unknown)
- b=
- pass
* ignores whitespace (ams_fields_b_ignores_wsp)
- cannonicalization
* header fields case insensitive (ams_fields_b_head_case)
* header field lines unfolded (ams_fields_b_head_unfold)
* eol whitespace stripped (ams_fields_b_eol_wsp)
* inline whitespace reduced (ams_fields_b_inl_wsp)
* whitespace surrounding colon stripped (ams_fields_b_col_wsp)
- fail
* NA (ams_fields_b_na)
* empty (ams_fields_b_empty)
* not base64 (ams_fields_b_base64)
- invalid value
* modify signature (ams_fields_b_mod_sig)
* modified headers (ams_fields_b_mod_headers)
- bh=
- pass
* ignores whitespace (ams_fields_bh_ignores_wsp)
- cannonicalization
- body (ams bh=)
- simple
* base (ams_fields_bh_sim_base)
* inline whitespace not reduced (ams_fields_bh_sim_inl_wsp)
* ignore empty lines at end of body (ams_fields_bh_sim_end_lines)
- relaxed
* eol whitespace stripped (ams_fields_bh_rel_eol_wsp)
* inline whitespace reduced (ams_fields_bh_rel_inl_wsp)
* ignore empty lines at end of body (ams_fields_bh_rel_end_lines)
* add CRLF at end if non existant (ams_fields_bh_rel_trail_crlf)
- fail
* NA (ams_fields_bh_na)
* empty (ams_fields_bh_empty)
* not base64 (ams_fields_bh_base64)
- invalid value
* modify bh value (ams_fields_bh_mod_sig)
* modify body(non-canonically) (ams_fields_bh_mod_bod)
- c=
- pass
* NA (ams_fields_c_na)
- fail
* empty (ams_fields_c_empty)
- various canonicalizations respected
* relaxed/relaxed (ams_fields_c_rr)
* relaxed/simple (ams_fields_c_rs)
* simple/relaxed (ams_fields_c_sr)
* simple/simple (ams_fields_c_ss)
* invalid value (ams_fields_c_invalid)
- d=
- fail
* NA (ams_fields_d_na)
* empty (ams_fields_d_empty)
- invalid format
* not valid domain name (ams_fields_d_invalid)
- h=
- pass
* empty (ams_fields_h_empty)
* whitespace ' : ' h= 1 (ams_fields_h_cws1)
* whitespace ' : ' h= 1 (ams_fields_h_cws2)
* h= case insensitive (ams_fields_h_case)
* duplicate header bottom up (ams_fields_h_dup1)
* non-existant header fields (ams_fields_h_non_existant)
* non-existant duplicate header fields (ams_fields_h_non_existant_dup)
* missing hdr-name (ams_fields_h_mis_hdr)
* includes AMS (ams_fields_h_includes_ams)
- fail
* NA (ams_fields_h_na)
* invalid hdr-name (ams_fields_h_inv_hdr)
* duplicate header not bottom up (ams_fields_h_dup2)
* incorrect order (ams_fields_h_order)
* signing missing header is then added (ams_fields_h_empty_added)
* includes AS headers (ams_fields_h_includes_as)
- s=
- fail
* NA (ams_fields_s_na)
* empty (ams_fields_s_empty) BREAKS_DNS_SERVER
- t=
- pass
* NA (ams_fields_t_na)
- fail
* empty (ams_fields_t_empty)
* invalid format (ams_fields_t_invalid)
-(V2?) dkim stuff
* q= != dns/txt
- x=
* invalid format
* less than t
-? z= (diagnostic field, who cares for now) (dkim-quoted-printable)
- l=
* too long
*? implemented correctly?
--- Chain Validation
- cv=None
* empty (cv_empty)
* no header (cv_no_header)
* no body (cv_no_body)
* no ARC-Sets 1 (cv_base1)
* no ARC-Sets 2 (cv_base2)
- cv=Pass
- i=1
* pass 1 (cv_pass_i1_1)
* pass 2 (cv_pass_i1_2)
- i=2
* pass 1 (cv_pass_i2_1)
* pass 2 (cv_pass_i2_2)
* AMS(1) invalid (cv_pass_i2_1_ams1_invalid)
- i=3
* pass 1 (cv_pass_i3_1)
- i=4
* pass 1 (cv_pass_i4_1)
- i=5
* pass 1 (cv_pass_i5_1)
- cv=Fail
- i=1
- AMS(1)
* NA (cv_fail_i1_ams_na)
* invalid (cv_fail_i1_ams_invalid)
- AS(1)
* NA (cv_fail_i1_as_na)
* cv = Pass (cv_fail_i1_as_pass)
* cv = Fail (cv_fail_i1_as_fail)
* invalid (cv_fail_i1_as_invalid)
- i=2
- AMS(2)
* NA (cv_fail_i2_ams_na)
* invalid (cv_fail_i2_ams_invalid)
- AS(1)
* NA (cv_fail_i2_as1_na)
* invalid (cv_fail_i2_as1_invalid)
* cv1 = Pass (cv_fail_i2_as1_pass)
* cv1 = Fail (cv_fail_i2_as1_fail)
- AS(2)
* NA (cv_fail_i2_as2_na)
* invalid (cv_fail_i2_as2_invalid)
* cv2 = None (cv_fail_i2_as2_none)
* cv2 = Fail (cv_fail_i2_as2_fail)
--- Arc Authentication Results
- structure
* aar_struct_i_na
* aar_struct_i_empty
* aar_struct_i_zero
* aat_struct_i_invalid
* aar_struct_dup
* aar_struct_missing
* missing (aar_missing)
* missing i= (aar_i_missing)
* wrong i= (aar_i_wrong)
* i= not prefixed (aar_i_not_prefix)
* i= not prefixed (aar_i_no_semi)
* missing (i=2) (aar2_missing)
--- Public Key Tests
* differing AMS & AS keys (ams_as_diff_s_d)
- cant get key or is invalid
* no key found (public_key_na)
* not vaild dkim key (public_key_invalid)
--- System
-? permuted arc headers (header_order1)
-? permuted arc headers (header_order2)
-? entirely invalid emails
SIGNATURE TESTS:
- body canonicalization
* eol whitespace stripped (message_body_eol_wsp)
* inline whitespace reduced (message_body_inl_wsp)
* ignore empty lines at end of body (message_body_end_lines)
* add CRLF at end if non existant (message_body_trail_crlf
- non-seal headers
* header fields names case insensitive (headers_field_name_case)
* header field lines unfolded (headers_field_unfold)
* eol whitespace stripped (headers_eol_wsp)
* inline whitespace reduced (headers_inl_wsp)
* whitespace surrounding colon stripped (headers_col_wsp)
- seal headers
- valid
* i=0 (i0_base)
* i=1 (i1_base)
* i=2 (i2_base)
- invalid
* i=1 (i1_base_fail)
* i=2 (i2_base_fail)
* no_additional_sig
- authentication results
* merged by srv_id (ar_merged1)
* merged by srv_id (ar_merged2)
# These tests are currently on hold unti a better way to approach them is found
- sig_headers list
- AMS header order (header_order)
- duplicate headers ord1 (header_dup_ord1)
- duplicate headers ord2 (header_dup_ord2)
- duplicate sig headers supplied once (sig_header_dup_once)
- duplicate sig headers supplied twice (sig_header_dup_twice)
- non-existant headers (header_non)