Azure Pipelines

If you are using Azure DevOps for development automation, you can integrate NeuraLegion with your Azure CI pipeline using the Nexploit DevOps Integration extension. The integration allows you to automate the security testing flow by running the Nexploit scans on every new build within your development environment.

Prerequisites

Setup

Using a Pre-recorded HAR File

If you want to start a new scan with an added HAR file, first upload your HAR file to the NeuraLegion App using a simple curl command:

$ curl -X POST "https://nexploit.app/api/v1/files?discard=true"  \
    -H "Content-Type: multipart/form/data"                       \
    -H "Authorization: Api-Key yufn0f6.yourapikeykuj069zopv0n1i" \
    -f '[email protected]//path/to/the/file.har"   

The response id will then be used during setting a new scan in the pipeline, for example:

 {"ids":["6xkFraa5ecfmHhxTEnabZg"]}

Step-by-Step Guide

Opening the Integration Extension in Your Pipeline

  1. In your pipeline, click the Show assistant button.
  1. In the Tasks field, enter nexploit scan.
  1. Do one of the following:
  • To start a new scan, select the Nexploit Scan file.
  • To re-run an existing scan, select the Nexploit Re-run Scan file.

Starting a New Scan in Your Pipeline

To initialize a new scan in your pipeline, follow these steps:

  1. In the Nexploit Scan section, enter the scan details in the relevant fields and select the settings that you want to apply.
    For a scan with uploaded HAR file, additionally enter the response id in the File ID field.

       Once you complete the setup, the scan is started automatically.

  1. To manage the scanning process and view the results, go to your NeuraLegion App account.

Re-running an Existing Scan in Your Pipeline

You can restart a scan that you have already set up and run using the NeuraLegion App. To do that, follow these steps:

  1. In the Nexploit Re-run Scan section, enter the scan details in the relevant fields.
  2. Copy the ID of your scan in the address bar or the scan report window and paste it in the Scan ID field.

       Once you complete the setup, the scan is restarted automatically.

  1. To manage the scanning process and view the results, go to your NeuraLegion App account.

Did this page help you?