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

Bugfix/1457 fixing iris ioc NoneType #1533

Merged

Conversation

bvirgilioamnh
Copy link
Contributor

@bvirgilioamnh bvirgilioamnh commented Sep 16, 2024

Description

Simple PR to fix an issue with how the IRIS alerter handles IOCs in subsequent alerts. The error when the alerter inadvertently overwrites the IOCs dictionary when fetching key/value matches from Elastic. The solution is to simply copy the record data before updating it to ensure it is not overwritten.

I have also added a new test to explicitly test for this error in the future by calling make_alert() twice and validating the output of the second call.

Checklist

  • I have reviewed the contributing guidelines.
  • I have included unit tests for my changes or additions.
  • I have successfully run make test-docker with my changes.
  • I have manually tested all relevant modes of the change in this PR.
  • I have updated the documentation.
  • I have updated the changelog.

Questions or Comments

@jertel
Copy link
Owner

jertel commented Sep 18, 2024

This looks good. Is there any work remaining?

@bvirgilioamnh bvirgilioamnh marked this pull request as ready for review September 18, 2024 12:47
@bvirgilioamnh
Copy link
Contributor Author

This looks good. Is there any work remaining?

I think it should be good to go - forgot I opened it as a draft.

jertel
jertel previously approved these changes Sep 18, 2024
@jertel jertel merged commit fc54ee2 into jertel:master Sep 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error generating alerts on Iris | 'NoneType' object has no attribute 'removesuffix'
2 participants