Complex Entity
psengine.stix2.complex_entity
¶
DetectionRuleEntity
¶
DetectionRuleEntity(
name: str,
type_: str,
content: str,
description: str = None,
author: Identity = None,
)
Bases: BaseStixEntity
Represents a Yara or SNORT rule.
RAISES | DESCRIPTION |
---|---|
STIX2TransformError
|
Description |
PARAMETER | DESCRIPTION |
---|---|
name
|
The name of the Detection Rule.
TYPE:
|
type_
|
The detection rule type (YARA or Sigma).
TYPE:
|
content
|
The hunting rule itself, typically YARA, Snort, or Sigma.
TYPE:
|
description
|
A description of the Detection Rule.
TYPE:
|
author
|
A Recorded Future author.
TYPE:
|
Source code in psengine/stix2/complex_entity.py
Grouping
¶
Grouping(
name: str,
description: str = None,
is_malware: bool = False,
is_suspicious: bool = False,
object_refs: list = None,
author: Identity = None,
)
Bases: BaseStixEntity
Explicitly asserts that the referenced STIX Objects have a shared context, unlike a STIX Bundle (which explicitly conveys no context).
PARAMETER | DESCRIPTION |
---|---|
name
|
The name of the event. Should be unique.
TYPE:
|
description
|
A description, usually empty.
TYPE:
|
is_malware
|
A flag to determine if malware-analysis context should be used.
TYPE:
|
is_suspicious
|
A flag to determine if suspicious-activity context should be used.
TYPE:
|
object_refs
|
A list of objects to group together.
TYPE:
|
author
|
A Recorded Future Identity.
TYPE:
|
Source code in psengine/stix2/complex_entity.py
IndicatorEntity
¶
IndicatorEntity(
name: str,
type_: str,
description: str = None,
author: Identity = None,
create_indicator: bool = True,
create_obs: bool = True,
confidence: int = None,
labels: list = None,
tlp_marking: str = 'amber',
)
Bases: BaseStixEntity
Indicator SDO.
RAISES | DESCRIPTION |
---|---|
STIX2TransformError
|
If indicator type is not supported. |
PARAMETER | DESCRIPTION |
---|---|
name
|
An indicator value.
TYPE:
|
type_
|
A Recorded Future type of indicator. Options: 'IpAddress', 'InternetDomainName', 'URL', 'FileHash'.
TYPE:
|
description
|
A description of the indicator, usually an AI Insight.
TYPE:
|
author
|
A Recorded Future Identity.
TYPE:
|
create_indicator
|
A flag that governs if the indicator should be created.
TYPE:
|
create_obs
|
A flag that governs if the observable should be created.
TYPE:
|
confidence
|
A confidence score of the indicator.
TYPE:
|
labels
|
Labels applied to the indicator, often risk rules.
TYPE:
|
tlp_marking
|
The TLP level. Defaults to amber.
TYPE:
|
Source code in psengine/stix2/complex_entity.py
NoteEntity
¶
Bases: BaseStixEntity
Note SDO.
PARAMETER | DESCRIPTION |
---|---|
name
|
The title of the note.
TYPE:
|
content
|
The content or text of the note.
TYPE:
|
object_refs
|
A list of SDO IDs the note should be attached to.
TYPE:
|
author
|
A Recorded Future Identity.
TYPE:
|
Source code in psengine/stix2/complex_entity.py
Relationship
¶
Bases: BaseStixEntity
Represents Relationship SDO.
PARAMETER | DESCRIPTION |
---|---|
source
|
The source of the relationship.
TYPE:
|
target
|
The target of the relationship.
TYPE:
|
type_
|
How the source relates to the target.
TYPE:
|
author
|
A Recorded Future Identity.
TYPE:
|