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

Bug: python STIX and Cybox libraries not correctly reported in server diagnostics (stixtest.py script fail) #9718

Open
1 task done
Nicolas-Pellletier opened this issue Apr 28, 2024 · 0 comments
Labels
needs triage This issue has been automatically labelled and needs further triage

Comments

@Nicolas-Pellletier
Copy link

Nicolas-Pellletier commented Apr 28, 2024

Actual behavior

Hello,

I don't understand why i still got STIX and Cybox python libraries not installed in diagnostic page as they are well installed when i test.

python STIX and Cybox libraries Diagnostic view

image

Test on console

stixtest.py script PASS

misp@localhost:~$` sudo -u www-data python3 /var/www/MISP/app/files/scripts/stixtest.py
{"success": 0, "stix": "1.2.0.11", "cybox": "2.1.0.21", "mixbox": "1.0.5", "maec": "4.1.0.17", "stix2": 0, "pymisp": "2.4.188"}
misp@localhost:~$ sudo -u www-data source /var/www/MISP/venv/bin/activate
(venv) misp@frczprmccinfms2:~$ sudo -u www-data python3 /var/www/MISP/app/files/scripts/stixtest.py
{"success": 0, "stix": "1.2.0.11", "cybox": "2.1.0.21", "mixbox": "1.0.5", "maec": "4.1.0.17", "stix2": 0, "pymisp": "2.4.188"}

stixtest.py script FAIL

misp@localhost:~$ sudo -u www-data /var/www/MISP/venv/bin/python3 /var/www/MISP/app/files/scripts/stixtest.py
{"success": 0, "stix": 0, "cybox": 0, "mixbox": "1.0.5", "maec": 0, "stix2": 0, "pymisp": 0}
misp@localhost:~$ sudo -u www-data source /var/www/MISP/venv/bin/activate
(venv) misp@localhost:~$ sudo -u www-data /var/www/MISP/venv/bin/python3 /var/www/MISP/app/files/scripts/stixtest.py
{"success": 0, "stix": 0, "cybox": 0, "mixbox": "1.0.5", "maec": 0, "stix2": 0, "pymisp": 0}

Packages are well installed

misp@localhost:~$ source /var/www/MISP/venv/bin/activate
(venv) misp@localhost:~$ sudo -u www-data pip3 list | grep -E "stix|cybox|mixbox|maec|stix2|pymisp"
cybox                 2.1.0.21
mixbox                1.0.5
pymisp                2.4.188
stix                  1.2.0.11

python_bin MISP config setting

image

Version

2.4.188

Operating System

Ubuntu

Operating System version

20.04

PHP version

7.4

Browser

edge

Browser version

No response

Relevant log output

kkk

Extra attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Nicolas-Pellletier Nicolas-Pellletier added the needs triage This issue has been automatically labelled and needs further triage label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has been automatically labelled and needs further triage
Projects
None yet
Development

No branches or pull requests

1 participant