diff options
| author | J08nY | 2024-02-14 12:58:21 +0100 |
|---|---|---|
| committer | J08nY | 2024-02-14 12:58:21 +0100 |
| commit | d73ddbcdfcd0768c9e594f627947eac87f1d561b (patch) | |
| tree | 8f210ed79aaad0a06f1c087b0383e03c6c489691 /tests/data | |
| parent | 05afc93e597564f802d36ef56ccdbf8108967dd2 (diff) | |
| download | sec-certs-d73ddbcdfcd0768c9e594f627947eac87f1d561b.tar.gz sec-certs-d73ddbcdfcd0768c9e594f627947eac87f1d561b.tar.zst sec-certs-d73ddbcdfcd0768c9e594f627947eac87f1d561b.zip | |
Add tests for cert data extraction.
Diffstat (limited to 'tests/data')
| -rw-r--r-- | tests/data/cc/dataset/toy_dataset.json | 678 |
1 files changed, 339 insertions, 339 deletions
diff --git a/tests/data/cc/dataset/toy_dataset.json b/tests/data/cc/dataset/toy_dataset.json index dc70bc4e..dbf75078 100644 --- a/tests/data/cc/dataset/toy_dataset.json +++ b/tests/data/cc/dataset/toy_dataset.json @@ -1,345 +1,345 @@ { - "_type": "sec_certs.dataset.cc.CCDataset", - "state": { - "_type": "sec_certs.dataset.dataset.Dataset.DatasetInternalState", - "meta_sources_parsed": true, - "artifacts_downloaded": false, - "pdfs_converted": false, - "auxiliary_datasets_processed": false, - "certs_analyzed": false + "_type": "sec_certs.dataset.cc.CCDataset", + "state": { + "_type": "sec_certs.dataset.dataset.Dataset.DatasetInternalState", + "meta_sources_parsed": true, + "artifacts_downloaded": false, + "pdfs_converted": false, + "auxiliary_datasets_processed": false, + "certs_analyzed": false + }, + "timestamp": "2020-11-16 17:04:14.770153", + "sha256_digest": "not implemented", + "name": "toy dataset", + "description": "toy dataset description", + "n_certs": 3, + "certs": [ + { + "_type": "sec_certs.sample.cc.CCCertificate", + "dgst": "309ac2fd7f2dcf17", + "status": "active", + "category": "Access Control Devices and Systems", + "name": "NetIQ Identity Manager 4.7", + "manufacturer": "NetIQ Corporation", + "scheme": "SE", + "security_level": { + "_type": "Set", + "elements": [ + "ALC_FLR.2", + "EAL3+" + ] + }, + "not_valid_before": "2020-06-15", + "not_valid_after": "2025-06-15", + "report_link": "https://www.commoncriteriaportal.org/files/epfiles/Certification%20Report%20-%20NetIQ®%20Identity%20Manager%204.7.pdf", + "st_link": "https://www.commoncriteriaportal.org/files/epfiles/ST%20-%20NetIQ%20Identity%20Manager%204.7.pdf", + "cert_link": "https://www.commoncriteriaportal.org/files/epfiles/Certifikat%20CCRA%20-%20NetIQ%20Identity%20Manager%204.7_signed.pdf", + "manufacturer_web": "https://www.netiq.com/", + "protection_profiles": { + "_type": "Set", + "elements": [] + }, + "maintenance_updates": { + "_type": "Set", + "elements": [] + }, + "state": { + "_type": "sec_certs.sample.cc.CCCertificate.InternalState", + "report": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null + }, + "st": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null + }, + "cert": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null + } + }, + "pdf_data": { + "_type": "sec_certs.sample.cc.CCCertificate.PdfData", + "report_metadata": null, + "st_metadata": null, + "cert_metadata": null, + "report_frontpage": null, + "st_frontpage": null, + "cert_frontpage": null, + "report_keywords": null, + "st_keywords": null, + "cert_keywords": null, + "report_filename": null, + "st_filename": null, + "cert_filename": null + }, + "heuristics": { + "_type": "sec_certs.sample.cc.CCCertificate.Heuristics", + "extracted_versions": null, + "cpe_matches": null, + "verified_cpe_matches": null, + "related_cves": null, + "cert_lab": null, + "cert_id": null, + "annotated_references": null, + "extracted_sars": null, + "direct_transitive_cves": null, + "indirect_transitive_cves": null, + "report_references": { + "_type": "sec_certs.sample.certificate.References", + "directly_referenced_by": null, + "directly_referencing": null, + "indirectly_referenced_by": null, + "indirectly_referencing": null + }, + "st_references": { + "_type": "sec_certs.sample.certificate.References", + "directly_referenced_by": null, + "directly_referencing": null, + "indirectly_referenced_by": null, + "indirectly_referencing": null + }, + "scheme_data": null + } }, - "timestamp": "2020-11-16 17:04:14.770153", - "sha256_digest": "not implemented", - "name": "toy dataset", - "description": "toy dataset description", - "n_certs": 3, - "certs": [ - { - "_type": "sec_certs.sample.cc.CCCertificate", - "dgst": "309ac2fd7f2dcf17", - "status": "active", - "category": "Access Control Devices and Systems", - "name": "NetIQ Identity Manager 4.7", - "manufacturer": "NetIQ Corporation", - "scheme": "SE", - "security_level": { - "_type": "Set", - "elements": [ - "ALC_FLR.2", - "EAL3+" - ] - }, - "not_valid_before": "2020-06-15", - "not_valid_after": "2025-06-15", - "report_link": "https://www.commoncriteriaportal.org/files/epfiles/Certification%20Report%20-%20NetIQ®%20Identity%20Manager%204.7.pdf", - "st_link": "https://www.commoncriteriaportal.org/files/epfiles/ST%20-%20NetIQ%20Identity%20Manager%204.7.pdf", - "cert_link": "https://www.commoncriteriaportal.org/files/epfiles/Certifikat%20CCRA%20-%20NetIQ%20Identity%20Manager%204.7_signed.pdf", - "manufacturer_web": "https://www.netiq.com/", - "protection_profiles": { - "_type": "Set", - "elements": [] - }, - "maintenance_updates": { - "_type": "Set", - "elements": [] - }, - "state": { - "_type": "sec_certs.sample.cc.CCCertificate.InternalState", - "report": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - }, - "st": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - }, - "cert": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - } - }, - "pdf_data": { - "_type": "sec_certs.sample.cc.CCCertificate.PdfData", - "report_metadata": null, - "st_metadata": null, - "cert_metadata": null, - "report_frontpage": null, - "st_frontpage": null, - "cert_frontpage": null, - "report_keywords": null, - "st_keywords": null, - "cert_keywords": null, - "report_filename": null, - "st_filename": null, - "cert_filename": null - }, - "heuristics": { - "_type": "sec_certs.sample.cc.CCCertificate.Heuristics", - "extracted_versions": null, - "cpe_matches": null, - "verified_cpe_matches": null, - "related_cves": null, - "cert_lab": null, - "cert_id": null, - "annotated_references": null, - "extracted_sars": null, - "direct_transitive_cves": null, - "indirect_transitive_cves": null, - "report_references": { - "_type": "sec_certs.sample.certificate.References", - "directly_referenced_by": null, - "directly_referencing": null, - "indirectly_referenced_by": null, - "indirectly_referencing": null - }, - "st_references": { - "_type": "sec_certs.sample.certificate.References", - "directly_referenced_by": null, - "directly_referencing": null, - "indirectly_referenced_by": null, - "indirectly_referencing": null - }, - "scheme_data": null - } + { + "_type": "sec_certs.sample.cc.CCCertificate", + "dgst": "8cf86948f02f047d", + "status": "active", + "category": "Access Control Devices and Systems", + "name": "Magic SSO V4.0", + "manufacturer": "Dreamsecurity Co., Ltd.", + "scheme": "KR", + "security_level": { + "_type": "Set", + "elements": [] + }, + "not_valid_before": "2019-11-15", + "not_valid_after": "2024-11-15", + "report_link": "https://www.commoncriteriaportal.org/files/epfiles/KECS-CR-19-70%20Magic%20SSO%20V4.0(eng)%20V1.0.pdf", + "st_link": "https://www.commoncriteriaportal.org/files/epfiles/Magic_SSO_V4.0-ST-v1.4_EN.pdf", + "cert_link": null, + "manufacturer_web": "https://www.dreamsecurity.com/", + "protection_profiles": { + "_type": "Set", + "elements": [ + { + "_type": "sec_certs.sample.protection_profile.ProtectionProfile", + "pp_name": "Korean National Protection Profile for Single Sign On V1.0", + "pp_eal": "EAL1+", + "pp_link": "https://www.commoncriteriaportal.org/files/ppfiles/KECS-PP-0822-2017%20Korean%20National%20PP%20for%20Single%20Sign%20On%20V1.0(eng).pdf", + "pp_ids": null + } + ] + }, + "maintenance_updates": { + "_type": "Set", + "elements": [] + }, + "state": { + "_type": "sec_certs.sample.cc.CCCertificate.InternalState", + "report": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null }, - { - "_type": "sec_certs.sample.cc.CCCertificate", - "dgst": "8cf86948f02f047d", - "status": "active", - "category": "Access Control Devices and Systems", - "name": "Magic SSO V4.0", - "manufacturer": "Dreamsecurity Co., Ltd.", - "scheme": "KR", - "security_level": { - "_type": "Set", - "elements": [] - }, - "not_valid_before": "2019-11-15", - "not_valid_after": "2024-11-15", - "report_link": "https://www.commoncriteriaportal.org/files/epfiles/KECS-CR-19-70%20Magic%20SSO%20V4.0(eng)%20V1.0.pdf", - "st_link": "https://www.commoncriteriaportal.org/files/epfiles/Magic_SSO_V4.0-ST-v1.4_EN.pdf", - "cert_link": null, - "manufacturer_web": "https://www.dreamsecurity.com/", - "protection_profiles": { - "_type": "Set", - "elements": [ - { - "_type": "sec_certs.sample.protection_profile.ProtectionProfile", - "pp_name": "Korean National Protection Profile for Single Sign On V1.0", - "pp_eal": "EAL1+", - "pp_link": "https://www.commoncriteriaportal.org/files/ppfiles/KECS-PP-0822-2017%20Korean%20National%20PP%20for%20Single%20Sign%20On%20V1.0(eng).pdf", - "pp_ids": null - } - ] - }, - "maintenance_updates": { - "_type": "Set", - "elements": [] - }, - "state": { - "_type": "sec_certs.sample.cc.CCCertificate.InternalState", - "report": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - }, - "st": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - }, - "cert": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - } - }, - "pdf_data": { - "_type": "sec_certs.sample.cc.CCCertificate.PdfData", - "report_metadata": null, - "st_metadata": null, - "cert_metadata": null, - "report_frontpage": null, - "st_frontpage": null, - "cert_frontpage": null, - "report_keywords": null, - "st_keywords": null, - "cert_keywords": null, - "report_filename": null, - "st_filename": null, - "cert_filename": null - }, - "heuristics": { - "_type": "sec_certs.sample.cc.CCCertificate.Heuristics", - "extracted_versions": null, - "cpe_matches": null, - "verified_cpe_matches": null, - "related_cves": null, - "cert_lab": null, - "cert_id": null, - "annotated_references": null, - "extracted_sars": null, - "direct_transitive_cves": null, - "indirect_transitive_cves": null, - "report_references": { - "_type": "sec_certs.sample.certificate.References", - "directly_referenced_by": null, - "directly_referencing": null, - "indirectly_referenced_by": null, - "indirectly_referencing": null - }, - "st_references": { - "_type": "sec_certs.sample.certificate.References", - "directly_referenced_by": null, - "directly_referencing": null, - "indirectly_referenced_by": null, - "indirectly_referencing": null - }, - "scheme_data": null - } + "st": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null }, - { - "_type": "sec_certs.sample.cc.CCCertificate", - "dgst": "8a5e6bcda602920c", - "status": "active", - "category": "Boundary Protection Devices and Systems", - "name": "Fortinet FortiGate w/ FortiOS v5.6.7", - "manufacturer": "Fortinet, Inc.", - "scheme": "CA", - "security_level": { - "_type": "Set", - "elements": [] - }, - "not_valid_before": "2019-05-22", - "not_valid_after": "2024-05-24", - "report_link": "https://www.commoncriteriaportal.org/files/epfiles/383-4-450%20CR%20v1.0a.pdf", - "st_link": "https://www.commoncriteriaportal.org/files/epfiles/383-4-450%20ST%20v1.3A.pdf", - "cert_link": "https://www.commoncriteriaportal.org/files/epfiles/383-4-450%20CT%20v1.0a.pdf", - "manufacturer_web": "https://www.fortinet.com/", - "protection_profiles": { - "_type": "Set", - "elements": [ - { - "_type": "sec_certs.sample.protection_profile.ProtectionProfile", - "pp_name": "collaborative Protection Profile for Stateful Traffic Filter Firewalls v2.0 + Errata 20180314", - "pp_eal": null, - "pp_link": "https://www.commoncriteriaportal.org/files/ppfiles/CPP_FW_V2.0E.pdf", - "pp_ids": null - } - ] - }, - "maintenance_updates": { - "_type": "Set", - "elements": [ - { - "_type": "sec_certs.sample.cc.CCCertificate.MaintenanceReport", - "maintenance_date": "2019-08-26", - "maintenance_title": "Fortinet FortiGate w/ FortiOS v5.6.7 Build 6022", - "maintenance_report_link": "https://www.commoncriteriaportal.org/files/epfiles/383-7-159%20MR%20v1.0e.pdf", - "maintenance_st_link": "https://www.commoncriteriaportal.org/files/epfiles/383-7-159%20ST%20v1.4%20CCRA.pdf" - } - ] - }, - "state": { - "_type": "sec_certs.sample.cc.CCCertificate.InternalState", - "report": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - }, - "st": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - }, - "cert": { - "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", - "download_ok": false, - "convert_garbage": false, - "convert_ok": false, - "extract_ok": false, - "pdf_hash": null, - "txt_hash": null - } - }, - "pdf_data": { - "_type": "sec_certs.sample.cc.CCCertificate.PdfData", - "report_metadata": null, - "st_metadata": null, - "cert_metadata": null, - "report_frontpage": null, - "st_frontpage": null, - "cert_frontpage": null, - "report_keywords": null, - "st_keywords": null, - "cert_keywords": null, - "report_filename": null, - "st_filename": null, - "cert_filename": null - }, - "heuristics": { - "_type": "sec_certs.sample.cc.CCCertificate.Heuristics", - "extracted_versions": null, - "cpe_matches": null, - "verified_cpe_matches": null, - "related_cves": null, - "cert_lab": null, - "cert_id": null, - "annotated_references": null, - "extracted_sars": null, - "direct_transitive_cves": null, - "indirect_transitive_cves": null, - "report_references": { - "_type": "sec_certs.sample.certificate.References", - "directly_referenced_by": null, - "directly_referencing": null, - "indirectly_referenced_by": null, - "indirectly_referencing": null - }, - "st_references": { - "_type": "sec_certs.sample.certificate.References", - "directly_referenced_by": null, - "directly_referencing": null, - "indirectly_referenced_by": null, - "indirectly_referencing": null - }, - "scheme_data": null - } + "cert": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null } - ] + }, + "pdf_data": { + "_type": "sec_certs.sample.cc.CCCertificate.PdfData", + "report_metadata": null, + "st_metadata": null, + "cert_metadata": null, + "report_frontpage": null, + "st_frontpage": null, + "cert_frontpage": null, + "report_keywords": null, + "st_keywords": null, + "cert_keywords": null, + "report_filename": null, + "st_filename": null, + "cert_filename": null + }, + "heuristics": { + "_type": "sec_certs.sample.cc.CCCertificate.Heuristics", + "extracted_versions": null, + "cpe_matches": null, + "verified_cpe_matches": null, + "related_cves": null, + "cert_lab": null, + "cert_id": null, + "annotated_references": null, + "extracted_sars": null, + "direct_transitive_cves": null, + "indirect_transitive_cves": null, + "report_references": { + "_type": "sec_certs.sample.certificate.References", + "directly_referenced_by": null, + "directly_referencing": null, + "indirectly_referenced_by": null, + "indirectly_referencing": null + }, + "st_references": { + "_type": "sec_certs.sample.certificate.References", + "directly_referenced_by": null, + "directly_referencing": null, + "indirectly_referenced_by": null, + "indirectly_referencing": null + }, + "scheme_data": null + } + }, + { + "_type": "sec_certs.sample.cc.CCCertificate", + "dgst": "8a5e6bcda602920c", + "status": "active", + "category": "Boundary Protection Devices and Systems", + "name": "Fortinet FortiGate w/ FortiOS v5.6.7", + "manufacturer": "Fortinet, Inc.", + "scheme": "CA", + "security_level": { + "_type": "Set", + "elements": [] + }, + "not_valid_before": "2019-05-22", + "not_valid_after": "2024-05-24", + "report_link": "https://www.commoncriteriaportal.org/files/epfiles/383-4-450%20CR%20v1.0a.pdf", + "st_link": "https://www.commoncriteriaportal.org/files/epfiles/383-4-450%20ST%20v1.3A.pdf", + "cert_link": "https://www.commoncriteriaportal.org/files/epfiles/383-4-450%20CT%20v1.0a.pdf", + "manufacturer_web": "https://www.fortinet.com/", + "protection_profiles": { + "_type": "Set", + "elements": [ + { + "_type": "sec_certs.sample.protection_profile.ProtectionProfile", + "pp_name": "collaborative Protection Profile for Stateful Traffic Filter Firewalls v2.0 + Errata 20180314", + "pp_eal": null, + "pp_link": "https://www.commoncriteriaportal.org/files/ppfiles/CPP_FW_V2.0E.pdf", + "pp_ids": null + } + ] + }, + "maintenance_updates": { + "_type": "Set", + "elements": [ + { + "_type": "sec_certs.sample.cc.CCCertificate.MaintenanceReport", + "maintenance_date": "2019-08-26", + "maintenance_title": "Fortinet FortiGate w/ FortiOS v5.6.7 Build 6022", + "maintenance_report_link": "https://www.commoncriteriaportal.org/files/epfiles/383-7-159%20MR%20v1.0e.pdf", + "maintenance_st_link": "https://www.commoncriteriaportal.org/files/epfiles/383-7-159%20ST%20v1.4%20CCRA.pdf" + } + ] + }, + "state": { + "_type": "sec_certs.sample.cc.CCCertificate.InternalState", + "report": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null + }, + "st": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null + }, + "cert": { + "_type": "sec_certs.sample.cc.CCCertificate.DocumentState", + "download_ok": false, + "convert_garbage": false, + "convert_ok": false, + "extract_ok": false, + "pdf_hash": null, + "txt_hash": null + } + }, + "pdf_data": { + "_type": "sec_certs.sample.cc.CCCertificate.PdfData", + "report_metadata": null, + "st_metadata": null, + "cert_metadata": null, + "report_frontpage": null, + "st_frontpage": null, + "cert_frontpage": null, + "report_keywords": null, + "st_keywords": null, + "cert_keywords": null, + "report_filename": null, + "st_filename": null, + "cert_filename": null + }, + "heuristics": { + "_type": "sec_certs.sample.cc.CCCertificate.Heuristics", + "extracted_versions": null, + "cpe_matches": null, + "verified_cpe_matches": null, + "related_cves": null, + "cert_lab": null, + "cert_id": null, + "annotated_references": null, + "extracted_sars": null, + "direct_transitive_cves": null, + "indirect_transitive_cves": null, + "report_references": { + "_type": "sec_certs.sample.certificate.References", + "directly_referenced_by": null, + "directly_referencing": null, + "indirectly_referenced_by": null, + "indirectly_referencing": null + }, + "st_references": { + "_type": "sec_certs.sample.certificate.References", + "directly_referenced_by": null, + "directly_referencing": null, + "indirectly_referenced_by": null, + "indirectly_referencing": null + }, + "scheme_data": null + } + } + ] } |
