You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
324 lines
13 KiB
324 lines
13 KiB
{
|
|
"meta": {
|
|
"name": "TA-socradar-incidents",
|
|
"displayName": "SOCRadar Incidents",
|
|
"version": "1.9.18",
|
|
"restRoot": "TA_socradar_incidents",
|
|
"schemaVersion": "0.0.8",
|
|
"_uccVersion": "5.48.0"
|
|
},
|
|
"pages": {
|
|
"configuration": {
|
|
"title": "Configuration",
|
|
"description": "Set up your add-on",
|
|
"tabs": [
|
|
{
|
|
"name": "proxy",
|
|
"title": "Proxy",
|
|
"entity": [
|
|
{
|
|
"field": "proxy_enabled",
|
|
"label": "Enable",
|
|
"type": "checkbox"
|
|
},
|
|
{
|
|
"field": "proxy_type",
|
|
"label": "Proxy Type",
|
|
"type": "singleSelect",
|
|
"options": {
|
|
"disableSearch": true,
|
|
"autoCompleteFields": [
|
|
{
|
|
"label": "http",
|
|
"value": "http"
|
|
},
|
|
{
|
|
"label": "socks4",
|
|
"value": "socks4"
|
|
},
|
|
{
|
|
"label": "socks5",
|
|
"value": "socks5"
|
|
}
|
|
]
|
|
},
|
|
"defaultValue": "http"
|
|
},
|
|
{
|
|
"field": "proxy_url",
|
|
"label": "Host",
|
|
"type": "text",
|
|
"validators": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 0,
|
|
"maxLength": 4096,
|
|
"errorMsg": "Max host length is 4096"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"field": "proxy_port",
|
|
"label": "Port",
|
|
"type": "text",
|
|
"validators": [
|
|
{
|
|
"type": "number",
|
|
"range": [
|
|
1,
|
|
65535
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"field": "proxy_username",
|
|
"label": "Username",
|
|
"type": "text",
|
|
"validators": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 0,
|
|
"maxLength": 50,
|
|
"errorMsg": "Max length of username is 50"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"field": "proxy_password",
|
|
"label": "Password",
|
|
"type": "text",
|
|
"encrypted": true,
|
|
"validators": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 0,
|
|
"maxLength": 8192,
|
|
"errorMsg": "Max length of password is 8192"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"field": "proxy_rdns",
|
|
"label": "Remote DNS resolution",
|
|
"type": "checkbox"
|
|
}
|
|
],
|
|
"options": {
|
|
"saveValidator": "function(formData) { if(!formData.proxy_enabled || formData.proxy_enabled === '0') {return true; } if(!formData.proxy_url) { return 'Proxy Host can not be empty'; } if(!formData.proxy_port) { return 'Proxy Port can not be empty'; } return true; }"
|
|
}
|
|
},
|
|
{
|
|
"name": "logging",
|
|
"title": "Logging",
|
|
"entity": [
|
|
{
|
|
"type": "singleSelect",
|
|
"label": "Log level",
|
|
"options": {
|
|
"disableSearch": true,
|
|
"autoCompleteFields": [
|
|
{
|
|
"value": "DEBUG",
|
|
"label": "DEBUG"
|
|
},
|
|
{
|
|
"value": "INFO",
|
|
"label": "INFO"
|
|
},
|
|
{
|
|
"value": "WARNING",
|
|
"label": "WARNING"
|
|
},
|
|
{
|
|
"value": "ERROR",
|
|
"label": "ERROR"
|
|
},
|
|
{
|
|
"value": "CRITICAL",
|
|
"label": "CRITICAL"
|
|
}
|
|
]
|
|
},
|
|
"defaultValue": "INFO",
|
|
"field": "loglevel",
|
|
"required": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "additional_parameters",
|
|
"title": "Add-on Settings",
|
|
"entity": [
|
|
{
|
|
"field": "how_many_days",
|
|
"label": "How Many Days",
|
|
"type": "text",
|
|
"help": "",
|
|
"required": false,
|
|
"defaultValue": "",
|
|
"validators": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 0,
|
|
"maxLength": 8192,
|
|
"errorMsg": "Max length of text input is 8192"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"inputs": {
|
|
"title": "Inputs",
|
|
"description": "Manage your data inputs",
|
|
"table": {
|
|
"header": [
|
|
{
|
|
"field": "name",
|
|
"label": "Name"
|
|
},
|
|
{
|
|
"field": "interval",
|
|
"label": "Interval"
|
|
},
|
|
{
|
|
"field": "index",
|
|
"label": "Index"
|
|
},
|
|
{
|
|
"field": "disabled",
|
|
"label": "Status"
|
|
}
|
|
],
|
|
"moreInfo": [
|
|
{
|
|
"field": "name",
|
|
"label": "Name"
|
|
},
|
|
{
|
|
"field": "interval",
|
|
"label": "Interval"
|
|
},
|
|
{
|
|
"field": "index",
|
|
"label": "Index"
|
|
},
|
|
{
|
|
"field": "disabled",
|
|
"label": "Status"
|
|
},
|
|
{
|
|
"field": "socradar_api_key",
|
|
"label": "SOCRadar API Key"
|
|
},
|
|
{
|
|
"field": "socradar_company_id",
|
|
"label": "SOCRadar Company ID"
|
|
}
|
|
],
|
|
"actions": [
|
|
"edit",
|
|
"enable",
|
|
"delete",
|
|
"clone"
|
|
]
|
|
},
|
|
"services": [
|
|
{
|
|
"name": "socradar_incidents_collector",
|
|
"title": "SOCRadar Incidents API Collector",
|
|
"entity": [
|
|
{
|
|
"field": "name",
|
|
"label": "Name",
|
|
"type": "text",
|
|
"help": "Enter a unique name for the data input",
|
|
"required": true,
|
|
"validators": [
|
|
{
|
|
"type": "regex",
|
|
"pattern": "^[a-zA-Z]\\w*$",
|
|
"errorMsg": "Input Name must start with a letter and followed by alphabetic letters, digits or underscores."
|
|
},
|
|
{
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 100,
|
|
"errorMsg": "Length of input name should be between 1 and 100"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "text",
|
|
"field": "interval",
|
|
"label": "Interval",
|
|
"validators": [
|
|
{
|
|
"type": "regex",
|
|
"errorMsg": "Interval must be either a non-negative number or -1.",
|
|
"pattern": "^(?:-1|\\d+(?:\\.\\d+)?)$"
|
|
}
|
|
],
|
|
"help": "Time interval of input in seconds.",
|
|
"required": true
|
|
},
|
|
{
|
|
"field": "index",
|
|
"label": "Index",
|
|
"type": "singleSelect",
|
|
"defaultValue": "default",
|
|
"options": {
|
|
"endpointUrl": "data/indexes",
|
|
"denyList": "^_.*$",
|
|
"createSearchChoice": true
|
|
},
|
|
"required": true,
|
|
"validators": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 80,
|
|
"errorMsg": "Length of index name should be between 1 and 80."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"field": "socradar_api_key",
|
|
"label": "SOCRadar API Key",
|
|
"help": "",
|
|
"required": false,
|
|
"type": "text",
|
|
"defaultValue": "SOCRadar",
|
|
"validators": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 0,
|
|
"maxLength": 8192,
|
|
"errorMsg": "Max length of text input is 8192"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"field": "socradar_company_id",
|
|
"label": "SOCRadar Company ID",
|
|
"help": "",
|
|
"required": false,
|
|
"type": "text",
|
|
"validators": [
|
|
{
|
|
"type": "string",
|
|
"minLength": 0,
|
|
"maxLength": 8192,
|
|
"errorMsg": "Max length of text input is 8192"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|