TL;DR
This guide shows you how to find out more about who’s attacking your Kippo honeypot. We’ll focus on getting their IP address and then using that to look up their location and potentially other information.
Steps
- Confirm You Have Attack Data
- Kippo logs all attempted logins in a text file. The default location is usually
/var/log/kippo/kippo.log. - Check this log to see if you have any recent entries. Each line represents an attempt.
tail -f /var/log/kippo/kippo.log
- Kippo logs all attempted logins in a text file. The default location is usually
- Extract IP Addresses
- The IP address of the attacker is usually found in the log file, often associated with a failed login attempt. You can use
grepto find these.grep -oE '([0-9]{1,3}.){3}[0-9]{1,3}' /var/log/kippo/kippo.log | sort | uniqThis command does the following:
grep -oE '([0-9]{1,3}.){3}[0-9]{1,3}' /var/log/kippo/kippo.log: Finds all IP addresses in the log file.sort: Sorts the list of IPs.uniq: Removes duplicate IP addresses, showing only unique attackers.
- The IP address of the attacker is usually found in the log file, often associated with a failed login attempt. You can use
- Geolocation using
geoiplookup- Install
geoip-binif it’s not already installed. This provides thegeoiplookuptool.sudo apt update && sudo apt install geoip-bin -y - Use
geoiplookupto find the location of each IP address.geoiplookupReplace
<IP_ADDRESS>with an actual IP address from your log file. This will give you country, region and city information.
- Install
- Using Online IP Lookup Tools
- Several websites provide IP lookup services (e.g., IPLocation.net, WhatIsMyIPAddress.com).
- Copy and paste the IP address into one of these tools to get more detailed information, including ISP (Internet Service Provider) details.
- Reverse DNS Lookup
- Use
hostcommand to perform a reverse DNS lookup. This can sometimes reveal the hostname associated with the IP address.hostThis might give you clues about the attacker’s organisation or network.
- Use
- WHOIS Lookup
- Use a WHOIS lookup tool (e.g., DomainTools WHOIS) to find registration information for the IP address block.
whoisThis can provide details about the owner of the IP address range, but often this information is obscured by privacy services.
- Use a WHOIS lookup tool (e.g., DomainTools WHOIS) to find registration information for the IP address block.
- Consider cyber security implications
- Be aware that geolocation data isn’t always accurate. It provides an estimate based on the IP address’s registered location.
- Don’t rely solely on this information for legal action.
- Investigate further if you suspect a serious attack.

