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

Error 500 when push stix #100

Open
ct12388 opened this issue Mar 2, 2022 · 0 comments
Open

Error 500 when push stix #100

ct12388 opened this issue Mar 2, 2022 · 0 comments

Comments

@ct12388
Copy link

ct12388 commented Mar 2, 2022

2022-03-02 14:16:20,865 INFO: Sending Inbox_Message to http://localhost:9000/services/inbox
2022-03-02 14:16:21,156 ERROR: HTTP Error: status code 500


2022-03-02T06:16:21.076024Z [main] info: Posting STIX...
2022-03-02T06:16:21.083486Z [main] info: Building Event...
2022-03-02T06:16:21.083737Z [main] info: Using title STIX Import
2022-03-02T06:16:21.154958Z [werkzeug] info: 127.0.0.1 - - [02/Mar/2022 14:16:21] "POST /services/inbox HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.6/dist-packages/opentaxii/middleware.py", line 88, in wrapper
return _process_with_service(service)
File "/usr/local/lib/python3.6/dist-packages/opentaxii/middleware.py", line 174, in _process_with_service
response_message = service.process(request.headers, taxii_message)
File "/usr/local/lib/python3.6/dist-packages/opentaxii/taxii/services/abstract.py", line 82, in process
response_message = handler.handle_message(self, message)
File "/usr/local/lib/python3.6/dist-packages/opentaxii/taxii/services/handlers/inbox_message_handlers.py", line 123, in handle_message
return InboxMessage11Handler.handle_message(service, request)
File "/usr/local/lib/python3.6/dist-packages/opentaxii/taxii/services/handlers/inbox_message_handlers.py", line 63, in handle_message
inbox_message_id=inbox_message.id if inbox_message else None)
File "/usr/local/lib/python3.6/dist-packages/opentaxii/persistence/manager.py", line 201, in create_content
collection_ids=collection_ids, service_id=service_id)
File "/usr/local/lib/python3.6/dist-packages/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/usr/local/lib/python3.6/dist-packages/blinker/base.py", line 267, in
for receiver in self.receivers_for(sender)]
File "/usr/local/lib/python3.6/dist-packages/misp_taxii_hooks-0.2-py3.6.egg/misp_taxii_hooks/hooks.py", line 62, in post_stix
package = pymisp.tools.stix.load_stix(StringIO(block))
File "/var/www/MISP/MISP-Taxii-Server/src/pymisp/pymisp/tools/stix.py", line 18, in load_stix
threat_level_id=threat_level_id, analysis=analysis)
File "/var/www/MISP/MISP-Taxii-Server/src/misp-stix-converter/misp_stix_converter/converters/buildMISPAttribute.py", line 480, in buildEvent
event = parseIndicators(event, pkg)
File "/var/www/MISP/MISP-Taxii-Server/src/misp-stix-converter/misp_stix_converter/converters/buildMISPAttribute.py", line 418, in parseIndicators
for intent in pkg.stix_header.package_intents:
AttributeError: 'NoneType' object has no attribute 'package_intents'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant