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

Update Docker Image To demisto/python3 #28000

Merged
merged 61 commits into from Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
b5a1145
Updated Metadata Of Pack Campaign
content-bot Jul 9, 2023
6942272
Added release notes to pack Campaign
content-bot Jul 9, 2023
d516534
Packs/Campaign/Scripts/ShowCampaignHighestSeverity/ShowCampaignHighes…
content-bot Jul 9, 2023
1ed2a59
Packs/Campaign/Scripts/script-ShowNumberOfCampaignIncidents.yml Docke…
content-bot Jul 9, 2023
0584a6b
Packs/Campaign/Scripts/script-ShowCampaignUniqueSenders.yml Docker im…
content-bot Jul 9, 2023
fcfbff8
Packs/Campaign/Scripts/ShowCampaignSimilarityRange/ShowCampaignSimila…
content-bot Jul 9, 2023
15991a1
Packs/Campaign/Scripts/GetCampaignLowSimilarityIncidentsInfo/GetCampa…
content-bot Jul 9, 2023
238f632
Packs/Campaign/Scripts/GetCampaignIncidentsIdsAsOptions/GetCampaignIn…
content-bot Jul 9, 2023
aaefc82
Packs/Campaign/Scripts/ShowCampaignIncidentsOwners/ShowCampaignIncide…
content-bot Jul 9, 2023
83e80f3
Packs/Campaign/Scripts/GetSendEmailInstances/GetSendEmailInstances.ym…
content-bot Jul 9, 2023
0908b59
Packs/Campaign/Scripts/ShowCampaignSenders/ShowCampaignSenders.yml Do…
content-bot Jul 9, 2023
d9c8a4d
Packs/Campaign/Scripts/ShowCampaignRecipients/ShowCampaignRecipients.…
content-bot Jul 9, 2023
8b1ee56
Packs/Campaign/Scripts/GetCampaignLowerSimilarityIncidentsIdsAsOption…
content-bot Jul 9, 2023
baaaaf8
Packs/Campaign/Scripts/ShowCampaignLastIncidentOccurred/ShowCampaignL…
content-bot Jul 9, 2023
b24b44d
Packs/Campaign/Scripts/SendEmailToCampaignRecipients/SendEmailToCampa…
content-bot Jul 9, 2023
55a8581
Packs/Campaign/Scripts/PerformActionOnCampaignIncidents/PerformAction…
content-bot Jul 9, 2023
360a995
Updated Metadata Of Pack PaloAltoNetworks_IoT3rdParty
content-bot Jul 9, 2023
4426554
Added release notes to pack PaloAltoNetworks_IoT3rdParty
content-bot Jul 9, 2023
71a6c03
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/GetCiscoISEActiveInstance/…
content-bot Jul 9, 2023
5b189d1
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/SendPANWIoTDevicesToCiscoI…
content-bot Jul 9, 2023
7d6075d
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/GeneratePANWIoTDeviceTable…
content-bot Jul 9, 2023
22bbeea
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/SendAllPANWIoTAssetsToSIEM…
content-bot Jul 9, 2023
6273cb1
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/SendAllPANWIoTDevicesToSer…
content-bot Jul 9, 2023
bd085bb
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/SendAllPANWIoTDevicesToCis…
content-bot Jul 9, 2023
5bd4c96
Updated Metadata Of Pack XSOAR-SimpleDevToProd
content-bot Jul 9, 2023
e97fec4
Added release notes to pack XSOAR-SimpleDevToProd
content-bot Jul 9, 2023
6831ea4
Packs/XSOAR-SimpleDevToProd/Scripts/IsDemistoRestAPIInstanceAvailable…
content-bot Jul 9, 2023
1e5d8f0
Packs/XSOAR-SimpleDevToProd/Scripts/CustomContentBundleWizardry/Custo…
content-bot Jul 9, 2023
a7c3639
Updated Metadata Of Pack CommonScripts
content-bot Jul 9, 2023
05f323c
Added release notes to pack CommonScripts
content-bot Jul 9, 2023
c02df78
Packs/CommonScripts/Scripts/ScheduleGenericPolling/ScheduleGenericPol…
content-bot Jul 9, 2023
cf272e4
Packs/CommonScripts/Scripts/ChangeContext/ChangeContext.yml Docker im…
content-bot Jul 9, 2023
8eaa4d1
Packs/CommonScripts/Scripts/MarkAsNoteByTag/MarkAsNoteByTag.yml Docke…
content-bot Jul 9, 2023
3e310d0
Packs/CommonScripts/Scripts/ExportIncidentsToCSV/ExportIncidentsToCSV…
content-bot Jul 9, 2023
26160ad
Packs/CommonScripts/Scripts/EmailReputation/EmailReputation.yml Docke…
content-bot Jul 9, 2023
17073ba
Packs/CommonScripts/Scripts/OnionURLReputation/OnionURLReputation.yml…
content-bot Jul 9, 2023
eb39035
Packs/CommonScripts/Scripts/FileCreateAndUploadV2/FileCreateAndUpload…
content-bot Jul 9, 2023
7f233a1
Packs/CommonScripts/Scripts/SetDateField/SetDateField.yml Docker imag…
content-bot Jul 9, 2023
dcecdbc
Packs/CommonScripts/Scripts/GetServerURL/GetServerURL.yml Docker imag…
content-bot Jul 9, 2023
8fbfb5e
Packs/CommonScripts/Scripts/ShowLocationOnMap/ShowLocationOnMap.yml D…
content-bot Jul 9, 2023
f3d4e1b
Packs/CommonScripts/Scripts/ExportIndicatorsToCSV/ExportIndicatorsToC…
content-bot Jul 9, 2023
e287432
Packs/CommonScripts/Scripts/SetByIncidentId/SetByIncidentId.yml Docke…
content-bot Jul 9, 2023
76fc899
Packs/CommonScripts/Scripts/CheckContextValue/CheckContextValue.yml D…
content-bot Jul 9, 2023
05ef059
Packs/CommonScripts/Scripts/GetEnabledInstances/GetEnabledInstances.y…
content-bot Jul 9, 2023
19faa28
Packs/CommonScripts/Scripts/FileReputation/FileReputation.yml Docker …
content-bot Jul 9, 2023
6272ac3
Packs/CommonScripts/Scripts/SSDeepReputation/SSDeepReputation.yml Doc…
content-bot Jul 9, 2023
a967bdd
Packs/CommonScripts/Scripts/ConvertCountryCodeCountryName/ConvertCoun…
content-bot Jul 9, 2023
c4f7d08
Packs/CommonScripts/Scripts/AddDBotScoreToContext/AddDBotScoreToConte…
content-bot Jul 9, 2023
c6e0e36
Packs/CommonScripts/Scripts/script-CloseInvestigationAsDuplicate.yml …
content-bot Jul 9, 2023
82e6898
Packs/CommonScripts/Scripts/IsUrlPartOfDomain/IsUrlPartOfDomain.yml D…
content-bot Jul 9, 2023
98050d2
Packs/CommonScripts/Scripts/HTTPListRedirects/HTTPListRedirects.yml D…
content-bot Jul 9, 2023
a912e57
Packs/CommonScripts/Scripts/ServerLogs/ServerLogs.yml Docker image up…
content-bot Jul 9, 2023
c988f45
Packs/CommonScripts/Scripts/CompareIncidentsLabels/CompareIncidentsLa…
content-bot Jul 9, 2023
f07a7e6
Packs/CommonScripts/Scripts/PrintRaw/PrintRaw.yml Docker image update
content-bot Jul 9, 2023
958b419
Packs/CommonScripts/Scripts/DisplayHTMLWithImages/DisplayHTMLWithImag…
content-bot Jul 9, 2023
81b802f
Packs/CommonScripts/Scripts/SCPPullFiles/SCPPullFiles.yml Docker imag…
content-bot Jul 9, 2023
4741890
Packs/CommonScripts/Scripts/displayUtilitiesResults/displayUtilitiesR…
content-bot Jul 9, 2023
b637b60
Packs/CommonScripts/Scripts/GenerateSummaryReportButton/GenerateSumma…
content-bot Jul 9, 2023
ef266a6
Fixed validation
Shellyber Jul 9, 2023
a7d7f7a
Running pre-commit after split
Shellyber Jul 9, 2023
d13c82d
Fixed last mypy
Shellyber Jul 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions Packs/Campaign/.pack-ignore
Expand Up @@ -21,7 +21,3 @@ ignore=RM109,BA124

[file:ShowCampaignUniqueRecipients.yml]
ignore=BA124

[file:ShowCampaignIncidentsOwners.yml]
ignore=RM109

30 changes: 30 additions & 0 deletions Packs/Campaign/ReleaseNotes/3_3_5.md
@@ -0,0 +1,30 @@

#### Scripts
##### ShowCampaignHighestSeverity
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### ShowNumberOfCampaignIncidents
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### ShowCampaignUniqueSenders
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### ShowCampaignSimilarityRange
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### GetCampaignLowSimilarityIncidentsInfo
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### GetCampaignIncidentsIdsAsOptions
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### ShowCampaignIncidentsOwners
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### GetSendEmailInstances
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### ShowCampaignSenders
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### ShowCampaignRecipients
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### GetCampaignLowerSimilarityIncidentsIdsAsOptions
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### ShowCampaignLastIncidentOccurred
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### SendEmailToCampaignRecipients
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
##### PerformActionOnCampaignIncidents
- Updated the Docker image to: *demisto/python3:3.10.12.63474*.
@@ -1,7 +1,7 @@
commonfields:
id: GetCampaignIncidentsIdsAsOptions
version: -1
dockerimage: demisto/python3:3.10.10.48392
dockerimage: demisto/python3:3.10.12.63474
enabled: true
name: GetCampaignIncidentsIdsAsOptions
runas: DBotWeakRole
Expand Down
Expand Up @@ -7,7 +7,7 @@ comment: |-
commonfields:
id: GetCampaignLowSimilarityIncidentsInfo
version: -1
dockerimage: demisto/python3:3.10.10.48392
dockerimage: demisto/python3:3.10.12.63474
enabled: true
name: GetCampaignLowSimilarityIncidentsInfo
script: ''
Expand Down
Expand Up @@ -10,7 +10,7 @@ comment: Gets the IDs of incidents with lower similarity. Used to fill the optio
enabled: true
scripttarget: 0
subtype: python3
dockerimage: demisto/python3:3.10.10.48392
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
fromversion: 5.5.0
tests:
Expand Down
@@ -1,7 +1,7 @@
commonfields:
id: GetSendEmailInstances
version: -1
dockerimage: demisto/python3:3.9.9.25564
dockerimage: demisto/python3:3.10.12.63474
enabled: true
name: GetSendEmailInstances
runas: DBotWeakRole
Expand Down
21 changes: 21 additions & 0 deletions Packs/Campaign/Scripts/GetSendEmailInstances/README.md
@@ -0,0 +1,21 @@
Gets all the enabled instances of integrations that have a send-mail command, in the output format of a single select field.

## Script Data

---

| **Name** | **Description** |
| --- | --- |
| Script Type | python3 |
| Tags | field-display |
| Cortex XSOAR Version | 6.1.0 |

## Inputs

---
There are no inputs for this script.

## Outputs

---
There are no outputs for this script.
Expand Up @@ -15,7 +15,7 @@ comment: |-
commonfields:
id: PerformActionOnCampaignIncidents
version: -1
dockerimage: demisto/python3:3.10.10.48392
dockerimage: demisto/python3:3.10.12.63474
enabled: true
name: PerformActionOnCampaignIncidents
script: ''
Expand Down
@@ -1,7 +1,7 @@
commonfields:
id: SendEmailToCampaignRecipients
version: -1
dockerimage: demisto/python3:3.10.10.48392
dockerimage: demisto/python3:3.10.12.63474
enabled: true
name: SendEmailToCampaignRecipients
runas: DBotWeakRole
Expand Down
21 changes: 21 additions & 0 deletions Packs/Campaign/Scripts/ShowCampaignHighestSeverity/README.md
@@ -0,0 +1,21 @@
Displays the highest severity among the incidents that make up the phishing campaign.

## Script Data

---

| **Name** | **Description** |
| --- | --- |
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 6.0.0 |

## Inputs

---
There are no inputs for this script.

## Outputs

---
There are no outputs for this script.
Expand Up @@ -10,7 +10,7 @@ comment: Displays the highest severity among the incidents that make up the phis
enabled: true
scripttarget: 0
subtype: python3
dockerimage: demisto/python3:3.10.5.31928
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
fromversion: 6.0.0
tests:
Expand Down
25 changes: 25 additions & 0 deletions Packs/Campaign/Scripts/ShowCampaignIncidentsOwners/README.md
@@ -0,0 +1,25 @@
Displays all the campaign incident owners and their quantity.

This automation runs using the default Limited User role, unless you explicitly change the permissions.
For more information, see the section about permissions here:
https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.10/Cortex-XSOAR-Administrator-Guide/Automations

## Script Data

---

| **Name** | **Description** |
| --- | --- |
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 6.0.0 |

## Inputs

---
There are no inputs for this script.

## Outputs

---
There are no outputs for this script.
Expand Up @@ -14,7 +14,7 @@ tags:
timeout: '0'
type: python
subtype: python3
dockerimage: demisto/python3:3.10.10.48392
dockerimage: demisto/python3:3.10.12.63474
fromversion: 6.0.0
tests:
- No tests (auto formatted)
Expand Up @@ -10,7 +10,7 @@ comment: Displays the occurrence date of the last campaign incident.
enabled: true
scripttarget: 0
subtype: python3
dockerimage: demisto/python3:3.9.8.24399
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
fromversion: 5.5.0
tests:
Expand Down
Expand Up @@ -10,7 +10,7 @@ comment: Displays the phishing campaign recipients' email addresses and the numb
enabled: true
scripttarget: 0
subtype: python3
dockerimage: demisto/python3:3.10.8.36650
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
fromversion: 5.5.0
tests:
Expand Down
Expand Up @@ -10,7 +10,7 @@ comment: Displays the phishing campaign senders' email addresses and the number
enabled: true
scripttarget: 0
subtype: python3
dockerimage: demisto/python3:3.10.1.27636
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
fromversion: 5.5.0
tests:
Expand Down
Expand Up @@ -10,7 +10,7 @@ comment: Displays the similarity range between the incidents that make up the ph
enabled: true
scripttarget: 0
subtype: python3
dockerimage: demisto/python3:3.9.8.24399
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
fromversion: 5.5.0
tests:
Expand Down
21 changes: 21 additions & 0 deletions Packs/Campaign/Scripts/ShowCampaignUniqueSenders/README.md
@@ -0,0 +1,21 @@
Displays the number of unique senders of an email campaign.

## Script Data

---

| **Name** | **Description** |
| --- | --- |
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 6.0.0 |

## Inputs

---
There are no inputs for this script.

## Outputs

---
There are no outputs for this script.
@@ -0,0 +1,23 @@
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401

# Variable initialization:
html = ""
campaign_incidents = ""

try:
incident_id = demisto.incidents()[0].get('id', {})
context = demisto.executeCommand("getContext", {'id': incident_id})
campaign_incidents = demisto.get(context[0], "Contents.context.EmailCampaign.incidents")
unique_senders = set([incident.get("emailfrom") for incident in campaign_incidents])
html = f"<div style='font-size:17px; text-align:center; padding-top: 20px;'> " \
f"Unique Senders <div style='font-size:32px;'> <div> {len(unique_senders)} </div></div>"
except Exception as ex:
html = f"<div style='text-align:center; padding-top: 20px;'> <div> No senders </div>"

# Return the data to the layout:
demisto.results({
'ContentsFormat': EntryFormat.HTML,
'Type': EntryType.NOTE,
'Contents': html
})
@@ -0,0 +1,17 @@
commonfields:
id: ShowCampaignUniqueSenders
version: -1
name: ShowCampaignUniqueSenders
script: ''
type: python
tags:
- dynamic-section
comment: Displays the number of unique senders of an email campaign.
enabled: true
scripttarget: 0
subtype: python3
fromversion: 6.0.0
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
tests:
- No tests (auto formatted)
21 changes: 21 additions & 0 deletions Packs/Campaign/Scripts/ShowNumberOfCampaignIncidents/README.md
@@ -0,0 +1,21 @@
Displays the number of phishing incidents that make up the phishing campaign.

## Script Data

---

| **Name** | **Description** |
| --- | --- |
| Script Type | python3 |
| Tags | dynamic-section |
| Cortex XSOAR Version | 6.0.0 |

## Inputs

---
There are no inputs for this script.

## Outputs

---
There are no outputs for this script.
@@ -0,0 +1,24 @@
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401

# Variable initialization:
html = ""
campaign_incidents = ""

try:
# Getting incident context:
incident_id = demisto.incidents()[0].get('id', {})
context = demisto.executeCommand("getContext", {'id': incident_id})
campaign_incidents = context[0]['Contents'].get('context', {}).get('EmailCampaign', {}).get('incidents', {})
html = f"<div style='font-size:17px; text-align:center; padding: 15px;'> " \
f"Number of Incidents <div style='font-size:32px;'> <div> {len(campaign_incidents)} </div></div>"

except Exception as ex:
html = f"<div style='text-align:center; font-size:32px;'> <div> No Campaign </div> <div style='font-size:17px;'> </div>"

# Return the data to the layout:
demisto.results({
'ContentsFormat': EntryFormat.HTML,
'Type': EntryType.NOTE,
'Contents': html
})
@@ -0,0 +1,17 @@
commonfields:
id: ShowNumberOfCampaignIncidents
version: -1
name: ShowNumberOfCampaignIncidents
script: ''
type: python
tags:
- dynamic-section
comment: Displays the number of phishing incidents that make up the phishing campaign.
enabled: true
scripttarget: 0
subtype: python3
fromversion: 6.0.0
dockerimage: demisto/python3:3.10.12.63474
runas: DBotWeakRole
tests:
- No tests (auto formatted)
37 changes: 0 additions & 37 deletions Packs/Campaign/Scripts/script-ShowCampaignUniqueSenders.yml

This file was deleted.