예제 #1
0
 def _create_indicates_relationships(
         self, sources: List[_DomainObject],
         targets: List[_DomainObject]) -> List[Relationship]:
     return create_indicates_relationships(
         self.pulse_author,
         sources,
         targets,
         self.confidence_level,
         self.object_markings,
     )
예제 #2
0
 def _create_indicates_relationships(
         self, sources: List[_DomainObject],
         targets: List[_DomainObject]) -> List[Relationship]:
     return create_indicates_relationships(
         self.author,
         sources,
         targets,
         self.object_marking_refs,
         self.first_seen,
         self.last_seen,
         self.confidence_level,
     )
예제 #3
0
    def _create_indicates_relationships(
            self, sources: List[_DomainObject],
            targets: List[_DomainObject]) -> List[Relationship]:
        if self._no_relationships():
            return []
        new_targets = targets
        if self._no_indicates():
            new_targets = []
            for target in targets:
                if target["type"] != "attack-pattern":
                    new_targets.append(target)

        return create_indicates_relationships(
            self.pulse_author,
            sources,
            new_targets,
            self.confidence_level,
            self.object_markings,
        )