Manager
psengine.collective_insights.collective_insights.CollectiveInsights
¶
Class for interacting with the Recorded Future Collective Insights API.
PARAMETER | DESCRIPTION |
---|---|
rf_token
|
Recorded Future API token.
TYPE:
|
Source code in psengine/collective_insights/collective_insights.py
submit
¶
submit(
insight: Union[Insight, list[Insight]],
debug: bool = True,
organization_ids: Optional[list] = None,
) -> InsightsIn
Submit a detection or insight to the Recorded Future Collective Insights API.
PARAMETER | DESCRIPTION |
---|---|
insight
|
A detection or list of detections to submit. |
debug
|
Whether the submission should appear in the SecOPS dashboard.
TYPE:
|
organization_ids
|
List of organization IDs.
TYPE:
|
Endpoint
collective-insights/detections
RAISES | DESCRIPTION |
---|---|
CollectiveInsightsError
|
If connection error occurs. |
ValidationError
|
If any supplied parameter is of incorrect type. |
RETURNS | DESCRIPTION |
---|---|
InsightsIn
|
Response from the Recorded Future API. |
Source code in psengine/collective_insights/collective_insights.py
create
¶
create(
ioc_value: str,
ioc_type: str,
timestamp: str,
detection_type: str,
detection_sub_type: Optional[str] = None,
detection_id: Optional[str] = None,
detection_name: Optional[str] = None,
ioc_field: Optional[str] = None,
ioc_source_type: Optional[str] = None,
incident_id: Optional[str] = None,
incident_name: Optional[str] = None,
incident_type: Optional[str] = None,
mitre_codes: Union[list[str], str, None] = None,
malwares: Union[list[str], str, None] = None,
**kwargs,
) -> Insight
Create a new Insight object.
PARAMETER | DESCRIPTION |
---|---|
ioc_value
|
The value of the IOC.
TYPE:
|
ioc_type
|
The type of the IOC.
TYPE:
|
timestamp
|
The timestamp associated with the detection as ISO 8601.
TYPE:
|
detection_type
|
The type of the detection.
TYPE:
|
detection_sub_type
|
The subtype of the detection.
TYPE:
|
detection_id
|
The ID of the detection.
TYPE:
|
detection_name
|
The name of the detection.
TYPE:
|
ioc_field
|
The field in which the IOC was detected.
TYPE:
|
ioc_source_type
|
The source type of the IOC.
TYPE:
|
incident_id
|
The ID of the incident.
TYPE:
|
incident_name
|
The name of the incident.
TYPE:
|
incident_type
|
The type of the incident.
TYPE:
|
mitre_codes
|
MITRE ATT&CK technique or tactic codes.
TYPE:
|
malwares
|
Associated malware family or names.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ValidationError
|
If any supplied parameter is of incorrect type. |
RETURNS | DESCRIPTION |
---|---|
Insight
|
The created Insight object. |