File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ def main():
2222 f .add_hash (h )
2323
2424 indicator = Indicator ()
25+ indicator .title = "File Hash Example"
26+ indicator .description = "An indicator containing a File observable with an associated hash"
2527 indicator .set_producer_identity ("The MITRE Corporation" )
2628 indicator .set_produced_time (datetime .now ())
2729 indicator .add_object (f )
Original file line number Diff line number Diff line change @@ -138,7 +138,11 @@ def to_obj(self, return_obj=None):
138138 if self .id_ :
139139 return_obj .set_id (self .id_ )
140140
141- '''most of this does not work because of the state of the cybox api development'''
141+ if self .description :
142+ return_obj .set_Description (self .description .to_obj ())
143+
144+ return_obj .set_Title (self .title )
145+
142146 if self .observables :
143147 if len (self .observables ) > 1 :
144148 root_observable = self ._merge_observables (self .observables )
You can’t perform that action at this time.
0 commit comments