-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3167 mock credential collector #3247
Conversation
@@ -2,7 +2,7 @@ | |||
|
|||
|
|||
class AgentPluginType(Enum): | |||
CREDENTIAL_COLLECTOR = "CredentialCollector" | |||
CREDENTIAL_COLLECTOR = "Credential_Collector" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Credential Collector
Also, should this be plural?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it shouldn't be plural. According to how plugins are parsed right now, this needs to be the same as what the plugin tar name contains (in lowercase) AND what the plugin manifest has in the plugin_type
field (which we've discussed is not good design and needs to be changed).
For example, for Mimikatz, the tar name needs to be mimikatz-credentialcollector.tar
and the manifest needs to contain plugin_type: CredentialCollector
.
I suggest we leave this as CredentialCollector
. Adding a space would require the tar name to have a space (mimikatz-credential collector.tar
), and adding an underscore would require the manifest to have plugin_type: Credential_Collector
. Unless we decide to change plugin parsing before we get to migrating the credential collectors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything on that is clear, but the issue was that the enum name and value were different and the plugin was not being loaded due to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So to get a plugin to work, we need 4 things to be written the same way, the enum name, the enum value, the plugin type in the manifest, and the last part of the tar name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to go with Credential_Collector
as the value in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that's fine. But should we rename the enum name and value to be plural? The plugin collects credentials, not a single credential.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cakekoa you should rebase on develop and drop this commit. It is already done there.
I think there are some issues with the interface here. We should probably complete the tasks to define the interface before doing any more work on this. |
monkey/tests/data_for_tests/credential_collector_plugin/src/.plugin.py.swo
Outdated
Show resolved
Hide resolved
fca73ae
to
5a47852
Compare
b7bbaa5
to
bfb79d3
Compare
8e83fb8
to
fe230be
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #3247 +/- ##
===========================================
+ Coverage 73.35% 73.36% +0.01%
===========================================
Files 481 481
Lines 13875 13866 -9
===========================================
- Hits 10178 10173 -5
+ Misses 3697 3693 -4 ☔ View full report in Codecov by Sentry. |
Travis is fixed in the #3260 |
…l plugins It will replace PluginSelectorTemplate and take its name when done.
Needed so we can disable options if the plugins are not selected
Exploiters will be also used as part of selectedPlugins in a later commit
5763477
to
2466ffb
Compare
What does this PR do?
Fixes #3167
Things left to do:
TargetHost
.PR Checklist
Testing Checklist