Skip to content

Commit 1a6ffac

Browse files
BarGaliShacharKidorContent Bot
authored andcommitted
Exposed XSOAR Debug Log (demisto#40697)
* delete logs * resolve-conflicts * delete duplication from merge * add RN * Update Packs/CybleEventsV2/ReleaseNotes/1_1_2.md Co-authored-by: Shachar Kidor <[email protected]> * Update Packs/Gem/ReleaseNotes/1_0_6.md Co-authored-by: Shachar Kidor <[email protected]> * Update Packs/QutteraWebsiteMalwareScanner/ReleaseNotes/1_0_21.md Co-authored-by: Shachar Kidor <[email protected]> * Bump pack from version Gem to 1.0.7. * fixes for pre-commit * fixes for pre-commit --------- Co-authored-by: Shachar Kidor <[email protected]> Co-authored-by: Content Bot <[email protected]>
1 parent 2a7008f commit 1a6ffac

File tree

11 files changed

+50
-26
lines changed

11 files changed

+50
-26
lines changed

Packs/CybleEventsV2/Integrations/CybleEventsV2/CybleEventsV2.py

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,8 @@ def main():
13271327
verify_certificate = not params.get("insecure", False)
13281328
proxy = params.get("proxy", False)
13291329
hide_cvv_expiry = params.get("hide_data", False)
1330-
demisto.debug(f"Command being called is {params}")
1330+
command = demisto.command()
1331+
demisto.debug(f"Command being called is {command}")
13311332
mirror = params.get("mirror", False)
13321333
incident_collections = params.get("incident_collections", [])
13331334
incident_severity = params.get("incident_severity", [])
@@ -1336,42 +1337,42 @@ def main():
13361337
client = Client(base_url=params.get("base_url"), verify=verify_certificate, proxy=proxy)
13371338
args = demisto.args()
13381339

1339-
if demisto.command() == "test-module":
1340-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1340+
if command == "test-module":
1341+
url = base_url + str(ROUTES[COMMAND[command]])
13411342
return_results(test_response(client, "GET", url, token))
13421343

1343-
elif demisto.command() == "fetch-incidents":
1344+
elif command == "fetch-incidents":
13441345
last_run = demisto.getLastRun()
13451346

1346-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1347+
url = base_url + str(ROUTES[COMMAND[command]])
13471348
data, next_run = cyble_events(
13481349
client, "POST", token, url, args, last_run, hide_cvv_expiry, incident_collections, incident_severity, False
13491350
)
13501351

13511352
demisto.setLastRun(next_run)
13521353
demisto.incidents(data)
13531354

1354-
elif demisto.command() == "update-remote-system":
1355+
elif command == "update-remote-system":
13551356
if mirror:
1356-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1357+
url = base_url + str(ROUTES[COMMAND[command]])
13571358
return_results(update_remote_system(client, "PUT", token, args, url))
13581359
return
13591360

1360-
elif demisto.command() == "get-mapping-fields":
1361-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1361+
elif command == "get-mapping-fields":
1362+
url = base_url + str(ROUTES[COMMAND[command]])
13621363
return_results(get_mapping_fields(client, token, url))
13631364

1364-
elif demisto.command() == "cyble-vision-subscribed-services":
1365+
elif command == "cyble-vision-subscribed-services":
13651366
return_results(fetch_subscribed_services_alert(client, "GET", base_url, token))
13661367

1367-
elif demisto.command() == "cyble-vision-fetch-iocs":
1368+
elif command == "cyble-vision-fetch-iocs":
13681369
validate_iocs_input(args)
1369-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1370+
url = base_url + str(ROUTES[COMMAND[command]])
13701371
command_results = cyble_fetch_iocs(client, "GET", token, args, url)
13711372
return_results(command_results)
13721373

1373-
elif demisto.command() == "cyble-vision-fetch-alerts":
1374-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1374+
elif command == "cyble-vision-fetch-alerts":
1375+
url = base_url + str(ROUTES[COMMAND[command]])
13751376
lst_alerts = cyble_events(
13761377
client, "POST", token, url, args, {}, hide_cvv_expiry, incident_collections, incident_severity, True
13771378
)
@@ -1384,25 +1385,25 @@ def main():
13841385
)
13851386
)
13861387

1387-
elif demisto.command() == "get-modified-remote-data":
1388-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1388+
elif command == "get-modified-remote-data":
1389+
url = base_url + str(ROUTES[COMMAND[command]])
13891390
return_results(
13901391
get_modified_remote_data_command(
13911392
client, url, token, args, hide_cvv_expiry, incident_collections, incident_severity
13921393
)
13931394
)
13941395

1395-
elif demisto.command() == "get-remote-data":
1396-
url = base_url + str(ROUTES[COMMAND[demisto.command()]])
1396+
elif command == "get-remote-data":
1397+
url = base_url + str(ROUTES[COMMAND[command]])
13971398
return_results(
13981399
get_remote_data_command(client, url, token, args, incident_collections, incident_severity, hide_cvv_expiry)
13991400
)
14001401

14011402
else:
1402-
raise NotImplementedError(f"{demisto.command()} command is not implemented.")
1403+
raise NotImplementedError(f"{command} command is not implemented.")
14031404

14041405
except Exception as e:
1405-
return_error(f"Failed to execute {demisto.command()} command. Error: {str(e)}")
1406+
return_error(f"Failed to execute {command} command. Error: {str(e)}")
14061407

14071408

14081409
if __name__ in ("__main__", "__builtin__", "builtins"):
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### CybleEvents v2
5+
6+
- Logging improvements.

Packs/CybleEventsV2/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "CybleEventsV2",
33
"description": "Cyble Events for Vision Users. Must have Vision API access to use the threat intelligence.",
44
"support": "partner",
5-
"currentVersion": "1.1.1",
5+
"currentVersion": "1.1.2",
66
"author": "Cyble Info Sec",
77
"url": "https://cyble.com/",
88
"email": "",

Packs/Gem/Integrations/Gem/Gem.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,6 @@ def main() -> None:
11181118
command = demisto.command()
11191119

11201120
demisto.debug(f"args {args}")
1121-
demisto.debug(f"params {params}")
11221121

11231122
demisto.debug(f"Command being called is {command}")
11241123
try:

Packs/Gem/Integrations/Gem/Gem.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ configuration:
3636
name: first_fetch
3737
required: false
3838
type: 0
39+
section: Collect
3940
- display: Use system proxy settings
4041
name: proxy
4142
type: 8

Packs/Gem/ReleaseNotes/1_0_7.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### Gem
5+
6+
- Logging improvements.

Packs/Gem/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Gem",
33
"description": "Integrate with Gem to use alerts as a trigger for Cortex XSOAR’s custom playbooks, and automate response to specific TTPs and scenarios.",
44
"support": "partner",
5-
"currentVersion": "1.0.6",
5+
"currentVersion": "1.0.7",
66
"author": "Gem Security",
77
"url": "https://gem.security/",
88
"email": "[email protected]",

Packs/QutteraWebsiteMalwareScanner/Integrations/QutteraWebsiteMalwareScanner/QutteraWebsiteMalwareScanner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ def main(): # pragma: no cover
205205
command = demisto.command()
206206
demisto.info(f"Command called {command}")
207207
demisto.info(f"Args are {args}")
208-
demisto.info(f"params are {params}")
209208
client = Client(params)
210209
try:
211210
if command == "quttera-scan-start":

Packs/QutteraWebsiteMalwareScanner/Integrations/QutteraWebsiteMalwareScanner/QutteraWebsiteMalwareScanner.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
sectionOrder:
2+
- Connect
3+
- Collect
14
commonfields:
25
id: QutteraWebsiteMalwareScanner
36
version: -1
@@ -15,15 +18,17 @@ configuration:
1518
name: apikey
1619
required: true
1720
type: 4
21+
section: Connect
1822
- display: Quttera Scanner URL
1923
name: base_url
2024
required: true
2125
defaultvalue: "https://scannerapi.quttera.com"
2226
type: 0
27+
section: Connect
2328
script:
2429
type: python
2530
subtype: python3
26-
dockerimage: demisto/python3:3.11.10.115186
31+
dockerimage: demisto/python3:3.12.11.4208709
2732
script: ''
2833
commands:
2934
- name: quttera-scan-start
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#### Integrations
3+
4+
##### QutteraWebsiteMalwareScanner
5+
- Updated the Docker image to: *demisto/python3:3.12.11.4208709*.
6+
7+
- Logging improvements.

0 commit comments

Comments
 (0)