mushorg / glastopf

Web Application Honeypot
http://glastopf.org
551 stars 172 forks source link

Get destination IP from socket & new hpfeeds logging fields #290

Closed vorband closed 6 years ago

vorband commented 6 years ago

As a requirement for large scale installations using hpfeeds logging e.g. for sissden.eu, I replaced the sensor_addr and sensor_port from the information I get from the socket in use. In case the host uses several IP addresses, glastopf now distinguishes between the destination IPs targeted.

Further, I added the http host header to the json, which might directly reveal the domain / IP accessed and split the source/sensor_ip and source/sensor_port in distinct fields for better processing using logstash. I still left the list [ source_addr, source_port ] for backward compatibility, just added fields.

I think this might also be of value for other users.