mushorg / conpot

ICS/SCADA honeypot
GNU General Public License v2.0
1.25k stars 415 forks source link

STIX validation issue #247

Closed glaslos closed 9 years ago

glaslos commented 9 years ago

Potentially due to a new stix library version?

======================================================================
ERROR: test_stix_transform (conpot.tests.test_taxii.TestLoggers)
Objective: Test if our STIX xml can be validated.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/glastopf/conpot/conpot/tests/test_taxii.py", line 57, in test_stix_transform
    result_dict = xmlValidator.validate(StringIO(stix_package_xml.encode('utf-8')))
  File "/home/travis/build/glastopf/conpot/conpot/tests/helpers/mitre_stix_validator.py", line 414, in validate
    isvalid = result_dict['result']
TypeError: tuple indices must be integers, not str
-------------------- >> begin captured stdout << ---------------------
{'s7comm': 102, 'http': 80, 'snmp': 161, 'modbus': 502}
johnnykv commented 9 years ago

I am pretty sure it's because they updated the interface to the stix validator. I will take a look at it.