Acunetix allows seamless integration with GitHub. This provides Acunetix administrators with the ability to send vulnerabilities directly to their development teams.
In this guide, we will show you the complete process of creating a GitHub account and integrating it with Acunetix. If you already have a GitHub account, you can skip Steps 1 and 2 of this guide.
Part 1. Prepare Your GitHub Account for Integration
Step 1. Create Your GitHub Account
- Go to the GitHub site.
- Click on the Sign Up button.
- On the Create your account page:
- Enter a username for your new account.
- Enter a valid email address for your new account.
- Enter a valid password for your new account.
- Click on the Verify button and solve the CAPTCHA component before creating the account.
- Click on the Create account button.
- Check your mailbox and click on the link in the account verification email that you received. This will send you to the GitHub Get Started page.
Step 2. Create a Repository
- From your GitHub profile drop-down, select Your repositories.
- Click on the New button.
- On the Create a new repository page:
- Enter a name for the repository.
- Enter a description for the repository.
- Set the repository to Private (unless you want this to be visible to the general public).
- Enable the checkbox labelled Initialize this repository with a README to allow you to work with the repository immediately.
- Click on the Create repository button.
Step 3. Create a New Issue Label for Your Repository
- In your repository dashboard, click on the Issues tab.
- Click on the Labels button.
- Click on the New label button.
- Set the Label name field to vulnerability.
- Set the Description field to Identified by Acunetix.
- Click on the Create label button.
Step 4. Create a Personal Access Token for Acunetix Integration Authentication
- From your GitHub profile drop-down, select Settings.
- Click on the Developer settings button.
- Click on the Personal access tokens button.
- Click on the Generate new token button.
- On the New personal access token page:
- Set the Note field to Acunetix Integration – this is only a friendly name to remind you of its use.
- Select the repo scope from the Select scopes list – this will automatically select all the sub-items within the repo scope.
- Scroll to the bottom of the page and click on the Generate token button.
- Make sure you keep a copy of the token – it cannot be retrieved after you exit the page. If you lose the token, you will need to create a new one and repeat the process.
Part 2. Configure Acunetix for Integration
- In the Acunetix UI, click on Issue Trackers in the sidebar.
- Click on the Add Issue Tracker button.
- Set the Name field to describe the integration – for this example, we have used GitHub Issues.
- Select GitHub from the drop-down labelled Platform.
- Set the Authentication field to Personal Access Token (PAT).
- This example assumes you are using the GitHub.com online service, so you would set the URL to https://api.github.com.
- Insert your GitHub personal access token into the Token field.
- Click on Test Connection – you should receive a Connection is Successful message; also, the Project and Issue Type panel will be updated with your list of projects and issue labels.
- Select the GitHub project you want the integration to be linked to – in this example you would be using the pre-created internal-wiki project.
- Select the GitHub Issue Type you want Acunetix to create when a vulnerability is found – in this example you would be using the custom type vulnerability.
- Click on the Save button at the top of the Add Issue Tracker panel.
Part 3. Configure a Target to Report Issues to Your Issue Tracker
From your list of targets, select the target you wish to work with.
- In the Target Information panel, scroll to the bottom of the panel and expand the Advanced link.
- Enable the Issue Tracker slider.
- From the Issue Tracker drop-down, select the name of the GitHub integration configuration you wish to use.
- At the top of the Target Information panel, click on the Save button.
Now that your target is configured to link to GitHub, you need to scan your target. When the scan is completed, you will be able to select the vulnerabilities to submit to your issue tracker.
Part 4. Submit Vulnerabilities to GitHub
Once you have completed a scan of your target:
- Select Vulnerabilities in the sidebar.
- Adjust your filter to obtain a shortlist containing the vulnerabilities you wish to send to your issue tracker.
- Use the checkboxes next to vulnerability to select the vulnerabilities to send to the issue tracker.
- Click on the Send to Issue Tracker button at the top of the Vulnerabilities panel.
Now, check your GitHub Issues page. It will show the issues you have submitted to the issue tracker:
Get the latest content on web security
in your inbox each week.