monkey
monkey copied to clipboard
Integrate the EventQueue into the Agent
Refactor
Component(s) to be refactored
- Agent
- infection_monkey.credential_collectors
- infection_monkey.telemetry.messengers.CredentialsInterceptingTelemetryMessenger
Explanation
Use the EventQueue in the agent to handle CredentialsStolenEvent events. Register for these events and add stolen credentials to the IPropagationCredentialsRepository.
Tasks
- [ ] Define
CredentialsStolenEventincommon.events - [ ] Initialize the EventQueue in the Agent
- [ ] Create a subscriber that subscribes to
CredentialsStolenEventsand adds them to theIPropagationCredentialsRepository - [ ] Modify the mimikatz collector to publish
CredentialsStolenEvents- [ ] Accept the EventQueue in the collector's constructor
- [ ] Generate `CredentialsStolenEvents
- [ ] Publish
CredentialsStolenEvents
- [ ] Modify the SSH collector to publish
CredentialsStolenEvents- [ ] Accept the EventQueue in the collector's constructor
- [ ] Generate `CredentialsStolenEvents
- [ ] Publish
CredentialsStolenEvents
- [ ] Remove
CredentialsInterceptingTelemetryMessenger - [ ] Remove Vulture entries that are no longer relevant