Unable to Scan Image in Prisma Cloud with Error "failed to augment data: cannot perform image scanning for container that ran chroot to another folder"
20817
Created On 05/05/22 09:21 AM - Last Modified 04/24/24 11:26 AM
Symptom
- Unable to Scan Image in Prisma Cloud with Error "failed to augment data: cannot perform image scanning for container that ran chroot to another folder"
Environment
- Prisma Cloud
- CRI-O/containerd environments
Cause
- This chroot issue occurs as this specific container mounts the host filesystem root (see below) and perform chroot (changed the root of its filesystem).
{
"Source": "/",
"Destination": "/rootfs",
"Shared": false,
"Readonly": false
}
- In such cases, there is no way to to scan the actual image filesystem, as it basically appears as it is running directly on the host.
- This error message is due to a limitation in the CRI-O image scanning by design.
- In CRI-O/containerd environments, images of running containers are scanned by looking up the container root via /proc/<container pid>/root.
- In chrooted containers, /proc/<container pid>/root doesn’t point to the original root of the image, so the scan would be partial/incorrect.
- Instead of proceeding with incorrect data, the Defender issues this Error Message.
- In order to get accurate visibility into vulnerabilities that exist for this image, registry scanning would provide accurate results.
Resolution
- To scan such containers, there is an existing Feature Request, TP-I-1044. Please check in with your Customer Success Manager or Solutions Architect for an update.
Additional Information
- For Docker there is no such limitation as Docker and CRI-O Image Scanning Implementation work differently.
A. There are no similar instances seen for other images.
Q. Is this Error Message found in the Console logs?
A. This can be found in the Defender Logs.
Q. Is there a way to determine a set list of images that can't be scanned with the reason in the Console UI and Logs?
A. No. As long as the Public/Private Registry has proper permissions assigned, Prisma Cloud Defenders can scan any image.