center-for-threat-informed-defense / caldera_pathfinder

Pathfinder is a plugin for mapping network vulnerabilities, scanned by CALDERA or imported by a supported network scanner, and translating those scans into adversaries for network traversal.
https://caldera.mitre.org/
Apache License 2.0
120 stars 26 forks source link

error importing plugin=pathfinder, no module named 'networkx' #55

Closed blockanz closed 1 year ago

blockanz commented 2 years ago

Trying to use the pathfinder plugin with Caldera Docker image and getting the error:

error importing plugin=pathfinder, no module named 'networkx'

Have correctly cloned repository into caldera/plugins/pathfinder

ran pip3 install -r requirements.txt in caldera/plugins/pathfinder subdir

Rebuilt docker caldera docker image but still getting the above.

Anyone have any ideas?

Thanks

elegantmoose commented 2 years ago

Hey @blockanz - when you build the docker image, are you seeing output that the networkx package is actually being installed successfully?

blockanz commented 2 years ago

@elegantmoose I have just re-run the docker build and cannot find anything relating to networkx package at all. I'm not convinced it is being installed as part of the build (at least I can see no evidence to suggest it is).

elegantmoose commented 2 years ago

@blockanz Sorry I have not had time to investigate further but can you try adding networkx to the Caldera requirements.txt file and then rebuilding the docker image?

mehaase commented 1 year ago

I noticed networkx is now included in requirements.txt, and I just added a line to the installation instructions to pip install the requirements.