Skip to content

SentinelOne V2 - Modified Command Add-hash-to-blocklist, remove-hash-from-blocklist, and get-agent-request #40569

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

Open
wants to merge 30 commits into
base: contrib/purushottamk-s1_master
Choose a base branch
from

Conversation

purushottamk-s1
Copy link

@purushottamk-s1 purushottamk-s1 commented Jul 10, 2025

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

fixes: link to the issue

Description

  • Modified Command Add-hash-to-blocklist and remove-hash-from-blocklist to support multiple scope.

  • Modified command get-agent-request to support multiple agent ids

Must have

  • Tests
  • Documentation

@CLAassistant
Copy link

CLAassistant commented Jul 10, 2025

CLA assistant check
All committers have signed the CLA.

@content-bot content-bot added Contribution Thank you! Contributions are always welcome! External PR Partner Support Level Indicates that the contribution is for Partner supported pack labels Jul 10, 2025
@content-bot content-bot changed the base branch from master to contrib/purushottamk-s1_master July 10, 2025 06:46
@content-bot content-bot requested a review from merit-maita July 10, 2025 06:46
@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 @merit-maita will know the proposed changes are ready to be reviewed.
For your convenience, here is a link to the contributions SLAs document.

@content-bot
Copy link
Collaborator

Hi @purushottamk-s1, thanks for contributing to the XSOAR marketplace. To receive credit for your generous contribution please follow this link.

@purushottamk-s1 purushottamk-s1 changed the title SentinelOne V2 - Modified Command Add-hash-to-blocklist and remove-hash-from-blocklist to support multiple scope, also modified command get-agent-request to support multiple agent ids SentinelOne V2 - Modified Command Add-hash-to-blocklist, remove-hash-from-blocklist, and get-agent-request Jul 10, 2025
@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. labels Jul 10, 2025
Copy link
Contributor

@merit-maita merit-maita left a comment

Choose a reason for hiding this comment

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

it's looks great, please see my comments.
and it appears as you have not filled the contribution form, please check again if it's filled on your side for this pr.
thanks!

Comment on lines 147 to 149
site_ids = site_ids or ""
group_ids = group_ids or ""
account_ids = account_ids or ""
Copy link
Contributor

Choose a reason for hiding this comment

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

you can change the default value for them in the function to be "" instead of None, then there won't be any need for these lines

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for suggestion did the changes accordingly

name: sha1
required: true
Copy link
Contributor

Choose a reason for hiding this comment

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

why did you set it to be required? it will break the previous functionality

Copy link
Author

Choose a reason for hiding this comment

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

removed it

Comment on lines +1702 to +1703
- description: Comma-separated string of site IDs to scope the blocklist.
name: site_ids
Copy link
Contributor

Choose a reason for hiding this comment

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

its the same arg that was deleted with the name "block_site_ids". if so, please continue using the previous to avoid breaking changes

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for pointing that out!
I’ve reverted to the previous logic — now using block_site_ids again. If block_site_ids is provided and site_ids comes from the command arguments, both are combined to scope the blocklist.

@merit-maita merit-maita added the pending-contributor The PR is pending the response of its creator label Jul 14, 2025
@purushottamk-s1
Copy link
Author

Hi @merit-maita
Thanks for your feedback — I’ve reviewed your comments and will make the necessary updates accordingly.

Regarding the contribution form, I have already filled it out. For your reference, I’ve also attached a screenshot confirming the submission.

Please let me know if there’s anything else needed.
Screenshot 2025-07-15 at 10 02 49 AM

@merit-maita
Copy link
Contributor

@purushottamk-s1 regarding the contribution form i'll handle it, on the other side, to move forward with the pr, there're some unit tests failing, please handle them.

@merit-maita merit-maita 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 16, 2025
@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/4186524

@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 Jul 16, 2025
@content-bot
Copy link
Collaborator

Validate summary
The following errors were thrown as a part of this pr: RN106.
The following errors cannot be ignored: RN106.
If the AG100 validation in the pre-commit GitHub Action fails, the pull request cannot be force-merged.
The following errors don't run as part of the nightly flow and therefore can be force merged: RN106.

Verdict: PR can be force merged from validate perspective? ✅

@purushottamk-s1
Copy link
Author

@purushottamk-s1 regarding the contribution form i'll handle it, on the other side, to move forward with the pr, there're some unit tests failing, please handle them.

Hi @merit-maita,

Thanks for the update. I have checked the failing unit tests, made the necessary changes, and updated the PR accordingly. Please let me know if there’s anything else needed to move forward.

@merit-maita
Copy link
Contributor

@purushottamk-s1 greate, you're pre-commit is green now, for the last step, can you record a demo video of the new commands please?

@merit-maita merit-maita added the pending-demo Demo pending label Jul 17, 2025
@purushottamk-s1
Copy link
Author

Hi @merit-maita,
Thanks! I've recorded the demo video as requested. However, due to the file size, I'm unable to attach it here directly. I've uploaded it to Google Drive, but I'm having trouble making it public.

If you could share your email address with me, I’ll be happy to give you access to the video via Drive. Let me know what works best for you.

Thanks again!

@merit-maita
Copy link
Contributor

Hi @merit-maita, Thanks! I've recorded the demo video as requested. However, due to the file size, I'm unable to attach it here directly. I've uploaded it to Google Drive, but I'm having trouble making it public.

If you could share your email address with me, I’ll be happy to give you access to the video via Drive. Let me know what works best for you.

Thanks again!

Hey @purushottamk-s1
sure, here's my email address: [email protected]

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! External PR Partner Support Level Indicates that the contribution is for Partner supported pack Partner Partner-Approved pending-contributor The PR is pending the response of its creator pending-demo Demo pending
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants