@@ -214,12 +214,13 @@ def translate_stix_objects(self, stix_objects):
214214 "created_by_ref" : "created_by_ref" ,
215215 "created" : "created" ,
216216 "modified" : "modified" ,
217- "title " : "name" ,
217+ "name " : "name" ,
218218 "description" : "campaign_description" ,
219219 "aliases" : "campaign_aliases" ,
220220 "object_marking_refs" : "object_marking_refs" ,
221221 "external_references" : "external_references" ,
222-
222+ "x_mitre_first_seen_citation" : "first_seen_citation" ,
223+ "x_mitre_last_seen_citation" : "last_seen_citation"
223224 }
224225
225226 # ******** Helper Functions ********
@@ -694,7 +695,7 @@ def get_mobile_campaigns(self, skip_revoked_deprecated=True, stix_format=True):
694695 List of STIX objects
695696 """
696697
697- mobile_campaigns = self .TC_MOBILE_SOURCE .query (Filter ("type" , "=" , "campaigns " ))
698+ mobile_campaigns = self .TC_MOBILE_SOURCE .query (Filter ("type" , "=" , "campaign " ))
698699
699700 if skip_revoked_deprecated :
700701 mobile_campaigns = self .remove_revoked_deprecated (mobile_campaigns )
@@ -1352,7 +1353,7 @@ def get_object_by_attack_id(self, object_type, attack_id, stix_format=True):
13521353 List of STIX objects
13531354
13541355 """
1355- valid_objects = {'attack-pattern' ,'course-of-action' ,'intrusion-set' ,'malware' ,'tool' ,'x-mitre-data-source' , 'x-mitre-data-component' }
1356+ valid_objects = {'attack-pattern' ,'course-of-action' ,'intrusion-set' ,'malware' ,'tool' ,'x-mitre-data-source' , 'x-mitre-data-component' , 'campaign' }
13561357 if object_type not in valid_objects :
13571358 raise ValueError (f"ERROR: Valid object must be one of { valid_objects } " )
13581359 else :
@@ -1437,7 +1438,7 @@ def get_campaigns_since_time(self, timestamp, stix_format=True):
14371438
14381439 """
14391440 filter_objects = [
1440- Filter ('type' , '=' , 'campaigns ' ),
1441+ Filter ('type' , '=' , 'campaign ' ),
14411442 Filter ('created' , '>' , timestamp )
14421443 ]
14431444 all_campaigns_list = self .COMPOSITE_DS .query (filter_objects )
0 commit comments