Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core get-prevalence #19543

Merged
merged 20 commits into from Jun 27, 2022
Merged

Core get-prevalence #19543

merged 20 commits into from Jun 27, 2022

Conversation

dansterenson
Copy link
Contributor

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

https://jira-hq.paloaltonetworks.local/browse/CIAC-470
https://github.com/demisto/etc/issues/48080

Minimum version of Cortex XSOAR

  • 6.0.0
  • 6.1.0
  • 6.2.0
  • 6.5.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

@dansterenson dansterenson marked this pull request as ready for review June 23, 2022 13:22
'process': 'process_name',
'cmd': 'process_command_line',
'hash': 'sha256',
'registry': 'key_name'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PEP8

Suggested change
'registry': 'key_name'
'registry': 'key_name',

Comment on lines 108 to 109
for i in range(len(keys)):
args_list.append({'key_name': keys[i], 'value_name': values[i]})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is python, not C.

Suggested change
for i in range(len(keys)):
args_list.append({'key_name': keys[i], 'value_name': values[i]})
for key, value in zip(keys, values):
args_list.append({'key_name': key, 'value_name': value})

type: Boolean
- contextPath: Core.AnalyticsPrevalence.Hash.data.global_prevalence
description: The global prevalence of the hash.
type: Unknown
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update all output typing (unless they are not simple types)

Comment on lines 3118 to 3119
predefined:
- ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
predefined:
- ''

description: Get the prevalence of an ip, identified by ip_address.
execution: false
hidden: false
name: core-get-IP-analytics-prevalence
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commands should be all lower-case.

Suggested change
name: core-get-IP-analytics-prevalence
name: core-get-ip-analytics-prevalence

- ***core-get-domain-analytics-prevalence***
- ***core-get-process-analytics-prevalence***
- ***core-get-registry-analytics-prevalence***
- ***core-get-cmd-analytics-prevalence'***
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- ***core-get-cmd-analytics-prevalence'***
- ***core-get-cmd-analytics-prevalence***

@xsoar-bot
Copy link
Contributor

@yaakovi yaakovi merged commit f2f6c0c into master Jun 27, 2022
@yaakovi yaakovi deleted the core-get-prevalence branch June 27, 2022 13:25
@yaakovi
Copy link
Contributor

yaakovi commented Jun 27, 2022

The build failed on irrelevant tests in XSIAM

PierrickV pushed a commit to SEKOIA-IO/Cortex-XSOAR-integration that referenced this pull request Jul 11, 2022
* added new command

* changes after access to API.

* some changes

* added prevalence command

* more fixes

* update RN

* moved commands to IR instead of IOC

* Added UT

* Added UT

* Added UT

* validation and lint fixes

* fix yml file

* review fixes

* validation err fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants