Version: 1.2.0.11
stix.report Module¶
Overview¶
The stix.report module implements Report.
A Report defines a contextual wrapper for a grouping of STIX content.
Documentation Resources¶
Classes¶
-
class
stix.report.Report(id_=None, idref=None, timestamp=None, header=None, courses_of_action=None, exploit_targets=None, indicators=None, observables=None, incidents=None, threat_actors=None, ttps=None, campaigns=None, related_reports=None)¶ Bases:
stix.base.EntityA STIX Report Object.
Parameters: - id (optional) – An identifier. If
None, a value will be generated viamixbox.idgen.create_id(). If set, this will unset theidrefproperty. - idref (optional) – An identifier reference. If set this will unset the
id_property. - timestamp (optional) – A timestamp value. Can be an instance of
datetime.datetimeorstr. - header – A Report
Headerobject. - campaigns – A collection of
Campaignobjects. - courses_of_action – A collection of
CourseOfActionobjects. - exploit_targets – A collection of
ExploitTargetobjects. - incidents – A collection of
Incidentobjects. - indicators – A collection of
Indicatorobjects. - threat_actors – A collection of
ThreatActorobjects. - ttps – A collection of
TTPobjects. - related_reports – A collection of
RelatedReportobjects.
-
add(entity)¶ Adds entity to a top-level collection. For example, if entity is an Indicator object, the entity will be added to the
indicatorstop-level collection.
-
add_campaign(campaign)¶ Adds a
Campaignobject to thecampaignscollection.
-
add_course_of_action(course_of_action)¶ Adds an
CourseOfActionobject to thecourses_of_actioncollection.
-
add_exploit_target(exploit_target)¶ Adds an
ExploitTargetobject to theexploit_targetscollection.
-
add_observable(observable)¶ Adds an
Observableobject to theobservablescollection.If observable is not an
Observableinstance, an effort will be made to convert it to one.
Adds an
RelatedReportobject to therelated_reportscollection.
-
add_threat_actor(threat_actor)¶ Adds an
ThreatActorobject to thethreat_actorscollection.
- id (optional) – An identifier. If