Skip to content

Coretxutils and TypeError: argument of type 'bool' is not iterable #73

@syloktools

Description

@syloktools

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) 16
Cortex version / git hash 2
Package Type DEB

Steps to Reproduce

Run MISP or MISPWarninglist analyzer with a hash or domain type observable

Invalid output
Traceback (most recent call last):
  File "MISPWarningLists/mispwarninglists.py", line 96, in <module>
    MISPWarninglistsAnalyzer().run()
  File "MISPWarningLists/mispwarninglists.py", line 77, in run
    "is_uptodate": self.lastlocalcommit() == self.lastremotecommit()
  File "/usr/local/lib/python2.7/dist-packages/cortexutils/analyzer.py", line 202, in report
    'artifacts': self.artifacts(full_report),
  File "/usr/local/lib/python2.7/dist-packages/cortexutils/analyzer.py", line 157, in artifacts
    return extractor.check_iterable(raw)
  File "/usr/local/lib/python2.7/dist-packages/cortexutils/extractor.py", line 183, in check_iterable
    dt = self.__checktype(item)
  File "/usr/local/lib/python2.7/dist-packages/cortexutils/extractor.py", line 128, in __checktype
    if self.ignore and self.ignore in value:
TypeError: argument of type 'bool' is not iterable
Invalid output
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:794: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
Traceback (most recent call last):
  File "MISP/misp.py", line 73, in <module>
    MISPAnalyzer().run()
  File "MISP/misp.py", line 69, in run
    self.report({'results': response})
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/analyzer.py", line 202, in report
    'artifacts': self.artifacts(full_report),
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/analyzer.py", line 157, in artifacts
    return extractor.check_iterable(raw)
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 181, in check_iterable
    results.extend(self.check_iterable(item))
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 170, in check_iterable
    results.extend(self.check_iterable(item))
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 181, in check_iterable
    results.extend(self.check_iterable(item))
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 170, in check_iterable
    results.extend(self.check_iterable(item))
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 181, in check_iterable
    results.extend(self.check_iterable(item))
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 170, in check_iterable
    results.extend(self.check_iterable(item))
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 183, in check_iterable
    dt = self.__checktype(item)
  File "/usr/local/lib/python3.5/dist-packages/cortexutils/extractor.py", line 128, in __checktype
    if self.ignore and self.ignore in value:
TypeError: argument of type 'bool' is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions