Manager
psengine.enrich.soar_mgr.SoarMgr
¶
Perform SOAR enrichment of entities.
PARAMETER | DESCRIPTION |
---|---|
rf_token
|
Recorded Future API token.
TYPE:
|
Source code in psengine/enrich/soar_mgr.py
soar
¶
soar(
ip: Optional[list[str]] = None,
domain: Optional[list[str]] = None,
hash_: Optional[list[str]] = None,
vulnerability: Optional[list[str]] = None,
url: Optional[list[str]] = None,
companybydomain: Optional[list[str]] = None,
max_workers: Optional[int] = 0,
) -> list[SOAREnrichOut]
Enrich multiple types of IOCs via the SOAR API.
This method supports batch processing of IOC types including IPs, domains, hashes,
vulnerabilities, URLs, and company domains. Uses multithreading if max_workers
> 0.
PARAMETER | DESCRIPTION |
---|---|
ip
|
List of IP addresses to enrich.
TYPE:
|
domain
|
List of domains to enrich.
TYPE:
|
hash_
|
List of file hashes to enrich.
TYPE:
|
vulnerability
|
List of vulnerabilities to enrich.
TYPE:
|
url
|
List of URLs to enrich.
TYPE:
|
companybydomain
|
List of company domains to enrich.
TYPE:
|
max_workers
|
Number of workers to multithread requests.
TYPE:
|
Endpoint
v2/soar/enrichment
Example
Simple bulk enrichment:
With multithreading:
Save enriched results to file:
RAISES | DESCRIPTION |
---|---|
ValueError
|
If no parameters are provided or all provided lists are empty. |
ValidationError
|
if any supplied parameter is of incorrect type. |
EnrichmentSoarError
|
If an HTTP or JSON decoding error occurs during enrichment. |
RETURNS | DESCRIPTION |
---|---|
list[SOAREnrichOut]
|
A list of enriched data for the provided IOCs. |
Source code in psengine/enrich/soar_mgr.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|