Closed Kusko25 closed 3 months ago
Hi @Kusko25:
requirements.txt
include cortexutils?Cortex doesn't install the dependencies, you need to install them.
Thanks for the reply I was trying to run the responder as a process and kind of assumed cortex would install the requirements at some point when you add the new responder, but did then discover that, as you pointed out, it does not. That of course means in a docker version of cortex running as a script is almost impossible because it doesn't even ship with pip.
But I have since build the responder as an image and that works fine so I'll close this issue.
Again thanks for the reply, had honestly forgotten about it
I am trying to write a new Responder following the instructions here (http://docs.thehive-project.org/cortex/api/how-to-create-a-responder/) but if I try to run it I get
Traceback (most recent call last): File "/opt/Custom-Analyzers/responders/Nailer/nailer.py", line 6, in <module> from cortexutils.responder import ResponderModuleNotFoundError: No module named 'cortexutils'
To Reproduce Cortex is running in a Docker container with the Responder directory mounted to a Windows filesystem. This is what my filetree looks like:
And the contents of noki_responder.json:
I'd expect Cortex to install the requirements from the file and run the Responder (probably still with errors but at least get past the import statements)
Work environment