Hello , Welcome to MS Q&A
Yes right we do not manage servers but we are responsible for base images we are using in dockerfile.
Microsoft Defender for Cloud is scanning your container image layers, including base OS packages (like perl
) that may come from a base image (e.g., debian
, ubuntu
, alpine
, etc.). Defender flags these vulnerabilities based on known CVEs like CVE-2024-56406
.
To resolve the vulnerability, you need to rebuild your container image with a base image that includes the patched version of the perl
package and similarly for debian.
Best Practices
- Use minimal base images: Consider
alpine
ordistroless
if your app allows. - Scan your image before pushing using tools like:
- Trivy
- Microsoft Defender for Cloud (automatically scans ACR)
- Keep Dockerfiles up to date: Base image tags like
debian:12
may not auto-update to12.1
, so you need to rebuild often.
Please let me know if any further ques
Kindly accept if it helps
Thanks
Deepanshu