-
Notifications
You must be signed in to change notification settings - Fork 348
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
beacons exit abnormally when the teamserver restarts #106
Comments
There are two scenarios for beacon exit, one is the normal exit of the internal settings, and the other is the abnormal exit of the network connection error.
|
For scenario 1, is there any way not to let the beacon exit even it fails to reconnect after trying 20 times, such as a configuration or rebind? For some cases, the teamserver needs to be restarted for several times or put into offline for a period of time. |
The v2.2.5 version that has been pushed will try to ensure that abnormal network connections will not affect the beacon process, and its sessions will be guaranteed to survive for 48 hours in a disconnected state. |
That's a thoughtful consideration.
That sounds great. From my view of design philosophy for RAT, the beacon should never choose to proactively exit without a command from the control side. The control side may encounter network connection failure, or power down, or even intentionally hiding for a while. Usually it requires such amount of effort to put a beacon onto a victim, that is also Initial Access, which may result from a vulnerability worth thousands of dollars, or a sophisticate phishing mail. However, if the installed beacon choose to exit itself without a order from the control side due to a period of unreachable network , that makes the previous effort of initiative access meaningless. In that case, the beacon should just sleep, and wake up to connect control side on a period time infinitely, and then sleep, and wake, and so on. |
The design idea of RAT not voluntarily withdrawing is correct, but the project is used for legal exercises.
In response to this problem, the user-customizable beacon version will be pushed as soon as possible. |
It's really wired to find out beacons exit abnormally when the corresponding teamserver restarts. The version of CrossC2 is v2.2.4 and v2.2.2, and beacons exited abnormally both on CS 4.2 and CS 4.3. For some reasons, the teamserver need to be restarted frequently, for example, the teamserver hangs out when the beacon-get URI is accessed intensively by Internet scan traffic, or the teamserver is put into a VM and the VM only starts when it's time to control beacons. It was observed that beacons exited abnormally, when the teamserver restarts several times. It cannot tell how many times the teamserver restarts before the beacon will exit unexpectedly, maybe two or three. Usually the beacon exits silently after two or three hours after the teamserver restarts. Moreover, the phenomenon of beacon exit unexpectedly are quite often.
Please tell us why this happens, thanks
The text was updated successfully, but these errors were encountered: