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

ASM - Expander - Jira Notification #27987

Merged

Conversation

johnnywilkes
Copy link
Contributor

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

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

Related Issues

https://jira-hq.paloaltonetworks.local/browse/EXPANDR-3213

Description

Adding Jira for notification purposes. Taking this opportunity to make some parts of the parent playbook as sub-playbooks for organization.

Screenshots

n/a

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

@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. labels Jul 7, 2023
@johnnywilkes johnnywilkes marked this pull request as draft July 7, 2023 18:09
@content-bot content-bot added Contribution Thank you! Contributions are always welcome! Xsoar Support Level Indicates that the contribution is for XSOAR supported pack labels Jul 7, 2023
@content-bot content-bot changed the base branch from master to contrib/johnnywilkes_ASM-EXPANDR-3213 July 7, 2023 18:10
@content-bot content-bot requested a review from mmhw July 7, 2023 18:10
@content-bot
Copy link
Collaborator

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @mmhw will know the proposed changes are ready to be reviewed.

@johnnywilkes johnnywilkes marked this pull request as ready for review July 7, 2023 18:30
@johnnywilkes johnnywilkes marked this pull request as draft July 7, 2023 18:30
@johnnywilkes
Copy link
Contributor Author

@ShirleyDenkberg , can you please review when possible

@johnnywilkes
Copy link
Contributor Author

@ShirleyDenkberg ShirleyDenkberg self-assigned this Jul 9, 2023
@mmhw
Copy link
Contributor

mmhw commented Jul 9, 2023

Hi @johnnywilkes,
For me it looks good, please update when it is possible to merge it.


##### New: Cortex ASM - ServiceNow Notification

Added the "Cortex ASM - ServiceNow Notification" Playbook that is used to create ServiceNow tickets directed toward service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).
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
Added the "Cortex ASM - ServiceNow Notification" Playbook that is used to create ServiceNow tickets directed toward service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).
Added the "Cortex ASM - ServiceNow Notification" playbook that is used to create ServiceNow tickets directed toward service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).


##### Cortex ASM - Remediation Path Rules

Updated the playbook to incorporate Jira check and dynamic data collection task.
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
Updated the playbook to incorporate Jira check and dynamic data collection task.
Updated the playbook to incorporate a Jira check and a dynamic data collection task.


##### New: Cortex ASM - Jira Notification

Added the "Cortex ASM - Jira Notification" Playbook that is used to create Jira tickets directed toward service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).
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
Added the "Cortex ASM - Jira Notification" Playbook that is used to create Jira tickets directed toward service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).
Added the "Cortex ASM - Jira Notification" playbook that is used to create Jira tickets directed toward service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).


##### New: Cortex ASM - Email Notification

Added the "Cortex ASM - Email Notification" Playbook that is used to send email notifications to service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).
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
Added the "Cortex ASM - Email Notification" Playbook that is used to send email notifications to service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).
Added the "Cortex ASM - Email Notification" playbook that is used to send email notifications to service owners to notify them of their internet exposures. (Available from Cortex XSOAR 6.8.0).

@ShirleyDenkberg
Copy link
Contributor

@mmhw Doc review completed.

@@ -4,7 +4,7 @@ ignore=IF100
[file:incidentfield-ASM_-_Playbook_Stage.json]
ignore=IF100

[file:Cortex_ASM_-_ASM_Alert.yml]
Copy link
Contributor

Choose a reason for hiding this comment

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

@johnnywilkes This was intentionally removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, that effectively disabled a validation error that was in Cortex_ASM_-ASM_Alert.yml and got moved to Cortex_ASM-_ServiceNow_Notification.yml

methods: []
format: html
format: ""
Copy link
Contributor

Choose a reason for hiding this comment

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

HTML format is not needed to be specified anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This GIT diff is really confusing and not sure why it is comparing these two tasks that are totally different. All of the "Select Remediation Action" data collection tasks have been moved to "Cortex ASM - Remediation Path Rules" as a single task and it is using format: html
https://github.com/johnnywilkes/content-jw/blob/14a3c5b116527d9cab0277e50686ab9c06c0a26f/Packs/CortexAttackSurfaceManagement/Playbooks/Cortex_ASM_-_Remediation_Path_Rules.yml#L1417

suffix:
iscontext: true
val4:
simple: TIMESTAMP
Copy link
Contributor

Choose a reason for hiding this comment

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

Observed this in few other places. Is TIMESTAMP a string? I'm guessing it should get the ISO time format and in the playbook run, I saw that the value is literal TIMESTAMP instead of an actual timestamp.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

check out this PR: #26634

@capanw
Copy link
Contributor

capanw commented Jul 9, 2023

@johnnywilkes Great work. Added few comments.

johnnywilkes and others added 2 commits July 10, 2023 10:23
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
@CLAassistant
Copy link

CLAassistant commented Jul 11, 2023

CLA assistant check
All committers have signed the CLA.

@johnnywilkes
Copy link
Contributor Author

@mmhw , this has been approved from our side. Please merge when possible, please.

@johnnywilkes johnnywilkes marked this pull request as draft July 11, 2023 21:25
@johnnywilkes
Copy link
Contributor Author

@mmhw , sorry for the back and forth, our QA found a potential issue I want to look into before we merge

@daryakoval daryakoval removed their request for review July 12, 2023 07:06
@yucohen yucohen removed their request for review July 12, 2023 08:10
@johnnywilkes
Copy link
Contributor Author

@mmhw , so the UI fix should be in Sunday. So after verified Monday I will take this out of draft stage

@Ni-Knight Ni-Knight removed their request for review July 13, 2023 14:30
@johnnywilkes johnnywilkes marked this pull request as ready for review July 17, 2023 18:49
@johnnywilkes
Copy link
Contributor Author

@mmhw , we are good to merge now, please do when possible

@mmhw mmhw added the ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. label Jul 18, 2023
@content-bot
Copy link
Collaborator

content-bot commented Jul 18, 2023

For the Reviewer: Successfully created a pipeline in Gitlab with url: https://code.pan.run/xsoar/content/-/pipelines/5797461

@mmhw mmhw added ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. and removed ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. labels Jul 18, 2023
Copy link
Contributor

@mmhw mmhw left a comment

Choose a reason for hiding this comment

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

Good work!

@mmhw mmhw merged commit 04836a1 into demisto:contrib/johnnywilkes_ASM-EXPANDR-3213 Jul 18, 2023
16 of 18 checks passed
mmhw added a commit that referenced this pull request Jul 20, 2023
* ASM - Expander - Jira Notification (#27987)

* 1st batch

* 2nd batch

* RN

* update README links

* RN typo

* fix val errors

* update rel version and remove NMAP

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* update input

* fix Alert validation

---------

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: bigeasyj <janny@paloaltonetworks.com>

* Bump the version

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* revert the core packs

* set skipunavailable to true in jira-create-issue

---------

Co-authored-by: johnnywilkes <32227961+johnnywilkes@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: bigeasyj <janny@paloaltonetworks.com>
Co-authored-by: Menachem Weinfeld <mmhw770@gmail.com>
Co-authored-by: Menachem Weinfeld <90556466+mmhw@users.noreply.github.com>
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
* ASM - Expander - Jira Notification (demisto#27987)

* 1st batch

* 2nd batch

* RN

* update README links

* RN typo

* fix val errors

* update rel version and remove NMAP

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* update input

* fix Alert validation

---------

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: bigeasyj <janny@paloaltonetworks.com>

* Bump the version

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* revert the core packs

* set skipunavailable to true in jira-create-issue

---------

Co-authored-by: johnnywilkes <32227961+johnnywilkes@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: bigeasyj <janny@paloaltonetworks.com>
Co-authored-by: Menachem Weinfeld <mmhw770@gmail.com>
Co-authored-by: Menachem Weinfeld <90556466+mmhw@users.noreply.github.com>
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
* ASM - Expander - Jira Notification (demisto#27987)

* 1st batch

* 2nd batch

* RN

* update README links

* RN typo

* fix val errors

* update rel version and remove NMAP

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* update input

* fix Alert validation

---------

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: bigeasyj <janny@paloaltonetworks.com>

* Bump the version

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* revert the core packs

* set skipunavailable to true in jira-create-issue

---------

Co-authored-by: johnnywilkes <32227961+johnnywilkes@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: bigeasyj <janny@paloaltonetworks.com>
Co-authored-by: Menachem Weinfeld <mmhw770@gmail.com>
Co-authored-by: Menachem Weinfeld <90556466+mmhw@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! docs-approved ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. Xsoar Support Level Indicates that the contribution is for XSOAR supported pack
Projects
None yet
7 participants