Closed padey closed 6 months ago
Hi, Just trying to help. Testing the analyzer give this :
$ docker run --rm -v ${PWD}:/job cortexneurons/virustotal_scan:3.1
Traceback (most recent call last):
File "/worker/VirusTotal/virustotal.py", line 407, in <module>
VirusTotalAnalyzer().run()
File "/worker/VirusTotal/virustotal.py", line 365, in run
self.report(results)
File "/usr/local/lib/python3.9/site-packages/cortexutils/analyzer.py", line 110, in report
super(Analyzer, self).report({
File "/usr/local/lib/python3.9/site-packages/cortexutils/worker.py", line 203, in report
self.__write_output(output, ensure_ascii=ensure_ascii)
File "/usr/local/lib/python3.9/site-packages/cortexutils/worker.py", line 127, in __write_output
json.dump(data, f_output, ensure_ascii=ensure_ascii)
File "/usr/local/lib/python3.9/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/usr/local/lib/python3.9/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/local/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/local/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/local/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/local/lib/python3.9/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/usr/local/lib/python3.9/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type WhistleBlowerDict is not JSON serializable
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7efece4a3070>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7efece422ac0>, 14112064.793170864)]']
connector: <aiohttp.connector.TCPConnector object at 0x7efed06af580>
and the output.json seems truncated
$ cat output/output.json
{"success": true, "summary": {"taxonomies": [{"level": "info", "namespace": "VT", "predicate":
"Scan", "value": "0/91"}]}, "artifacts": [], "operations": [], "full": {"type": "analysis", "attributes": {"date": 1704374672, "status": "completed", "stats":
Hello. This should be fixed in the release we made today. Please test and feel free to share your feedback.
@jeromeleonard - looking good. :) will close the issue!
Request Type
Bug
Work Environment
Problem Description
Since 28.12 the Virustotal Get Report / Scan Docker Container seems not to work.
Edit: when submitting like 30 report requests, 25 deliver a results, 5 of them are stuck in "in progress".
Get Domain = does not work, stuck "in progress" Get FQND = does not work, stuck "in progress" Get IP = does not work, stuck "in progress" Get Hash = works Get File = works
Scan File = does not work, stuck "in progress"
In the docker hub, I can see there was a new version released on 28.12.23
28.12.23: cortexneurons/virustotal_getreport:3.0 (from Tooom) 28.22.23: cortexneurons/virustotal_getreport:3.1 (from Tooom) 2 Years old: cortexneurons/virustotal_getreport:3 (From StrangeBee)
Steps to Reproduce
Complementary information
The Log from Cortex shows the following: