Skip to content

IP Fuzzing

Josh Carlson edited this page Aug 14, 2023 · 1 revision

Summary

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.

How Does It Work?

Basic Fuzzing

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 IP Range Source

AWS publishes their IP ranges here.

The exact endpoint in use is: https://ip-ranges.amazonaws.com/ip-ranges.json.

Pros

  • Simple
  • Direct, unambiguous source of information

Cons

  • Services are sometimes not listed
    • Instead, they're listed as a general AMAZON service

Advanced IP Fuzzing

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.

Pros

  • Better chance of identifying service as AWS data for basic fuzzing is limited

Cons

  • 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

How Do I Run It?

Both basic IP fuzzing and advanced IP fuzzing are enabled by default. They can be toggled independently as needed.

Disable Basic IP Fuzzing

To disable basic IP fuzzing, you can set the --ip-fuzzing CLI parameter to false.

ip2cr --ipaddr=1.1.1.1 --ip-fuzzing=false

Disable Advanced IP Fuzzing

To disable advanced IP fuzzing, you can set the --adv-ip-fuzzing CLI parameter to false.

ip2cr --ipaddr=1.1.1.1 --adv-ip-fuzzing=false

Disable IP Fuzzing Entirely

To 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=false

Shouldn't I Just Always Have IP Fuzzing Turned On?

Not 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.

IPv6 Support

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.

Clone this wiki locally

⌂ 换网址