GitLab
TMA-GITLAB-3.2.2
Ensure packages are automatically scanned for known vulnerabilities
Description
Automatically scan every package for vulnerabilities. Automatic scanning for vulnerabilities detects known vulnerabilities in packages and dependencies in use, allowing faster patching when one is found. Such vulnerabilities can lead to a massive breach if not handled as fast as possible, as attackers will also know about those vulnerabilities and swiftly try to take advantage of them. Scanning packages regularly for vulnerabilities can also verify usage compliance with the organization's security policy.
How it is checked
Audit method: Manual review
Once Dependency Scanning is enabled for your project, continuous scanning of packages for dependency vulnerabilities is enabled.
How it is fixed
Fix method: Guidance or infrastructure patch
Enable Dependency scanning in order to automatically scan packages for vulnerabilities. To enable the analyzer, either: - Enable Auto DevOps, which includes dependency scanning. - Edit the .gitlab-ci.yml file manually. Use this method if your .gitlab-ci.yml file is complex. - Use a preconfigured merge request. - Create a scan execution policy that enforces dependency scanning.
Properties
- Operating systems
- Any
- Tags
- devsecopsgitlab
- Reference
- CIS GitLab Benchmark v1.0.1 - 3.2.2 Ensure packages are automatically scanned for known vulnerabilities