diff options
| author | Adam Janovsky | 2021-04-16 16:10:08 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2021-04-16 16:10:08 +0200 |
| commit | eb7d02159eff47eacfd31a6beea19df8c482532b (patch) | |
| tree | 958fa7e32be15198b866420dda3468b7c993973e /test/data | |
| parent | 04565fd6f0980554d252633b8e26b7b99a7204f8 (diff) | |
| download | sec-certs-eb7d02159eff47eacfd31a6beea19df8c482532b.tar.gz sec-certs-eb7d02159eff47eacfd31a6beea19df8c482532b.tar.zst sec-certs-eb7d02159eff47eacfd31a6beea19df8c482532b.zip | |
implement tests for cpe and cve stuff
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/test_cpe_cve/auxillary_datasets/cpe_dataset.json | 6 | ||||
| -rw-r--r-- | test/data/test_cpe_cve/auxillary_datasets/cve_dataset.json | 33 | ||||
| -rw-r--r-- | test/data/test_cpe_cve/vulnerable_dataset.json | 68 |
3 files changed, 107 insertions, 0 deletions
diff --git a/test/data/test_cpe_cve/auxillary_datasets/cpe_dataset.json b/test/data/test_cpe_cve/auxillary_datasets/cpe_dataset.json new file mode 100644 index 00000000..7bb22f1c --- /dev/null +++ b/test/data/test_cpe_cve/auxillary_datasets/cpe_dataset.json @@ -0,0 +1,6 @@ +{ + "cpe:2.3:a:ibm:security_access_manager_for_enterprise_single_sign-on:8.2.2:*:*:*:*:*:*:*": "IBM Security Access Manager For Enterprise Single Sign-On 8.2.2", + "cpe:2.3:a:ibm:security_key_lifecycle_manager:2.6.0.1:*:*:*:*:*:*:*": "IBM Security Key Lifecycle Manager 2.6.0.1", + "cpe:2.3:a:semperplugins:all_in_one_seo_pack:1.3.6.4:*:*:*:*:wordpress:*:*": "Semper Plugins All in One SEO Pack 1.3.6.4 for WordPress", + "cpe:2.3:a:tracker-software:pdf-xchange_lite_printer:6.0.320.0:*:*:*:*:*:*:*": "Tracker Software PDF-XChange Lite Printer 6.0.320.0" +}
\ No newline at end of file diff --git a/test/data/test_cpe_cve/auxillary_datasets/cve_dataset.json b/test/data/test_cpe_cve/auxillary_datasets/cve_dataset.json new file mode 100644 index 00000000..0572310b --- /dev/null +++ b/test/data/test_cpe_cve/auxillary_datasets/cve_dataset.json @@ -0,0 +1,33 @@ +{ + "_type": "CVEDataset", + "cves": { + "CVE-2017-1732": { + "_type": "CVE", + "cve_id": "CVE-2017-1732", + "vulnerable_cpes": [ + "cpe:2.3:a:ibm:security_access_manager_for_enterprise_single_sign-on:8.2.2:*:*:*:*:*:*:*" + ], + "impact": { + "_type": "Impact", + "base_score": 5.3, + "severity": "MEDIUM", + "explotability_score": 3.9, + "impact_score": 1.4 + } + }, + "CVE-2019-4513": { + "_type": "CVE", + "cve_id": "CVE-2019-4513", + "vulnerable_cpes": [ + "cpe:2.3:a:ibm:security_access_manager_for_enterprise_single_sign-on:8.2.2:*:*:*:*:*:*:*" + ], + "impact": { + "_type": "Impact", + "base_score": 8.2, + "severity": "HIGH", + "explotability_score": 3.9, + "impact_score": 4.2 + } + } + } +}
\ No newline at end of file diff --git a/test/data/test_cpe_cve/vulnerable_dataset.json b/test/data/test_cpe_cve/vulnerable_dataset.json new file mode 100644 index 00000000..30a62017 --- /dev/null +++ b/test/data/test_cpe_cve/vulnerable_dataset.json @@ -0,0 +1,68 @@ +{ + "_type": "CCDataset", + "state": { + "_type": "DatasetInternalState", + "meta_sources_parsed": true, + "pdfs_downloaded": false, + "pdfs_converted": false, + "txt_data_extracted": false, + "certs_analyzed": false + }, + "timestamp": "2021-04-16 15:05:18.386794", + "sha256_digest": "not implemented", + "name": "cc_full_dataset", + "description": "sample dataset description", + "n_certs": 1, + "certs": [ + { + "_type": "CommonCriteriaCert", + "dgst": "c01e5375331b25dc", + "status": "active", + "category": "Access Control Devices and Systems", + "name": "IBM Security Access Manager for Enterprise Single Sign-On Version 8.2", + "manufacturer": "IBM Corporation", + "scheme": "DE", + "security_level": [ + "ALC_FLR.1", + "EAL3+" + ], + "not_valid_before": "2014-12-05", + "not_valid_after": null, + "report_link": "http://www.commoncriteriaportal.org/files/epfiles/0683a_pdf.pdf", + "st_link": "http://www.commoncriteriaportal.org/files/epfiles/0683b_pdf.pdf", + "src": "csv + html", + "cert_link": null, + "manufacturer_web": "http://www.ibm.com", + "protection_profiles": [], + "maintainance_updates": [], + "state": { + "_type": "InternalState", + "st_link_ok": true, + "report_link_ok": true, + "st_convert_ok": true, + "report_convert_ok": true, + "st_extract_ok": true, + "report_extract_ok": true, + "errors": [] + }, + "pdf_data": { + "_type": "PdfData", + "report_metadata": null, + "st_metadata": null, + "report_frontpage": null, + "st_frontpage": null, + "report_keywords": null, + "st_keywords": null + }, + "heuristics": { + "_type": "Heuristics", + "extracted_versions": [ + "8.2" + ], + "cpe_matches": null, + "verified_cpe_matches": null, + "related_cves": null + } + } + ] +}
\ No newline at end of file |
