My database is hacked in the VM

IT Support 0 Reputation points
2024-04-17T11:40:36.3333333+00:00

Hi team,

Yesterday , we found that my database has hacked .

Why my databasae hacked in the Azure VM

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,137 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. kobulloc-MSFT 23,491 Reputation points Microsoft Employee
    2024-04-17T14:00:08.5166667+00:00

    Hello, @IT Support !

    What should I do if my VM security has been compromised or hacked?

    There are many ways to safeguard your Azure account as well as your VMs and other Azure resources however if a VM has been compromised, you'll need to review both your Azure account and your VM security.

    Most of this boils down to making it harder for bad actors to access privileged accounts (2FA, Azure authentication, strong usernames and passwords) and limiting the number of options to access accounts and resources (remove public access, add conditional access checks, limit time/window of availability). In addition, you'll need to go through logs to understand what has been done by the attacker.

    This is a good time to review security service offerings like Microsoft Defender for Cloud to help improve your security.

    Azure account security

    First, you'll need to review your Azure account security and ensure that it has not been compromised:

    Virtual machine security

    After you've confirmed that your Azure account is secure, you'll need to review your virtual machine security:

    • Control access to the VM: A best practice is to ensure that your VM is not publicly accessible and enable access to management ports only when needed.
    • Use Azure Bastion: Bastion provides secure RDP and SSH connectivity to all of the VMs in the virtual network for which it's provisioned. Using Azure Bastion protects your virtual machines from exposing RDP/SSH ports to the outside world, while still providing secure access using RDP/SSH.
    • Use Azure Entra ID to sign into your VM: Organizations can improve the security of Windows virtual machines (VMs) in Azure by integrating with Microsoft Entra authentication. You can now use Microsoft Entra ID as a core authentication platform to Remote Desktop Protocol (RDP) into Windows Server 2019 Datacenter edition and later, or Windows 10 1809 and later.
    • Protect against malware: Microsoft Antimalware for Azure is a free real-time protection that helps identify and remove viruses, spyware, and other malicious software. It generates alerts when known malicious or unwanted software tries to install itself or run on your Azure systems.
    • Keep your VM updated: Vulnerabilities of the operating system are particularly worrisome when they are also combined with a port and service that is more likely to be published.
    • Utilize the Azure Security Center : Use Azure Security Center Standard tier to ensure you are actively monitoring for threats. Security Center uses machine learning to analyze signals across Microsoft systems and services to alert you to threats to your environment. One such example is remote desktop protocol (RDP) brute-force attacks.

    Additional account security resources:

    Additional VM security resources:


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments