aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sec_certs/serialization/schemas/cc_certificate.json
blob: 1bba5b6fd4e1c15e90da32ce9a38479d1c3d57ae (plain) (blame)
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://sec-certs.org/schemas/cc_certificate.json",
  "title": "CC Certificate",
  "description": "Schema for a Common Criteria (CC) certificate.",
  "type": "object",
  "definitions": {
    "cc_id": {
      "type": [
        "string",
        "null"
      ],
      "title": "Certificate ID",
      "description": "The unique identifier of the Common Criteria certificate."
    },
    "cc_document_state": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "sec_certs.sample.document_state.DocumentState"
        },
        "convert_garbage": {
          "type": "boolean",
          "description": "Whether the document was converted to garbage (e.g., empty or invalid content)."
        },
        "convert_ok": {
          "type": "boolean",
          "description": "Whether the document was successfully converted from PDF to text."
        },
        "download_ok": {
          "type": "boolean",
          "description": "Whether the document was successfully downloaded."
        },
        "extract_ok": {
          "type": "boolean",
          "description": "Whether keyword extraction from the document was successful."
        },
        "pdf_hash": {
          "type": [
            "string",
            "null"
          ],
          "description": "SHA256 hash of the PDF document, if available."
        },
        "txt_hash": {
          "type": [
            "string",
            "null"
          ],
          "description": "SHA256 hash of the text document, if available."
        }
      },
      "additionalProperties": false,
      "title": "Certificate Document State (cert, report, st)",
      "description": "State of the document processing pipeline for cert, report, or st document."
    },
    "cc_document_frontpage_body": {
      "type": "object",
      "properties": {
        "match_rules": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of matching rules that were triggered to identify the front page."
        },
        "cert_id": {
          "$ref": "#/definitions/cc_id",
          "type": [
            "string",
            "null"
          ],
          "title": "Certificate ID",
          "description": "The unique identifier of the Common Criteria certificate."
        },
        "cert_item": {
          "type": [
            "string",
            "null"
          ],
          "title": "Certified Item",
          "description": "The certified item as extracted from the front page."
        },
        "developer": {
          "type": [
            "string",
            "null"
          ],
          "title": "Developer",
          "description": "The developer of the certified item as extracted from the front page."
        },
        "cert_lab": {
          "type": [
            "string",
            "null"
          ],
          "title": "Certification Lab",
          "description": "The lab/scheme that issued the certificate as extracted from the front page."
        },
        "ref_protection_profiles": {
          "type": [
            "string",
            "null"
          ]
        },
        "cc_version": {
          "type": [
            "string",
            "null"
          ],
          "title": "CC Version",
          "description": "The version of the Common Criteria standard as extracted from the front page."
        },
        "cc_security_level": {
          "type": [
            "string",
            "null"
          ],
          "title": "CC Security Level",
          "description": "The security level (e.g., EAL) as extracted from the front page."
        }
      },
      "additionalProperties": false
    },
    "cc_document_frontpage": {
      "type": "object",
      "properties": {
        "AU": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "CA": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "FR": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "DE": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "IN": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "IT": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "JP": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "MY": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "NL": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "NO": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "KR": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "PL": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "SG": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "ES": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "SE": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "TR": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        },
        "US": {
          "$ref": "#/definitions/cc_document_frontpage_body"
        }
      },
      "additionalProperties": false
    },
    "cc_references": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "sec_certs.sample.certificate.References"
        },
        "directly_referenced_by": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "_type": {
              "const": "Set"
            },
            "elements": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/cc_id"
              },
              "uniqueItems": true
            }
          },
          "description": "Certificates that directly reference this certificate."
        },
        "directly_referencing": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "_type": {
              "const": "Set"
            },
            "elements": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/cc_id"
              },
              "uniqueItems": true
            }
          },
          "description": "Certificates that are directly referenced by this certificate."
        },
        "indirectly_referenced_by": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "_type": {
              "const": "Set"
            },
            "elements": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/cc_id"
              },
              "uniqueItems": true
            }
          },
          "description": "Certificates that indirectly reference this certificate."
        },
        "indirectly_referencing": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "_type": {
              "const": "Set"
            },
            "elements": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/cc_id"
              },
              "uniqueItems": true
            }
          },
          "description": "Certificates that are indirectly referenced by this certificate."
        }
      },
      "additionalProperties": false,
      "title": "Certificate References (report, st)",
      "description": "References to and from other certificates, based on a document."
    },
    "cc_sar": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "sec_certs.sample.sar.SAR"
        },
        "family": {
          "type": "string",
          "title": "SAR Family",
          "description": "The family of the Security Assurance Requirement (SAR)."
        },
        "level": {
          "type": "integer",
          "title": "SAR Level",
          "description": "The level of the Security Assurance Requirement (SAR)."
        }
      },
      "additionalProperties": false,
      "title": "SAR",
      "description": "Security Assurance Requirement (SAR) as defined in Common Criteria."
    }
  },
  "properties": {
    "_type": {
      "const": "sec_certs.sample.cc.CCCertificate"
    },
    "name": {
      "type": "string",
      "title": "Certificate Name",
      "description": "The name of the Common Criteria certificate."
    },
    "category": {
      "enum": [
        "Access Control Devices and Systems",
        "Boundary Protection Devices and Systems",
        "Data Protection",
        "Databases",
        "Detection Devices and Systems",
        "ICs, Smart Cards and Smart Card-Related Devices and Systems",
        "Key Management Systems",
        "Mobility",
        "Multi-Function Devices",
        "Network and Network-Related Devices and Systems",
        "Operating Systems",
        "Other Devices and Systems",
        "Products for Digital Signatures",
        "Trusted Computing",
        "Biometric Systems and Devices"
      ],
      "title": "Certificate Category",
      "description": "The category of the Common Criteria certificate."
    },
    "scheme": {
      "enum": [
        "AU",
        "CA",
        "FR",
        "DE",
        "IN",
        "IT",
        "JP",
        "MY",
        "NL",
        "NO",
        "KR",
        "PL",
        "SG",
        "ES",
        "SE",
        "TR",
        "US",
        "UK",
        "QA"
      ],
      "title": "Certification Scheme",
      "description": "The certification scheme under which the certificate was issued."
    },
    "status": {
      "enum": [
        "active",
        "archived"
      ],
      "title": "Certificate Status",
      "description": "The current status of the Common Criteria certificate."
    },
    "not_valid_after": {
      "type": "string",
      "format": "date",
      "title": "Expiry Date",
      "description": "The date until which the certificate is valid (expiry date)."
    },
    "not_valid_before": {
      "type": "string",
      "format": "date",
      "title": "Certification Date",
      "description": "The date from which the certificate is valid (certification date)."
    },
    "cert_link": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "title": "Certificate Link",
      "description": "A URL linking to the official certificate document."
    },
    "report_link": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "title": "Certification Report Link",
      "description": "A URL linking to the certification report document."
    },
    "st_link": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "title": "Security Target Link",
      "description": "A URL linking to the security target document."
    },
    "manufacturer": {
      "type": [
        "string",
        "null"
      ],
      "title": "Manufacturer",
      "description": "The name of the manufacturer of the certified product."
    },
    "manufacturer_web": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "title": "Manufacturer Website",
      "description": "The website URL of the manufacturer."
    },
    "security_level": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "Set"
        },
        "elements": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        }
      },
      "title": "Security Level",
      "description": "The security levels associated with the certificate."
    },
    "dgst": {
      "$ref": "base.json#/definitions/dgst"
    },
    "heuristics": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "sec_certs.sample.cc.CCCertificate.Heuristics"
        },
        "eal": {
          "type": [
            "string",
            "null"
          ]
        },
        "annotated_references": {
          "type": "null"
        },
        "cert_id": {
          "$ref": "#/definitions/cc_id",
          "title": "Certificate ID",
          "description": "The unique identifier of the Common Criteria certificate."
        },
        "cert_lab": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "title": "Certification Lab",
          "description": "The lab/scheme that issued the certificate."
        },
        "cpe_matches": {
          "$ref": "base.json#/definitions/cpe_matches"
        },
        "verified_cpe_matches": {
          "$ref": "base.json#/definitions/verified_cpe_matches"
        },
        "related_cves": {
          "$ref": "base.json#/definitions/related_cves"
        },
        "direct_transitive_cves": {
          "$ref": "base.json#/definitions/direct_transitive_cves"
        },
        "indirect_transitive_cves": {
          "$ref": "base.json#/definitions/indirect_transitive_cves"
        },
        "extracted_sars": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "_type": {
              "const": "Set"
            },
            "elements": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/cc_sar"
              },
              "uniqueItems": true
            }
          },
          "title": "Extracted SARs",
          "description": "Security Assurance Requirements (SARs) extracted from the certification documents."
        },
        "extracted_versions": {
          "$ref": "base.json#/definitions/extracted_versions"
        },
        "prev_certificates": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/definitions/cc_id"
          },
          "title": "Previous Certificates",
          "description": "List of previous versions of the certificate in a series, if applicable."
        },
        "next_certificates": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/definitions/cc_id"
          },
          "title": "Next Certificates",
          "description": "List of next versions of the certificate in a series, if applicable."
        },
        "report_references": {
          "$ref": "#/definitions/cc_references",
          "title": "Report References",
          "description": "References to and from other certificates, based on the certification report document."
        },
        "scheme_data": {
          "type": [
            "object",
            "null"
          ],
          "title": "Scheme Data",
          "description": "Scheme-specific data extracted from the scheme websites.",
          "$comment": "This is a free-form object and can contain any properties."
        },
        "st_references": {
          "$ref": "#/definitions/cc_references",
          "title": "ST References",
          "description": "References to and from other certificates, based on the security target document."
        },
        "protection_profiles": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "_type": {
              "const": "Set"
            },
            "elements": {
              "type": "array",
              "items": {
                "$ref": "base.json#/definitions/dgst"
              },
              "uniqueItems": true
            }
          }
        }
      },
      "additionalProperties": false,
      "title": "Certificate Heuristics",
      "description": "Heuristic data extracted from the certification documents."
    },
    "maintenance_updates": {
      "type": "object"
    },
    "protection_profile_links": {
      "type": ["object", "null"],
      "properties": {
        "_type": {
          "const": "Set"
        },
        "elements": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri"
          },
          "uniqueItems": true
        }
      }
    },
    "pdf_data": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "sec_certs.sample.cc.CCCertificate.PdfData"
        },
        "report_metadata": {
          "$ref": "base.json#/definitions/document_metadata",
          "title": "Report Metadata",
          "description": "Metadata extracted from the certification report PDF document file."
        },
        "st_metadata": {
          "$ref": "base.json#/definitions/document_metadata",
          "title": "ST Metadata",
          "description": "Metadata extracted from the security target PDF document file."
        },
        "report_keywords": {
          "$ref": "base.json#/definitions/document_keywords",
          "title": "Report Keywords",
          "description": "Keywords extracted from the certification report document."
        },
        "st_keywords": {
          "$ref": "base.json#/definitions/document_keywords",
          "title": "ST Keywords",
          "description": "Keywords extracted from the security target document."
        }
      },
      "title": "Extracted PDF Data",
      "description": "Data extracted from the certification PDF documents."
    },
    "state": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "sec_certs.sample.cc.CCCertificate.InternalState"
        },
        "cert": {
          "$ref": "#/definitions/cc_document_state"
        },
        "report": {
          "$ref": "#/definitions/cc_document_state"
        },
        "st": {
          "$ref": "#/definitions/cc_document_state"
        }
      },
      "additionalProperties": false,
      "title": "Certificate Document States",
      "description": "State of the document processing pipeline for cert, report, and st documents."
    }
  },
  "additionalProperties": false
}