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

[TopMaliciousRatioIndicators] Fix long calculation time #32581

Merged

Conversation

samuelFain
Copy link
Contributor

@samuelFain samuelFain commented Feb 1, 2024

And remove pythonic filtering of investigation based on investigationIDs amount.

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: CRTX-86113

Description

  • The findIndicators command in the TopMaliciousRatioIndicators script has been updated - the investigationsCount query argument has been added to provide more accurate results.
  • The default value of maxNumberOfIndicators has been lowered from 10,000 to 1,000 since it's no longer necessary to iterate over a large number of results to find relevant indicators - all returned indicators from the query are now relevant.

Must have

  • Tests
  • Documentation

And remove pythonic filtering of investigation based on investigationIDs amount.
Copy link

github-actions bot commented Feb 1, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
Packs/CommonScripts/Scripts/TopMaliciousRatioIndicators
   TopMaliciousRatioIndicators.py47393%71–73
TOTAL47393% 

Tests Skipped Failures Errors Time
3 0 💤 0 ❌ 0 🔥 1.611s ⏱️

@samuelFain samuelFain self-assigned this Feb 1, 2024
@samuelFain samuelFain requested review from ilappe and removed request for ilappe February 1, 2024 14:57
@samuelFain samuelFain marked this pull request as ready for review February 1, 2024 14:57
@content-bot
Copy link
Collaborator

This PR was automatically updated by a GitHub Action

  • CommonScripts pack version was bumped to 1.13.33.

To stop automatic version bumps, add the ignore-auto-bump-version label to the github PR.

Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com>
Copy link
Contributor

@JasBeilin JasBeilin left a comment

Choose a reason for hiding this comment

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

Nice:)

@samuelFain samuelFain merged commit 7ea382e into master Feb 4, 2024
16 checks passed
@samuelFain samuelFain deleted the bugfix/CRTX-86113/TopMaliciousRatioIndicators-long-calc-time branch February 4, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants