connector-cve: image:opencti/connector-cve:5.8.7 environment: -OPENCTI_URL=http://localhost -OPENCTI_TOKEN=ChangeMe -CONNECTOR_ID=ChangeMe -CONNECTOR_TYPE=EXTERNAL_IMPORT -CONNECTOR_NAME=CommonVulnerabilitiesandExposures -CONNECTOR_SCOPE=identity,vulnerability -CONNECTOR_CONFIDENCE_LEVEL=75# From 0 (Unknown) to 100 (Fully trusted) -CONNECTOR_UPDATE_EXISTING_DATA=false -CONNECTOR_RUN_AND_TERMINATE=false -CONNECTOR_LOG_LEVEL=info -CVE_IMPORT_HISTORY=true# Import history at the first run (after only recent), reset the connector state if you want to re-import -CVE_NVD_DATA_FEED=https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-recent.json.gz -CVE_HISTORY_START_YEAR=2002 -CVE_HISTORY_DATA_FEED=https://nvd.nist.gov/feeds/json/cve/1.1/ -CVE_INTERVAL=7# In days, must be strictly greater than 1 restart:always
connector-cve: image:opencti/connector-cve:5.8.7 environment: -OPENCTI_URL=http://opencti:8080 -OPENCTI_TOKEN=${OPENCTI_ADMIN_TOKEN} -CONNECTOR_ID=207530ac-6ae5-4c38-8bba-9932ddad01d8 -CONNECTOR_TYPE=EXTERNAL_IMPORT -CONNECTOR_NAME=CommonVulnerabilitiesandExposures -CONNECTOR_SCOPE=identity,vulnerability -CONNECTOR_CONFIDENCE_LEVEL=75# From 0 (Unknown) to 100 (Fully trusted) -CONNECTOR_UPDATE_EXISTING_DATA=false -CONNECTOR_RUN_AND_TERMINATE=false -CONNECTOR_LOG_LEVEL=info -CVE_IMPORT_HISTORY=true# Import history at the first run (after only recent), reset the connector state if you want to re-import -CVE_NVD_DATA_FEED=https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-recent.json.gz -CVE_HISTORY_START_YEAR=2002 -CVE_HISTORY_DATA_FEED=https://nvd.nist.gov/feeds/json/cve/1.1/ -CVE_INTERVAL=7# In days, must be strictly greater than 1 restart:always
将配置写入docker-compose.yml中,位置如下 注意前后有
1 2
depends_on: -opencti
然后执行docker-compose up -d进行镜像的更新和拉取。可以看到已经有实体数据。 其他连接器跟以上过程差不多,区别在于需要填写一些其他的参数如数据源的平台地址以及API等等。