-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Sensors not sending data to the hive #1543
Comments
Based on the info provided I cannot reproduce the issue. |
How can I check for .env? |
You can find the ReadMe here. |
On the sensors the .env file holds a correct IP, also TPOT_TYPE=SENSOR. Docker logstash logs shows mismatch of certificate : Could not fetch URL {:url=>"https://192.168.85.236:64294", :method=>:post, :message=>"Certificate for <192.168.85.236> doesn't match any of the subject alternative names: [192.168.85.10]", :class=>Manticore::UnknownException, :will_retry=>false} I assume this is because the IP changed. Any way how to regenerate the certificate? Thank you |
Stop T-Pot, delete |
I did indeed need to redeploy, but NATed sensors are detecting incorrect certificate still (since they are NATed), any way how to disable SSL verification for logstash for only two sensors? The routed ones are working now :) Thank you |
There is no option to disable SSL certificate checking, Elastic simply does not offer it. |
Just saw that Elastic introduced a ssl_verification_mode setting. You can give that a try by adjusting the |
You can give this a try as well, replace IPs / FQDNs, etc. and then redeploy the sensors.
This will basically add more IPs to the SANs, do not know though how intensive logstash will check the cert. |
Hello, so after further testing there seems to be a check on the HIVE side, so if the connection is NATted there is no response, we were however able to bypass the certificate check. In the meantime we implemented TPots in all internal networks, the external networks will have to be without them. Just for clarification - they are more like adjacent networks, not remote networks so we can do some tunneling between them. You have been incredibly helpful and now all the sensors are reporting data to the HIVE. Thank you :) |
Great to hear and thanks for the feedback. |
Hello @t3chn0m4g3 and @SnakeSK , I encountered a similar problem as described above, but I managed to resolve it by obtaining a valid and trusted SSL certificate for the HIVE. (Used a domain instead of public IP address for TPOT_HIVE_IP in .env) The HIVE, situated on the same LAN as the sensors, could receive data from local sensors without any issues. However, it failed to receive data from sensors out on the Internet. This issue became evident when inspecting the Logstash logs on the sensor using the command Sample log below after creating and installing a self-signed certificate on the HIVE with its public IP address as the common and alternate names: The solution involved replacing the existing SSL certificate (nginx.crt and nginx.key) in the ~/tpotce/data/nginx/cert directory on the HIVE with a valid and trusted certificate obtained from a certificate authority. I then re-installed T-Pot on the sensor (since I had made changes) and ran the deploy script to get it to work. Deploying other freshly installed sensors on the Internet resulted in proper log transmission after a valid certificate was added. What did not work for me (but could work for somebody else):
|
Thanks for the info @devArnold |
Thanks to @SnakeSK and @devArnold for the discussion in #1543
@SnakeSK @devArnold |
Thanks to @SnakeSK and @devArnold for the discussion in #1543
Successfully raise an issue
Before you post your issue make sure it has not been answered yet and provide⚠️ BASIC SUPPORT INFORMATION (as requested below) if you come to the conclusion it is a new issue.
root
)We happily take the time to improve T-Pot and take care of things, but we need you to take the time to create an issue that provides us with all the information we need.
df -h
)? 150GB for each VMdps
)? Runningsystemctl status tpot
)? RunningFresh install of 24.04 on a VMs. Tried fresh install too but the problem seems to be that sensors are not sending data to the hive, I see traffic between subnets, but nothing is being visualized in the ELK stack. If I try something on the HIVE which runs the honeypot, I see data straight away. At first I tried opening the 64294 port first, but eventually tried to open everyrhing (VMs can see themselves). Nothing is being collected on the hive from remote subnets.
The text was updated successfully, but these errors were encountered: