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

Add MITRE Att&ck tecnique #29366

Merged
merged 19 commits into from Sep 21, 2023
Merged

Add MITRE Att&ck tecnique #29366

merged 19 commits into from Sep 21, 2023

Conversation

baldo04
Copy link
Contributor

@baldo04 baldo04 commented Aug 31, 2023

Status

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

Related Issues

fixes: link to the issue

Description

Add MITRE Att&ck tecnique to the data returned by the command azure-sentinel-list-incident-alerts

Must have

  • Tests
  • Documentation

add the Technique output for function alert_data_to_xsoar_format
add default value if the key doesn't exist
@CLAassistant
Copy link

CLAassistant commented Aug 31, 2023

CLA assistant check
All committers have signed the CLA.

@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! External PR Xsoar Support Level Indicates that the contribution is for XSOAR supported pack labels Aug 31, 2023
@content-bot content-bot changed the base branch from master to contrib/baldo04_master August 31, 2023 13:02
@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 @RosenbergYehuda will know the proposed changes are ready to be reviewed.
For your convenience, here is a link to the contributions SLAs document.

Copy link
Contributor

@RosenbergYehuda RosenbergYehuda left a comment

Choose a reason for hiding this comment

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

Nice and neat work @baldo04!

I just would like to point out two points:

  1. As you can see in the github actions, some steps are failing. The reason for that is that there are unit tests that are based on the previous version and fail with your version.

Can you fix those tests please?

  1. Please add the release notes and update the pack metadata to the new version.

If anything in these comments is not clear enough, or you need help with them, please let me know.

Have a nice one:)

@RosenbergYehuda RosenbergYehuda added the pending-contributor The PR is pending the response of its creator label Sep 4, 2023
the dictionary additionalData was inserted in the variable MOCKED_INCIDENT_ALERTS, where the techniques of the MITRE of the alarm is present
delete the wrong line
deleted of unused parameters
add the release notes
change currentVersion in 1.5.21
the file 1_5_21.md already exists
Added MITRE Att&ck information to output in **azure-sentinel-list-incident-alerts** command.
modify currentVersion in 1.5.22
add the contextPath: AzureSentinel.IncidentAlert.Tecniques
change the output of the dictonary "AdditionalData"
insert the Mitre info in test alert
insert the "Technique" key in the outputs
Copy link
Contributor

@RosenbergYehuda RosenbergYehuda left a comment

Choose a reason for hiding this comment

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

Hello @baldo04,

Sorry for the delay in my response.

You did a great job, and the last validations that are failing are not related to your code so you can ignore it, and I will handle it.

I approved your contribution, and now it's time to move on and set up a live Demo, in which we will see the changes you made in live.

I will be happy to hear from you when is the best time for you, or if you would rather send me a recorded video of you running this command that you modified and see what it does, outputs, why we need it, etc.

Please let me know, and if you have questions, don't hesitate to contact me.

I wish you a wonderful weekend!

@baldo04
Copy link
Contributor Author

baldo04 commented Sep 12, 2023

Hi @RosenbergYehuda,

if you send me availability slots we can schedule so we can do the live demo.

Thanks, Edoardo.

Copy link
Contributor

@RosenbergYehuda RosenbergYehuda left a comment

Choose a reason for hiding this comment

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

Hi Edoardo,

I previously sent you an email but didn't receive a response, so I'll communicate here instead. I have availability throughout most of the day next week. Could you please share your time zone with me? You can reach me via email at yrosenberg@paloaltonetworks.com or on Slack.

Thank you!

@baldo04
Copy link
Contributor Author

baldo04 commented Sep 18, 2023 via email

@RosenbergYehuda
Copy link
Contributor

Hello Edoardo,

Regrettably, we do not work on Fridays. Are you available during the upcoming week? Alternatively, if you prefer, you can record a session explaining how the integration worked without your involvement, what it lacked, and how it now functions with your contributions.

@baldo04
Copy link
Contributor Author

baldo04 commented Sep 18, 2023 via email

@RosenbergYehuda
Copy link
Contributor

I sent you an invitation.
Looking forward!

@RosenbergYehuda RosenbergYehuda merged commit f675502 into demisto:contrib/baldo04_master Sep 21, 2023
20 of 23 checks passed
@content-bot content-bot mentioned this pull request Sep 21, 2023
5 tasks
RosenbergYehuda added a commit that referenced this pull request Sep 21, 2023
* Add MITRE Att&ck tecnique (#29366)

* Update AzureSentinel.py

add the Technique output for function alert_data_to_xsoar_format

* Update AzureSentinel.py

add default value if the key doesn't exist

* Update AzureSentinel_test.py

the dictionary additionalData was inserted in the variable MOCKED_INCIDENT_ALERTS, where the techniques of the MITRE of the alarm is present

* Update AzureSentinel_test.py

delete the wrong line

* Update AzureSentinel_test.py

deleted of unused parameters

* Create 1_5_21.md

add the release notes

* Update pack_metadata.json

change currentVersion in 1.5.21

* Delete Packs/AzureSentinel/ReleaseNotes/1_5_21.md

the file 1_5_21.md already exists

* Modify output of **azure-sentinel-list-incident-alerts** command.

Added MITRE Att&ck information to output in **azure-sentinel-list-incident-alerts** command.

* Update pack_metadata.json

modify currentVersion in 1.5.22

* Update AzureSentinel.yml

add the contextPath: AzureSentinel.IncidentAlert.Tecniques

* Update AzureSentinel_test.py

change the output of the dictonary "AdditionalData"

* Update expected_alerts.json

insert the Mitre info in test alert

* Update expected_alerts.json

insert the "Technique" key in the outputs

* Update README.md

Output documentation updated.

* Rename 1_5_22.md to 1_5_23.md

* Update pack_metadata.json

---------

Co-authored-by: Yehuda <yrosenberg@paloaltonetworks.com>

* release notes

* RN

* pre commit

* typo

* RN

---------

Co-authored-by: _eb <edoardobalducci@gmail.com>
Co-authored-by: Yehuda <yrosenberg@paloaltonetworks.com>
wolyslager pushed a commit to wolyslager/content that referenced this pull request Oct 2, 2023
* Add MITRE Att&ck tecnique (demisto#29366)

* Update AzureSentinel.py

add the Technique output for function alert_data_to_xsoar_format

* Update AzureSentinel.py

add default value if the key doesn't exist

* Update AzureSentinel_test.py

the dictionary additionalData was inserted in the variable MOCKED_INCIDENT_ALERTS, where the techniques of the MITRE of the alarm is present

* Update AzureSentinel_test.py

delete the wrong line

* Update AzureSentinel_test.py

deleted of unused parameters

* Create 1_5_21.md

add the release notes

* Update pack_metadata.json

change currentVersion in 1.5.21

* Delete Packs/AzureSentinel/ReleaseNotes/1_5_21.md

the file 1_5_21.md already exists

* Modify output of **azure-sentinel-list-incident-alerts** command.

Added MITRE Att&ck information to output in **azure-sentinel-list-incident-alerts** command.

* Update pack_metadata.json

modify currentVersion in 1.5.22

* Update AzureSentinel.yml

add the contextPath: AzureSentinel.IncidentAlert.Tecniques

* Update AzureSentinel_test.py

change the output of the dictonary "AdditionalData"

* Update expected_alerts.json

insert the Mitre info in test alert

* Update expected_alerts.json

insert the "Technique" key in the outputs

* Update README.md

Output documentation updated.

* Rename 1_5_22.md to 1_5_23.md

* Update pack_metadata.json

---------

Co-authored-by: Yehuda <yrosenberg@paloaltonetworks.com>

* release notes

* RN

* pre commit

* typo

* RN

---------

Co-authored-by: _eb <edoardobalducci@gmail.com>
Co-authored-by: Yehuda <yrosenberg@paloaltonetworks.com>
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Oct 5, 2023
* Add MITRE Att&ck tecnique (demisto#29366)

* Update AzureSentinel.py

add the Technique output for function alert_data_to_xsoar_format

* Update AzureSentinel.py

add default value if the key doesn't exist

* Update AzureSentinel_test.py

the dictionary additionalData was inserted in the variable MOCKED_INCIDENT_ALERTS, where the techniques of the MITRE of the alarm is present

* Update AzureSentinel_test.py

delete the wrong line

* Update AzureSentinel_test.py

deleted of unused parameters

* Create 1_5_21.md

add the release notes

* Update pack_metadata.json

change currentVersion in 1.5.21

* Delete Packs/AzureSentinel/ReleaseNotes/1_5_21.md

the file 1_5_21.md already exists

* Modify output of **azure-sentinel-list-incident-alerts** command.

Added MITRE Att&ck information to output in **azure-sentinel-list-incident-alerts** command.

* Update pack_metadata.json

modify currentVersion in 1.5.22

* Update AzureSentinel.yml

add the contextPath: AzureSentinel.IncidentAlert.Tecniques

* Update AzureSentinel_test.py

change the output of the dictonary "AdditionalData"

* Update expected_alerts.json

insert the Mitre info in test alert

* Update expected_alerts.json

insert the "Technique" key in the outputs

* Update README.md

Output documentation updated.

* Rename 1_5_22.md to 1_5_23.md

* Update pack_metadata.json

---------

Co-authored-by: Yehuda <yrosenberg@paloaltonetworks.com>

* release notes

* RN

* pre commit

* typo

* RN

---------

Co-authored-by: _eb <edoardobalducci@gmail.com>
Co-authored-by: Yehuda <yrosenberg@paloaltonetworks.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 External PR pending-contributor The PR is pending the response of its creator pending-demo Demo pending post-demo Xsoar Support Level Indicates that the contribution is for XSOAR supported pack
Projects
None yet
4 participants