-
Notifications
You must be signed in to change notification settings - Fork 793
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
Shared Agent binary HTTP server #3410
Labels
Complexity: Medium
Feature
Issue that describes a new feature to be implemented.
Impact: High
Plugins
Refactor
sp/13
Milestone
Comments
10 tasks
mssalvatore
pushed a commit
that referenced
this issue
Jul 6, 2023
mssalvatore
pushed a commit
that referenced
this issue
Jul 6, 2023
ilija-lazoroski
added a commit
that referenced
this issue
Jul 11, 2023
ilija-lazoroski
added a commit
that referenced
this issue
Jul 11, 2023
shreyamalviya
pushed a commit
that referenced
this issue
Jul 12, 2023
mssalvatore
added a commit
that referenced
this issue
Jul 12, 2023
This was referenced Jul 12, 2023
ilija-lazoroski
added a commit
that referenced
this issue
Jul 12, 2023
ilija-lazoroski
added a commit
that referenced
this issue
Jul 12, 2023
mssalvatore
pushed a commit
that referenced
this issue
Jul 12, 2023
10 tasks
cakekoa
pushed a commit
that referenced
this issue
Jul 12, 2023
cakekoa
pushed a commit
that referenced
this issue
Jul 12, 2023
cakekoa
pushed a commit
that referenced
this issue
Jul 12, 2023
10 tasks
cakekoa
pushed a commit
that referenced
this issue
Jul 13, 2023
cakekoa
pushed a commit
that referenced
this issue
Jul 13, 2023
This was referenced Jul 17, 2023
cakekoa
pushed a commit
that referenced
this issue
Jul 18, 2023
cakekoa
pushed a commit
that referenced
this issue
Jul 18, 2023
10 tasks
ilija-lazoroski
added a commit
that referenced
this issue
Jul 19, 2023
ilija-lazoroski
added a commit
that referenced
this issue
Jul 19, 2023
cakekoa
added a commit
that referenced
this issue
Jul 19, 2023
cakekoa
added a commit
that referenced
this issue
Jul 19, 2023
cakekoa
added a commit
that referenced
this issue
Jul 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Complexity: Medium
Feature
Issue that describes a new feature to be implemented.
Impact: High
Plugins
Refactor
sp/13
Problem
Infection Monkey has multiple exploiters that require exploited hosts to execute a download command (e.g. wget, curl). Each of these exploiters starts its own HTTP server to serve agent binaries. A new HTTP server is spawned per target host. Therefore, if 2 exploiters attempt to exploit 10 different hosts, up to 20 HTTP servers may be started and stopped. This is noisy, resource intensive, and leads to some duplicated code and error handling within exploiters plugins.
Solution
The Agent should start one single HTTP server for serving agent binaries and allow exploiter plugins to use it.
Benefits
TCPPortSelector
andIAgentBinaryRepository
Rough draft
Below is a rough draft. Not all of the parts and pieces are implemented and none of it has been tested. Large portions of the code have been lifted from other components, such as
infection_monkey.exploit.tools.HTTPBytesServer
.Tasks
TCPPortSelector.select_port()
(0d) @cakekoaHTTPAgentBinaryServer
(0d) @cakekoaHTTPAgentBinaryServerRegistrar
to plugins (0d) @ilija-lazoroskiHTTPAgentBinaryServerRegistrar
The text was updated successfully, but these errors were encountered: