feat(feed-csv): new generic CSV threat-intel feed connector
Fetches a delimited feed URL and emits normalized IOCs {value,type} for TIM
import (works with the /indicators/feed-extract -> /indicators/bulk flow).
Column/delimiter/comment/type config, auto type-detection. New 'feed' category.
Optional bearer auth, stdlib-only. py_compile clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
id: feed_csv
|
||||
name: CSV Feed
|
||||
version: 1.0.0
|
||||
description: "Generic CSV threat-intel feed connector — fetch a CSV (or delimited) indicator list from a URL and emit normalized IOCs (value + type) for import into the Threat Indicator Manager. One connector, many feeds. No authentication (or an optional bearer token); stdlib-only, no extra Python dependencies."
|
||||
changelog: "1.0.0 — Initial release: fetch indicators from a delimited feed URL."
|
||||
category: feed
|
||||
|
||||
# Per-instance configuration. The feed is fetched over HTTP(S) from feed_url.
|
||||
# An optional bearer token is sent if the feed requires authentication.
|
||||
config_schema:
|
||||
properties:
|
||||
feed_url:
|
||||
type: string
|
||||
description: "URL of the CSV/delimited feed"
|
||||
api_token:
|
||||
type: string
|
||||
description: "Optional bearer token (if the feed requires auth)"
|
||||
x-soar-sensitive: true
|
||||
insecure:
|
||||
type: boolean
|
||||
description: "Trust any TLS certificate (not secure)"
|
||||
default: false
|
||||
required:
|
||||
- feed_url
|
||||
|
||||
commands:
|
||||
- id: fetch_indicators
|
||||
name: feed-csv-fetch-indicators
|
||||
description: "Fetch and parse the CSV feed, returning normalized indicators."
|
||||
risk: read
|
||||
inputs_schema:
|
||||
properties:
|
||||
value_column: { type: number, description: "0-based column index holding the IOC value (default 0)" }
|
||||
delimiter: { type: string, description: "Field delimiter (default ',')" }
|
||||
ioc_type: { type: string, description: "auto | ip | domain | url | hash | email (default auto — detect per value)" }
|
||||
skip_header: { type: boolean, description: "Skip the first row (default false)" }
|
||||
comment_char: { type: string, description: "Lines starting with this are ignored (default '#')" }
|
||||
max_indicators: { type: number, description: "Max indicators to return (default 10000)" }
|
||||
required: []
|
||||
outputs_schema: { properties: {} }
|
||||
|
||||
- id: test_connection
|
||||
name: feed-csv-test-connection
|
||||
description: "Verify the feed URL is reachable (used by the Test button)."
|
||||
risk: read
|
||||
inputs_schema:
|
||||
properties: {}
|
||||
required: []
|
||||
outputs_schema: { properties: {} }
|
||||
Reference in New Issue
Block a user