diff --git a/prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/__init__.py b/prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/__init__.py similarity index 100% rename from prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/__init__.py rename to prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/__init__.py diff --git a/prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication.metadata.json b/prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication.metadata.json similarity index 96% rename from prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication.metadata.json rename to prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication.metadata.json index abaf961476..928e2edfcc 100644 --- a/prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication.metadata.json +++ b/prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication.metadata.json @@ -1,6 +1,6 @@ { "Provider": "microsoft365", - "CheckID": "entra_managed_device_required_for_authentication", + "CheckID": "entra_capolicy_managed_device_required_for_authentication", "CheckTitle": "Ensure that only managed devices are required for authentication", "CheckType": [], "ServiceName": "entra", diff --git a/prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication.py b/prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication.py similarity index 97% rename from prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication.py rename to prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication.py index 08ba22de9a..1c0f4603a6 100644 --- a/prowler/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication.py +++ b/prowler/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication.py @@ -7,7 +7,7 @@ from prowler.providers.microsoft365.services.entra.entra_service import ( ) -class entra_managed_device_required_for_authentication(Check): +class entra_capolicy_managed_device_required_for_authentication(Check): """Check if Conditional Access policies deny access to the Microsoft 365 This check ensures that Conditional Access policies are in place to enforce managed device requirement for authentication. diff --git a/tests/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication_test.py b/tests/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication_test.py similarity index 86% rename from tests/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication_test.py rename to tests/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication_test.py index 18fa79199b..98b07c011e 100644 --- a/tests/providers/microsoft365/services/entra/entra_managed_device_required_for_authentication/entra_managed_device_required_for_authentication_test.py +++ b/tests/providers/microsoft365/services/entra/entra_capolicy_managed_device_required_for_authentication/entra_capolicy_managed_device_required_for_authentication_test.py @@ -20,7 +20,7 @@ from tests.providers.microsoft365.microsoft365_fixtures import ( ) -class Test_entra_managed_device_required_for_authentication: +class Test_entra_capolicy_managed_device_required_for_authentication: def test_entra_no_conditional_access_policies(self): entra_client = mock.MagicMock entra_client.audited_tenant = "audited_tenant" @@ -31,17 +31,17 @@ class Test_entra_managed_device_required_for_authentication: return_value=set_mocked_microsoft365_provider(), ), mock.patch( - "prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication.entra_client", + "prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication.entra_client", new=entra_client, ), ): - from prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication import ( - entra_managed_device_required_for_authentication, + from prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication import ( + entra_capolicy_managed_device_required_for_authentication, ) entra_client.conditional_access_policies = {} - check = entra_managed_device_required_for_authentication() + check = entra_capolicy_managed_device_required_for_authentication() result = check.execute() assert len(result) == 1 assert result[0].status == "FAIL" @@ -66,12 +66,12 @@ class Test_entra_managed_device_required_for_authentication: return_value=set_mocked_microsoft365_provider(), ), mock.patch( - "prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication.entra_client", + "prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication.entra_client", new=entra_client, ), ): - from prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication import ( - entra_managed_device_required_for_authentication, + from prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication import ( + entra_capolicy_managed_device_required_for_authentication, ) from prowler.providers.microsoft365.services.entra.entra_service import ( ConditionalAccessPolicy, @@ -112,7 +112,7 @@ class Test_entra_managed_device_required_for_authentication: ) } - check = entra_managed_device_required_for_authentication() + check = entra_capolicy_managed_device_required_for_authentication() result = check.execute() assert len(result) == 1 assert result[0].status == "FAIL" @@ -138,12 +138,12 @@ class Test_entra_managed_device_required_for_authentication: return_value=set_mocked_microsoft365_provider(), ), mock.patch( - "prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication.entra_client", + "prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication.entra_client", new=entra_client, ), ): - from prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication import ( - entra_managed_device_required_for_authentication, + from prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication import ( + entra_capolicy_managed_device_required_for_authentication, ) from prowler.providers.microsoft365.services.entra.entra_service import ( ConditionalAccessPolicy, @@ -189,7 +189,7 @@ class Test_entra_managed_device_required_for_authentication: ) } - check = entra_managed_device_required_for_authentication() + check = entra_capolicy_managed_device_required_for_authentication() result = check.execute() assert len(result) == 1 assert result[0].status == "FAIL" @@ -219,12 +219,12 @@ class Test_entra_managed_device_required_for_authentication: return_value=set_mocked_microsoft365_provider(), ), mock.patch( - "prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication.entra_client", + "prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication.entra_client", new=entra_client, ), ): - from prowler.providers.microsoft365.services.entra.entra_managed_device_required_for_authentication.entra_managed_device_required_for_authentication import ( - entra_managed_device_required_for_authentication, + from prowler.providers.microsoft365.services.entra.entra_capolicy_managed_device_required_for_authentication.entra_capolicy_managed_device_required_for_authentication import ( + entra_capolicy_managed_device_required_for_authentication, ) from prowler.providers.microsoft365.services.entra.entra_service import ( ConditionalAccessPolicy, @@ -270,7 +270,7 @@ class Test_entra_managed_device_required_for_authentication: ) } - check = entra_managed_device_required_for_authentication() + check = entra_capolicy_managed_device_required_for_authentication() result = check.execute() assert len(result) == 1 assert result[0].status == "PASS"