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 Sekoia XDR pack #34466

Merged

Conversation

TOUFIKIzakarya
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)

Description

This PR is mainly to add an extension about sekoia xdr part, to interact with our plateform.

Must have

  • Tests
  • Documentation

@CLAassistant
Copy link

CLAassistant commented May 21, 2024

CLA assistant check
All committers have signed the CLA.

@content-bot content-bot added Contribution Thank you! Contributions are always welcome! External PR labels May 21, 2024
@content-bot content-bot changed the base branch from master to contrib/SEKOIA-IO_Add/SekoiaXDR May 21, 2024 09:55
@content-bot content-bot requested a review from RotemAmit May 21, 2024 09:55
@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 @RotemAmit will know the proposed changes are ready to be reviewed.
For your convenience, here is a link to the contributions SLAs document.

@RotemAmit
Copy link
Contributor

Hi @TOUFIKIzakarya,
Thank you very much for your contribution!
Please sign the CLA and contribution registration form so I will be able to start the review.

@TOUFIKIzakarya
Copy link
Contributor Author

Hi @RotemAmit,
Thanks for your response, I'm working on that as it needs a video and to fill out the design document.

@RotemAmit
Copy link
Contributor

Hi @RotemAmit, Thanks for your response, I'm working on that as it needs a video and to fill out the design document.

Hi @TOUFIKIzakarya,
These 2 fields (design and video) aren't mandatory, you can fill out the contribution form without them.

@TOUFIKIzakarya
Copy link
Contributor Author

Hi @RotemAmit, ok thank you. Done

@RotemAmit
Copy link
Contributor

@TOUFIKIzakarya Thank you!
Please sign the CLA as well.

@TOUFIKIzakarya
Copy link
Contributor Author

@RotemAmit sorry for that, I think it should be ok now ?

@RotemAmit
Copy link
Contributor

@RotemAmit sorry for that, I think it should be ok now ?

Yes, thank you!

Copy link
Contributor

@RotemAmit RotemAmit left a comment

Choose a reason for hiding this comment

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

Thank you very much for your contribution! Nice work!
Since this is a very big pack with a lot of commands, fetch_incidents and mirroring mechanism I reviewed all of the regular commands and I will publish the rest of the review for the fetch and mirroring in the next few days.
Some general comments:

  • Remove the directory "Lists", most of the information there is already in the integration README. The Sekoia_XDR_Contact.txt can be added to the pack README, and if there is more information that isn't in either README, please add it as well.
  • Update the command names to sekoia-xdr-dosomething. For example: sekoia-xdr-list-alerts.
  • After you apply all the updates in the YML file, please regenerate the README. You can use the command demisto-sdk generate-docs (link).
  • Remove the str() from the str(args.get("earliest_time")) and the rest of the relevant statements.
  • Please use f strings instead of '+' in all of the relevant places.

Copy link
Contributor

@RotemAmit RotemAmit left a comment

Choose a reason for hiding this comment

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

Nice work with the fetch mechanism!

Since you have a lot of configurable parameters, I recommend you to use the different sections as explained here in order to have a more user friendly configuration.

Copy link
Contributor

@RotemAmit RotemAmit left a comment

Choose a reason for hiding this comment

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

The mirroring mechanism looks great!
Some general notes:

  • Merge from content master. You can do that with the script ./.circleci/git_pull_master_into_fork.sh .
  • Update docker image as written in here.
  • In the unit tests our convention is to not make API calls, just to mock the results. Please delete the relevant tests (the tests that should be skipped if there's no SEKOIA.IO API_KEY).

I finished the current review of the PR, please let me know once you finished applying the requested changes and I will take a look at them.

@RotemAmit
Copy link
Contributor

Hi @TOUFIKIzakarya, I haven’t heard from you in a while.
Do you need any help with the pull request?

Please feel free to reach out to me here or on Slack.
Thanks again for contributing to our repo, hope to hear from you soon.

Copy link
Contributor

@RotemAmit RotemAmit left a comment

Choose a reason for hiding this comment

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

Very nice work!
I added some comments and please update the unresolved comments, that I commented on now, from the previous review.
Let's schedule a demo!

Copy link
Contributor

@RotemAmit RotemAmit left a comment

Choose a reason for hiding this comment

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

Nice work!
Please remove the additional (") and (') from the yml file.

Copy link
Contributor

@RotemAmit RotemAmit left a comment

Choose a reason for hiding this comment

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

Nice work!
Thank you very much for your contribution!

@RotemAmit RotemAmit 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 Nov 18, 2024
@content-bot
Copy link
Collaborator

For the Reviewer: Trigger build request has been accepted for this contribution PR.

@content-bot
Copy link
Collaborator

For the Reviewer: Successfully created a pipeline in GitLab with url: https://gitlab.xdr.pan.local/xdr/cortex-content/content/-/pipelines/1665523

@content-bot content-bot removed 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 Nov 18, 2024
@RotemAmit RotemAmit merged commit 91ffdca into demisto:contrib/SEKOIA-IO_Add/SekoiaXDR Nov 18, 2024
20 checks passed
@content-bot content-bot mentioned this pull request Nov 18, 2024
4 tasks
Copy link

Thank you for your contribution. Your external PR has been merged and the changes are now included in an internal PR for further review. The internal PR will be merged to the master branch within 3 business days.

dantavori pushed a commit that referenced this pull request Nov 19, 2024
* Add Sekoia XDR pack (#34466)

* Add for the first time the extension

* Add some tests for code cov

* Update Mail and author image

* Add some modifications and best practices

* Add some modification on docker version and descritions

* Delete description

* Ignore secrets

* Add urls to ignore secrets

* Add update remote test

* Add polling mechanism

* Some changes in yml file

* Fix polling, data table and query param

* Add description to job uuid

* Modify descriptions

* Add descriptio to hidden param

* Add classifier and mappers

* Add layouts

* Add incident types

* Add incident fields

* Fix: date format, Showed tables

* Changed: Descriptions and some params

* Fix: Some json problems

* Fix: format all files

* Add scripts

* Fix: Format files for CI

* Modify: Script part

* Fix: Layout CI problems

* Fix: Incident types CI problems

* Modify: Regenerate the main documentation

* Modify: fetch function

* Fix CI: Incoming mappers

* Fix CI: Format yml main file

* Add default mappers and classifier to configuration

* Add some default fields to inc mapper

* Associate fields to sekoia type

* Fix the layout positions

* Fix some CI problems

* CI : Change the name of fields

* Add some extra tests for code cov

* Fix the way to update status

* Update the api key section for sekoia

* Update some sections on integrations readme

* Update the main readme

* Change the main name in the description readme

* Change the description on the pack_metadata

* Ignore mypy import problems and use black

* Update Change status script

* Add dafault value and delete duplication in the description

* Mappers: Change id to investigation id

* Delete custom fields from layout

* Update incident type file

* Add incident alert reject

* Update fields name in automation scripts

* Update main integration script

* Update layout

* Delete xsoar_id

* Update unsearchable field in alertreject

* Update layout with more indicators and disable autorun

* Update layout

* Update close script for the case sekoia to cortex

* Update documentation and yml

* Delete the case of reopening

* Update the outgoing mapper

* Add some tests for code cov

* Add some modifications and best practices

* Ignore secrets

* Add urls to ignore secrets

* Add update remote test

* Add polling mechanism

* Some changes in yml file

* Fix polling, data table and query param

* Modify descriptions

* Add descriptio to hidden param

* Add classifier and mappers

* Add incident fields

* Fix: Some json problems

* Fix: format all files

* Associate fields to sekoia type

* Update Change status script

* Mappers: Change id to investigation id

* Update main integration script

* Update layout

* Delete xsoar_id

* Update layout

* Delete the case of reopening

* Update the outgoing mapper

* Rebase the branche

* Update integration script

* Delete outgoing mapper and get_mapping_field function

* Update incomming mapper

* Change Scripts

* Add release notes

* Add some changes to integrations script and release notes

* Some changes to test mirroring & aplly pre-commit

* Integration: Fix mirroring problem

* Scripts: Fix mirroring problem

* Mappers : Add mirrour out field

* Fields: add mirror out field

* Apply format to all the folder

* Scripts: Fix some tests

* Scripts: Fix tests

* Delete some extra fields

* Add field missing

* Scripts: Add some tests to sekoia change status

* Add no cov to script

* Scripts: Add some more tests to close script

* Apply black to close alert folder

* Add no cover to close alert func

* Add some more no cov

* Delete changed field

* Add default mapper in

* Refactor the condition

* Add the fourth point in readme

* Delete default mapperIn

* Update integration readme

* Change field name

* delete useless (')

* updated the RN

* removed unnecesary line from the RN

* added default values in the code for mirror_direction and close_notes and updated close_notes

* updated the default values in the code for alerts_status, alerts_type

---------

Co-authored-by: TOUFIKI Zakarya <57439240+TOUFIKIzakarya@users.noreply.github.com>
Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! docs-approved External PR Partner Partner-Approved pending-demo Demo pending post-demo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants