Repository navigation
IP Fuzzing
IP Fuzzing is a feature of IP-2-CloudResource meant to reduce the time required to correlate an IP address. By attempting to identify the resource associated with the given IP address, the hope is that there are less resources required to search, and in turn, a faster result.
IP Fuzzing has two phases - basic and advanced. Basic fuzzing involves downloading AWS's service IP range data and seeing if the IP falls within any of the ranges. If so, we've found our service.
AWS publishes their IP ranges here.
The exact endpoint in use is: https://ip-ranges.amazonaws.com/ip-ranges.json.
- Simple
- Direct, unambiguous source of information
- Services are sometimes not listed
- Instead, they're listed as a general
AMAZONservice
- Instead, they're listed as a general
Advanced fuzzing takes it a step further to try to determine the service using heuristics. In a nutshell, IP2CR performs a reverse IP lookup on the given IP address. It then takes the resulting FQDN and checks it against a set of regex definitions that match known FQDN formats for services.
- Better chance of identifying service as AWS data for basic fuzzing is limited
- Does not support IPv6 at this time
- Risk of false positives as only fuzzy matching is being performed
- Domain names can change at random if AWS chooses, breaking AIPF and requiring an update to IP2CR to fix it
Both basic IP fuzzing and advanced IP fuzzing are enabled by default. They can be toggled independently as needed.
To disable basic IP fuzzing, you can set the --ip-fuzzing CLI parameter to false.
ip2cr --ipaddr=1.1.1.1 --ip-fuzzing=falseTo disable advanced IP fuzzing, you can set the --adv-ip-fuzzing CLI parameter to false.
ip2cr --ipaddr=1.1.1.1 --adv-ip-fuzzing=falseTo completely disable IP fuzzing, you can set the --ip-fuzzing and --adv-ip-fuzzing CLI parameters to false.
ip2cr --ipaddr=1.1.1.1 --ip-fuzzing=false --adv-ip-fuzzing=falseNot necessarily. Many times, a resource can be found faster in smaller cloud accounts with a relatively small amount of resources when both basic and advanced IP fuzzing turned off. The reason is due to the additional overhead generated from IP fuzzing; at some point, the time spent performing IP fuzzing exceeds the amount of time it takes to just search the excluded resources.
In general, it's suggested to turn IP fuzzing off entirely for accounts with ~25<= resources.
Another case where you may want to disable advanced IP fuzzing only is when searching IPv6 addresses. Advanced IP fuzzing doesn't support IPv6 as AWS doesn't have PTR records setup for their IPv6 prefixes.