Manager
psengine.threat_maps.threat_map_mgr.ThreatMapMgr
¶
Manages requests for Recorded Future Threat Maps API.
| PARAMETER | DESCRIPTION |
|---|---|
rf_token
|
Recorded Future API token.
TYPE:
|
Source code in psengine/threat_maps/threat_map_mgr.py
fetch_available_maps
¶
fetch_available_maps() -> list[ThreatMapInfo]
Fetch available threat maps for the organization.
Endpoint
threat/maps
| RAISES | DESCRIPTION |
|---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
ThreatMapInfoError
|
If connection error occurs. |
| RETURNS | DESCRIPTION |
|---|---|
list[ThreatMapInfo]
|
A list of available threat maps. |
Source code in psengine/threat_maps/threat_map_mgr.py
fetch_entity_categories
¶
fetch_entity_categories(
map_type: MAP_TYPE,
) -> list[EntityCategory]
Fetch the entity category taxonomy used to filter threat maps.
| PARAMETER | DESCRIPTION |
|---|---|
map_type
|
Type of threat map.
TYPE:
|
Endpoint
threat/{type}/categories
| RAISES | DESCRIPTION |
|---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
ThreatMapCategoriesError
|
If connection error occurs. |
| RETURNS | DESCRIPTION |
|---|---|
list[EntityCategory]
|
A list of threat map taxonomy categories. |
Source code in psengine/threat_maps/threat_map_mgr.py
search_threat_actor
¶
search_threat_actor(
name: str | None = None,
max_results: int | None = DEFAULT_LIMIT,
actors_per_page: int | None = Field(
ge=1, le=10000, default=DEFAULT_LIMIT
),
) -> list[ThreatActorProfile]
Search Recorded Future's threat actor database by name, alias, or classification.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
Free text search of threat actor names, common names, or aliases.
TYPE:
|
max_results
|
Limit the total number of results returned.
TYPE:
|
actors_per_page
|
The number of threat actors per page for pagination.
TYPE:
|
Endpoint
threat/actor/search
| RAISES | DESCRIPTION |
|---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
ThreatActorSearchError
|
If connection error occurs. |
| RETURNS | DESCRIPTION |
|---|---|
list[ThreatActorProfile]
|
A list of threat actors matching the search criteria. |
Source code in psengine/threat_maps/threat_map_mgr.py
fetch_map
¶
fetch_map(
map_type: MAP_TYPE,
org_id: str | None = None,
malware: str | list[str] | None = None,
actors: str | list[str] | None = None,
categories: str | list[str] | None = None,
watchlists: str | list[str] | None = None,
) -> ThreatMap
Fetch a threat map with optional entity, category, and watchlist filters.
| PARAMETER | DESCRIPTION |
|---|---|
map_type
|
Type of threat map.
TYPE:
|
org_id
|
Organization ID.
TYPE:
|
malware
|
Filter by malware entity ID(s).
TYPE:
|
actors
|
Filter by threat actor ID(s).
TYPE:
|
categories
|
Filter by category ID(s).
TYPE:
|
watchlists
|
Filter by watch list ID(s).
TYPE:
|
Endpoint
threat/map/{type} or threat/map/{org_id}/{type}
| RAISES | DESCRIPTION |
|---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
ThreatMapFetchError
|
If connection error occurs. |
| RETURNS | DESCRIPTION |
|---|---|
ThreatMap
|
Threat map with entities matching filter criteria. |