Skip to content

Dockerfile Rules

IaC rules for Dockerfile that identify insecure configurations in infrastructure and cloud resources.

Dockerfile Rule Catalog

IDTitleSeverity
IAC-0846Dockerfile certificate validation is disabled with curlHIGH
IAC-0847Dockerfile certificate validation is disabled with wgetHIGH
IAC-0848Dockerfile certificate validation is disabled with the pip '--trusted-host' optionHIGH
IAC-0849Dockerfile certificate validation is disabled with the PYTHONHTTPSVERIFY environmnet variableHIGH
IAC-0850Dockerfile Node.js certificate validation is disabled with the NODE_TLS_REJECT_UNAUTHORIZED environment variableHIGH
IAC-0854Dockerfile RPM package manager is configured to skip package signature checksHIGH
IAC-0855Dockerfile APT package manager is configured to force package installations without prompts or verificationsHIGH
IAC-0856Dockerfile configuration disables strict SSL for NPMHIGH
IAC-0857Dockerfile sets NPM configuration to disable strict SSLHIGH
IAC-0858Dockerfile configures GIT to disable SSL verificationHIGH
IAC-0859Dockerfile sets YUM configuration to disable SSL verificationHIGH
IAC-0851Dockerfile APK package manager is configured to allow untrusted repositoriesMEDIUM
IAC-0852Dockerfile APT package manager is configured to allow unauthenticated packagesMEDIUM
IAC-0853Dockerfile YUM package manager is configured to skip GPG signature checksMEDIUM
IAC-0860Dockerfile uses a trusted host with pipMEDIUM
IAC-0861'chpasswd' is used to set or remove passwordsMEDIUM
IAC-0834Port 22 is exposedLOW
IAC-0835Healthcheck instructions have not been added to container imagesLOW
IAC-0836A user for the container has not been createdLOW
IAC-0837Copy is not used instead of Add in DockerfilesLOW
IAC-0838Update instructions are used alone in a DockerfileLOW
IAC-0839LABEL maintainer is used instead of MAINTAINER (deprecated)LOW
IAC-0840Base image uses a latest version tagLOW
IAC-0841Last USER is rootLOW
IAC-0842Docker APT is usedLOW
IAC-0843Docker WORKDIR values are not absolute pathsLOW
IAC-0844Docker From alias is not unique for multistage buildsLOW
IAC-0845Dockerfile contains the use of 'sudo'LOW

Total Rules: 28

Click on any rule ID to view detailed information, examples, and remediation guidance.