Skip to content

Commit

Permalink
[Auto Update Docker] auto_update_docker_staging_branch_1 (demisto#34631)
Browse files Browse the repository at this point in the history
* demisto/python3:3.10.14.92207 | 0-100 | PR batch #6/6 (demisto#34076)

* Updated docker image to demisto/python3:3.10.14.92207. PR batch #6/6

* fix period

* fix .

---------

Co-authored-by: Tal Carmeli <[email protected]>
Co-authored-by: Tal <[email protected]>

* demisto/python3:3.10.14.92207 | 0-100 | PR batch #4/6 (demisto#34074)

* Updated docker image to demisto/python3:3.10.14.92207. PR batch #4/6

* fix .

---------

Co-authored-by: Tal Carmeli <[email protected]>
Co-authored-by: Tal <[email protected]>

* demisto/python3:3.10.14.92207 | 0-100 | PR batch #5/6 (demisto#34075)

* Updated docker image to demisto/python3:3.10.14.92207. PR batch #5/6

* fix .

---------

Co-authored-by: Tal Carmeli <[email protected]>
Co-authored-by: Tal <[email protected]>

* Updated docker image to demisto/python3:3.10.14.92207. PR batch #1/6 (demisto#34071)

Co-authored-by: Tal Zichlinsky <[email protected]>

* Updated docker image to demisto/python3:3.10.14.92207. PR batch #2/6 (demisto#34072)

Co-authored-by: Tal Zichlinsky <[email protected]>

* Updated docker image to demisto/python3:3.10.14.92207. PR batch #3/6 (demisto#34073)

Co-authored-by: Tal Zichlinsky <[email protected]>

* Add release notes

* revert auto changes related to escape characters

* pre-commit

* Update release notes

* Fix Packs/Gurucul/ReleaseNotes/2_0_4.md

---------

Co-authored-by: anas-yousef <[email protected]>
Co-authored-by: Tal Carmeli <[email protected]>
Co-authored-by: Tal <[email protected]>
Co-authored-by: Tal Zichlinsky <[email protected]>
  • Loading branch information
5 people authored Jun 2, 2024
1 parent e87105b commit d93f3b6
Show file tree
Hide file tree
Showing 151 changed files with 1,772 additions and 1,467 deletions.
14 changes: 7 additions & 7 deletions Packs/Arcanna/Integrations/ArcannaAI/ArcannaAI.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import urllib3
import traceback
import requests
from typing import Any, Dict
from typing import Any

# Disable insecure warnings
urllib3.disable_warnings()
Expand Down Expand Up @@ -151,7 +151,7 @@ def get_jobs(client: Client) -> CommandResults:
)


def post_event(client: Client, args: Dict[str, Any]) -> CommandResults:
def post_event(client: Client, args: dict[str, Any]) -> CommandResults:
title = args.get("title")

job_id = args.get("job_id", None)
Expand All @@ -171,7 +171,7 @@ def post_event(client: Client, args: Dict[str, Any]) -> CommandResults:
)


def get_event_status(client: Client, args: Dict[str, Any]) -> CommandResults:
def get_event_status(client: Client, args: dict[str, Any]) -> CommandResults:
job_id = args.get("job_id", None)
if not job_id:
job_id = client.get_default_job_id()
Expand All @@ -198,7 +198,7 @@ def get_default_job_id(client: Client) -> CommandResults:
)


def get_feedback_field(params: Dict[str, Any]) -> CommandResults:
def get_feedback_field(params: dict[str, Any]) -> CommandResults:
response = params.get("closing_reason_field")
readable_output = f' ## Get feedback returned results: {response}'

Expand All @@ -209,7 +209,7 @@ def get_feedback_field(params: Dict[str, Any]) -> CommandResults:
)


def set_default_job_id(client: Client, args: Dict[str, Any]) -> CommandResults:
def set_default_job_id(client: Client, args: dict[str, Any]) -> CommandResults:
job_id = args.get("job_id")
client.set_default_job_id(job_id)
return get_default_job_id(client)
Expand All @@ -218,7 +218,7 @@ def set_default_job_id(client: Client, args: Dict[str, Any]) -> CommandResults:
''' MAIN FUNCTION '''


def send_event_feedback(client: Client, feature_mapping_field: str, args: Dict[str, Any]) -> CommandResults:
def send_event_feedback(client: Client, feature_mapping_field: str, args: dict[str, Any]) -> CommandResults:
job_id = args.get("job_id", None)
if not job_id:
job_id = client.get_default_job_id()
Expand All @@ -244,7 +244,7 @@ def send_event_feedback(client: Client, feature_mapping_field: str, args: Dict[s
)


def send_bulk_events(client: Client, feature_mapping_field: str, args: Dict[str, Any]) -> CommandResults:
def send_bulk_events(client: Client, feature_mapping_field: str, args: dict[str, Any]) -> CommandResults:
job_id = args.get("job_id")
events = argToList(args.get("events"))
mappings = parse_mappings(feature_mapping_field)
Expand Down
42 changes: 21 additions & 21 deletions Packs/Arcanna/Integrations/ArcannaAI/ArcannaAI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,57 +39,57 @@ configuration:
name: closing_reason_field
type: 0
required: false
description: Arcanna integration for using the power of AI in SOC
description: Arcanna integration for using the power of AI in SOC.
display: Arcanna.AI
name: Arcanna.AI
script:
commands:
- description: Get jobs list
- description: Get jobs list.
name: arcanna-get-jobs
outputs:
- contextPath: Arcanna.Jobs.job_id
description: Arcanna Job id
description: Arcanna Job id.
type: Number
- contextPath: Arcanna.Jobs.data_type
description: Arcanna Job type
description: Arcanna Job type.
type: String
- contextPath: Arcanna.Jobs.title
description: Arcanna Job title
description: Arcanna Job title.
type: String
- contextPath: Arcanna.Jobs.status
description: Arcanna job status
description: Arcanna job status.
type: String
- arguments:
- description: An Arcanna running job_id
- description: An Arcanna running job_id.
name: job_id
- description: json event for arcanna to inference.
name: event_json
required: true
- description: event title
- description: event title.
name: title
required: true
- description: event severity
- description: event severity.
name: severity
description: Sends a raw event to Arcanna
description: Sends a raw event to Arcanna.
name: arcanna-send-event
outputs:
- contextPath: Arcanna.Event.event_id
description: Arcanna event id
description: Arcanna event id.
type: Number
- contextPath: Arcanna.Event.status
description: Arcanna ingestion status
description: Arcanna ingestion status.
type: String
- contextPath: Arcanna.Event.ingest_timestamp
description: Arcanna ingestion timestamp
description: Arcanna ingestion timestamp.
type: date
- contextPath: Arcanna.Event.error_message
description: Arcanna error message if any
description: Arcanna error message if any.
type: String
- contextPath: Arcanna.Event.job_id
description: An Arcanna Job id used for sending.
type: Number
- arguments:
- description: Arcanna Job Id
- description: Arcanna Job Id.
name: job_id
- description: Arcanna generated unique event id.
name: event_id
Expand All @@ -98,7 +98,7 @@ script:
name: arcanna-get-event-status
outputs:
- contextPath: Arcanna.Event.event_id
description: Arcanna event id
description: Arcanna event id.
type: String
- contextPath: Arcanna.Event.ingest_timestamp
description: Arcanna ingestion timestamp.
Expand All @@ -107,7 +107,7 @@ script:
description: Arcanna ML confidence_level.
type: Number
- contextPath: Arcanna.Event.result
description: Arcanna event result
description: Arcanna event result.
type: String
- contextPath: Arcanna.Event.is_duplicated
description: Arcanna signalling if event is duplicated by another alert.
Expand All @@ -122,10 +122,10 @@ script:
name: arcanna-get-default-job-id
outputs:
- contextPath: Arcanna.Default_Job_Id
description: Arcanna Default Job id
description: Arcanna Default Job id.
type: String
- arguments:
- description: job_id
- description: job_id.
name: job_id
required: true
description: Sets Arcanna Default Job id.
Expand Down Expand Up @@ -168,15 +168,15 @@ script:
name: arcanna-send-bulk-events
outputs:
- contextPath: Arcanna.Bulk.status
description: Arcanna response status for bulk events indexing
description: Arcanna response status for bulk events indexing.
type: String
- description: Returns the Feedback field set on integration.
name: arcanna-get-feedback-field
outputs:
- contextPath: Arcanna.FeedbackField
description: XSOAR field used to signal feedback/label for Arcanna.
type: String
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.14.95956
runonce: false
script: '-'
subtype: python3
Expand Down
3 changes: 1 addition & 2 deletions Packs/Arcanna/Integrations/ArcannaAI/ArcannaAI_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
import io
import demistomock as demisto

from ArcannaAI import Client, get_jobs, post_event, get_default_job_id, set_default_job_id, get_event_status, \
Expand All @@ -9,7 +8,7 @@


def util_load_json(path):
with io.open(path, mode='r', encoding='utf-8') as f:
with open(path, encoding='utf-8') as f:
return json.loads(f.read())


Expand Down
18 changes: 18 additions & 0 deletions Packs/Arcanna/ReleaseNotes/1_1_11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#### Integrations

##### Arcanna.AI
- Updated the Docker image to: *demisto/python3:3.10.14.95956*.



#### Scripts

##### ArcannaFeedbackPostProcessing
- Updated the Docker image to: *demisto/python3:3.10.14.95956*.


##### PrepareArcannaRawJson
- Updated the Docker image to: *demisto/python3:3.10.14.95956*.


Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ args:
description: Closing Notes for manual overriding.
name: closing_notes
- default: true
description: aaa
description: aaa.
name: closing_reason
comment: |-
Arcanna.Ai post-processing script for sending feedback back to Arcanna about the closed incident. Additional modification might be required depending on each Cortex setup.
Expand All @@ -25,7 +25,7 @@ tags:
- post-processing
timeout: '0'
type: python
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.14.95956
runas: DBotWeakRole
dependson:
should:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
args:
- default: true
description: Input string to transform to JSON escaped object
description: Input string to transform to JSON escaped object.
name: input
required: true
comment: Loads a json from string input, and returns a json escaped result.
commonfields:
id: PrepareArcannaRawJson
version: -1
dockerimage: demisto/python3:3.10.12.63474
dockerimage: demisto/python3:3.10.14.95956
enabled: true
name: PrepareArcannaRawJson
outputs:
- contextPath: JsonObject
description: The JSON object loaded from input and escaped for Arcanna to be used
description: The JSON object loaded from input and escaped for Arcanna to be used.
runas: DBotWeakRole
script: ''
scripttarget: 0
Expand Down
2 changes: 1 addition & 1 deletion Packs/Arcanna/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ArcannaAI",
"description": "Siscale Arcanna.Ai Cognitive automation platform that provides AI assistance to IT & Cybersecurity teams",
"support": "partner",
"currentVersion": "1.1.10",
"currentVersion": "1.1.11",
"author": "Siscale Engineering",
"created": "2021-06-16T20:46:43Z",
"url": "https://www.arcanna.ai/contact",
Expand Down
10 changes: 5 additions & 5 deletions Packs/ArcusTeam/Integrations/ArcusTeam/ArcusTeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from CommonServerPython import * # noqa: F401
import urllib3
import traceback
from typing import Any, Dict
from typing import Any


# Disable insecure warnings
Expand Down Expand Up @@ -60,7 +60,7 @@ def get_vulnerabities(self, firmwareId, deviceId, pageSize, page, sortField, sor
"returnFields": returnFields,
})

def get_authentication_token(self, authentication_url: str, headers: Dict, payload: Dict):
def get_authentication_token(self, authentication_url: str, headers: dict, payload: dict):
return self._http_request(
method='POST',
full_url=authentication_url,
Expand Down Expand Up @@ -93,7 +93,7 @@ def editIssue(issue):
key = returnFields[0]
if key == "risk":
issue = str(round(issue * 100, 2)) + '%'
data = dict()
data = {}
data[key] = issue
return data
else:
Expand All @@ -104,7 +104,7 @@ def editIssue(issue):
return editIssue


def arcusteam_get_devices(client: Client, args: Dict[str, Any]):
def arcusteam_get_devices(client: Client, args: dict[str, Any]):
"""
Search for matching devices giving a device name
:param device_name: device name to search for in the DB.
Expand All @@ -122,7 +122,7 @@ def arcusteam_get_devices(client: Client, args: Dict[str, Any]):
)


def arcusteam_get_vulnerabilities(client: Client, args: Dict[str, Any]) -> CommandResults:
def arcusteam_get_vulnerabilities(client: Client, args: dict[str, Any]) -> CommandResults:

returnFields = str(args.get("return_fields", 'risk,cve')).split(',')
firmwareId = args.get("firmware_id", "")
Expand Down
Loading

0 comments on commit d93f3b6

Please sign in to comment.