Skip to content

Improve config schema generation #2785

@VakarisZ

Description

@VakarisZ

Is your feature request related to a problem? Please describe.
Hadoop plugin schema should end up in vulnerability exploiters. This means that we need to refactor the vulnerability exploiters' schema and append plugins to it. In the end, we should have a single VulnerabilityExploiters object in the schema that is composed both of plugins and of hard-coded exploiters.

Notes

First do #2787. These changes will break UI, until #2698 is done, consider merging these changes into a separate branch

Tasks

  • Refactor exploiters in common.agent_configuration.agent_sub_configurations.ExploitationConfiguration from Tuple[PluginConfiguration, ...] into an empty Dict (or similar). (0d) - @VakarisZ
  • Refactor monkey/monkey_island/cc/services/agent_configuration_schema_service.py (probably the code in repository utils) to add the plugin schema to the exploiters' schema. - @VakarisZ
    • Define hard-coded exploiter "plugins" (0d)
      • Define HadoopExploiter property
      • Define Log4ShellExploiter property
      • Define MSSQLExploiter property
      • Define PowerShellExploiter property
      • Define SSHExploiter property
      • Define SMBExploiter property
      • Define WmiExploiter property
      • Define ZerologonExploiter property
    • Modify the service to inject hard-coded "plugins" into the schema (0d)
  • Fix the logic in infection_monkey.master.exploiter to use the new schema (0d) - @VakarisZ
  • Modify BB test configurations (0d) - @VakarisZ

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions