Extension for Burp Suite which uses AWS API Gateway to change your IP on every request.
More info: Bypassing IP Based Blocking Using AWS - Rhino Security Labs
This extension allows you to easily spin up API Gateways across multiple regions. All the Burp Suite traffic for the targeted host is then routed through the API Gateway endpoints which causes the IP to be different on each request. (There is a chance for recycling of IPs but this is pretty low and the more regions you use the less of a chance).
This is useful to bypass different kinds of IP blocking like bruteforce protection that blocks based on IP, API rate limiting based on IP or WAF blocking based on IP etc.
- Setup Jython in Burp Suite.
- Install the boto3 module for Python 2.
- Make sure that you setup your python environment in burp to load the boto3 module properly or it won't find it.
- Ensure you have a set of AWS keys that have full access to the API Gateway service. This is available through the free tier of AWS.
- Insert the credentials into the fields.
- Insert the target domain you wish to target.
- Select HTTPS if the domain is hosted over HTTPS.
- Select all the regions you want to use.(The more you use the larger the IP pool will be)
- Click "Enable".
- Once you are done ensure you click disable to delete all the resources which were started.
If you want to check on the resources and enpoints that were started or any potential errors you can look at the output console in Burp.
Use helper script for creating API GW in your AWS account. It requires boto3
but it does not need to be setup for Burp, and you need to have valid AWS profile setup:
Usage: createapigws.py [OPTIONS]
Options:
--profile TEXT AWS profile to use [default: pentest1]
--state-file TEXT API GW state directory, script creates STATE_FILE and
STATE_FILE.json. [default: api_gateways.txt]
--create TEXT specify target URL: https://example.com
--delete
--help Show this message and exit.
- Setup Jython in Burp Suite.
- Ensure you have a set of AWS keys and profile setup that have full access to the API Gateway service. This is available through the free tier of AWS.
- Insert state file path from
createapigws.py
to API GW File. - Insert the target domain you wish to target.
- Insert the stage name to Stage name if required.
- Select HTTPS if the domain is hosted over HTTPS.
- Click "Enable".
- Once you are done ensure you click disable.
- To delete you API GWs use
createapigws.py
script.
Make sure you have Jython installed and add IPRotate.py through the Burp Extension options.
After releasing this extension it was pointed out that there has been other research in this area using AWS API Gateway to hide an IP address. There is some awesome research and tools by @ustayready @ryHanson and @rmikehodges using this technique.
Be sure to check them out too: