From b20961fcaf840524ba4e18b10c832289113c0bbd Mon Sep 17 00:00:00 2001 From: maimorag Date: Sun, 18 Jun 2023 17:23:39 +0300 Subject: [PATCH 1/8] Align credentials stores - part 21 --- Packs/nessus/.pack-ignore | 3 --- Packs/nessus/Integrations/Nessus/Nessus.js | 7 ++++++- Packs/nessus/Integrations/Nessus/Nessus.yml | 12 ++++++++++-- Packs/nessus/ReleaseNotes/1_0_4.md | 5 +++++ Packs/nessus/pack_metadata.json | 2 +- 5 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 Packs/nessus/ReleaseNotes/1_0_4.md diff --git a/Packs/nessus/.pack-ignore b/Packs/nessus/.pack-ignore index 96991510cbab..5c5d7ec14bfa 100644 --- a/Packs/nessus/.pack-ignore +++ b/Packs/nessus/.pack-ignore @@ -1,5 +1,2 @@ -[file:Nessus.yml] -ignore=IN145 - [file:Nessus_image.png] ignore=IM111 diff --git a/Packs/nessus/Integrations/Nessus/Nessus.js b/Packs/nessus/Integrations/Nessus/Nessus.js index 016d56b89796..92b76216aae6 100644 --- a/Packs/nessus/Integrations/Nessus/Nessus.js +++ b/Packs/nessus/Integrations/Nessus/Nessus.js @@ -114,12 +114,17 @@ var jsonToEntity = function(origObj, newKeys){ }; var login = function() { + var username = params.credentials !== undefined ? params.credentials.identifier : params.username; + var password = params.credentials !== undefined ? params.credentials.password : params.password; + if (!(username&&password)){ + throw 'Username and Password must be provided'; + } var result = http( getReadyURL()+'session', { Headers: {'Content-Type': ['application/json']}, Method: 'POST', - Body: JSON.stringify({'username':params.username,'password':params.password}), + Body: JSON.stringify({'username':username,'password':password}), }, params.insecure ); diff --git a/Packs/nessus/Integrations/Nessus/Nessus.yml b/Packs/nessus/Integrations/Nessus/Nessus.yml index 70743c8e54dd..9d4e275da8f5 100644 --- a/Packs/nessus/Integrations/Nessus/Nessus.yml +++ b/Packs/nessus/Integrations/Nessus/Nessus.yml @@ -16,12 +16,20 @@ configuration: name: username defaultvalue: "" type: 0 - required: true + required: false + hidden: true - display: Password name: password defaultvalue: "" type: 4 - required: true + required: false + hidden: true +- display: Username + name: credentials + required: false + type: 9 + displaypassword: Password + section: Connect - display: Trust any certificate (not secure) name: insecure type: 8 diff --git a/Packs/nessus/ReleaseNotes/1_0_4.md b/Packs/nessus/ReleaseNotes/1_0_4.md new file mode 100644 index 000000000000..73a2ca27ab53 --- /dev/null +++ b/Packs/nessus/ReleaseNotes/1_0_4.md @@ -0,0 +1,5 @@ + +#### Integrations + +##### Nessus +Added the *Username* and *Password* integration parameters to support credentials fetching object. diff --git a/Packs/nessus/pack_metadata.json b/Packs/nessus/pack_metadata.json index 0d1a41961e96..596d5636737a 100644 --- a/Packs/nessus/pack_metadata.json +++ b/Packs/nessus/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Nessus", "description": "Vulnerability scanner for auditors and security analysts by Tenable Network Security", "support": "xsoar", - "currentVersion": "1.0.3", + "currentVersion": "1.0.4", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", From 2056102480a30c0444424960110f2a8cf75e9db1 Mon Sep 17 00:00:00 2001 From: maimorag Date: Mon, 19 Jun 2023 14:47:26 +0300 Subject: [PATCH 2/8] align credentials part 21 --- Packs/MicrosoftGraphCalendar/.pack-ignore | 2 +- .../MicrosoftGraphCalendar.py | 9 ++++--- .../MicrosoftGraphCalendar.yml | 26 ++++++++++++++++++- .../ReleaseNotes/1_1_12.md | 10 +++++++ .../MicrosoftGraphCalendar/pack_metadata.json | 2 +- 5 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md diff --git a/Packs/MicrosoftGraphCalendar/.pack-ignore b/Packs/MicrosoftGraphCalendar/.pack-ignore index 7fb51be10e39..806162ed6c91 100644 --- a/Packs/MicrosoftGraphCalendar/.pack-ignore +++ b/Packs/MicrosoftGraphCalendar/.pack-ignore @@ -2,4 +2,4 @@ ignore=auto-test [file:MicrosoftGraphCalendar.yml] -ignore=DS107,IN145 +ignore=DS107 diff --git a/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py b/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py index d657252d63cf..05e9bce7fa3c 100644 --- a/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py +++ b/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.py @@ -512,13 +512,14 @@ def module_test_function_command(client: MsGraphClient, args: Dict) -> Tuple[str def main(): params: dict = demisto.params() url = params.get('url', '').rstrip('/') + '/v1.0/' - tenant = params.get('tenant_id') - auth_and_token_url = params.get('auth_id', '') - enc_key = params.get('enc_key') + tenant = params.get('credentials_tenant_id', {}).get('password') or params.get('tenant_id') + auth_and_token_url = params.get('credentials_auth_id', {}).get('password') or params.get('auth_id', '') + enc_key = params.get('credentials_enc_key', {}).get('password') or params.get('enc_key') verify = not params.get('insecure', False) proxy = params.get('proxy', False) default_user = params.get('default_user') - certificate_thumbprint = params.get('certificate_thumbprint') + certificate_thumbprint = params.get('credentials_certificate_thumbprint', {}).get( + 'password') or params.get('certificate_thumbprint') private_key = params.get('private_key') managed_identities_client_id = get_azure_managed_identities_client_id(params) self_deployed: bool = params.get('self_deployed', False) or managed_identities_client_id is not None diff --git a/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml b/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml index 7781c4be8539..a76019c1a05f 100644 --- a/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml +++ b/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml @@ -12,20 +12,44 @@ configuration: name: auth_id required: false type: 4 + hidden: true +- displaypassword: ID (received from the admin consent - see Detailed Instructions (?) + name: credentials_auth_id + required: false + hiddenusername: true + type: 9 - display: Token (received from the admin consent - see Detailed Instructions (?) section) name: tenant_id required: false type: 4 + hidden: true +- displaypassword: Token (received from the admin consent - see Detailed Instructions (?) + name: credentials_tenant_id + required: false + hiddenusername: true + type: 9 - display: Key (received from the admin consent - see Detailed Instructions (?) name: enc_key required: false type: 4 + hidden: true +- displaypassword: Key (received from the admin consent - see Detailed Instructions (?) + name: credentials_enc_key + required: false + hiddenusername: true + type: 9 - additionalinfo: Used for certificate authentication. As appears in the "Certificates & secrets" page of the app. display: Certificate Thumbprint name: certificate_thumbprint required: false type: 4 +- additionalinfo: Used for certificate authentication. As appears in the "Certificates & secrets" page of the app. + displaypassword: Certificate Thumbprint + name: credentials_certificate_thumbprint + required: false + hiddenusername: true + type: 9 - additionalinfo: Used for certificate authentication. The private key of the registered certificate. display: Private Key name: private_key @@ -824,7 +848,7 @@ script: description: "A URL for an online meeting, used only when an organizer specifies\ \ an event as an online meeting, such as a Skype meeting. Read-only." type: Unknown - dockerimage: demisto/crypto:1.0.0.52480 + dockerimage: demisto/crypto:1.0.0.63672 isfetch: false longRunning: false longRunningPort: false diff --git a/Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md b/Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md new file mode 100644 index 000000000000..e6d5dee1493d --- /dev/null +++ b/Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md @@ -0,0 +1,10 @@ + +#### Integrations + +##### O365 Outlook Calendar +- Added the following integration parameters to support credentials fetching object: + - ID. + - Token. + - Key. + - Certificate Thumbprint. +- Updated the Docker image to: *demisto/crypto:1.0.0.63672*. diff --git a/Packs/MicrosoftGraphCalendar/pack_metadata.json b/Packs/MicrosoftGraphCalendar/pack_metadata.json index 1cec9a0e287a..d8f76696288b 100644 --- a/Packs/MicrosoftGraphCalendar/pack_metadata.json +++ b/Packs/MicrosoftGraphCalendar/pack_metadata.json @@ -1,7 +1,7 @@ { "name": "Microsoft Graph Calendar", "description": "Microsoft Graph Calendar enables you to create and manage different calendars and events\n according to your requirements.", - "currentVersion": "1.1.11", + "currentVersion": "1.1.12", "support": "xsoar", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", From 6111d144fe90dc2601b466b179b3ac6c5cd22abd Mon Sep 17 00:00:00 2001 From: maimorag Date: Tue, 20 Jun 2023 22:21:01 +0300 Subject: [PATCH 3/8] O365 Outlook Calendar rl --- Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md b/Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md index e6d5dee1493d..c632e8e790ec 100644 --- a/Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md +++ b/Packs/MicrosoftGraphCalendar/ReleaseNotes/1_1_12.md @@ -3,8 +3,8 @@ ##### O365 Outlook Calendar - Added the following integration parameters to support credentials fetching object: - - ID. - - Token. - - Key. - - Certificate Thumbprint. + - *ID*. + - *Token*. + - *Key*. + - *Certificate Thumbprint*. - Updated the Docker image to: *demisto/crypto:1.0.0.63672*. From 418fbdc61d6184c42d6fbd2b2edac0f165feb923 Mon Sep 17 00:00:00 2001 From: maimorag Date: Tue, 20 Jun 2023 23:22:35 +0300 Subject: [PATCH 4/8] fixes --- .../MicrosoftGraphCalendar.yml | 1 + Packs/nessus/Integrations/Nessus/README.md | 309 ++++++++++++++++++ 2 files changed, 310 insertions(+) diff --git a/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml b/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml index a76019c1a05f..aef1c5111325 100644 --- a/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml +++ b/Packs/MicrosoftGraphCalendar/Integrations/MicrosoftGraphCalendar/MicrosoftGraphCalendar.yml @@ -44,6 +44,7 @@ configuration: name: certificate_thumbprint required: false type: 4 + hidden: true - additionalinfo: Used for certificate authentication. As appears in the "Certificates & secrets" page of the app. displaypassword: Certificate Thumbprint name: credentials_certificate_thumbprint diff --git a/Packs/nessus/Integrations/Nessus/README.md b/Packs/nessus/Integrations/Nessus/README.md index e69de29bb2d1..e370b27c2109 100644 --- a/Packs/nessus/Integrations/Nessus/README.md +++ b/Packs/nessus/Integrations/Nessus/README.md @@ -0,0 +1,309 @@ + +### nessus-list-scans + +*** +Returns the scan list + +#### Base Command + +`nessus-list-scans` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| foldersHeaders | The table's headers to be shown by order. | Optional | +| scansHeaders | The table's headers to be shown by order. | Optional | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| NessusScan.UUID | unknown | The uuid for the scan. | +| NessusScan.Name | unknown | The name of the scan. | +| NessusScan.Status | unknown | The status of the scan. | +| NessusScan.FolderID | unknown | The unique id of the folder housing the scan. | +| NessusScan.ID | unknown | The unique id of the scan. | +| NessusScan.UserPermissions | unknown | The sharing permissions for the scan. | +| NessusScan.CreationDate | unknown | The creation date for the scan in unixtime. | +| NessusScan.LastModificationDate | unknown | The last modification date for the scan in unixtime. | +| NessusScan.Type | unknown | The type of scan \(local, remote, or agent\). | +| NessusScan.Policy | unknown | The policy if the scan. | +| NessusFolder.UnreadCount | unknown | The number of unread scans in the folder. | +| NessusFolder.Custom | unknown | The custom status of the folder \(1 or 0\). | +| NessusFolder.DefaultTag | unknown | Whether or not the folder is the default \(1 or 0\). | +| NessusFolder.Type | unknown | The type of the folder \(main, trash, custom\). | +| NessusFolder.Name | unknown | The name of the folder. | +| NessusFolder.ID | unknown | The unique id of the folder. | +### nessus-launch-scan + +*** +Launches a new vulnerability scan + +#### Base Command + +`nessus-launch-scan` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| scanId | The Scan ID (use command list-scans to get possible scan ID's). | Required | +| targets | If specified, these targets will be scanned instead of the default. Value can be single host or of comma separated targets. | Optional | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| ScanUUID | unknown | The uuid of the launched scan. | +### nessus-scan-details + +*** +Returns details for the given scan + +#### Base Command + +`nessus-scan-details` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| scanId | The Scan ID (use command list-scans to get possible scan ID's). | Required | +| historyId | The history_id of the historical data that should be returned. | Optional | +| tables | The tables to be shown by order. | Optional | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| NessusScan.UUID | unknown | The uuid for the scan. | +| NessusScan.Name | unknown | The name of the scan. | +| NessusScan.Status | unknown | The status of the scan. | +| NessusScan.FolderID | unknown | The unique id of the folder housing the scan. | +| NessusScan.ID | unknown | The unique id of the scan. | +| NessusScan.UserPermissions | unknown | The sharing permissions for the scan. | +| NessusScan.CreationDate | unknown | The creation date for the scan in unixtime. | +| NessusScan.LastModificationDate | unknown | The last modification date for the scan in unixtime. | +| NessusScan.Type | unknown | The type of scan \(local, remote, or agent\). | +| NessusScan.Policy | unknown | The policy if the scan. | +| NessusScan.Endpoint.ID | unknown | The unique id of the host. | +| NessusScan.Endpoint.Index | unknown | The index for the host. | +| NessusScan.Endpoint.Hostname | unknown | The overall severity rating of the host. | +| NessusScan.Endpoint.Progress | unknown | The scan progress of the host. | +| NessusScan.Endpoint.Critical | unknown | The percentage of critical findings on the host. | +| NessusScan.Endpoint.High | unknown | The percentage of high findings on the host. | +| NessusScan.Endpoint.Medium | unknown | The percentage of medium findings on the host. | +| NessusScan.Endpoint.Low | unknown | The percentage of low findings on the host. | +| NessusScan.Endpoint.Info | unknown | The percentage of info findings on the host. | +| NessusScan.Endpoint.TotalChecksConsidered | unknown | The total number of checks considered on the host. | +| NessusScan.Endpoint.NumChecksConsidered | unknown | The number of checks considered on the host. | +| NessusScan.Endpoint.ScanProgressTotal | unknown | The total scan progress for the host. | +| NessusScan.Endpoint.ScanProgressCurrent | unknown | The current scan progress for the host. | +| NessusScan.Endpoint.Score | unknown | The overall score for the host. | +| NessusScan.Vulnerability.PluginID | unknown | The unique id of the vulnerability plugin. | +| NessusScan.Vulnerability.PluginName | unknown | The name of the vulnerability plugin. | +| NessusScan.Vulnerability.PluginFamily | unknown | The parent family of the vulnerability plugin. | +| NessusScan.Vulnerability.Count | unknown | The number of vulnerabilities found. | +| NessusScan.Vulnerability.VulnerabilityIndex | unknown | The index of the vulnerability plugin. | +| NessusScan.Vulnerability.SeverityIndex | unknown | The severity index order of the plugin. | +| NessusScan.Note.Title | unknown | The title of the note. | +| NessusScan.Note.Message | unknown | The specific message of the note. | +| NessusScan.Note.Sevirity | unknown | The severity of the note. | +| NessusScan.Filter.Name | unknown | The short name of the filter. | +| NessusScan.Filter.ReadableName | unknown | The long name of the filter. | +| NessusScan.Filter.Operators | unknown | The comparison options for the filter. | +| NessusScan.Filter.Type | unknown | The input type for the filter. | +| NessusScan.Filter.ReadableRegest | unknown | The input placeholder for the filter. | +| NessusScan.Filter.Regex | unknown | The input regex values for the filter. | +| NessusScan.Filter.Options | unknown | Other input options for the filter. | +| NessusScan.History.ID | unknown | The unique id of the historical data. | +| NessusScan.History.UUID | unknown | The uuid of the historical data. | +| NessusScan.History.OwnerID | unknown | The unique id of the owner of the scan. | +| NessusScan.History.Status | unknown | The status of the historical data. | +| NessusScan.History.CreationDate | unknown | The creation date for the historical data in unixtime. | +| NessusScan.History.LastModification_date | unknown | The last modification date for the historical data in unixtime. | +| NessusScan.Remediations.Remediations | unknown | Remedy to vulnerabilites found during the scan. | +| NessusScan.Remediations.NumHosts | unknown | Number of hosts of Remediations | +| NessusScan.Remediations.NumCVEs | unknown | Number of CVE's | +| NessusScan.Remediations.NumImpactedHosts | unknown | Number of impacted hosts | +| NessusScan.Remediations.NumRemediatedCVEs | unknown | Number of Remediated CVE's | +### nessus-scan-host-details + +*** +Returns details for the given host. + +#### Base Command + +`nessus-scan-host-details` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| scanId | The Scan ID (use command list-scans to get possible scan ID's). | Required | +| historyId | The history_id of the historical data that should be returned. | Optional | +| hostId | The id of the host to retrieve. | Required | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| Endpoint.ID | unknown | The unique id of the host. | +| Endpoint.Index | unknown | The index for the host. | +| Endpoint.Hostname | unknown | The overall severity rating of the host. | +| Endpoint.Progress | unknown | The scan progress of the host. | +| Endpoint.Critical | unknown | The percentage of critical findings on the host. | +| Endpoint.High | unknown | The percentage of high findings on the host. | +| Endpoint.Medium | unknown | The percentage of medium findings on the host. | +| Endpoint.Low | unknown | The percentage of low findings on the host. | +| Endpoint.Info | unknown | The percentage of info findings on the host. | +| Endpoint.TotalChecksConsidered | unknown | The total number of checks considered on the host. | +| Endpoint.NumChecksConsidered | unknown | The number of checks considered on the host. | +| Endpoint.ScanProgressTotal | unknown | The total scan progress for the host. | +| Endpoint.ScanProgressCurrent | unknown | The current scan progress for the host. | +| Endpoint.Score | unknown | The overall score for the host. | +### nessus-scan-export + +*** +Export the given scan (Nessus, HTML, PDF, CSV, or DB format) + +#### Base Command + +`nessus-scan-export` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| scanId | The Scan ID (use command list-scans to get possible scan ID's). | Required | +| historyId | The history_id of the historical data that should be returned. | Optional | +| format | scan report file format (nessus, csv, html, db, pdf). | Required | +| password | The password used to encrypt database exports (*Required when exporting as DB). | Optional | +| chapters | The chapters to include in the export (expecting a semi-colon delimited string comprised of some combination of the following options: vuln_hosts_summary, vuln_by_host, compliance_exec, remediations, vuln_by_plugin, compliance). | Optional | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| ScanReportID | unknown | ID of the scan report. | +### nessus-scan-report-download + +*** +Download an exported scan + +#### Base Command + +`nessus-scan-report-download` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| scanId | The Scan ID (use command list-scans to get possible scan ID's). | Required | +| fileId | The id of the file to download (result from command export-scan). | Required | + +#### Context Output + +There is no context output for this command. +### nessus-scan-create + +*** +Creates a new scan + +#### Base Command + +`nessus-scan-create` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| editor | The uuid for the editor template to use. | Required | +| name | The name of the scan. | Required | +| description | The description of the scan. | Optional | +| policyId | The unique id of the policy to use(number). | Optional | +| folderId | The unique id of the destination folder for the scan(number). | Optional | +| scannerId | The unique id of the scanner to use(number). | Optional | +| schedule | If true, the schedule for the scan is enabled(true/false). | Required | +| launch | When to launch the scan. (i.e. ON_DEMAND, DAILY, WEEKLY, MONTHLY, YEARLY). | Optional | +| startTime | The starting time and date for the scan (i.e. YYYYMMDDTHHMMSS). | Optional | +| rules | Expects a semi-colon delimited string comprised of three values. The frequency (FREQ=ONCE or DAILY or WEEKLY or MONTHLY or YEARLY), the interval (INTERVAL=1 or 2 or 3 ... x), and the days of the week (BYDAY=SU,MO,TU,WE,TH,FR,SA). To create a scan that runs every three weeks on Monday Wednesday and Friday the string would be 'FREQ=WEEKLY;INTERVAL=3;BYDAY=MO,WE,FR'. | Optional | +| timeZone | The timezone for the scan schedule. | Optional | +| targets | The list of targets to scan, Value can be single host or of comma separated targets. | Required | +| emails | A comma separated list of accounts who will recieve the email summary report. | Optional | +| acls | An array containing permissions to apply to the scan. | Optional | +| fileTargets | The name of a file containing the list of targets to scan. | Optional | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| NessusScan.UUID | unknown | The uuid for the scan. | +| NessusScan.Name | unknown | The name of the scan. | +| NessusScan.Status | unknown | The status of the scan. | +| NessusScan.FolderID | unknown | The unique id of the folder housing the scan. | +| NessusScan.ID | unknown | The unique id of the scan. | +| NessusScan.UserPermissions | unknown | The sharing permissions for the scan. | +| NessusScan.CreationDate | unknown | The creation date for the scan in unixtime. | +| NessusScan.LastModificationDate | unknown | The last modification date for the scan in unixtime. | +| NessusScan.Type | unknown | The type of scan \(local, remote, or agent\). | +| NessusScan.Policy | unknown | The policy if the scan. | +### nessus-get-scans-editors + +*** +Returns all scan editors template list + +#### Base Command + +`nessus-get-scans-editors` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | + +#### Context Output + +There is no context output for this command. +### nessus-scan-export-status + +*** +Check the file status of an exported scan + +#### Base Command + +`nessus-scan-export-status` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| scanId | The Scan ID (use command list-scans to get possible scan ID's). | Required | +| fileId | The id of the file to download (result from command export-scan). | Required | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| NessusScan.ScanReportStatus | unknown | The status of the scan report. | +### nessus-scan-status + +*** +Get scan status by scan id + +#### Base Command + +`nessus-scan-status` + +#### Input + +| **Argument Name** | **Description** | **Required** | +| --- | --- | --- | +| scanId | The Scan ID (use command list-scans to get possible scan ID's). | Required | + +#### Context Output + +| **Path** | **Type** | **Description** | +| --- | --- | --- | +| NessusScan.Status | unknown | The status of the scan report. | From c8b8bafd3fa9cb549cb1b614711bba7e2c20dc29 Mon Sep 17 00:00:00 2001 From: maimorag Date: Tue, 20 Jun 2023 23:23:48 +0300 Subject: [PATCH 5/8] add to pack ignore --- Packs/MicrosoftGraphCalendar/.pack-ignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/MicrosoftGraphCalendar/.pack-ignore b/Packs/MicrosoftGraphCalendar/.pack-ignore index 806162ed6c91..fc0b5ee0a8a6 100644 --- a/Packs/MicrosoftGraphCalendar/.pack-ignore +++ b/Packs/MicrosoftGraphCalendar/.pack-ignore @@ -2,4 +2,4 @@ ignore=auto-test [file:MicrosoftGraphCalendar.yml] -ignore=DS107 +ignore=DS107,IN124 From 84a214f492f0a9ee2f22c50b7534cc9c8c39dc17 Mon Sep 17 00:00:00 2001 From: Mai Morag <81917647+maimorag@users.noreply.github.com> Date: Thu, 22 Jun 2023 11:08:33 +0300 Subject: [PATCH 6/8] Update Packs/nessus/Integrations/Nessus/Nessus.js Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com> --- Packs/nessus/Integrations/Nessus/Nessus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packs/nessus/Integrations/Nessus/Nessus.js b/Packs/nessus/Integrations/Nessus/Nessus.js index 92b76216aae6..d405d3b7ad07 100644 --- a/Packs/nessus/Integrations/Nessus/Nessus.js +++ b/Packs/nessus/Integrations/Nessus/Nessus.js @@ -114,8 +114,8 @@ var jsonToEntity = function(origObj, newKeys){ }; var login = function() { - var username = params.credentials !== undefined ? params.credentials.identifier : params.username; - var password = params.credentials !== undefined ? params.credentials.password : params.password; + var username = params.credentials?.identifier || params.username; + var password = params.credentials?.password || params.password; if (!(username&&password)){ throw 'Username and Password must be provided'; } From 0b8dc17e5061122b2efe46a931c399ff026b0eb9 Mon Sep 17 00:00:00 2001 From: maimorag Date: Thu, 22 Jun 2023 13:48:51 +0300 Subject: [PATCH 7/8] Nessus change --- Packs/nessus/Integrations/Nessus/Nessus.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Packs/nessus/Integrations/Nessus/Nessus.js b/Packs/nessus/Integrations/Nessus/Nessus.js index d405d3b7ad07..185dc931184e 100644 --- a/Packs/nessus/Integrations/Nessus/Nessus.js +++ b/Packs/nessus/Integrations/Nessus/Nessus.js @@ -113,9 +113,10 @@ var jsonToEntity = function(origObj, newKeys){ } }; + var login = function() { - var username = params.credentials?.identifier || params.username; - var password = params.credentials?.password || params.password; + let username = (!params.credentials)? params.credentials.identifier : params.username; + let password = (!params.credentials)? params.credentials.password : params.password; if (!(username&&password)){ throw 'Username and Password must be provided'; } From 17472afab0f80c4c3c53ce7003f2aff9f71d8805 Mon Sep 17 00:00:00 2001 From: Mai Morag <81917647+maimorag@users.noreply.github.com> Date: Thu, 22 Jun 2023 14:05:01 +0300 Subject: [PATCH 8/8] Update Packs/nessus/Integrations/Nessus/Nessus.js Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com> --- Packs/nessus/Integrations/Nessus/Nessus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packs/nessus/Integrations/Nessus/Nessus.js b/Packs/nessus/Integrations/Nessus/Nessus.js index 185dc931184e..db58367b433d 100644 --- a/Packs/nessus/Integrations/Nessus/Nessus.js +++ b/Packs/nessus/Integrations/Nessus/Nessus.js @@ -115,8 +115,8 @@ var jsonToEntity = function(origObj, newKeys){ var login = function() { - let username = (!params.credentials)? params.credentials.identifier : params.username; - let password = (!params.credentials)? params.credentials.password : params.password; + let username = params.credentials ? params.credentials.identifier : params.username; + let password = params.credentials ? params.credentials.password : params.password; if (!(username&&password)){ throw 'Username and Password must be provided'; }