MCPcopy Create free account
hub / github.com/STIXProject/python-stix / add_threat_actor

Method add_threat_actor

stix/core/stix_package.py:150–157  ·  view source on GitHub ↗

Adds an :class:`.ThreatActor` object to the :attr:`threat_actors` collection.

(self, threat_actor)

Source from the content-addressed store, hash-verified

148 self.incidents.append(incident)
149
150 def add_threat_actor(self, threat_actor):
151 """Adds an :class:`.ThreatActor` object to the :attr:`threat_actors`
152 collection.
153
154 """
155 if self.threat_actors is None:
156 self.threat_actors = ThreatActors()
157 self.threat_actors.append(threat_actor)
158
159 def add_course_of_action(self, course_of_action):
160 """Adds an :class:`.CourseOfAction` object to the

Callers

nothing calls this directly

Calls 1

ThreatActorsClass · 0.70

Tested by

no test coverage detected