TMAegisBeta
更多 gitlab 規則

GitLab

TMA-GITLAB-3.1.7

Ensure dependencies are pinned to a specific, verified version

中等級 1人工審核gitlab

說明

Pin dependencies to a specific version. Avoid using the "latest" tag or broad version. When using a wildcard version of a package, or the "latest" tag, the risk of encountering a new, potentially malicious package increases. The "latest" tag pulls the last package pushed to the registry. This means that if an attacker pushes a new, malicious package successfully to the registry, the next user who pulls the "latest" will pull it and risk attack. This same rule applies to a wildcard version - assuming one is using version v1.*, it will install the latest version of the major version 1, meaning that if an attacker can push a malicious package with that same version, those using it will be subject to possible attack. By using a secure, verified version, use is restricted to this version only and no other may be pulled, decreasing the risk for any malicious package.

檢查方式

稽核方法: 人工審核

此項建議無法自動檢查。當您傳入 --include-manual 時,掃描結果會列出此項目並附帶這些說明。

For every dependency in use, ensure it is pinned to a specific version.

修補方式

修補方法: 操作指南或基礎設施修補檔

For every dependency in use, pin to a specific version.

屬性

作業系統
不限
標籤
devsecopsgitlab
參考資料
CIS GitLab Benchmark v1.0.1 - 3.1.7 Ensure dependencies are pinned to a specific, verified version