Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
syloktools opened this issue Apr 2, 2018 · 3 comments
Closed
Labels

Comments

@syloktools
Copy link

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
@3c7
Copy link

3c7 commented Apr 2, 2018

Thanks for reporting. The fix is already shipped, but the package needs to get released on pypi. You can already use the package that comes with Cortex-Analyzers (installing via the setup.py under contrib directory).

@3c7 3c7 added the bug label Apr 2, 2018
@3c7
Copy link

3c7 commented Apr 2, 2018

I'll close this, after the package has been published.

@3c7
Copy link

3c7 commented Apr 2, 2018

@3c7 3c7 closed this as completed Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants