AccuKnox DAST with Azure DevOps¶
To demonstrate the benefits of incorporating AccuKnox DAST into an Azure DevOps CI/CD pipeline for enhanced security, this document outlines the steps to configure the integration, run DAST scans, and view results in the AccuKnox SaaS platform.
Prerequisites¶
-
Access to an Azure DevOps project.
-
Access to the AccuKnox platform.
-
A configured Azure DevOps agent for pipeline execution.
Steps for Integration¶
Step 1: Install the AccuKnox DAST Extension¶
-
Navigate to the Azure DevOps Marketplace.
-
Search for AccuKnox DAST and click Get it free to install the extension in your Azure DevOps organization.
-
Select an Azure organization and click on Install.
-
Once installed, the AccuKnox DAST extension will be ready to use in your pipelines.
Step 2: Generate AccuKnox Token¶
-
Log in to AccuKnox.
-
Navigate to Settings > Tokens and create an AccuKnox token.
-
Copy the generated token and store it securely for later use. For detailed steps, refer to How to Create Tokens.
Step 3: Configure Variables in Azure DevOps¶
-
Navigate to your Azure DevOps project.
-
Go to Project Settings > Pipelines > Library > + Variable Group.
-
Add the following variables:
Secret Name | Description |
---|---|
targetUrl |
URL of the web application to scan. |
accuknoxEndpoint |
URL of the AccuKnox CSPM API. |
accuknoxTenantId |
AccuKnox Tenant ID. |
accuknoxToken |
AccuKnox API token. |
accuknoxLabel |
Label to group findings in AccuKnox. |
Step 4: Add AccuKnox DAST Task to the Pipeline¶
-
Open your Azure DevOps pipeline YAML file or create a new one.
-
Add the following task under the
steps
block:
steps:
- task: accuknox-dast@0
inputs:
targetURL: $(TARGET_URL)
accuknoxEndpoint: $(ACCUKNOX_ENDPOINT)
accuknoxTenantId: $(ACCUKNOX_TENANT_ID)
accuknoxToken: $(ACCUKNOX_TOKEN)
accuknoxLabel: $(ACCUKNOX_LABEL)
scanType: $(SCAN_TYPE)
qualityGate: $(QUALITY_GATE)
Step 5: Run the Pipeline¶
-
Trigger the pipeline manually or through a code change.
-
Monitor the pipeline logs to verify that the AccuKnox DAST task is running successfully.
View Results in AccuKnox SaaS¶
Step 1: After the workflow completes, navigate to the AccuKnox SaaS dashboard.
Step 2: Go to Issues > Findings and select DAST Findings to see identified vulnerabilities.
Step 3: Click on a vulnerability to view more details.
Step 4: Fix the Vulnerability
Follow the instructions in the Solutions tab to fix the vulnerability.
Step 5: Create a Ticket for Fixing the Vulnerability
Create a ticket in your issue tracking system to address the identified vulnerability.
Step 6: Review Updated Results
-
After fixing the vulnerability, rerun the Azure pipeline.
-
Navigate to the AccuKnox SaaS dashboard and verify that the vulnerability has been resolved.
Conclusion¶
Integrating AccuKnox DAST with Azure DevOps pipelines ensures continuous security by identifying vulnerabilities during the build process. It provides visibility into security issues and enhances deployment safety. AccuKnox DAST supports a wide range of CI/CD tools, making it a versatile choice for secure DevOps practices.