Skip to content

Remove redundant IOC writes from extraction. Closes #1805 - #1836

Merged
regulartim merged 1 commit into
GreedyBear-Project:developfrom
Prasad8830:refactor/remove-redundant-ioc-writes-1805
Nov 11, 2026
Merged

regulartim merged 1 commit into
GreedyBear-Project:developfrom
Prasad8830:refactor/remove-redundant-ioc-writes-1805

Conversation

@Prasad8830

Copy link
Copy Markdown
Contributor

Description

This removes two redundant IOC writes from the extraction path in CowrieExtractionStrategy and BaseExtractionStrategy(metaclass=ABCMeta).

Tests: the Cowrie and Tanner test_add_fks tests now assert that only one .add() is made, and I added a Cowrie test showing that _get_sessions saves the session but does not save the source IOC. Alll tests passed.

Related issues

Closes #1805

AI disclosure

NA

Type of change

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Chore (refactoring, dependency updates, CI/CD changes, code cleanup, docs-only changes).

Checklist

Formalities

  • I have read and understood the rules about how to Contribute to this project.
  • I have read and understood the AI policy.
  • I chose an appropriate title for the pull request in the form: <feature name>. Closes #999
  • My branch is based on develop.
  • The pull request is for the branch develop.
  • I have reviewed and verified any LLM-generated code included in this PR. (didn't use to write code)
  • I am interested in participating in GSoC.

Docs and tests

  • I documented my code changes with docstrings and/or comments.
  • I have checked if my changes affect user-facing behavior that is described in the wiki. If so, I also included an update to the wiki in the description of this PR.
  • Linter (Ruff) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.
  • I have added tests for the feature/bug I solved.
  • All the tests gave 0 errors.

GUI changes

Ignore this section if you did not make any changes to the GUI.

  • I have provided a screenshot of the result in the PR.
  • I have created new frontend tests for the new component or updated existing ones.

@Prasad8830
Prasad8830 marked this pull request as ready for review November 6, 2026 04:29

@regulartim regulartim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey @Prasad8830 ! Nice, minimal fix! Thanks for your work and for not using LLMs. Very much appreciated. :)

@regulartim
regulartim merged commit 0be123d into GreedyBear-Project:develop Nov 11, 2026
7 checks 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.

2 participants