Checking for vulnerabilities in Azure Function app base image

Arshad Azeem 0 Reputation points
2024-08-28T06:42:00.9933333+00:00

We're encountering numerous alerts in Microsoft Defender for Cloud related to container registries, specifically the "Container images in Azure registry should have vulnerability findings resolved" warning. After investigating the base images of the associated repositories, it turns out that most of them are using the base image docker pull mcr.microsoft.com/azure-functions/dotnet:4.

Guides to Azure Functions that use Docker, such as Create a function on Linux using a custom container, all say I have to start with one of the Azure Functions-specific images, such as "mcr.microsoft.com/azure-functions/dotnet:4", of which there aren't very many choices and none of them mention a Linux version.

This base image seems to be the source of the multiple findings. Is there a way to confirm if this image is updated and to obtain details on the Linux and vendor versions included in the container?2024-08-28 16_36_19-Microsoft Artifact Registry and 8 more pages - AA - Blackstream - Microsoft​ Edg

2024-08-28 16_37_06-[Preview] Container images in Azure registry should have vulnerability findings

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Microsoft Security Microsoft Defender Microsoft Defender for Cloud
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 5,600 Reputation points Microsoft Employee Volunteer Moderator
    2024-08-28T16:13:30.1933333+00:00

    Hello @Arshad Azeem Based on the provided document, Microsoft Defender for Cloud offers vulnerability analysis for Azure Container Registry images.

    You can use Microsoft Defender for Container Registries to scan your images for vulnerabilities. Regarding your question about the base image docker pull mcr.microsoft.com/azure-functions/dotnet:4, I am not sure about the specific details of the Linux and vendor versions included in the container.

    However, you can check if this image is updated by running the command docker pull mcr.microsoft.com/azure-functions/dotnet:4 to pull the latest version of the image.

    If there is a newer version available, it will be downloaded. If you are still encountering alerts related to this image, you may want to consider using a different base


    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.