ADT
psengine.threat_maps.threat_map
¶
EntityCategory
¶
Bases: RFBaseModel
Model for payload received by GET threat/{type}/categories endpoint.
model_config
class-attribute
instance-attribute
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
| PARAMETER | DESCRIPTION |
|---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
ThreatActorProfile
¶
Bases: RFBaseModel
Model for payload received by POST threat/actor/search endpoint.
model_config
class-attribute
instance-attribute
¶
__str__
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
| PARAMETER | DESCRIPTION |
|---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
ThreatMap
¶
Bases: RFBaseModel
Model for payload received by POST /threat/map/{type} endpoint.
date
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
__str__
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
| PARAMETER | DESCRIPTION |
|---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
ThreatMapEntity
¶
Bases: RFBaseModel
Model to validate data received from the threat/map/{type} endpoint.
This class supports string representation, equality comparison, and hashing of ThreatMapEntity
instances.
Hashing
Defines uniqueness of a ThreatMapEntity object by the entity ID.
Equality
Validates equality between two ThreatMapEntity objects based on the entity ID.
Greater-than Comparison
Defines a greater-than comparison between two ThreatMapEntity instances based on
opportunity, intent and prevalence. Lastly on id_
String Representation
Returns a string representation of the ThreatMapEntity instance including the
entity match name, ID, opportunity, and intent or prevalence depending on category.
Ordering:
The ordering of ThreatMapEntity instances is determined primarily by the opportunity
score followed by the intent and prevalence.
If two instances have the same scores, the id_ is used as a last criterion.
model_config
class-attribute
instance-attribute
¶
__eq__
¶
__eq__(other: ThreatMapEntity)
__gt__
¶
__gt__(other: ThreatMapEntity)
__hash__
¶
__str__
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
| PARAMETER | DESCRIPTION |
|---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
ThreatMapFetchIn
¶
Bases: RFBaseModel
Model to validate threat/map/{org}/{type} endpoint payload sent.
model_config
class-attribute
instance-attribute
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
| PARAMETER | DESCRIPTION |
|---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
ThreatMapInfo
¶
Bases: RFBaseModel
Model for payload received by GET /threat/maps endpoint.
model_config
class-attribute
instance-attribute
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
| PARAMETER | DESCRIPTION |
|---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|