PCAP Hunter exposes a JSON IOC feed that Graylog can consume two ways:
- HTTP JSONPath Lookup Table -- synchronous per-event enrichment
- Periodic CSV pull via cron + Lookup Table -- bulk watchlist
- System > Lookup Tables > Data Adapters > Create
- Type: HTTP JSONPath
- URL:
http://pcap-hunter.internal:8000/api/v1/iocs.json?case_id=${key} - Headers:
Authorization: Bearer ${SECRET} - Path:
$.iocs[*] - Map result to a Graylog message field via Pipeline Rule.
# /etc/cron.d/pcap-hunter-feed
*/15 * * * * graylog curl -fsS -H "Authorization: Bearer $FEED_KEY" \
"http://pcap-hunter.internal:8000/api/v1/iocs.csv?since=$(date -u -d '15 minutes ago' +%Y-%m-%dT%H:%M:%SZ)" \
-o /etc/graylog/lookups/pcap_iocs.csvThen System > Lookup Tables > Data Adapters > Create > CSV File pointing at /etc/graylog/lookups/pcap_iocs.csv.