Version 0.8.0
This update provides some much needed updates to the misp_import.py script:
-
Introduced new classes:
ConfigHandler,ImportHandler, andLoggersto better organize the code- ConfigHandler
- Moved configuration/galaxy parsing and handling into the
ConfigHandlerclass - Consolidated import settings into a single dictionary in
ConfigHandler - Simplified the proxy and extra headers configuration in
ConfigHandler
- Moved configuration/galaxy parsing and handling into the
- ImportHandler
- Created the
ImportHandlerclass to manage the import/deletion process - Moved the
retrieve_tags()function into theImportHandlerclass - Moved
perform_local_cleanup()function into theImportHandlerclass
- Created the
- Loggers
- Utilized a dataclass handler for the two log streams (main/splash)
- ConfigHandler
-
Simplified main: Utilized the new classes and helper functions to streamline the
mainfunction- Separated logging setup into its own function
setup_logging() - Created a separate function to initialize the CrowdStrike API client
create_intel_api_client() - Moved conditional argument checks into
parse_command_line()
- Separated logging setup into its own function
-
Other
- Removed some commented-out code and unused imports
- Removed unused argument (-l, --logfile)
- Relocated banner printing operations into their own functions
New Contributors
Full Changelog: v0.7.4...v0.8.0