Skip to content

Dockerfile RPM package manager is configured to skip package signature checks

Description

Employing the `--nosignature` option with the RPM Package Manager (`rpm`) in Dockerfiles presents a substantial security risk. This flag directs RPM to bypass package signature verification during installations.

Neglecting the package signature check opens the door for the potential installation of tampered or malicious packages. This can result in malicious software or vulnerable versions being incorporated into the container image, which could critically jeopardize the container's security and the overall integrity of the applications it houses.

Code Example

dockerfile
- RUN rpm -i --nosignature somepackage.rpm
+ RUN rpm -i somepackage.rpm

Remediation

Docker

Rule Details

FieldValue
IDIAC-0854
SeverityHIGH
IaC Typedockerfile
FrameworksDocker
Checkov IDCKV2_DOCKER_10

References