Table of Contents
Conducting a successful Veracode Static Application Security Testing (SAST) scan is essential for identifying security vulnerabilities in your software early in the development process. This step-by-step guide will help you navigate the process efficiently and effectively.
Preparation Before the Scan
Before initiating a Veracode SAST scan, ensure you have the necessary prerequisites in place:
- Access to the Veracode platform with appropriate permissions
- Source code of the application to be tested
- Knowledge of the application’s architecture and dependencies
- Secure storage for API credentials and build artifacts
Step 1: Prepare Your Application for Scanning
Start by preparing your application:
- Ensure the source code is clean and free of sensitive information
- Organize the codebase for easy navigation
- Configure build tools to generate the necessary files for scanning
Step 2: Upload Your Application to Veracode
You can upload your application in several ways:
- Using the Veracode Platform Web Interface
- Via the Veracode CLI (Command Line Interface)
- Through CI/CD integrations for automated scans
Step 3: Configure the Scan Settings
Set the parameters for your scan to ensure comprehensive coverage:
- Select the appropriate scan type (e.g., Full, Incremental)
- Define the scope and include/exclude specific files or directories
- Configure scan options such as language, frameworks, and policies
Step 4: Run the SAST Scan
Initiate the scan and monitor its progress. Depending on the size of your application, this may take some time. Use the Veracode dashboard or CLI tools to track status.
Step 5: Analyze the Scan Results
Once the scan completes, review the results carefully:
- Identify high-severity vulnerabilities that need immediate attention
- Examine detailed reports for each issue
- Prioritize fixing based on risk level and impact
Step 6: Remediate Vulnerabilities
Work with your development team to address the identified vulnerabilities. Common remediation steps include:
- Updating insecure code or dependencies
- Implementing secure coding practices
- Re-running scans after fixes to verify vulnerabilities are resolved
Conclusion
Performing a Veracode SAST scan is a vital part of maintaining application security. Following these steps ensures a thorough assessment and helps you build more secure software. Regular scans and prompt remediation create a robust security posture for your projects.