| Questions | Answers
|---------------------------|--------------------
| Type of issue | Bug
| OS version (server) | Ubuntu
| OS version (client) | 18.04 LTS
| PHP version | 7.2.24
| MISP version / git hash | v2.4.124 (aed771ef4a8f9bda969f0c4c1eaa13b1c4ce007d)
| Browser | firefox
Export events on STIX2.
Exported files STIX2 contain errors:
Install MISP on fresh ubuntu 18.04 LTS, export events on STIX2 format.
cat /var/www/MISP/app/tmp/logs/exec-errors.log --> no error
Similar error on Red Hat Linux 7.8.
Error while processing your query: module 'stix2.v20.base' has no attribute 'STIXJSONEncoder'
Export (Download as...) to STIX1 in XML and JSON works flawlessly.
In Diagnostics page, all green for STIX/STIX2 modules.
STIX: >1.2.0.6
CyBox: >2.1.0.18.dev0
mixbox: 1.0.3
maec: >4.1.0.14
STIX2: >1.2.0
PyMISP: >2.4.120
Other versions might work but are not tested / recommended.
Current libraries status鈥K
STIX library version鈥K
CYBOX library version鈥K
MIXBOX library version鈥K
MAEC library version鈥K
STIX2 library version鈥K
PYMISP library version鈥K
Also after update to 2.4.125
(
- [stix2 export] Fixed STIX JSON Encoder import. [chrisr3d]
- With the latest update it is no longer part of
stix2.base but stix2.v20.base by default, so we
need to import it from stix2.base manually
)
@men-menouar check that MISP/app/files/scripts/stix2/misp2stix2.py contains the changes as in https://github.com/MISP/MISP/commit/6b669cc60db9def177252f7db380db39447bbccb
If you upgrade to 2.4.125 the misp2stix2.py should be upgraded, but depending on the file permissions this could have failed.
This should be fixed now and can be closed
Issue fixed. Thank you everyone.
Most helpful comment
@men-menouar check that
MISP/app/files/scripts/stix2/misp2stix2.pycontains the changes as in https://github.com/MISP/MISP/commit/6b669cc60db9def177252f7db380db39447bbccbIf you upgrade to 2.4.125 the misp2stix2.py should be upgraded, but depending on the file permissions this could have failed.