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
121 stars 26 forks source link

c_cve.py errors #40

Closed jasonegorman closed 2 years ago

jasonegorman commented 2 years ago

When adding Pathfinder plugin to working Ubuntu 20.04 Caldera 3.1.0 or 4.0.0-Alpha builds, encountered the attached error, referencing c_cve.py. If I copy c_cve.py from pathfinder/app/objects/ to caldera/app/objects, Pathfinder appears to work fine. Looking at caldera/plugins/pathfinder/app/enrichment/cve.py, in line 11 it calls to "from app.objects.c_cve import CVE". If I edit the line to be "from plugins.pathfinder.app.objects.c_cve import CVE", Pathfinder plugin generates no errors on Caldera server version 3.1.0 or 4.0.0-Alpha and appears to operate correctly. pathfinder_error

elegantmoose commented 2 years ago

@jasonegorman - yes, fix is already in a PR in review, but appreciate bringing the bug to our attention.

jasonegorman commented 2 years ago

Awesome, thanks for the update. Sorry I didn't look at PR 39 before opening issue.

On Wed, Nov 17, 2021, 2:53 PM Michael @.***> wrote:

@jasonegorman https://github.com/jasonegorman - yes, fix is already in a PR in review, but appreciate bringing the bug to our attention.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/center-for-threat-informed-defense/caldera_pathfinder/issues/40#issuecomment-972003739, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOZG2ABYW67AVY4UKTFY63UMQI4JANCNFSM5H6H6CJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

elegantmoose commented 2 years ago

@jasonegorman - Not at all. We really appreciate any bug notifications.