Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Update add_label_to_malware.py#958

Closed
Kaawasaaki wants to merge 1 commit intoOpenCTI-Platform:masterfrom
Kaawasaaki:master
Closed

Update add_label_to_malware.py#958
Kaawasaaki wants to merge 1 commit intoOpenCTI-Platform:masterfrom
Kaawasaaki:master

Conversation

@Kaawasaaki
Copy link

Proposed changes

*Added CLI argument parsing using argparse

*Added duplicate checks for malware and labels

*Added logging for better debugging

*Improved maintainability and usability of the script

Checklist

  • [x ] I consider the submitted work as finished
  • I tested the code for its functionality
  • [ x] I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • [x ] Where necessary I refactored code to improve the overall quality

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@nino-filigran nino-filigran added the community use to identify PR from community label Aug 29, 2025
@labo-flg
Copy link
Member

Thanks for your contribution.

We'd like to keep these examples scripts as light as possible, they are here to showcase precise actions made with the OCTI python client. In this case : create a malware, create a a label, add a label to the malware. Plain simple.

There is no need for such complexity, it's not in the scope of the examples scripts and add no real value regarding the usage of the library.

@labo-flg labo-flg closed this Sep 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community use to identify PR from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants