Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Alternate methods for fetching and parsing data sets

Gabriel Iovino edited this page Jul 13, 2015 · 7 revisions

CIF ships with a utility named cif-smrt to fetch and parse threat intelligence feeds. There will be times when cif-smrt does not have the features or capabilities that are needed to fetch or normalize the data appropriately. Here are a few alternate solutions for those scenarios.

Script + cif-smrt

You can create a BASH, Python or Perl script to fetch, normalize (if needed) and write the file to the local file system. You can place this script in the CIF users crontab and write the file locally (e.g. /home/cif/data/data.csv). You would then create a cif-smrt configuration file and place the local file in the remote parameter of the feed configuration file (e.g. remote: /home/cif/data/data.csv).

Script + API

cif-smrt is a tool that fetches, parses and injects data to CIF using the CIF API. You can just as easily leverage the API to ingest data into CIF. Here are two example projects that demonstrate how to do this: py-cifapwg and py-cifcleanmx

Clone this wiki locally