Пример #1
0
 def _create_intrusion_sets(self) -> List[IntrusionSet]:
     intrusion_sets = []
     adversary = self.pulse.adversary
     if adversary is not None and adversary:
         intrusion_set = create_intrusion_set(adversary, self.author,
                                              self.object_marking_refs)
         intrusion_sets.append(intrusion_set)
     return intrusion_sets
Пример #2
0
 def _create_intrusion_set(self, name: str) -> IntrusionSet:
     return create_intrusion_set(name, self.pulse_author,
                                 self.confidence_level,
                                 self.object_markings)