Necesita una clave API de Q-Feeds y las URL de feed. Consulte Obtener sus threat feeds. Exabeam solo acepta CSV, así que añada siempre &type=csv a la URL de Q-Feeds. No consulte con más frecuencia que cada 20 minutos.
Listas de indicadores disponibles (CSV)
- Malware IPs:
feed_type=malware_ip&type=csv - Malware domains:
feed_type=malware_domains&type=csv - Phishing URLs:
feed_type=phishing_urls&type=csv
Parámetros de URL: feed_type, limit opcional, api_token y type=csv. Ejemplo:
https://api.qfeeds.com/api?feed_type=malware_ip&api_token=YOUR_TOKEN&limit=130000&type=csv
Pruebe con:
curl -v -u api_token:YOUR_TOKEN "https://api.qfeeds.com/api?feed_type=malware_ip&limit=1000&type=csv"
Crear una context table
- Vaya a Context Management y seleccione New table.
- Elija Add Custom, defina un nombre y elija el tipo de tabla Other.
- Seleccione Add attributes → Add Custom Attribute (por ejemplo
bad_ips,bad_domainsobad_urls). - Asigne ese atributo como key attribute.
Crear una clave API de Exabeam
- Abra la configuración de administración → API keys y cree una nueva clave.
- Conceda el permiso manage context.
- Use el menú de tres puntos en la nueva clave → Generate and copy token. Guarde el token de forma segura.
Obtener metadatos de la context table
- Abra la referencia para desarrolladores de Exabeam para listar tablas (
GET /context-management/v1/tables). - Pegue su token de acceso de Exabeam, seleccione la URL base regional correcta e intente la solicitud.
- Busque su tabla personalizada en la respuesta y copie el table ID y el attribute ID del atributo clave. Necesita ambos en el siguiente paso.
Añadir registros desde CSV
- Use la API de Exabeam
POST …/tables/{id}/addRecordsFromCsv. - Establezca el path/table ID en el ID de su context table.
- Establezca
sourceAttributesenIP,domainourlsegún el feed. - Establezca
targetAttributeIdsen el attribute ID de los metadatos. - Establezca
operationenreplace. - Cargue el cuerpo CSV de Q-Feeds (pipe o descarga con
type=csv).
El explorador de API de Exabeam puede generar fragmentos de cliente en varios lenguajes. Programe la misma llamada cada 20 minutos para mantener la tabla actualizada.
Ejemplo: shell
curl --request POST \
--url "https://api.eu.exabeam.cloud/context-management/v1/tables/<your-table-id>/addRecordsFromCsv" \
--header 'accept: application/json' \
--header 'authorization: Bearer <your-exabeam-token>' \
--header 'content-type: multipart/form-data' \
--form 'sourceAttributes=IP' \
--form 'targetAttributeIds=<your-attribute-id>' \
--form operation=replace \
--form file=@<(curl "https://api.qfeeds.com/api.php?feed_type=malware_ip&api_token=<yourtoken>&type=csv")
Ajuste la URL base regional de Exabeam y los marcadores de posición para su tenant.
Ejemplo: Python
import io
import requests
qfeed_url = "https://api.qfeeds.com/api.php?feed_type=malware_ip&api_token=<yourtoken>&type=csv"
qfeed_csv = requests.get(qfeed_url).content
url = "https://api.eu.exabeam.cloud/context-management/v1/tables/<your-table-id>/addRecordsFromCsv"
payload = {
"sourceAttributes": "IP", # or domain / url
"targetAttributeIds": "<your-attribute-id>",
"operation": "replace",
}
files = {"file": ("feed.csv", io.BytesIO(qfeed_csv), "text/csv")}
headers = {
"accept": "application/json",
"authorization": "Bearer <your-exabeam-token>",
}
print(requests.post(url, data=payload, files=files, headers=headers).text)