-
Notifications
You must be signed in to change notification settings - Fork 237
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
Use files to communicate with analyzer/responder #176
Comments
What's the reason why this and #120 have been closed? Seems like a sensible path to me. It would allow large files like disk images to be passed to analyzers without having to be piped over stdin. |
Adding some additional clarity on the input changes via file. You can expect three files to be created in the configured ${job-directory}. Similar to the below.
The You can also expect some new fields added (and the
Here's an example of the input JSON I got for a submission of an HTML document. {
"config": {
"auto_extract_artifacts": false,
"cacerts": "[removed]",
"check_pap": true,
"check_tlp": true,
"jobCache": 10,
"jobTimeout": 30,
"max_pap": 2,
"max_tlp": 2,
"proxy": {
"http": "http://localhost:8080",
"https": "https://localhost:8080"
},
"proxy_http": "http://localhost:8080",
"proxy_https": "https://localhost:8080"
},
"contentType": "text/html",
"dataType": "file",
"file": "attachment5329010166297667382",
"filename": "index.html",
"message": "",
"pap": 2,
"parameters": {},
"tlp": 2
} |
Request Type
Feature Request
Problem Description
Analyzers/responders reads input from stdin and write the result to stdout. With this behavior, the result of an analyzer can't include file (#120). Moreover, if an error occurs while the analyzer/responder has already started to write its output, it is not possible to report the error and the output becomes invalid (json format is incorrect).
Instead of using stdin/stdout, analyzers/responders will use files. A job will be stored in a folder with the following structure:
Job folder is provided to analyzer/responder as argument. Currently, only one job is acceptable but in future release, analyzer/responder will accept several job at a time (bulk mode) in order to increase performance.
This change doesn't require any rewrite of analyzer/responder, however they must use the new version of cortexutils (2.0.0).
The text was updated successfully, but these errors were encountered: