Azure app service is compromised. We can see inside our app service files there is a file called xmrig-6.24.0

Yale Farmer 36 Reputation points
2025-12-11T14:31:37.52+00:00

Azure_App_Service.pngimage (18).png

As you can see in the image someone put an additional file xmrig-6.24.0

What is this file? How can we prevent attackers to not put such files? This is draining CPU of my app service. I have uploaded both the screenshots.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. TP 145.5K Reputation points Volunteer Moderator
    2025-12-11T16:22:01.8266667+00:00

    Hi,

    Please see below Security Advisory:

    Security Advisory: CVE-2025-66478

    https://nextjs.org/blog/CVE-2025-66478

    At minimum I suggest you stop your app (so that the cryptominer is no longer running). Update your clean source files so that known vulnerabilities are patched, test locally, deploy updated app, change any secret(s)/api keys/etc. that your app has access to. Make sure no malicious files remain.

    You should assess all the potential effects of the malicious code having access to everything that your app has access to, and take steps to mitigate. Consider engaging cybersecurity specialist to provide analysis and detailed advice.

    -TP


Your answer

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