🛡️ Privileged Azure Virtual Machine is accessed by identities without MFA🟢⚪
- Contextual name: 🛡️ Privileged Virtual Machine is accessed by identities without MFA🟢⚪
- ID:
/ce/ca/azure/virtual-machine/privileged-virtual-machine-access-mfa-identity-only - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Description
Description
Verify identities without MFA that can log in to a privileged virtual machine using separate login credentials. An adversary can leverage the access to move laterally and perform actions with the virtual machine's managed identity. Make sure the virtual machine only has necessary permissions, and revoke the admin-level permissions according to the principle of least privilege.
Rationale
Integrating multi-factor authentication (MFA) as part of the organizational policy can greatly reduce the risk of an identity gaining control of valid credentials that may be used for additional tactics such as initial access, lateral movement, and collecting information. MFA can also be used to restrict access to cloud resources and APIs.
An Adversary may log into accessible cloud services within a compromised environment using Valid Accounts that are synchronized to move laterally and perform actions with the virtual machine's managed identity. The adversary may then perform management actions or access cloud-hosted resources as the logged-on managed identity.
... see more
Remediation
Remediation
From Azure Portal
Log in to the Azure portal.
This can be remediated by enabling MFA for user, Removing user access or Reducing access of managed identities attached to virtual machines.
Case I : Enable MFA for users having access on virtual machines.
Go to
Microsoft Entra ID.For
Per-user MFA:a. Under
Manage, clickUsers.b. Click
Per-user MFA.c. For each user requiring remediation, check the box next to their name.
d Click
Enable MFA, then ClickEnable.For
Conditional Access:a. Under
Manage, clickSecurity.b. Under
Protect, clickConditional Access.c. Update the Conditional Access policy requiring MFA for all users, removing each user requiring remediation from the
Excludelist.
- Case II : Removing user access on a virtual machine.
- Select the
Subscription, then click onAccess control (IAM).- Select
Role assignmentsand search forVirtual Machine Administrator LoginorVirtual Machine User Loginor any role that provides access to log into virtual machines.... see more
policy.yaml
Linked Framework Sections
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| 💼 CIS Azure v2.1.0 → 💼 7.8 Ensure only MFA enabled identities can access privileged Virtual Machine - Level 2 (Automated) | 1 | no data | |||
| 💼 CIS Azure v3.0.0 → 💼 8.10 Ensure only MFA enabled identities can access privileged Virtual Machine (Manual) | 1 | no data | |||
| 💼 CIS Azure v4.0.0 → 💼 4.1.1 Ensure only MFA enabled identities can access privileged Virtual Machine (Manual) | 1 | no data | |||
| 💼 Cloudaware Framework → 💼 Multi-Factor Authentication (MFA) Implementation | 16 | no data |