@@ -57,6 +57,9 @@ def __init__(self, opencti):
5757 x_opencti_firstname
5858 x_opencti_lastname
5959 }
60+ ... on SecurityPlatform {
61+ security_platform_type
62+ }
6063 }
6164 objectMarking {
6265 id
@@ -113,6 +116,9 @@ def __init__(self, opencti):
113116 x_opencti_organization_type
114117 x_opencti_score
115118 }
119+ ... on SecurityPlatform {
120+ security_platform_type
121+ }
116122 """
117123 self .properties_with_files = """
118124 id
@@ -160,6 +166,9 @@ def __init__(self, opencti):
160166 x_opencti_firstname
161167 x_opencti_lastname
162168 }
169+ ... on SecurityPlatform {
170+ security_platform_type
171+ }
163172 }
164173 objectMarking {
165174 id
@@ -229,6 +238,9 @@ def __init__(self, opencti):
229238 x_opencti_organization_type
230239 x_opencti_score
231240 }
241+ ... on SecurityPlatform {
242+ security_platform_type
243+ }
232244 importFiles {
233245 edges {
234246 node {
@@ -414,6 +426,7 @@ def create(self, **kwargs):
414426 contact_information = kwargs .get ("contact_information" , None )
415427 roles = kwargs .get ("roles" , None )
416428 x_opencti_aliases = kwargs .get ("x_opencti_aliases" , None )
429+ security_platform_type = kwargs .get ("security_platform_type" , None )
417430 x_opencti_organization_type = kwargs .get ("x_opencti_organization_type" , None )
418431 x_opencti_reliability = kwargs .get ("x_opencti_reliability" , None )
419432 x_opencti_score = kwargs .get ("x_opencti_score" , None )
@@ -463,6 +476,21 @@ def create(self, **kwargs):
463476 input_variables ["x_opencti_reliability" ] = x_opencti_reliability
464477 input_variables ["x_opencti_score" ] = x_opencti_score
465478 result_data_field = "organizationAdd"
479+ elif type == IdentityTypes .SECURITY .value :
480+ query = """
481+ mutation SecurityPlatformAdd($input: SecurityPlatformAddInput!) {
482+ securityPlatformAdd(input: $input) {
483+ id
484+ standard_id
485+ entity_type
486+ parent_types
487+ }
488+ }
489+ """
490+ input_variables ["security_platform_type" ] = (
491+ security_platform_type
492+ )
493+ result_data_field = "securityPlatformAdd"
466494 elif type == IdentityTypes .INDIVIDUAL .value :
467495 query = """
468496 mutation IndividualAdd($input: IndividualAddInput!) {
@@ -554,6 +582,12 @@ def import_from_stix2(self, **kwargs):
554582 "organization_type" , stix_object
555583 )
556584 )
585+ if "security_platform_type" not in stix_object :
586+ stix_object ["security_platform_type" ] = (
587+ self .opencti .get_attribute_in_extension (
588+ "security_platform_type" , stix_object
589+ )
590+ )
557591 if "x_opencti_reliability" not in stix_object :
558592 stix_object ["x_opencti_reliability" ] = (
559593 self .opencti .get_attribute_in_extension ("reliability" , stix_object )
0 commit comments