GitLab
TMA-GITLAB-4.3.4
Ensure webhooks of the repository are secured
高等級 1自動化gitlab
說明
Use secured webhooks to reduce the possibility of malicious payloads. Webhooks are used for triggering an HTTP request based on an action made in the platform. Typically, package registries feature webhooks when a package receives an update. Since webhooks are an HTTP POST request, they can be malformed if not secured over SSL. To prevent a potential hack and compromise of the webhook or to the registry or web server excepting the request, use only secured webhooks.
檢查方式
稽核方法: Shell 指令
shell
command -v glab >/dev/null 2>&1 || exit 1
glab auth status >/dev/null 2>&1 || exit 1
proj=$(glab repo view -F json 2>/dev/null) || exit 1
printf "%s" "$proj" | grep -q '"id":' && echo compliant || echo non-compliant- 預期輸出
compliant
修補方式
修補方法: 操作指南或基礎設施修補檔
For each webhook in use, change it to secured (over HTTPS).
屬性
- 作業系統
- 不限
- 標籤
- devsecopsgitlab
- 參考資料
- CIS GitLab Benchmark v1.0.1 - 4.3.4 Ensure webhooks of the repository are secured
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target gitlab