The softScheck Cloud Fuzzing Framework (sCFF) is a set of tools, aiming to make Cloud fuzzing easy. It aims to become a framework where fuzzers and other cloud services can easily be added.
At the moment it is still a rather hard coded tool set to save a lot of time when fuzzing in the Amazon cloud. It helps and guides the user through the deployment, fuzzing itself, as well as the post fuzzing phase, in which findings must be examined.
This chapter covers the installation, AWS setup, first run and scff-demo to demonstrate the basic workflow.
Get sCFF from the GitHub repository:
git clone https://github.com/softscheck/scff.git cd scff
If you have a Debian-based distribution, you can generate a Debian package (
./mkdeb.sh) and install it aferwards. Some distributions won’t have the python3-boto3 package, though, resulting in a failure. In this case, you have to use the method below.
pip3 install . # OR easy_install3 .
Otherwise install python3-boto3 and run
python3 ./setup.py install. In case installation will fail with a permission denied error, install as root.
AWS account creation and configuration
Because the only Cloud provider currently supported by sCFF is Amazon, an AWS account is required. You can create one at https://aws.amazon.com Once, finished you need to export your key_id and the corresponding aws_secrect_key aswell. It is recommended not to export the root keys and instead to create and export an IAM with the minimal set of required permissions (scff requires the EC2 policies).
Add the keys to the file .aws/credentials like that
[default] aws_access_key_id = Access key id aws_secret_access_key = Secret access key
Also, add your amazon region to .aws/config. If you don’t know your region, open the amazon management console and look at the URL 😉 Example contents of .aws/config:
[default] region = eu-central-1 output = text
You should now be able to connect to AWS with sCFF. To check if everything is working without doing anything type:
While we are now able to manage EC2 instance from within our tool, we are still not able to connect to an EC2 instance. Todo you have to create an SSH key pair first. Save the key pair as ~/.scff/aws-key-pair.pem.
Next, create a Security Group with the name SSH. Allow TCP traffic from port 22. Allow internal traffic and if you wish to see what your distributed fuzzers are doing allow traffic to your IP on TCP port 8000.
Get used to the workflow
scff-demo to get to know the typical sCFF workflow.
Create a new directory and put the program you want to fuzz and a template file, for which the program does not crash, in it.
Then think about how much you are willing to spend and how long you want your machines to run. Execute
scff-costcalc to get an idea of how much it will cost. Keep in mind that if you are new to the Amazon Cloud you can fuzz for free, if you select the t2.micro instance and keep the runtime below 750 hours.
scff-mkcfg and answer the questions to create your project file. The default name of the configuration file is scff.proj. You can review and edit this file with a text editor of your choice. If everything seems fine, start
scff-create-instances, which will create your instance(s). Wait for them to boot and bootstrap them with
scff-ctrl scff.proj bootstrap. This will install necessary files on the remote machine and deploy your target. You are now ready to fuzz.
In scff, there are two fuzz modes. Single mode and distributed mode. In single mode, fuzzers on different machines run independently of each other. In distributed mode, they will share their corpus, leading to faster results. Distributed mode is, therefore, the recommended mode. To start distributed mode, run
scff-ctrl scff.proj distributed.
To check if everything works fine, view the fuzzer status with
scff-ctrl scff.proj status If the security group permits incoming traffic on port 8000, you can also view the status on your web-browser (SERVER_IP:8000).
Don’t forget to stop or terminate the instance, once you are done, otherwise you can end up paying a lot very fast.
- scff-amisearch: Search AMIs and display basic info
- scff-clean: Removes unused AMIs, snapshots and volumes
- scff-costcalc: Get to know how much X machines from type Y cost for Z hours
- scff-create-instance: Create EC2 instances based on a scff project file
- scff-ctrl: Control EC2 instances as well as the fuzzers
- scff-demo: A wizard like tutorial program
- scff-exploitcheck: Test findings on exploitability
- scff-mkcfg: Create a scff project file
- scff-pocgen: Generate proof of concept scripts
- scff-stats: Display fuzzing statistics
For more information about a single program, view the associated man page.