jenkinsfile-audit

Audits Jenkinsfiles for secret leaks, shell injection, privileged containers, floating shared libraries and disabled TLS checks. Groovy.

3 files, 15 findings

SeverityRuleWhereFinding
highJKS002legacy/Jenkinsfile:7literal secret assigned to REGISTRY_PASSWORD: use Jenkins credentials
highJKS001legacy/Jenkinsfile:12remote script piped into a shell: the pipeline runs whatever the server returns
highJKS007legacy/Jenkinsfile:13user-controlled value interpolated in a double-quoted shell string: command injection through parameters or branch names
highJKS007legacy/Jenkinsfile:14user-controlled value interpolated in a double-quoted shell string: command injection through parameters or branch names
highJKS003legacy/Jenkinsfile:21credential interpolated in a double-quoted shell string: use single quotes and let the shell read the variable
highJKS003legacy/Jenkinsfile.lib:7credential interpolated in a double-quoted shell string: use single quotes and let the shell read the variable
mediumJKS009legacy/Jenkinsfile:2shared library pinned to branch main: pin a tag or commit
mediumJKS004legacy/Jenkinsfile:18privileged container or Docker socket: the build can take over the host
mediumJKS005legacy/Jenkinsfile:18container runs as root
mediumJKS006legacy/Jenkinsfile:22TLS verification is disabled
mediumJKS010legacy/Jenkinsfile:24dynamic code evaluation
mediumJKS009legacy/Jenkinsfile.lib:1shared library shared has no version: it follows whatever the default branch is
lowJKS008legacy/Jenkinsfile:1no timeout: a stuck build holds an executor forever
lowJKS011legacy/Jenkinsfile:5agent any: the job can land on any node, including the controller
lowJKS008legacy/Jenkinsfile.lib:1no timeout: a stuck build holds an executor forever

Synthetic Jenkinsfiles. This page is rendered from the tool's --tsv output by scripts/site.py.