CrowdStrike / MISP-tools

Import CrowdStrike Threat Intelligence into your instance of MISP
MIT License
39 stars 10 forks source link

TypeError: 'NoneType' object is not iterable #107

Closed ana-clara-candida closed 1 year ago

ana-clara-candida commented 1 year ago

I'm getting this error when running python3 misp-import.py --reports Console output: cs-misp-importer.py:31: DeprecationWarning: As our baseline system is the latest Ubuntu LTS, and Ubuntu LTS 22.04 has Python 3.10 available, we will officially deprecate python versions below 3.10 on January 1st 2024. **Please update your codebase.** from pymisp import ExpandedPyMISP, MISPObject, MISPEvent, MISPAttribute, MISPOrganisation INFO:root:Started getting reports from Crowdstrike Intel API and pushing them as events in MISP. ERROR:root:'NoneType' object is not iterable Traceback (most recent call last): File "cs-misp-importer.py", line 871, in main importer.import_from_crowdstrike(settings.init_reports_days_before, settings.init_indicators_days_before, File "cs-misp-importer.py", line 796, in import_from_crowdstrike self.reportsImporter.process_reports(reports_days_before, self.eventIDS) File "cs-misp-importer.py", line 234, in process_reports reports = self.intel_api_client.get_reports(start_get_events) File "cs-misp-importer.py", line 104, in get_reports reports.extend(resp_json.get('resources', [])) TypeError: 'NoneType' object is not iterable

jshcodes commented 1 year ago

Hi @ana-clara-candida -

Can you confirm your API key has access to the Actors, Reports and Indicators (Falcon Intelligence) scopes?

Screen Shot 2023-04-10 at 10 48 07 AM
jshcodes commented 1 year ago

Close due to lack of response. Please reopen if you are still encountering this issue.