Skip to content

Commit f2befb3

Browse files
authored
demisto/python3:3.11.10.116439, demisto/boto3py3:1.0.0.116921, demist… (demisto#37285)
* demisto/python3:3.11.10.116439, demisto/boto3py3:1.0.0.116921, demisto/auth-utils:1.0.0.116930 | 0-100 | PR batch #1/1 * update to UTC + docker native image * remove import timezone * update release notes
1 parent 4bc5e97 commit f2befb3

File tree

45 files changed

+213
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+213
-66
lines changed

Packs/AWS-SecurityHub/Integrations/AWS_SecurityHub/AWS_SecurityHub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import boto3
44

55
import urllib3.util
6-
from datetime import timezone
6+
from datetime import UTC
77
from dateparser import parse
88

99
# Disable insecure warnings
@@ -815,7 +815,7 @@ def fetch_incidents(client, aws_sh_severity, archive_findings, additional_filter
815815
date_from = parse(f'{first_fetch_timestamp} UTC')
816816
last_run = date_from.isoformat() # type: ignore
817817

818-
now = datetime.now(timezone.utc)
818+
now = datetime.now(UTC)
819819

820820
filters = {
821821
'CreatedAt': [{

Packs/AWS-SecurityHub/Integrations/AWS_SecurityHub/AWS_SecurityHub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,7 @@ script:
20772077
description: The UTC timestamp in seconds since the last update. The incident is only updated if it was modified after the last update time.
20782078
- name: get-mapping-fields
20792079
description: Returns the list of fields to map in outgoing mirroring. This command is only used for debugging purposes.
2080-
dockerimage: demisto/boto3py3:1.0.0.100468
2080+
dockerimage: demisto/boto3py3:1.0.0.116921
20812081
isfetch: true
20822082
ismappable: true
20832083
isremotesyncin: true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### AWS - Security Hub
5+
6+
7+
- Updated the Docker image to: *demisto/boto3py3:1.0.0.116921*.

Packs/AWS-SecurityHub/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "AWS - Security Hub",
33
"description": "Amazon Web Services Security Hub Service.",
44
"support": "xsoar",
5-
"currentVersion": "1.3.37",
5+
"currentVersion": "1.3.38",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Packs/Akamai_SIEM/Integrations/Akamai_SIEM/Akamai_SIEM.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ script:
220220
- contextPath: IP.Geo.Country
221221
description: The country in which the IP address is located.
222222
type: String
223-
dockerimage: demisto/auth-utils:1.0.0.116752
223+
dockerimage: demisto/auth-utils:1.0.0.116930
224224
isfetch: true
225225
isfetch:marketplacev2: false
226226
isfetchevents: true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### Akamai WAF SIEM
5+
6+
7+
- Updated the Docker image to: *demisto/auth-utils:1.0.0.116930*.

Packs/Akamai_SIEM/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Akamai WAF SIEM",
33
"description": "Use the Akamai WAF SIEM integration to retrieve security events from Akamai Web Application Firewall (WAF) service.",
44
"support": "xsoar",
5-
"currentVersion": "1.1.7",
5+
"currentVersion": "1.1.8",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Packs/Box/Integrations/BoxV2/BoxV2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import jwt
1212
import re
1313
from distutils.util import strtobool
14-
from datetime import timezone
14+
from datetime import UTC
1515
from typing import Any, Dict, Tuple, List, Optional, BinaryIO
1616
from requests.models import Response
1717
from hashlib import sha1
@@ -1935,7 +1935,7 @@ def test_module(client: Client, params: dict, first_fetch_time: int) -> str:
19351935
if not params.get('as_user'):
19361936
raise DemistoException("In order to use fetch, a User ID for Fetching Incidents is "
19371937
"required.")
1938-
created_after = datetime.fromtimestamp(first_fetch_time, tz=timezone.utc).strftime(
1938+
created_after = datetime.fromtimestamp(first_fetch_time, tz=UTC).strftime(
19391939
DATE_FORMAT)
19401940
response = client.list_events(
19411941
as_user=params.get('as_user'), # type:ignore
@@ -1965,12 +1965,12 @@ def fetch_incidents(client: Client, max_results: int, last_run: dict, first_fetc
19651965
created_after = last_run.get('time', None)
19661966
incidents = []
19671967
if not created_after:
1968-
created_after = datetime.fromtimestamp(first_fetch_time, tz=timezone.utc).strftime(
1968+
created_after = datetime.fromtimestamp(first_fetch_time, tz=UTC).strftime(
19691969
DATE_FORMAT)
19701970
results = client.list_events(stream_type='admin_logs', as_user=as_user, limit=max_results,
19711971
created_after=created_after)
19721972
raw_incidents = results.get('entries', [])
1973-
next_run = datetime.now(tz=timezone.utc).strftime(DATE_FORMAT)
1973+
next_run = datetime.now(tz=UTC).strftime(DATE_FORMAT)
19741974
for raw_incident in raw_incidents:
19751975
event = Event(raw_input=raw_incident)
19761976
xsoar_incident = event.format_incident()

Packs/Box/Integrations/BoxV2/BoxV2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2496,7 +2496,7 @@ script:
24962496
- contextPath: Box.Folder.item_status
24972497
description: The status of the parent of the item.
24982498
type: String
2499-
dockerimage: demisto/auth-utils:1.0.0.91447
2499+
dockerimage: demisto/auth-utils:1.0.0.116930
25002500
isfetch: true
25012501
runonce: false
25022502
script: '-'

Packs/Box/ReleaseNotes/3_2_5.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### Box v2
5+
6+
7+
- Updated the Docker image to: *demisto/auth-utils:1.0.0.116930*.

Packs/Box/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Box",
33
"description": "Manage Box users",
44
"support": "xsoar",
5-
"currentVersion": "3.2.4",
5+
"currentVersion": "3.2.5",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Packs/CrowdStrikeIntel/Integrations/CrowdStrikeFalconIntel_v2/CrowdStrikeFalconIntel_v2.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import demistomock as demisto
22
from CommonServerPython import *
33
from CommonServerUserPython import *
4-
from datetime import datetime, timezone
4+
from datetime import datetime, UTC
55
from typing import Any
66
from dateparser import parse
77

@@ -74,7 +74,7 @@ def build_filter_query(self, args: dict[str, str]) -> str:
7474
parsed_date = parse(args[key])
7575
assert parsed_date is not None
7676
filter_query += f"{api_key}:" \
77-
f"{operator}{int(parsed_date.replace(tzinfo=timezone.utc).timestamp())}+"
77+
f"{operator}{int(parsed_date.replace(tzinfo=UTC).timestamp())}+"
7878

7979
if filter_query.endswith('+'):
8080
filter_query = filter_query[:-1]
@@ -324,9 +324,9 @@ def get_indicator_outputs(resource: dict[str, Any]) -> dict[str, Any]:
324324
'ID': indicator_id,
325325
'Type': indicator_type,
326326
'Value': indicator_value,
327-
'LastUpdate': datetime.fromtimestamp(last_update, timezone.utc).isoformat() if last_update
327+
'LastUpdate': datetime.fromtimestamp(last_update, UTC).isoformat() if last_update
328328
else None,
329-
'PublishDate': datetime.fromtimestamp(publish_date, timezone.utc).isoformat() if publish_date
329+
'PublishDate': datetime.fromtimestamp(publish_date, UTC).isoformat() if publish_date
330330
else None,
331331
'MaliciousConfidence': malicious_confidence,
332332
'Reports': reports,
@@ -424,9 +424,9 @@ def cs_actors_command(client: Client, args: dict[str, str]) -> CommandResults:
424424
'Slug': slug,
425425
'ShortDescription': short_description,
426426
'Description': description,
427-
'FirstActivityDate': datetime.fromtimestamp(first_activity_date, timezone.utc).isoformat()
427+
'FirstActivityDate': datetime.fromtimestamp(first_activity_date, UTC).isoformat()
428428
if first_activity_date else None,
429-
'LastActivityDate': datetime.fromtimestamp(last_activity_date, timezone.utc).isoformat()
429+
'LastActivityDate': datetime.fromtimestamp(last_activity_date, UTC).isoformat()
430430
if last_activity_date else None,
431431
'Active': active,
432432
'KnownAs': known_as,
@@ -539,9 +539,9 @@ def cs_reports_command(client: Client, args: dict[str, str]) -> CommandResults:
539539
'Type': report_type,
540540
'SubType': sub_type,
541541
'Slug': slug,
542-
'CreatedDate': datetime.fromtimestamp(created_date, timezone.utc).isoformat()
542+
'CreatedDate': datetime.fromtimestamp(created_date, UTC).isoformat()
543543
if created_date else None,
544-
'LastModifiedSate': datetime.fromtimestamp(last_modified_date, timezone.utc).isoformat()
544+
'LastModifiedSate': datetime.fromtimestamp(last_modified_date, UTC).isoformat()
545545
if last_modified_date else None,
546546
'ShortDescription': short_description,
547547
'Description': description,

Packs/CrowdStrikeIntel/Integrations/CrowdStrikeFalconIntel_v2/CrowdStrikeFalconIntel_v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ configuration:
8686
advanced: true
8787
required: false
8888
script:
89-
dockerimage: demisto/python3:3.10.14.99865
89+
dockerimage: demisto/python3:3.11.10.116439
9090
type: python
9191
subtype: python3
9292
script: '-'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### CrowdStrike Falcon Intel v2
5+
6+
7+
- Updated the Docker image to: *demisto/python3:3.11.10.116439*.

Packs/CrowdStrikeIntel/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "CrowdStrike Falcon Intel",
33
"description": "Threat intelligence service by CrowdStrike focused on delivering a technical feed to help organizations better defend themselves against adversary activity.",
44
"support": "xsoar",
5-
"currentVersion": "2.0.37",
5+
"currentVersion": "2.0.38",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Packs/Cyberpion/Integrations/Cyberpion/Cyberpion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from CommonServerPython import * # noqa: F401
33
''' IMPORTS '''
44
from typing import Dict, Tuple, List
5-
from datetime import timezone
5+
from datetime import UTC
66
import urllib3
77

88
urllib3.disable_warnings()
@@ -272,7 +272,7 @@ def fetch_incidents(client: Client,
272272
for action_item in action_items:
273273
creation_date = action_item['creation_time'] # must be string of a DATE_FORMAT
274274
iso_format_data = datetime.strptime(creation_date, DATE_FORMAT).replace(
275-
tzinfo=timezone.utc).isoformat()
275+
tzinfo=UTC).isoformat()
276276
incident = {
277277
'name': '{} - {}'.format(action_item['title'], action_item['domain']),
278278
# name is required field, must be set

Packs/Cyberpion/Integrations/Cyberpion/Cyberpion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ script:
184184
- contextPath: Cyberpion.DomainState.discovery_date
185185
description: The Date domain was discovered
186186
type: Date
187-
dockerimage: demisto/python3:3.10.13.72123
187+
dockerimage: demisto/python3:3.11.10.116439
188188
isfetch: true
189189
runonce: false
190190
script: '-'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### Cyberpion
5+
6+
7+
- Updated the Docker image to: *demisto/python3:3.11.10.116439*.

Packs/Cyberpion/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Cyberpion",
33
"description": "Cyberpion's platform provides the breadth and depth of discovery and vulnerability assessment that security teams need to manage the threats from their far-reaching online ecosystems. Cyberpion solves the rising cybersecurity challenge of understanding the risks and vulnerabilities of your connected online assets and their artifacts. You can use this pack to push Cyberpion Action Items directly into your XSOAR instance, and also get additional information relating to those Action Items, and much more",
44
"support": "partner",
5-
"currentVersion": "1.1.9",
5+
"currentVersion": "1.1.10",
66
"author": "Cyberpion",
77
"url": "https://www.cyberpion.com",
88
"email": "[email protected]",

Packs/Darktrace/Integrations/DarktraceEventCollector/DarktraceEventCollector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import hashlib
22
import hmac
33
import json
4-
from datetime import datetime, timezone
4+
from datetime import datetime, UTC
55
from typing import Any
66
from collections.abc import Mapping
77

@@ -109,7 +109,7 @@ def error_handler(self, res: requests.Response):
109109
def _create_headers(self, query_uri: str, query_data: Dict = None, is_json: bool = False) -> Dict[str, str]:
110110
"""Create headers required for successful authentication"""
111111
public_token, _ = self._auth
112-
date = (datetime.now(timezone.utc)).isoformat(timespec="auto")
112+
date = (datetime.now(UTC)).isoformat(timespec="auto")
113113
signature = _create_signature(self._auth, query_uri, date, query_data, is_json=is_json)
114114
return {'DTAPI-Token': public_token, 'DTAPI-Date': date, 'DTAPI-Signature': signature}
115115

Packs/Darktrace/Integrations/DarktraceEventCollector/DarktraceEventCollector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ script:
8282
type: python
8383
subtype: python3
8484
isfetchevents: true
85-
dockerimage: demisto/python3:3.10.13.78960
85+
dockerimage: demisto/python3:3.11.10.116439
8686
marketplaces:
8787
- marketplacev2
8888
fromversion: 6.9.0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### Darktrace Event Collector
5+
6+
7+
- Updated the Docker image to: *demisto/python3:3.11.10.116439*.

Packs/Darktrace/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Darktrace",
33
"description": "Populates Darktrace Model Breaches and AI Analyst Events in Cortex XSOAR, allowing for cross-platform automated investigation and response.",
44
"support": "partner",
5-
"currentVersion": "3.0.11",
5+
"currentVersion": "3.0.12",
66
"fromVersion": "5.0.0",
77
"author": "Darktrace",
88
"githubUser": "",

Packs/FraudWatch/Integrations/FraudWatch/FraudWatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ script:
459459
- contextPath: FraudWatch.Brand.services.action
460460
description: Brand service action.
461461
type: String
462-
dockerimage: demisto/python3:3.10.13.72123
462+
dockerimage: demisto/python3:3.11.10.116439
463463
isFetchSamples: true
464464
isfetch: true
465465
script: ''

Packs/FraudWatch/Integrations/FraudWatch/FraudWatch_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
import io
55
import json
6-
from datetime import timezone, timedelta
6+
from datetime import timedelta, UTC
77
from typing import *
88
from unittest.mock import Mock
99

@@ -286,7 +286,7 @@ def test_fetch_incidents_command():
286286
- Ensure on another calls to fetch_incidents, only relevant incidents are fetched.
287287
- Ensure that the incidents returned are as expected.
288288
"""
289-
now = datetime.now(timezone.utc)
289+
now = datetime.now(UTC)
290290
five_minutes_before = now - timedelta(minutes=5)
291291
one_hour_before = now - timedelta(hours=1)
292292
two_hours_before = now - timedelta(hours=2)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### FraudWatch
5+
6+
7+
- Updated the Docker image to: *demisto/python3:3.11.10.116439*.

Packs/FraudWatch/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "FraudWatch PhishPortal",
33
"description": "FraudWatch International provides anti-phishing and online brand protection solutions.",
44
"support": "xsoar",
5-
"currentVersion": "1.0.12",
5+
"currentVersion": "1.0.13",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Packs/Infinipoint/Integrations/Infinipoint/Infinipoint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import jwt
77
import math
88
import dateparser
9-
from datetime import timezone
9+
from datetime import UTC
1010

1111
# disable insecure warnings
1212
import urllib3
@@ -316,7 +316,7 @@ def fetch_incidents(client, last_run: dict[str, int], first_fetch_time: int | No
316316
for alert in alerts.outputs:
317317
if alert.get("subscription") in subscription:
318318
incident_created_epoch_time = int(alert.get('timestamp', '0'))
319-
incident_created_time = datetime.fromtimestamp(int(alert.get('timestamp', '0')), timezone.utc)
319+
incident_created_time = datetime.fromtimestamp(int(alert.get('timestamp', '0')), UTC)
320320

321321
incident = {
322322
'name': f'Infinipoint {alert.get("name")}',
@@ -385,7 +385,7 @@ def infinipoint_command(client: Client, args=None, optional_args=None, paginatio
385385
for node in res:
386386
# Handle time format - convert to ISO from epoch
387387
if '$time' in node and isinstance(node['$time'], int):
388-
created_time = datetime.fromtimestamp(int(node.get('$time', '0')), timezone.utc)
388+
created_time = datetime.fromtimestamp(int(node.get('$time', '0')), UTC)
389389
node['$time'] = created_time.isoformat()
390390

391391
# CVE reputation

Packs/Infinipoint/Integrations/Infinipoint/Infinipoint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ script:
995995
description: success.
996996
type: Number
997997

998-
dockerimage: demisto/auth-utils:1.0.0.76157
998+
dockerimage: demisto/auth-utils:1.0.0.116930
999999
isfetch: true
10001000
script: '-'
10011001
subtype: python3
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### Infinipoint
5+
6+
7+
- Updated the Docker image to: *demisto/auth-utils:1.0.0.116930*.

Packs/Infinipoint/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Infinipoint",
33
"description": "Use the Infinipoint integration to retrieve security and policy incompliance events, vulnerabilities or incidents. Investigate and respond to events in real-time",
44
"support": "partner",
5-
"currentVersion": "1.0.14",
5+
"currentVersion": "1.0.15",
66
"author": "Infinipoint - ET",
77
"url": "",
88
"email": "[email protected]",

0 commit comments

Comments
 (0)