cuckoosandbox / cuckoo

Cuckoo Sandbox is an automated dynamic malware analysis system
http://www.cuckoosandbox.org
Other
5.53k stars 1.7k forks source link

MISP Cuckoo Integration | Cuckoo Unable to fetch IOC from MISP | 500 Server Error: Internal Server #2470

Closed rishdang closed 6 years ago

rishdang commented 6 years ago
Cuckoo is unable to fetch results from MISP, but is able to submit the results.
Cuckoo Version 2.0.6 running on Debian 8, MISP version v2.4.94 running on Debian 8
This can be reproduced by: Simply running an analysis

I can see that authentication to MISP via API is happening correctly, but MISP is throwing error 500 when results are being posted to MISP instance for IOC. Also, I couldn't help but notice that only POST requests were sent by cuckoo and no reverse connection was established by MISP in response to IOC searches, although

The processing.conf & reporting.conf configuration section for MISP looks like this -

[misp]
enabled = yes
url = https://misp.testinstallation.com:443
apikey = xyzabc

Can you please guide on how to correctly fetch IOC results from MISP? I did looked at https://blog.rootshell.be/2017/01/25/quick-integration-misp-cuckoo/ for an integration primer through patched cuckoo files, but was unsure if it may lead to some regression or compatibility issues.

##### LOGS ######

Cuckoo Error Logs

2018-09-08 16:32:43,442 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('231eb4a47bc90a193f8a53212f053703') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:43,611 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('c555687d9c3c743061f0cee0f1a99bcf') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:43,759 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('9777c68ff8d8f9ba310267b23f69b50b') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:43,903 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('relay-0884d936.net.anydesk.com') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:44,076 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('e47a9e1cafaf5cd80a850e19a5b330cb') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:44,227 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('b166a69d5dca43fb4e11d11d0a35843b') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:44,388 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('769a667714356c9377201179603f0a7a') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:44,530 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('5.9.58.236') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:44,678 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('790ab3eb1202a7acc3f92beae309e448') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:49,938 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('43b68b7f8bb98b4ad27822c97b89eacf') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:50,085 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('www.msftncsi.com') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:50,232 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('7d166fc0b0d04a7cda7faeebfd847683') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:50,361 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('ecf745e4a4cb7d28a20590df0be21cee') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:50,525 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('teredo.ipv6.microsoft.com') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:50,671 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('8.8.8.8') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:50,810 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('7cf316ebbae6c451e56aaf6ce073eb85') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:50,914 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('217.182.196.155') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:51,045 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('164e04db276c410abe4ec7b0c7400966') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:51,205 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('ddd3350f12026bf7a5aca3938d223483') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:51,357 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('18ded8c745e59746d49d5bf78bc5bb57') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:51,526 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('d6c9c5ae759ea3c2e5826346623814c2') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:51,686 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('3c3ce7b00d78cbb21676450e9a2b6499') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:51,815 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('dns.msftncsi.com') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:51,937 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('131.107.255.255') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:52,072 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('boot-01.net.anydesk.com') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:52,215 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('a77341d9f5e130bc08a808a7a646c2dd') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:52,359 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('13.79.239.69') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:52,515 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('95.100.252.64') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:52,666 [cuckoo.processing.misp] DEBUG: Error searching for IOC ('d8a658b5adf1b985abe23d34047d43c6') on MISP: 500 Server Error: Internal Server Error for url: https://misp.testinstallation.com:443/events/restSearch/download
2018-09-08 16:32:52,667 [cuckoo.core.plugins] DEBUG: Executed processing module "MISP" for task #43

MISP Error Logs

7940006     test@test.com   MISP    2018-09-08 16:34:35     Attribute   860016  add     Attribute (860016) from Event (2963): Network activity/ip-dst 95.100.252.64     to_ids () => (1), distribution () => (5), deleted () => (0), disable_correlation () => (0), category () => (Network activity), type () => (ip-dst), event_id () => (2963), uuid () => (5b93fa1b-9db0-4212-8dac-7d5bac110002), value1 () => (95.100.252.64) 
7940005     test@test.com   MISP    2018-09-08 16:34:35     Attribute   860015  add     Attribute (860015) from Event (2963): Network activity/ip-dst 8.8.8.8   to_ids () => (1), distribution () => (5), deleted () => (0), disable_correlation () => (0), category () => (Network activity), type () => (ip-dst), event_id () => (2963), uuid () => (5b93fa1b-6ebc-4f2a-8273-7d5bac110002), value1 () => (8.8.8.8) 
7940004     test@test.com   MISP    2018-09-08 16:34:35     Attribute   860014  add     Attribute (860014) from Event (2963): Network activity/ip-dst 13.79.239.69  to_ids () => (1), distribution () => (5), deleted () => (0), disable_correlation () => (0), category () => (Network activity), type () => (ip-dst), event_id () => (2963), uuid () => (5b93fa1b-e274-4735-8491-7d5bac110002), value1 () => (13.79.239.69) 
7940003     test@test.com   MISP    2018-09-08 16:34:35     User    2   auth    Successful authentication using API key     HTTP method: POST
Target: /events/2963 
7940002     test@test.com   MISP    2018-09-08 16:34:35     Attribute   860013  add     Attribute (860013) from Event (2963): Network activity/domain|ip boot-01.net.anydesk.com    to_ids () => (1), distribution () => (5), deleted () => (0), disable_correlation () => (0), category () => (Network activity), type () => (domain|ip), event_id () => (2963), uuid () => (5b93fa1b-c42c-4e52-96ca-7a5bac110002), value1 () => (boot-01.net.anydesk.com), value2 () => (5.9.58.236) 
7940001     test@test.com   MISP    2018-09-08 16:34:35     Attribute   860012  add     Attribute (860012) from Event (2963): Network activity/domain|ip relay-0884d936.net.anydesk.com     to_ids () => (1), distribution () => (5), deleted () => (0), disable_correlation () => (0), category () => (Network activity), type () => (domain|ip), event_id () => (2963), uuid () => (5b93fa1b-e4c4-4a6c-9741-7a5bac110002), value1 () => (relay-0884d936.net.anydesk.com), value2 () => (217.182.196.155) 
7940000     test@test.com   MISP    2018-09-08 16:34:35     User    2   auth    Successful authentication using API key     HTTP method: POST
Target: /events/2963 
7939999     test@test.com   MISP    2018-09-08 16:34:35     Event   2963    edit    Event (2963): Cuckoo Submission #43     publish_timestamp (1536424474) => (1536424475) 
7939998     test@test.com   MISP    2018-09-08 16:34:34     Attribute   860011  add     Attribute (860011) from Event (2963): Network activity/url http://www.msftncsi.com/ncsi.txt     to_ids () => (1), distribution () => (5), deleted () => (0), disable_correlation () => (0), category () => (Network activity), type () => (url), event_id () => (2963), uuid () => (5b93fa1a-1484-4a16-8633-7d3eac110002), value1 () => (http://www.msftncsi.com/ncsi.txt) 
7939997     test@test.com   MISP    2018-09-08 16:34:34     User    2   auth    Successful authentication using API key     HTTP method: POST
Target: /events/2963 
7939996     test@test.com   MISP    2018-09-08 16:34:34     User    2   auth    Successful authentication using API key     HTTP method: POST
Target: /events/2963 
7939995     test@test.com   MISP    2018-09-08 16:34:34     Event   2963    edit    Event (2963): Cuckoo Submission #43     publish_timestamp (0) => (1536424474) 
doomedraven commented 6 years ago

There is nothing in misp log about 500 error can you searxh it?

rishdang commented 6 years ago

I am sorry, my bad. Forgot to attach apache logs, here they are.

X.Y.Z.A - - [08/Sep/2018:16:32:43 +0000] "GET /servers/getVersion.json HTTP/1.1" 200 3052 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:43 +0000] "GET /attributes/describeTypes.json HTTP/1.1" 200 20685 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:43 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:43 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:43 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:43 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:43 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:44 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:44 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:44 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:44 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:49 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:50 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:51 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:51 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:51 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:51 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:51 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:51 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:52 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:52 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:52 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:52 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:32:52 +0000] "POST /events/restSearch/download HTTP/1.1" 500 3377 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:33 +0000] "GET /servers/getVersion.json HTTP/1.1" 200 3052 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:33 +0000] "GET /attributes/describeTypes.json HTTP/1.1" 200 20685 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:33 +0000] "POST /events HTTP/1.1" 200 4103 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:33 +0000] "POST /events/upload_sample HTTP/1.1" 400 3650 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:34 +0000] "POST /events/2963 HTTP/1.1" 200 6445 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:34 +0000] "POST /events/2963 HTTP/1.1" 200 6445 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:34 +0000] "POST /events/2963 HTTP/1.1" 200 7156 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:35 +0000] "POST /events/2963 HTTP/1.1" 200 8600 "-" "PyMISP 2.4.54 - Python 2.7.9"
X.Y.Z.A - - [08/Sep/2018:16:34:35 +0000] "POST /events/2963 HTTP/1.1" 200 10669 "-" "PyMISP 2.4.54 - Python 2.7.9"
rishdang commented 6 years ago

Here are additional logs from MISP instance, looks more like a CakePHP / MISP error. Any ideas?

/var/www/MISP/app/tmp/logs/error.log

2018-09-08 16:32:43 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:43 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:43 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:43 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:44 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:44 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:44 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:44 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:44 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:49 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:50 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:50 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:50 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:50 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:50 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:50 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:50 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:51 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:51 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:51 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:51 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:51 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:51 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:51 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:52 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:52 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:52 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:52 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:32:52 Error: [Error] Class 'MethodNotFoundException' not found
Request URL: /events/restSearch/download
Stack Trace:
#0 [internal function]: EventsController->restSearch('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
2018-09-08 16:34:34 Error: [BadRequestException] Distribution level 5 is not supported when uploading a sample without passing an event ID. Distribution level 5 is meant to take on the distribution level of an existing event.
Request URL: /events/upload_sample
Stack Trace:
#0 [internal function]: EventsController->upload_sample()
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}
doomedraven commented 6 years ago

No idea i dont use it anymore, but as clue chexk the api endpoints in your pymisp and latest misp, could be that

rishdang commented 6 years ago

Ah okay, let me check that, will come back on this.

rishdang commented 6 years ago

Checked it, though API endpoints are same, PyMISP versions are different (2.4.54 is supported by cuckoo, while the MISP is running 2.5.91), will share some more inputs.

rishdang commented 6 years ago

This is resolved, upgraded to MISP 2.4.95, API endpoints have changed.

Thanks for your support.