Skip to content

Commit

Permalink
[pre-commit MyPy] Align the entire repo with MyPy demisto#1 (demisto#…
Browse files Browse the repository at this point in the history
…29798)

* [pre-commit MyPy] Align the entire repo with MyPy demisto#1

* Xsup 27738 DBotFindSimilarIncidents NoneType Error (demisto#29701)

* failed ut

* fix

* rn

* pre-commit

* pre commit

* just the fix

* fix description in yml

* fix

* docker

* Update Packs/Base/ReleaseNotes/1_32_34.md

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* test

* test

* removed import

---------

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* Wiz v1 2 11 (demisto#29719)

* Wiz v1 2 11 (demisto#29688)

* remove redundant parenthesis

* ../Packs/Wiz/Integrations/Wiz/Wiz.py

* add Wiz user agent

* rephrase release notes

* update pack metadata json

* rephrase release notes v2

* fix minor typos and update docker image

* Bump Docker version

---------

Co-authored-by: Ariel Tobiana <107474518+ariel-wiz@users.noreply.github.com>
Co-authored-by: Michael Yochpaz <8832013+MichaelYochpaz@users.noreply.github.com>

* [ASM] - Expander - Update ASM fields (4821) (demisto#29702)

* [ASM] - Expander - Update ASM fields (4821) (demisto#29506)

* Add missing comments to grid fields

- Update descriptions of fields as needed.

* Add release notes

* Add descriptions to two fields

- asmdevcheckdetails
- asmenrichmentstatus

* Update release notes.

* Grammar updates.

* Update release notes

* Add mandatory or optional in comments

* Update comments with mandatory

* Update pack version and release notes

* Add correct 1_6_33 release notes

* fix rn

* fix rn

---------

Co-authored-by: John <40349459+BigEasyJ@users.noreply.github.com>
Co-authored-by: ostolero <86190583+ostolero@users.noreply.github.com>
Co-authored-by: ostolero <ostolero@paloaltonetworks.com>

* Wildfire-upload-url add poling timeout argument (demisto#29790)

* save adding timeout param

* new docker image

* added rn

* fix ruff

* ruff made me to do this fixes :( not related to my changes

* Update Packs/Palo_Alto_Networks_WildFire/ReleaseNotes/2_1_35.md

* poetry files (demisto#29793)

Co-authored-by: Content Bot <bot@demisto.com>

* Dra-cvss-color-fix (demisto#29757)

* Fixed a small issue when indicator had no custom fields

* RN

* docker bump

* RN

* Update CVECVSSColor.py

* docker bump

* RN

* fixing typos in build scripts. (demisto#29788)

unremovable -> non-removable
productname -> product_name
testplaybook -> test_playbook
changed some arg passing to use their full name:
-gpidd -gpidp

Co-authored-by: kobymeir <ymeir@paloaltonetworks.com>

* mapping to standard stix values (demisto#29785)

* mapping to standard stix values

* updated release notes

* update docker

* breaking json

* add dot

* Add the nightly_ruff file for run pre-commit with --all flag (demisto#29684)

* Add the nightly_ruff file for run pre-commit with --all flag

* Add more rules; Add the error name

* Add E501

* Add F601, F842, TID252

* XSUP-27528 (demisto#29705)

* add_tests

* add_tests

* add RN, fix tests, format yml

* Update Packs/CommonScripts/ReleaseNotes/1_12_24.md

Co-authored-by: Arad Carmi <62752352+AradCarmi@users.noreply.github.com>

* fix readme

* Bump pack from version CommonScripts to 1.12.25.

---------

Co-authored-by: Arad Carmi <62752352+AradCarmi@users.noreply.github.com>
Co-authored-by: Content Bot <bot@demisto.com>

* Add RN

* Update Packs/Cybersixgill-DVE/pack_metadata.json

Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>

* Add RN

* Fix UT

* Update the docker images

---------

Co-authored-by: EyalPintzov <91007713+eyalpalo@users.noreply.github.com>
Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: content-bot <55035720+content-bot@users.noreply.github.com>
Co-authored-by: Ariel Tobiana <107474518+ariel-wiz@users.noreply.github.com>
Co-authored-by: Michael Yochpaz <8832013+MichaelYochpaz@users.noreply.github.com>
Co-authored-by: John <40349459+BigEasyJ@users.noreply.github.com>
Co-authored-by: ostolero <86190583+ostolero@users.noreply.github.com>
Co-authored-by: ostolero <ostolero@paloaltonetworks.com>
Co-authored-by: Darya Koval <72339940+daryakoval@users.noreply.github.com>
Co-authored-by: Content Bot <bot@demisto.com>
Co-authored-by: Dror Avrahami <davrahami@paloaltonetworks.com>
Co-authored-by: Koby Meir <kobymeir@users.noreply.github.com>
Co-authored-by: kobymeir <ymeir@paloaltonetworks.com>
Co-authored-by: Judah Schwartz <JudahSchwartz@users.noreply.github.com>
Co-authored-by: sapir shuker <49246861+sapirshuker@users.noreply.github.com>
Co-authored-by: Arad Carmi <62752352+AradCarmi@users.noreply.github.com>
Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
  • Loading branch information
18 people authored and wolyslager committed Sep 29, 2023
1 parent bf20c7c commit 9e72287
Show file tree
Hide file tree
Showing 55 changed files with 543 additions and 451 deletions.
2 changes: 0 additions & 2 deletions Packs/ApiModules/Scripts/FireEyeApiModule/FireEyeApiModule.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from CommonServerPython import *

# Disable insecure warnings
requests.packages.urllib3.disable_warnings()

''' CONSTANTS '''
FE_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def build_iterator(self, **kwargs):
)
if self.ignore_regex is not None:
result = filter(
lambda x: self.ignore_regex.match(x) is None, # type: ignore[union-attr]
lambda x: self.ignore_regex.match(x) is None, # type: ignore[union-attr, arg-type]
result
)
results.append({url: {'result': result, 'no_update': res_data.get('no_update')}})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ subtype: python3
tags:
- infra
- server
comment: Common HTTP feed code that will be appended into each HTTP feed integration when it's deployed
comment: Common HTTP feed code that will be appended into each HTTP feed integration when it's deployed.
system: true
scripttarget: 0
dependson: {}
timeout: 0s
dockerimage: demisto/py3-tools:0.0.1.25751
fromversion: 5.0.0
tests:
- No tests
- No tests
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from sixgill.sixgill_request_classes.sixgill_auth_request import SixgillAuthRequest
from sixgill.sixgill_enrich_client import SixgillEnrichClient

# Disable insecure warnings
requests.packages.urllib3.disable_warnings()

""" CONSTANTS """
DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ script:
- default: true
isArray: true
name: cve_id
description: 'cves id list'
description: 'cves id list.'
required: true
description: Returns information for each CVE in the input list
description: Returns information for each CVE in the input list.
name: cybersixgill-cve-enrich
outputs:
- contextPath: Sixgill.CVE.value
Expand Down Expand Up @@ -91,7 +91,7 @@ script:
type: String
description: The raw JSON of the CVE entich information.

dockerimage: demisto/sixgill:1.0.0.20925
dockerimage: demisto/sixgill:1.0.0.73690
runonce: false
script: '-'
subtype: python3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ def __init__(self, status_code, text, reason=None, url=None, method=None):
self.url = url
self.request = requests.Request("GET")
self.ok = True if self.status_code == 200 else False
self.headers = ""

def json(self):
return json.loads(self.text)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
from sixgill.sixgill_constants import FeedStream
from sixgill.sixgill_utils import is_indicator

# Disable insecure warnings
requests.packages.urllib3.disable_warnings()

""" CONSTANTS """
INTEGRATION_NAME = "Sixgil_DVE_Feed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ script:
- arguments:
- default: true
defaultValue: '5'
description: 'The number of records to display in War Room'
description: 'The number of records to display in War Room.'
name: limit
description: Fetching Sixgill DVE Feed indicators
description: Fetching Sixgill DVE Feed indicators.
name: cybersixgill-get-indicators
dockerimage: demisto/sixgill:1.0.0.23434
dockerimage: demisto/sixgill:1.0.0.73690
feed: true
runonce: false
script: '-'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ def __init__(
self.url = url
self.request = requests.Request("GET")
self.ok = True if self.status_code == 200 else False
self.headers = ""

def json(self):
return json.loads(self.text)
Expand Down
10 changes: 10 additions & 0 deletions Packs/Cybersixgill-DVE/ReleaseNotes/1_0_5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

#### Integrations

##### Cybersixgill DVE Feed Threat Intelligence v2

Updated the Docker image to: *demisto/sixgill:1.0.0.73690*.

##### Cybersixgill DVE Enrichment

Updated the Docker image to: *demisto/sixgill:1.0.0.73690*.
4 changes: 2 additions & 2 deletions Packs/Cybersixgill-DVE/pack_metadata.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Cybersixgill-DVE",
"description": "Powered by the broadest automated collection from the deep and dark web, Cybersixgill\u2019s Dynamic Vulnerability Exploit (DVE) Score is a feed of common known vulnerabilities, scored by their probability of getting exploited. The DVE Score feed enables Cortex XSOAR users to track threats from vulnerabilities that others define as irrelevant, but have a higher probability of being exploited. It is the only solution that predicts the immediate risks of a vulnerability based on threat actors\u2019 intent. \n\nDVE Score is also the most comprehensive CVE enrichment solution on the market: Cortex XSOAR users gain unparalleled context and can accelerate threat response and decision making, effectively giving security teams a head start on vulnerability management. \n",
"description": "Powered by the broadest automated collection from the deep and dark web, Cybersixgill’s Dynamic Vulnerability Exploit (DVE) Score is a feed of common known vulnerabilities, scored by their probability of getting exploited. The DVE Score feed enables Cortex XSOAR users to track threats from vulnerabilities that others define as irrelevant, but have a higher probability of being exploited. It is the only solution that predicts the immediate risks of a vulnerability based on threat actors intent. \n\nDVE Score is also the most comprehensive CVE enrichment solution on the market: Cortex XSOAR users gain unparalleled context and can accelerate threat response and decision making, effectively giving security teams a head start on vulnerability management.",
"support": "partner",
"currentVersion": "1.0.4",
"currentVersion": "1.0.5",
"author": "Cybersixgill",
"url": "https://www.cybersixgill.com/",
"email": "getstarted@cybersixgill.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ script:
name: indicator_type
description: Gets the feed indicators.
name: blocklist_de-get-indicators
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
Expand Down
6 changes: 6 additions & 0 deletions Packs/FeedBlocklist_de/ReleaseNotes/1_1_27.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Blocklist_de Feed

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FeedBlocklist_de/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "BlockList DE Feed",
"description": "Indicators feed from BlockList DE",
"support": "xsoar",
"currentVersion": "1.1.26",
"currentVersion": "1.1.27",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ script:
name: limit
description: Gets the feed indicators.
name: bruteforceblocker-get-indicators
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
subtype: python3
type: python
fromversion: 5.5.0
tests:
- No tests (auto formatted)
6 changes: 6 additions & 0 deletions Packs/FeedBruteForceBlocker/ReleaseNotes/1_1_25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### BruteForceBlocker Feed

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FeedBruteForceBlocker/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "BruteForce Feed",
"description": "Indicators feed from BruteForceBlocker",
"support": "xsoar",
"currentVersion": "1.1.24",
"currentVersion": "1.1.25",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ script:
name: limit
description: Gets the feed indicators.
name: cloudflare-get-indicators
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
subtype: python3
type: python
fromversion: 5.5.0
tests:
- No tests (auto formatted)
6 changes: 6 additions & 0 deletions Packs/FeedCloudflare/ReleaseNotes/1_1_25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Cloudflare Feed

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FeedCloudflare/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Cloudflare Feed",
"description": "Indicators feed from Cloudflare",
"support": "xsoar",
"currentVersion": "1.1.24",
"currentVersion": "1.1.25",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
4 changes: 3 additions & 1 deletion Packs/FeedDShield/Integrations/FeedDShield/FeedDShield.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ script:
name: limit
description: Gets the feed indicators.
name: dshield-get-indicators
dockerimage: demisto/python3:3.10.13.72123
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
subtype: python3
type: python
fromversion: 5.5.0
tests:
- No tests (auto formatted)
6 changes: 6 additions & 0 deletions Packs/FeedDShield/ReleaseNotes/1_1_29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### DShield Feed

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FeedDShield/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "DShield Feed",
"description": "Indicators feed from DShield",
"support": "xsoar",
"currentVersion": "1.1.28",
"currentVersion": "1.1.29",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ script:
name: limit
description: Gets the feed indicators.
name: feodotracker-hashes-get-indicators
dockerimage: demisto/python3:3.8.5.10845
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ script:
name: limit
description: Gets the feed indicators.
name: feodotracker-ipblocklist-get-indicators
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
Expand Down
9 changes: 9 additions & 0 deletions Packs/FeedFeodoTracker/ReleaseNotes/1_1_28.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

#### Integrations

##### Feodo Tracker Hashes Feed (Deprecated)

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
##### Feodo Tracker IP Blocklist Feed

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FeedFeodoTracker/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "FeodoTracker Feed",
"description": "Indicators feed from FeodoTracker",
"support": "xsoar",
"currentVersion": "1.1.27",
"currentVersion": "1.1.28",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ script:
name: limit
description: Gets the feed indicators.
name: malwaredomainlist-get-indicators
dockerimage: demisto/python3:3.8.5.10845
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
subtype: python3
type: python
fromversion: 5.5.0
tests:
- No tests (auto formatted)
6 changes: 6 additions & 0 deletions Packs/FeedMalwareDomainList/ReleaseNotes/1_1_8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Malware Domain List Active IPs Feed (Deprecated)

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FeedMalwareDomainList/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Deprecated. This feed is no longer supported. No available replacement.",
"support": "xsoar",
"hidden": true,
"currentVersion": "1.1.7",
"currentVersion": "1.1.8",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ script:
name: indicator_type
description: Gets indicators from the feed.
name: plaintext-get-indicators
dockerimage: demisto/py3-tools:1.0.0.44868
dockerimage: demisto/py3-tools:1.0.0.75615
feed: true
runonce: false
script: '-'
Expand Down
6 changes: 6 additions & 0 deletions Packs/FeedPlainText/ReleaseNotes/1_1_25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Plain Text Feed

Updated the Docker image to: *demisto/py3-tools:1.0.0.75615*.
2 changes: 1 addition & 1 deletion Packs/FeedPlainText/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Plain Text Feed",
"description": "Fetches indicators from a plain text feed.",
"support": "xsoar",
"currentVersion": "1.1.24",
"currentVersion": "1.1.25",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ script:
name: indicator_type
description: Gets the feed indicators.
name: spamhaus-get-indicators
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.13.74666
feed: true
runonce: false
script: '-'
subtype: python3
type: python
fromversion: 5.5.0
tests:
- No tests (auto formatted)
6 changes: 6 additions & 0 deletions Packs/FeedSpamhaus/ReleaseNotes/1_1_22.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Spamhaus Feed

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FeedSpamhaus/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Spamhaus Feed",
"description": "The Spamhaus DROP (Don't Route Or Peer) lists are advisory \"drop all traffic\" lists, consisting of netblocks that are \"hijacked\" or leased by professional spam or cyber-crime operations (used for dissemination of malware, trojan downloaders, botnet controllers). The DROP lists are a tiny subset of the SBL, designed for use by firewalls and routing equipment to filter out the malicious traffic from these netblocks.",
"support": "xsoar",
"currentVersion": "1.1.21",
"currentVersion": "1.1.22",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
6 changes: 3 additions & 3 deletions Packs/FireEyeCM/Integrations/FireEyeCM/FireEyeCM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ configuration:
section: Connect
advanced: true
required: false
description: "FireEye Central Management (CM Series) is the FireEye threat intelligence hub. It services the FireEye ecosystem, ensuring that FireEye products share the latest intelligence and correlate across attack vectors to detect and prevent cyber attacks"
description: "FireEye Central Management (CM Series) is the FireEye threat intelligence hub. It services the FireEye ecosystem, ensuring that FireEye products share the latest intelligence and correlate across attack vectors to detect and prevent cyber attacks."
display: FireEye Central Management
name: FireEye Central Management
script:
Expand Down Expand Up @@ -498,7 +498,7 @@ script:
name: report_type
required: true
- defaultValue: '1 week'
description: "The start time of the search. This filter is optional. Syntax: start_time=YYYY-MM-DDTHH:mm:ss.sss-OH:om or '1 day/month/year'"
description: "The start time of the search. This filter is optional. Syntax: start_time=YYYY-MM-DDTHH:mm:ss.sss-OH:om or '1 day/month/year'."
name: start_time
- description: "Specifies the end time of the search. Default is now. Syntax: end_time=YYYY-MM-DDTHH:mm:ss.sss-OH:om or '1 day/month/year'."
name: end_time
Expand Down Expand Up @@ -553,7 +553,7 @@ script:
script: '-'
type: python
subtype: python3
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.13.74666
fromversion: 5.5.0
tests:
- FireEye Central Management - Test
6 changes: 6 additions & 0 deletions Packs/FireEyeCM/ReleaseNotes/1_1_22.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### FireEye Central Management

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
Loading

0 comments on commit 9e72287

Please sign in to comment.