Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix modify edl playbook #35338

Merged
merged 13 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 48 additions & 35 deletions Packs/EDL/Playbooks/Modify_EDL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ tasks:
isautoswitchedtoquietmode: false
"4":
id: "4"
taskid: 64f17c95-4126-441f-8e9f-c15bdb612756
taskid: 2a97257f-f9bb-40f2-8d6f-b476961da61f
type: regular
task:
id: 64f17c95-4126-441f-8e9f-c15bdb612756
id: 2a97257f-f9bb-40f2-8d6f-b476961da61f
version: -1
name: Save input list of indicators as array (Split transformer)
description: Set a value in context under the key you entered.
Expand All @@ -99,7 +99,7 @@ tasks:
value:
complex:
root: incident
accessor: edlindicatorslist
accessor: genericexportindicatorsserviceindicatorslist
transformers:
- operator: StripChars
args:
Expand Down Expand Up @@ -182,9 +182,9 @@ tasks:
- "26"
scriptarguments:
tags:
simple: ${incident.edltag}
simple: ${incident.genericexportindicatorsservicetag}
type:
simple: ${incident.edlindicatortype}
simple: ${incident.genericexportindicatorsserviceindicatortype}
value:
complex:
root: InputIndicatorsArray
Expand Down Expand Up @@ -263,7 +263,7 @@ tasks:
field:
simple: tags
fieldValue:
simple: ${incident.edltag}
simple: ${incident.genericexportindicatorsservicetag}
indicatorsValues:
complex:
root: InputIndicatorsArray
Expand Down Expand Up @@ -299,7 +299,8 @@ tasks:
id: 0c815fb4-5ee4-4f72-8c83-6e559d73928a
version: -1
name: Are there new indicators to create?
description: Check if there are new indicators to create, which do not already exist in the Cortex XSOAR database.
description: Check if there are new indicators to create, which do not already
exist in the Cortex XSOAR database.
type: condition
iscommand: false
brand: ""
Expand Down Expand Up @@ -351,7 +352,8 @@ tasks:
id: 63c89c44-1914-427f-8590-328c861ba7ae
version: -1
name: Are there pre-existing indicators to update?
description: Check if there are indicators that already exist in the Cortex XSOAR database. IF so, the tag needs to be added to add them to the EDL.
description: Check if there are indicators that already exist in the Cortex
XSOAR database. IF so, the tag needs to be added to add them to the EDL.
type: condition
iscommand: false
brand: ""
Expand Down Expand Up @@ -397,10 +399,10 @@ tasks:
isautoswitchedtoquietmode: false
"26":
id: "26"
taskid: b61606d4-3222-422c-8d5e-c05416c729bb
taskid: e58007a8-290f-43b3-85f2-280a16526440
type: regular
task:
id: b61606d4-3222-422c-8d5e-c05416c729bb
id: e58007a8-290f-43b3-85f2-280a16526440
version: -1
name: Close incident
description: commands.local.cmd.close.inv
Expand Down Expand Up @@ -428,13 +430,14 @@ tasks:
isautoswitchedtoquietmode: false
"27":
id: "27"
taskid: 2b108cd4-dd69-4f2f-8e94-fa56238d6791
taskid: 8ff5b7b0-f350-47dc-85ae-a8674691f6d0
type: condition
task:
id: 2b108cd4-dd69-4f2f-8e94-fa56238d6791
id: 8ff5b7b0-f350-47dc-85ae-a8674691f6d0
version: -1
name: Adding or removing indicators?
description: Check whether to add or remove indicators from the EDL, according to the value of the `EDL Action`input field.
description: Check whether to add or remove indicators from the EDL, according
to the value of the `EDL Action`input field.
type: condition
iscommand: false
brand: ""
Expand All @@ -450,7 +453,7 @@ tasks:
- - operator: isEqualString
left:
value:
simple: incident.edlaction
simple: incident.genericexportindicatorsserviceaction
iscontext: true
right:
value:
Expand All @@ -460,7 +463,7 @@ tasks:
- - operator: isEqualString
left:
value:
simple: incident.edlaction
simple: incident.genericexportindicatorsserviceaction
iscontext: true
right:
value:
Expand Down Expand Up @@ -511,10 +514,10 @@ tasks:
isautoswitchedtoquietmode: false
"29":
id: "29"
taskid: de93e06f-1ebe-48e2-84a2-2637ede4f7c5
taskid: ffc0eb39-23e0-48ba-87be-37c73242c37e
type: regular
task:
id: de93e06f-1ebe-48e2-84a2-2637ede4f7c5
id: ffc0eb39-23e0-48ba-87be-37c73242c37e
version: -1
name: Remove EDL tag from indicators
description: commands.local.cmd.remove.values.to.indicator.multi.select.field
Expand All @@ -529,9 +532,7 @@ tasks:
field:
simple: tags
fieldValue:
complex:
root: incident
accessor: edltag
simple: ${incident.genericexportindicatorsservicetag}
indicatorsValues:
simple: ${InputIndicatorsArray}
separatecontext: false
Expand All @@ -551,13 +552,14 @@ tasks:
isautoswitchedtoquietmode: false
"30":
id: "30"
taskid: cb238dc6-b905-4e82-844b-42c29320cf24
taskid: b4dc98ea-e45d-412a-899a-b4f454ff33bc
type: condition
task:
id: cb238dc6-b905-4e82-844b-42c29320cf24
id: b4dc98ea-e45d-412a-899a-b4f454ff33bc
version: -1
name: Playbook inputs provided instead of incident fields?
description: Check if playbook is being run as a sub-playbook. (Check if values were passed as playbook inputs instead of incident fields.)
description: Check if playbook is being run as a sub-playbook. (Check if values
were passed as playbook inputs instead of incident fields.)
type: condition
iscommand: false
brand: ""
Expand Down Expand Up @@ -590,17 +592,17 @@ tasks:
- - operator: isEmpty
left:
value:
simple: incident.edlaction
simple: incident.genericexportindicatorsserviceaction
iscontext: true
- - operator: isEmpty
left:
value:
simple: incident.edltag
simple: incident.genericexportindicatorsservicetag
iscontext: true
- - operator: isEmpty
left:
value:
simple: incident.edlindicatorslist
simple: incident.genericexportindicatorsserviceindicatorslist
iscontext: true
view: |-
{
Expand All @@ -618,10 +620,10 @@ tasks:
isautoswitchedtoquietmode: false
"31":
id: "31"
taskid: 4dccfd34-d082-419b-86df-5ffd31660d0d
taskid: 3680f381-35df-4f13-850f-5f178d4f5499
type: regular
task:
id: 4dccfd34-d082-419b-86df-5ffd31660d0d
id: 3680f381-35df-4f13-850f-5f178d4f5499
version: -1
name: Set inputs to indicator fields
description: commands.local.cmd.set.incident
Expand All @@ -648,6 +650,14 @@ tasks:
simple: ${inputs.EDL Indicator Type}
edltag:
simple: ${inputs.EDL Tag}
genericexportindicatorsserviceaction:
simple: ${inputs.EDL Action}
genericexportindicatorsserviceindicatorslist:
simple: ${inputs.EDL Indicators List}
genericexportindicatorsserviceindicatortype:
simple: ${inputs.EDL Indicator Type}
genericexportindicatorsservicetag:
simple: ${inputs.EDL Tag}
separatecontext: false
view: |-
{
Expand All @@ -663,6 +673,7 @@ tasks:
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
system: true
view: |-
{
"linkLabelsPosition": {},
Expand All @@ -680,23 +691,25 @@ inputs:
value: {}
required: true
description: 'Action to perform on EDL. Possible values: "Add", "Remove".'
playbookInputQuery:
playbookInputQuery: null
- key: EDL Tag
value: {}
required: true
description: Tag that adds indicators to EDL. Must match tag value used in EDL query in the instance configuration.
playbookInputQuery:
description: Tag that adds indicators to EDL. Must match tag value used in EDL query
in the instance configuration.
playbookInputQuery: null
- key: EDL Indicator Type
value: {}
required: false
description: Required only if adding to EDL. Type of indicators to add to EDL.
playbookInputQuery:
playbookInputQuery: null
- key: EDL Indicators List
value: {}
required: true
description: List of IOCs to add to or remove from EDL (according to value of EDL Action). May be newline or comma-delimited.
playbookInputQuery:
description: List of IOCs to add to or remove from EDL (according to value of EDL
Action). May be newline or comma-delimited.
playbookInputQuery: null
outputs: []
tests:
- No tests (auto formatted)
fromversion: 6.6.0
fromversion: 6.6.0
6 changes: 6 additions & 0 deletions Packs/EDL/ReleaseNotes/3_3_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Playbooks

##### Modify EDL

- Fixed an issue where the playbook failed due to missing inputs.
2 changes: 1 addition & 1 deletion Packs/EDL/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Generic Export Indicators Service",
"description": "Use this pack to generate a list based on your Threat Intel Library, and export it to ANY other product in your network, such as your firewall, agent or SIEM. This pack is built for ongoing distribution of indicators from XSOAR to other products in the network, by creating an endpoint with a list of indicators that can be pulled by external vendors.",
"support": "xsoar",
"currentVersion": "3.3.2",
"currentVersion": "3.3.3",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Loading