RF Bundle
psengine.stix2.rf_bundle.RFBundle
¶
Class for creating STIX2 bundles from Recorded Future objects.
from_analyst_note
classmethod
¶
from_analyst_note(
note: AnalystNote,
attachment: bytes = None,
split_snort: bool = False,
identity: Identity = None,
) -> Bundle
Creates a STIX2 bundle from a Recorded Future analyst note.
PARAMETER | DESCRIPTION |
---|---|
note
|
A Recorded Future analyst note.
TYPE:
|
attachment
|
A note attachment.
TYPE:
|
split_snort
|
Whether to split Snort rules into separate DetectionRule objects.
TYPE:
|
identity
|
An author identity. Defaults to Recorded Future.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Bundle
|
A STIX2 bundle. |
Source code in psengine/stix2/rf_bundle.py
from_default_risklist
classmethod
¶
from_default_risklist(
risklist: list[DefaultRiskList],
entity_type: str,
identity: Identity = None,
) -> Bundle
Creates STIX2 bundle from a Recorded Future default risklist.
PARAMETER | DESCRIPTION |
---|---|
risklist
|
A Recorded Future default risklist (contains the standard 5 columns).
TYPE:
|
entity_type
|
An entity type.
TYPE:
|
identity
|
An author identity. Defaults to Recorded Future.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
STIX2TransformError
|
If the risklist is not valid. |
STIX2TransformError
|
If EvidenceDetails is not valid JSON. |
STIX2TransformError
|
If the bundle cannot be created. |
RETURNS | DESCRIPTION |
---|---|
Bundle
|
A STIX2 bundle. |