guardicore / guardicore/monkey
SSH fingerprinter crash
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 830
- PR merge metrics
- No merged PRs in 30d
Description
## Describe the bug
Under some circumstances, the SSH fingerprinter crashes. More specifically (but not specific enough), some data (or lack of data?) Could cause a call to `sock.recv()` to fail in `check_tcp_port()`. This failure is not caught, causes monkey to exit, effectively aborting the network scan. The culprit is https://github.com/guardicore/monkey/blob/fa9fae1d69f3a9ff9d8113bf1e5698623eb7aeb4/monkey/infection_monkey/network/tools.py#L71
## Reproducing
I haven't yet tracked down the root cause of the issue, though I can reproduce it in my environment.
## Screenshots

## Machine version (please complete the following information):
- OS: Windows or Linux
Contributor guide
Assessment
This issue has not been assessed yet.