Manual upload scan
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
-
Log on to the Code Security console.
-
On the Project List page, click Create Project.
-
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.
-
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
-
On the project details page, click Create Task.
-
Enter the Task Name.
-
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.
-
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. |