2.3.2 - Cortex Error - FileInfo_7_0 Error #1743
-
When trying to use the Analyzer FileInfo, I get this error Traceback (most recent call last): File "/Cortex-Analyzers/analyzers/FileInfo/fileinfo_analyzer.py", line 3, in import magic File "/usr/local/lib/python3.6/dist-packages/magic.py", line 181, in raise ImportError('failed to find libmagic. Check your installation')ImportError: failed to find libmagic. Check your installation Looks like libmagic is not installed. Not sure if the error means inside the docker image for TheHive/Cortex or on my Manager. If it is inside my docker image, how do I update the image to include this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The requirements.txt for the FileInfo analyzer includes python-magic, and a pip3 list shows python-magic as installed inside of my container, so I'll have to take a closer look at why this may be happening. I believe python-magic is just an interface to libmagic, so we may need to make sure it gets installed when we build the image. I'l need to perform some testing, then I will follow up. |
Beta Was this translation helpful? Give feedback.
-
Thanks Wes, you guys are awesome as always! |
Beta Was this translation helpful? Give feedback.
The requirements.txt for the FileInfo analyzer includes python-magic, and a pip3 list shows python-magic as installed inside of my container, so I'll have to take a closer look at why this may be happening. I believe python-magic is just an interface to libmagic, so we may need to make sure it gets installed when we build the image. I'l need to perform some testing, then I will follow up.