Skip to content

Commit fb564f3

Browse files
content-botandrew-paloaltojohnnywilkesMichaelYochpazkobymeir
authored andcommitted
Xpanse api updates (#29464)
* Xpanse api updates (#29339) * improve classifier setup * release notes * release notes style * remove field applicability * Apply suggestions from code review Co-authored-by: johnnywilkes <[email protected]> --------- Co-authored-by: johnnywilkes <[email protected]> * Fix missing dot * Revert "Bump markdownlint from 0.26.2 to 0.30.0 (#28899)" (#29481) This reverts commit e169068. * fix using deprecated -vvv argument when calling the demisto sdk (#29470) Co-authored-by: kobymeir <[email protected]> * Update Docker Image To demisto/oci (#29488) * Updated Metadata Of Pack OracleCloudInfrastructure * Added release notes to pack OracleCloudInfrastructure * Packs/OracleCloudInfrastructure/Integrations/OracleCloudInfrastructureEventCollector/OracleCloudInfrastructureEventCollector.yml Docker image update * Update Docker Image To demisto/taxii2 (#29490) * Updated Metadata Of Pack FeedUnit42v2 * Added release notes to pack FeedUnit42v2 * Packs/FeedUnit42v2/Integrations/FeedUnit42v2/FeedUnit42v2.yml Docker image update * Update Docker Image To demisto/netmiko (#29501) * Updated Metadata Of Pack Netmiko * Added release notes to pack Netmiko * Packs/Netmiko/Integrations/Netmiko/Netmiko.yml Docker image update * Deprecating block url generic (#29453) * Release Notes * enhance * RN * validation fix * fix * Bump pack from version CommonPlaybooks to 2.5.0. * fix * fix * fix --------- Co-authored-by: Content Bot <[email protected]> * Fix dnstwistTest TPB (#29455) * Change domain argument in task 6 * Update task 6 name * Test different domain argument due to timeout * Fix Get Original Email - Microsoft Graph Mail - test TPB (#29467) * Update MessageID and SHA256 values in the TPB * Update secrets-ignore * New features for emails (#29400) * New features for emails (#28916) * New features for emails * Fix validations * Fix lint and test * Increase coverage and fix validation * Increase test coverage * Manual report condition * Request changes * Fixes request changes * Fix last fetch * Skip event with last fetch time * Remove sensitive data * Change args from simple to complex format * Update notification endpoint * Minor fixes * Fix layout field * Fix condition for manual alerts * Update docker * Add button to get campaign result and fix scan info command output * Update release notes * fix Rn * fix rn * fix rn * remove an empty line * add a "." for validation to pass * one more period --------- Co-authored-by: Christian Gutierrez <[email protected]> Co-authored-by: Yehuda <[email protected]> * Security scans (#25915) * added as a new build flow * reverted gitlab * changed ref to master --------- Co-authored-by: Andrew Scott <[email protected]> Co-authored-by: johnnywilkes <[email protected]> Co-authored-by: Michael Yochpaz <[email protected]> Co-authored-by: Koby Meir <[email protected]> Co-authored-by: kobymeir <[email protected]> Co-authored-by: ArikDay <[email protected]> Co-authored-by: Content Bot <[email protected]> Co-authored-by: samuelFain <[email protected]> Co-authored-by: Christian Gutierrez <[email protected]> Co-authored-by: Yehuda <[email protected]> Co-authored-by: Yuval Cohen <[email protected]>
1 parent 8cf3bcd commit fb564f3

File tree

6 files changed

+56
-21
lines changed

6 files changed

+56
-21
lines changed

Packs/CortexXpanse/Classifiers/classifier-Xpanse_-_Incoming_Mapper.json

+28-16
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"Xpanse Alert ID": {
1010
"complex": {
1111
"filters": [],
12-
"root": "external_id",
12+
"root": "alert_id",
1313
"transformers": []
1414
}
1515
},
@@ -78,19 +78,10 @@
7878
"Xpanse IP": {
7979
"complex": {
8080
"filters": [],
81-
"root": "action_remote_ip",
81+
"root": "ipv4_addresses",
8282
"transformers": [
8383
{
84-
"args": {
85-
"applyIfEmpty": {},
86-
"defaultValue": {
87-
"isContext": true,
88-
"value": {
89-
"simple": "ipv4_addresses[0]"
90-
}
91-
}
92-
},
93-
"operator": "SetIfEmpty"
84+
"operator": "FirstArrayElement"
9485
}
9586
]
9687
}
@@ -175,14 +166,35 @@
175166
"dbot_classification_incident_type_all": {
176167
"dontMapEventToLabels": false,
177168
"internalMapping": {
178-
"Tags": {
179-
"complex": {
169+
"Description": {
170+
"simple": "description"
171+
},
172+
"Destination IP": {
173+
"complex": {
174+
"filters": [],
175+
"root": "ipv4_addresses",
176+
"transformers": [
177+
{
178+
"operator": "FirstArrayElement"
179+
}
180+
]
181+
}
182+
},
183+
"Protocol": {
184+
"complex": {
185+
"filters": [],
186+
"root": "port_protocol",
187+
"transformers": []
188+
}
189+
},
190+
"Tags": {
191+
"complex": {
180192
"filters": [],
181193
"root": "tags",
182194
"transformers": []
183195
}
184-
}
185-
}
196+
}
197+
}
186198
}
187199
},
188200
"name": "Xpanse - Incoming Mapper",

Packs/CortexXpanse/IncidentFields/incidentfield-Xpanse_Tags.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"threshold": 72,
2323
"type": "shortText",
2424
"unmapped": false,
25-
"unsearchable": true,
25+
"unsearchable": false,
2626
"useAsKpi": true,
2727
"version": -1,
2828
"fromVersion": "6.5.0"

Packs/CortexXpanse/IncidentFields/incidentfields-Xpanse_Provider.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
"group": 0,
2020
"hidden": false,
2121
"openEnded": false,
22-
"associatedToAll": true,
22+
"associatedToAll": false,
23+
"associatedTypes": [
24+
"Xpanse Alert"
25+
],
2326
"unmapped": false,
24-
"unsearchable": true,
27+
"unsearchable": false,
2528
"caseInsensitive": true,
2629
"sla": 0,
2730
"threshold": 72,

Packs/CortexXpanse/Integrations/CortexXpanse/CortexXpanse.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ script:
399399
- resolved_contested_asset
400400
- resolved_remediated_automatically
401401
- resolved
402-
- description: Comma-separated list of strings of the business units
402+
- description: Comma-separated list of strings of the business units.
403403
name: business_units_list
404404
- description: A date in the format 2019-12-31T23:59:00. Only incidents that were created on or before the specified date/time will be retrieved.
405405
name: lte_creation_time
@@ -686,6 +686,8 @@ script:
686686
script: ''
687687
subtype: python3
688688
type: python
689+
defaultmapperin: Xpanse - Incoming Mapper
690+
defaultclassifier: Xpanse - Classifier
689691
fromversion: 6.5.0
690692
tests:
691693
- CortexXpanse_Test
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
#### Integrations
3+
##### Cortex Xpanse
4+
5+
- Updated the default classifier and incoming mapper for the integration.
6+
7+
#### Mappers
8+
##### Xpanse - Incoming Mapper
9+
10+
- Updated the targets for several fields for improved accuracy and formatting.
11+
12+
#### Incident Fields
13+
##### Xpanse Tags
14+
Updated the field to be searchable.
15+
16+
##### Xpanse Provider
17+
Updated the field to be searchable and to not be scoped to all incident types.
18+

Packs/CortexXpanse/pack_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Cortex Xpanse",
33
"description": "Content for working with Attack Surface Management (ASM).",
44
"support": "xsoar",
5-
"currentVersion": "1.0.9",
5+
"currentVersion": "1.0.10",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)