A user reports a login alert at 3 a.m., and you have a few thousand lines of authentication log. Reading them all is impractical. Pulling out only the IP addresses and counting repeats quickly shows which sources deserve a closer look.
IP Address Extractor FREE online toolRuns in your browser. No sign-up, nothing to install. Open the tool →Start with a clear question
Decide what you are looking for before extracting. Many failed attempts from one address suggest a brute-force or password-guessing attack. Many different addresses each trying a few accounts suggest credential stuffing or a distributed attack. A successful login from an address you have never seen is the most serious case, so keep failed and successful events separate.
Step by step
- Filter the log to the time window and the events you care about, such as failed password lines for the user in question.
- Paste the filtered text into the IP Address Extractor and untick Remove duplicates, so repeated addresses stay in the list.
- Copy the list of addresses, and sort it so repeats sit together.
- Count occurrences, for example by pasting into a spreadsheet and using a pivot table or COUNTIF.
- Check the most frequent and any successful addresses against a lookup for owner and country.
Reading the results
An address that appears 400 times in an hour is not a human typing. Compare it with known sources: your office network, VPN, mobile carriers and cloud servers. Private ranges such as 10.x.x.x, 172.16.x.x to 172.31.x.x and 192.168.x.x are internal, so they point to a device on your own network, or to a proxy that hides the real client address.
What to do next
- Block repeat offenders at the firewall or with a rate limit.
- Force a password reset and revoke sessions for any account with a suspicious success.
- Enable multi-factor authentication if it is not already on.
- Keep the extracted list with timestamps for the incident record.
- Check whether the addresses belong to a known proxy or VPN service before blaming a single person.
Limits to keep in mind
An IP address is not an identity. Many people share one address behind carrier-grade NAT, and attackers route traffic through compromised machines or anonymity networks. Geolocation of an address is approximate, so use it as a hint, not as proof. If logs sit behind a load balancer, make sure you are extracting the original client address from the forwarded header and not the balancer's own.
Treat logs as sensitive data. They may contain usernames and internal hostnames, so extract and analyze them on a trusted device and share only what the investigation needs.
IPv6 and formatting quirks
IPv6 addresses look different, with groups of hexadecimal digits separated by colons, and they can be shortened with a double colon. The same device may appear in several forms, so normalize before counting. Also watch for addresses followed by a port, such as 203.0.113.5:443, where the port is not part of the address.
Keep the baseline
Save a list of normal sources for your organization, then compare each new extraction against it. Anything new at an odd hour stands out immediately, and over time you build a picture of what ordinary activity looks like.
Comments (0)
No comments yet. Be the first to share a thought.