-
Notifications
You must be signed in to change notification settings - Fork 383
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
Joe Sandbox Analyzer returning error #156
Comments
Does the analyzer with API v1 only work for you or not? |
The analyzer does not work with the v1 only code. The Joe Sandbox API uses https, but I have set requests to verify=false |
@ant1 can you please check and let us know if we can go ahead and close this issue? Thanks mate. |
I suggest doing a network capture with SSL disabled or using an SSL interception tool like burp/mitmproxy/sslsplit to debug the issue. |
Also, make sure you have automatic system selection in the php configuration file
|
Packet capture shows the first post is checking to see if the Joe server is online. Joe responds with the answer and triggers an unexpected value error. Here is the Cortex Data: {"data":{"online":true}}` |
So after further investigation, it appears that response.status_code returns a string, so the analyzer code should be modified as follows: if response.status_code == '200': |
According to requests documentation and to my tests, status_code is an int. |
Thank you for your assistance. Your original suggestion for automatic system selection was the solution. I'm a dumba$$ for not trying it earlier. :( |
Joe Sandbox Analyzer not working
Request Type
Analyzer
Work Environment
N/A
Description
Joe Sandbox Analyzer not working on Joe Sandbox Complete (On Premise)
Complementary information
I am using the analyzer that was rewritten to support api V2 found here: Joe Sandbox API version 2 support #141
extracted from my conf file:
JoeSandbox {
url = "https://xxx.xxx.xxx.xxx/joesandbox/index.php/"
apikey = "my-api-key"
}
Results =
{
"errorMessage": "Unexpected Error: Expecting value: line 1 column 1 (char 0)",
"input": {
"dataType": "url",
"config": {
"url": "https://xxx.xxx.xxx.xxx/joesandbox/index.php/",
"apikey": "REMOVED",
"check_tlp": false,
"service": "url_analysis"
},
"tlp": 1,
"data": "http://some-url-for-analysis.com/"
},
"success": false
}
The text was updated successfully, but these errors were encountered: