Skip to main content

Setting up Integration with ThreadFix through CxSAST

You can integrate CxSAST with Threadfix enabling CxSAST to automatically initiate a scan and push the scan results to ThreadFix.

To set up the integration with ThreadFix through CxSAST:

1. Install Python 3.5.1 on the Checkmarx server.

2. Install the Python requests library (pip install requests from the command line).

3. Create an API Key in ThreadFix. To do so, go to User > Adminsitration > API Keys.

1343356952.jpg

4. Click <Create New Key>.

1343356956.jpg

5. Click <Create Key>.

1343356960.jpg

6. Edit the files Push.py and Push_to_threadfix.bat in your Checkmarx executable folder (i.e., C:\Program Files\Checkmarx\Executables or C:\Program Files (x86)\Checkmarx\Executables) as follows:

7. Edit Push_to_threadfix.bat and change the following:

  • Set the value of the EXECUTABLE variable to your configuration (i.e., C:\Program Files (x86)\Checkmarx\Executables ).

  • Set the value of the PYTHON variable to your configuration (i.e., C:\Users\Administrator\AppData\Local\Programs\Python\Python35\python ).

8. Edit Push.py and change the following:

  • Set the value of the TFURI variable to your configuration (i.e., TFURI=”http://threadfixurl:8080/threadfix/rest/”, if ThreadFix runs on port 8080).

  • Set the value of the TFAPIKEY variables to your configuration (i.e., add the new API key).

9. Create a Post Scan Action in Checkmarx – Go to Management > Scan Settings > Pre & Post Scan Actions.

1343356972.jpg

10. Create a New Action and populate according to the example below.

1343356976.png

11. Click <Create>.

1343356980.jpg

You can set this new Post Scan Action to any new or existing CxSAST project.

1343356984.jpg

Notice

Checkmarx automatically creates Team and Application in ThreadFix if they do not already exist. The Application name and Team name in ThreadFix are equal to the Project name and Team name in Checkmarx.