This repository was archived by the owner on Dec 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -370,23 +370,28 @@ def import_from_stix2(self, **kwargs):
370370 update = kwargs .get ("update" , False )
371371
372372 if stix_object is not None :
373- # Retro compatibility
373+ # Backward compatibility
374374 if "x_opencti_base_score" in stix_object :
375375 stix_object ["x_opencti_cvss_base_score" ] = stix_object [
376376 "x_opencti_base_score"
377377 ]
378+ if "x_opencti_base_severity" in stix_object :
378379 stix_object ["x_opencti_cvss_base_severity" ] = stix_object [
379380 "x_opencti_base_severity"
380381 ]
382+ if "x_opencti_attack_vector" in stix_object :
381383 stix_object ["x_opencti_cvss_attack_vector" ] = stix_object [
382384 "x_opencti_attack_vector"
383385 ]
386+ if "x_opencti_integrity_impact" in stix_object :
384387 stix_object ["x_opencti_cvss_integrity_impact" ] = stix_object [
385388 "x_opencti_integrity_impact"
386389 ]
390+ if "x_opencti_availability_impact" in stix_object :
387391 stix_object ["x_opencti_cvss_availability_impact" ] = stix_object [
388392 "x_opencti_availability_impact"
389393 ]
394+ if "x_opencti_confidentiality_impact" in stix_object :
390395 stix_object ["x_opencti_cvss_confidentiality_impact" ] = stix_object [
391396 "x_opencti_confidentiality_impact"
392397 ]
You can’t perform that action at this time.
0 commit comments