gitlab-cicd-pipeline
Audited by Socket on Sep 14, 2026
3 alerts found:
Anomalyx3The configuration does not show intentional malware or an explicit malicious payload. It does contain meaningful CI/CD supply-chain and isolation risks, especially the mutable GitHub clone for Trivy, unpinned container images, Docker-in-Docker over an unauthenticated TCP endpoint, and non-reproducible npm installation. The scanner invocation also appears operationally incorrect. Pin images and tools by trusted version or digest, verify downloaded artifacts, use npm ci with a lockfile, use Docker TLS or a safer build mechanism, and pass registry credentials through --password-stdin.
No direct malicious behavior is evident. The configuration performs an expected container build and publish workflow, but has security and reproducibility concerns: unauthenticated Docker-in-Docker over TCP, command-line password usage, mutable latest tags, use of docker:latest, and a likely ineffective .docker/ CI cache. Use password-stdin, TLS-protected or isolated Docker-in-Docker, pinned image digests, controlled or digest-pinned cache sources, and verify runner isolation and registry permissions.
This is a conventional GitLab Runner registration and startup script, not evidence of malware. Its principal risks are operational and isolation-related: privileged Docker execution, potentially sensitive certificate mounting, mutable image selection, weak runner protection settings, and unquoted token expansion. Use a protected, dedicated runner for trusted projects, pin image versions, quote the token, and verify that the certificate volume contains no credentials accessible to untrusted jobs.