Instead of hardcoding artifact_types in each operator, pass this through from the configuration files and just use the original list as a default if nothing is provided.
[x] Add artifact_types as a global const in config.py
[x] Parse as a comma-separated list with stripped whitespace: IPAddress, URL, YARASignature
[x] Pass in to operators as a list of Artifact classes
[x] If the optarg artifact_types received by an operator is None, fall back to the default hardcoded list in that operator
Instead of hardcoding
artifact_types
in each operator, pass this through from the configuration files and just use the original list as a default if nothing is provided.artifact_types
as a global const inconfig.py
IPAddress, URL, YARASignature
artifact_types
received by an operator isNone
, fall back to the default hardcoded list in that operator