2020-12-02 02:54:10 -08:00
|
|
|
import {
|
2020-12-02 02:24:25 -08:00
|
|
|
INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
import {
|
2020-12-02 02:24:25 -08:00
|
|
|
TLP,
|
|
|
|
} from './AnalyzerInterface';
|
|
|
|
|
|
|
|
export const respondersOperations = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
|
|
|
required: true,
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Choose an operation.',
|
2020-12-02 02:24:25 -08:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Execute',
|
|
|
|
value: 'execute',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Execute Responder',
|
|
|
|
},
|
2020-12-02 02:24:25 -08:00
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
default: 'execute',
|
|
|
|
},
|
2020-12-02 02:24:25 -08:00
|
|
|
] as INodeProperties[];
|
|
|
|
|
|
|
|
export const responderFields: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Responder Type',
|
|
|
|
name: 'responder',
|
|
|
|
type: 'options',
|
|
|
|
required: true,
|
|
|
|
typeOptions: {
|
2020-12-02 02:54:10 -08:00
|
|
|
loadOptionsMethod: 'loadActiveResponders',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Choose the responder.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Entity Type',
|
|
|
|
name: 'entityType',
|
|
|
|
type: 'options',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
2020-12-02 02:54:10 -08:00
|
|
|
],
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
typeOptions: {
|
|
|
|
loadOptionsMethod: 'loadDataTypeOptions',
|
|
|
|
loadOptionsDependsOn: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Choose the Data type.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'JSON Parameters',
|
|
|
|
name: 'jsonObject',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Choose between providing JSON object or seperated attributes.',
|
2020-12-02 02:24:25 -08:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Entity Object (JSON)',
|
|
|
|
name: 'objectData',
|
|
|
|
type: 'string',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
jsonObject: [
|
|
|
|
true,
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-12-02 02:54:10 -08:00
|
|
|
default: '',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Parameters',
|
|
|
|
name: 'parameters',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
placeholder: 'Add Parameter',
|
|
|
|
required: false,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Case Attributes',
|
|
|
|
name: 'values',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Title',
|
|
|
|
name: 'title',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
description: 'Title of the case',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Description',
|
|
|
|
name: 'description',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Description of the case',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Severity',
|
|
|
|
name: 'severity',
|
|
|
|
type: 'options',
|
|
|
|
default: 2,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Low',
|
|
|
|
value: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Medium',
|
|
|
|
value: 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'High',
|
|
|
|
value: 3,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
description: 'Severity of the case. Default=Medium',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Start Date',
|
|
|
|
name: 'startDate',
|
|
|
|
type: 'dateTime',
|
|
|
|
default: '',
|
|
|
|
description: 'Date and time of the begin of the case default=now',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Owner',
|
|
|
|
name: 'owner',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: `User who owns the case. This is automatically set to current user when status is set to InProgress.`,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Flag',
|
|
|
|
name: 'flag',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Flag of the case default=false.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'TLP',
|
|
|
|
name: 'tlp',
|
|
|
|
type: 'options',
|
|
|
|
default: 2,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'White',
|
|
|
|
value: TLP.white,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Green',
|
|
|
|
value: TLP.green,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Amber',
|
|
|
|
value: TLP.amber,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Red',
|
|
|
|
value: TLP.red,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
description: 'Traffict Light Protocol (TLP). Default=Amber',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Tags',
|
|
|
|
name: 'tags',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
placeholder: 'tag1,tag2,...',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
typeOptions: {
|
|
|
|
loadOptionsDependsOn: [
|
2020-12-02 02:24:25 -08:00
|
|
|
'entityType',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
jsonObject: [
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'case',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
entityType: [
|
|
|
|
'',
|
|
|
|
'alert',
|
|
|
|
'case_artifact',
|
|
|
|
'case_task',
|
|
|
|
'case_task_log',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-12-02 02:54:10 -08:00
|
|
|
default: {},
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Parameters',
|
|
|
|
name: 'parameters',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
placeholder: 'Add Parameter',
|
|
|
|
required: false,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Alert Attributes',
|
|
|
|
name: 'values',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Title',
|
|
|
|
name: 'title',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
description: 'Title of the alert',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Description',
|
|
|
|
name: 'description',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
description: 'Description of the alert',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Severity',
|
|
|
|
name: 'severity',
|
|
|
|
type: 'options',
|
|
|
|
default: 2,
|
2020-12-02 02:54:10 -08:00
|
|
|
options: [
|
2020-12-02 02:24:25 -08:00
|
|
|
{
|
|
|
|
name: 'Low',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 1,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Medium',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 2,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'High',
|
|
|
|
value: 3,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
description: 'Severity of the case. Default=Medium',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Date',
|
|
|
|
name: 'date',
|
|
|
|
type: 'dateTime',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Date and time when the alert was raised default=now.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Tags',
|
|
|
|
name: 'tags',
|
|
|
|
type: 'string',
|
2020-12-02 02:54:10 -08:00
|
|
|
placeholder: 'tag1,tag2,...',
|
|
|
|
default: '',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'TLP',
|
|
|
|
name: 'tlp',
|
|
|
|
type: 'options',
|
|
|
|
default: 2,
|
|
|
|
options: [
|
|
|
|
{
|
2020-12-02 02:54:10 -08:00
|
|
|
name: 'White',
|
|
|
|
value: TLP.white,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
2020-12-02 02:54:10 -08:00
|
|
|
name: 'Green',
|
|
|
|
value: TLP.green,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
2020-12-02 02:54:10 -08:00
|
|
|
name: 'Amber',
|
|
|
|
value: TLP.amber,
|
|
|
|
}, {
|
|
|
|
name: 'Red',
|
|
|
|
value: TLP.red,
|
2020-12-02 04:11:01 -08:00
|
|
|
},
|
2020-12-02 02:24:25 -08:00
|
|
|
],
|
|
|
|
description: 'Traffict Light Protocol (TLP). Default=Amber',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Status',
|
|
|
|
name: 'status',
|
|
|
|
type: 'options',
|
|
|
|
default: 'New',
|
2020-12-02 02:54:10 -08:00
|
|
|
options: [
|
2020-12-02 02:24:25 -08:00
|
|
|
{
|
|
|
|
name: 'New',
|
|
|
|
value: 'New',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Updated',
|
|
|
|
value: 'Updated',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Ignored',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'Ignored',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Imported',
|
|
|
|
value: 'Imported',
|
|
|
|
},
|
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Status of the alert. Default=New',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Type',
|
|
|
|
name: 'type',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Type of the alert.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Source',
|
|
|
|
name: 'source',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Source of the alert.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'SourceRef',
|
|
|
|
name: 'sourceRef',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
description: 'Source reference of the alert',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Follow',
|
|
|
|
name: 'follow',
|
|
|
|
type: 'boolean',
|
2020-12-02 02:54:10 -08:00
|
|
|
default: false,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Artifacts',
|
|
|
|
name: 'artifacts',
|
|
|
|
type: 'fixedCollection',
|
2020-12-02 02:54:10 -08:00
|
|
|
placeholder: 'Add an artifact',
|
2020-12-02 02:24:25 -08:00
|
|
|
required: false,
|
|
|
|
typeOptions: {
|
|
|
|
multipleValues: true,
|
|
|
|
multipleValueButtonText: 'Add an Artifact',
|
|
|
|
},
|
|
|
|
default: [],
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Artifact',
|
|
|
|
name: 'artifactValues',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Data Type',
|
|
|
|
name: 'dataType',
|
|
|
|
type: 'options',
|
|
|
|
default: '',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Domain',
|
|
|
|
value: 'domain',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'File',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'file',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Filename',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'filename',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Fqdn',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'fqdn',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Hash',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'hash',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'IP',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'ip',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Mail',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'mail',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Mail Subject',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'mail_subject',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Other',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'other',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Regexp',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'regexp',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Registry',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'registry',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Uri Path',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'uri_path',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'URL',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'url',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'User Agent',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'user-agent',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Data',
|
|
|
|
name: 'data',
|
|
|
|
type: 'string',
|
|
|
|
displayOptions: {
|
|
|
|
hide: {
|
|
|
|
dataType: [
|
|
|
|
'file',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Binary Property',
|
|
|
|
name: 'binaryProperty',
|
|
|
|
type: 'string',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
dataType: [
|
|
|
|
'file',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
default: 'data',
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Message',
|
|
|
|
name: 'message',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Tags',
|
|
|
|
name: 'tags',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
description: '',
|
|
|
|
},
|
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
},
|
|
|
|
],
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
2020-12-02 02:54:10 -08:00
|
|
|
],
|
|
|
|
},
|
2020-12-02 02:24:25 -08:00
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
typeOptions: {
|
|
|
|
loadOptionsDependsOn: [
|
2020-12-02 02:24:25 -08:00
|
|
|
'entityType',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
jsonObject: [
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'alert',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
responder: [
|
|
|
|
'',
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'',
|
|
|
|
'case',
|
|
|
|
'case_artifact',
|
|
|
|
'case_task',
|
|
|
|
'case_task_log',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Parameters',
|
|
|
|
name: 'parameters',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
placeholder: 'Add Parameter',
|
|
|
|
required: false,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Observable Attributes',
|
|
|
|
name: 'values',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'DataType',
|
|
|
|
name: 'dataType',
|
|
|
|
type: 'options',
|
|
|
|
default: '',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Domain',
|
|
|
|
value: 'domain',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'File',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'file',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Filename',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'filename',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Fqdn',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'fqdn',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Hash',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'hash',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'IP',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'ip',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Mail',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'mail',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Mail Subject',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'mail_subject',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Other',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'other',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Regexp',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'regexp',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Registry',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'registry',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Uri Path',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'uri_path',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'URL',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'url',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'User Agent',
|
2020-12-02 02:54:10 -08:00
|
|
|
value: 'user-agent',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Data',
|
|
|
|
name: 'data',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
displayOptions: {
|
|
|
|
hide: {
|
|
|
|
dataType: [
|
2020-12-02 02:24:25 -08:00
|
|
|
'file',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Binary Property',
|
|
|
|
name: 'binaryPropertyName',
|
|
|
|
type: 'string',
|
|
|
|
default: 'data',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2020-12-02 02:54:10 -08:00
|
|
|
dataType: [
|
2020-12-02 02:24:25 -08:00
|
|
|
'file',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Name of the binary property which contains the attachement data.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Message',
|
|
|
|
name: 'message',
|
|
|
|
type: 'string',
|
2020-12-02 02:54:10 -08:00
|
|
|
default: '',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Start Date',
|
|
|
|
name: 'startDate',
|
|
|
|
type: 'dateTime',
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Date and time of the begin of the case default=now.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'TLP',
|
|
|
|
name: 'tlp',
|
|
|
|
type: 'options',
|
|
|
|
default: 2,
|
|
|
|
options: [
|
|
|
|
{
|
2020-12-02 02:54:10 -08:00
|
|
|
name: 'White',
|
|
|
|
value: TLP.white,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
2020-12-02 02:54:10 -08:00
|
|
|
name: 'Green',
|
|
|
|
value: TLP.green,
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
2020-12-02 02:54:10 -08:00
|
|
|
name: 'Amber',
|
|
|
|
value: TLP.amber,
|
|
|
|
}, {
|
|
|
|
name: 'Red',
|
|
|
|
value: TLP.red,
|
|
|
|
},
|
2020-12-02 02:24:25 -08:00
|
|
|
],
|
|
|
|
description: 'Traffict Light Protocol (TLP). Default=Amber',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'IOC',
|
|
|
|
name: 'ioc',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Indicates if the observable is an IOC (Indicator of compromise).',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Status',
|
|
|
|
name: 'status',
|
|
|
|
type: 'options',
|
|
|
|
default: '',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Ok',
|
|
|
|
value: 'Ok',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Deleted',
|
|
|
|
value: 'Deleted',
|
|
|
|
},
|
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Status of the observable (Ok or Deleted) default=Ok.',
|
|
|
|
},
|
2020-12-02 02:24:25 -08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
typeOptions: {
|
|
|
|
loadOptionsDependsOn: [
|
2020-12-02 02:24:25 -08:00
|
|
|
'entityType',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
jsonObject: [
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'case_artifact',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
responder: [
|
|
|
|
'',
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'',
|
|
|
|
'case',
|
|
|
|
'alert',
|
|
|
|
'case_task',
|
|
|
|
'case_task_log',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Parameters',
|
|
|
|
name: 'parameters',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
placeholder: 'Add Parameter',
|
|
|
|
required: false,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Task Attributes',
|
|
|
|
name: 'values',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Title',
|
|
|
|
name: 'title',
|
|
|
|
type: 'string',
|
|
|
|
required: false,
|
|
|
|
default: '',
|
2020-12-02 02:54:10 -08:00
|
|
|
description: 'Title of the task.',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Status',
|
|
|
|
name: 'status',
|
|
|
|
type: 'options',
|
|
|
|
default: 'Waiting',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Waiting',
|
|
|
|
value: 'Waiting',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'InProgress',
|
|
|
|
value: 'InProgress',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Completed',
|
|
|
|
value: 'Completed',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Cancel',
|
|
|
|
value: 'Cancel',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Flag',
|
|
|
|
name: 'flag',
|
|
|
|
type: 'boolean',
|
2020-12-02 02:54:10 -08:00
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-12-02 02:24:25 -08:00
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
typeOptions: {
|
|
|
|
loadOptionsDependsOn: [
|
2020-12-02 02:24:25 -08:00
|
|
|
'entityType',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
jsonObject: [
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'case_task',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
responder: [
|
|
|
|
'',
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'',
|
|
|
|
'case',
|
|
|
|
'alert',
|
|
|
|
'case_artifact',
|
|
|
|
'case_task_log',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Parameters',
|
|
|
|
name: 'parameters',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
placeholder: 'Add Parameter',
|
|
|
|
required: false,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Log Attributes',
|
|
|
|
name: 'values',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Message',
|
|
|
|
name: 'message',
|
|
|
|
type: 'string',
|
2020-12-02 02:54:10 -08:00
|
|
|
default: '',
|
2020-12-02 02:24:25 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Start Date',
|
|
|
|
name: 'startDate',
|
|
|
|
type: 'dateTime',
|
|
|
|
default: '',
|
|
|
|
description: 'Date and time of the begin of the case default=now',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Status',
|
|
|
|
name: 'status',
|
|
|
|
type: 'options',
|
|
|
|
required: true,
|
|
|
|
default: '',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Ok',
|
|
|
|
value: 'Ok',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Deleted',
|
|
|
|
value: 'Deleted',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2020-12-02 02:54:10 -08:00
|
|
|
typeOptions: {
|
|
|
|
loadOptionsDependsOn: [
|
2020-12-02 02:24:25 -08:00
|
|
|
'entityType',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'responder',
|
|
|
|
],
|
|
|
|
jsonObject: [
|
|
|
|
false,
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'case_task_log',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
hide: {
|
|
|
|
responder: [
|
|
|
|
'',
|
|
|
|
],
|
|
|
|
entityType: [
|
|
|
|
'',
|
|
|
|
'case',
|
|
|
|
'alert',
|
|
|
|
'case_artifact',
|
|
|
|
'case_task',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
},
|
2020-12-02 02:54:10 -08:00
|
|
|
];
|