-
Notifications
You must be signed in to change notification settings - Fork 786
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
Replace tunnel/proxy with relay #2216
Closed
24 tasks done
Labels
Comments
1 task
This was referenced Sep 2, 2022
8 tasks
8 tasks
mssalvatore
added a commit
that referenced
this issue
Sep 7, 2022
This is no longer needed after #2216.
This was referenced Sep 7, 2022
This was referenced Sep 14, 2022
Closed
mssalvatore
added a commit
that referenced
this issue
Sep 14, 2022
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Refactor
Component(s) to be refactored
Explanation
Problem
The current tunneling mechanism has a few major bugs and drawbacks:
Solution
To solve the above issues, the tunnel/proxy will be replaced with a TCP relay. TCP relays simply pass all traffic they receive on to the Island (or the next relay in the chain). TCP relays are passed to the agent via a command-line argument in priority order when the agent starts. The agent has no knowledge of which one is a direct connection to the island and which ones are actually relays.
When an agent starts, it starts a TCP relay and appends the ip:port of its relay to the list it was given. It then passes this complete list to all child agents that it spawns. This gives the child agents a variety of relays to try without the need to multicast them through the network. It also allows the parent (or command & control) to dictate how the child agent should connect by changing the order of the servers.
Benefits
Tasks
TCPRelay
(0d) - @cakekoaTCPRelay
(populate on connect) (0d) - @cakekoaExploitInterceptingTelemetryMessenger
to notifyTCPRelay
of exploits (0d) - @cakekoaTCPRelay
that accepts anExploitTelem
and keeps track of exploited machinesExploitTelem
toTCPRelay
's method-
) (0d) - @cakekoaTCPRelay
during agent setup (0d) - @cakekoa-
to all servers that the agent isn't usingmonkey/monkey/monkey_island/cc/server_utils/network_utils.py
Line 7 in 8b49554
The text was updated successfully, but these errors were encountered: