Manual upload scan

Updated at:
Copy as MD

This topic describes how to scan code for security vulnerabilities by manually uploading a code archive.

Background

Manual upload scan applies to the following scenarios:

  • Code is not hosted in a Git repository.

  • You need to perform security detection on local or third-party code.

  • You need to perform a one-time scan task.

Prerequisites

  • Code Security is activated.

  • A code archive to be scanned is ready. Supported formats: .zip, .tar.gz, .rar, and .7z. Maximum file size: 500 MB.

Procedure

Step 1: Create a project

  1. Log on to the Code Security console.

  2. On the Project List page, click Create Project.

  3. Configure the following parameters.

    Parameter

    Description

    Project Name

    Enter a custom name to identify your project.

    Project description

    Optional. Enter a description for the project.

    Scan Type

    Select the scan type. SAST (Static Application Security Testing) and SCA (Software Composition Analysis) are supported. You can select multiple types.

    Scan Tips

    Optional. Enter a custom prompt to guide the model to perform targeted security analysis.

  4. Click Confirm.

Step 2: Open the project details page

On the Project List page, find the target project and click View in the Actions column.

Step 3: Create a scan task

  1. On the project details page, click Create Task.

  2. Enter the Task Name.

  3. Upload a code archive.

    Supported formats: .zip, .tar.gz, .rar, and .7z. Maximum file size: 500 MB. The programming languages currently supported for code scanning include Java, Python, and Go.

  4. Click Confirm.

Step 4: View scan results

After the scan is complete, click View in the task list to view the scan results. The scan results include the following content:

Tab

Description

Overview

Displays the overall scan status, including the total number of security issues and the distribution of risk levels.

SAST

Displays the code defects and security vulnerabilities detected through Static Application Security Testing, including the problem locations, descriptions, and fix suggestions.

SCA

Displays the third-party dependency package list, known CVE information, and risk levels detected through Software Composition Analysis.