telekom-security / tpotce

🍯 T-Pot - The All In One Multi Honeypot Platform 🐝
GNU General Public License v3.0
6.28k stars 1.03k forks source link

T-Pot Attack Map Issues #1569

Closed TheGrandMaster01 closed 4 weeks ago

TheGrandMaster01 commented 4 weeks ago

Hello,

I'm having issues viewing the attack map in real time, I have events, but no data is being showed in the live map. (This is from the last 24hrs, the other day I run some tests and send more than 120k) imagen

uname -a: Linux debian 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux

t3chn0m4g3 commented 4 weeks ago

Based on the info provided the map is connected, typically the reason for this is events without geo_ip info which cannot be rendered.

TheGrandMaster01 commented 4 weeks ago

In kibana I can see more than 100 unique Ips, and I search for them shodan, talos, censys, I see their geo info

t3chn0m4g3 commented 4 weeks ago

Do you see geo_ip info for the IPs in question? If yes, run docker logs map_data to see if map_data receives it, but since I cannot reproduce (also using Debian 12) it is either browser related (clear cache), the site needs to be reloaded or the events have no geo_ip info. What about the T-Pot Live Attack in Kibana?

TheGrandMaster01 commented 4 weeks ago

imagen

imagen

Alright, I tried earlier cache, Im trying again.

TheGrandMaster01 commented 4 weeks ago

imagen

imagen

Alright, I tried earlier cache, Im trying again.

No changes

t3chn0m4g3 commented 4 weeks ago

It seems that the geo_ip info for the src_ip is present, but map_data / map_web need the geo_ip info for both, the source and the destination to render the path. Check if the destination ip (your T-Pot) has geo_ip info in the geoip_ext field.

TheGrandMaster01 commented 4 weeks ago

Where can I see that? My ip shows the location info

t3chn0m4g3 commented 4 weeks ago

Go to Kibana / Discover and browse through the events.

TheGrandMaster01 commented 4 weeks ago

imagen Adding to this, no events show my ip

t3chn0m4g3 commented 4 weeks ago

Run more $HOME/tpotce/data/tpotinit.log and look for # Updating IP Info ..., what is happening there?

TheGrandMaster01 commented 4 weeks ago

imagen

t3chn0m4g3 commented 4 weeks ago

T-Pot is unable to determine your external IP and that is the reason why map_web / map_data cannot display events. The script is part of the tpotinit container (docker exec -it tpotinit ash) and calls /opt/tpot/bin/myip.sh inside the container. Nothing I can really do about it, maybe some routing / NAT / settings at your end 🤷‍♂️.

TheGrandMaster01 commented 4 weeks ago

And is there a way I set it up manually? Editing the script or writing it in the configuration?

t3chn0m4g3 commented 4 weeks ago

You can adjust the script outside the container, it resides in docker/tpotinit/dist/bin, then you add a volume to the tpotservice in $HOME/tpotce/docker-compose.yml pointing to the adjusted script. At start tpotinint will now execute the adjusted script.

TheGrandMaster01 commented 4 weeks ago

Thanks, I will be trying that

TheGrandMaster01 commented 4 weeks ago

I tried to change it, but its not composing the changes, takes the old script

t3chn0m4g3 commented 4 weeks ago

It seems you are not using the correct path for the script. You need to make sure the volume's destination matches exactly the path and filename of the script inside the container. At this point however there is nothing more that I can do. If you are unsure about docker volumes you can check out our Wiki, it holds some examples.