Do’s and don’ts concerning security for Identity part 7

Once again, more best practices for Identity. In the last part I covered how we can protect your applications from leaking content. Keep your Identities secure and how to keep using MFA after on-premises MFA Server will not work anymore.

In this part we will see how to secure your User settings and prepare for future changes with deprecating features.

Use templates for easier CA policy deployment

Did you know that you can use template for create Conditional access policies, there is templates for Identities and devices.

For Identities

And devices

Do disable Tenant creation from users

Of course there could be use cases that users need to create tenants but maybe it should be disabled by default?

One use case could be creating an Tenant for Power BI as a developer.

Or maybe you need an new Tenant when deploying Azure AD B2C?

Although you need a Subscription also to create an B2C tenant.

Yes means that default users are permitted to create Azure AD tenancies. When set to “No,” only users with the tenant creator or global administrator permissions are permitted to establish Azure AD tenants. Anyone who creates a tenant will also become that tenant’s global administrator.

But if you need to enable them to create those tenant, this is how you do it.

You can also remove the tenant if you “mistakenly” created one. https://entra.microsoft.com/#view/Microsoft_AAD_IAM/DirectorySwitchBlade/subtitle/

But then it becomes a little bit exiting as we didn’t provision any resources.

Allow resource management

And let’s try again and choose Delete

And it’s gone but bare in mind that it will be left in the dumpster for a while.

For me removing user permissions to create tenant took about 5 minutes.

Before this was enabled by default and the user creating the tenant becomes a Global Admin in that tenant, so nice from Microsoft to give us an option to disallow this.

Please could you just make it Disabled by default.

Legacy SSPR and MFA rules

The legacy rules for self-service password reset and multifactor authentication will be phased out in January 2024, and you’ll control all authentication methods here in the authentication methods policy. Manage your transition from the old unified policies to the new ones with this control.

When you open Manage migration, you will see the following options.

If your tenant is using both MFA and SSPR, you’ll need to consider each method:

  • If the method is enabled in both legacy policies, enable it for all users in the Authentication methods policy.
  • If the method is off in both legacy policies, leave it off for all users in the Authentication methods policy.
  • If the method is enabled only in one policy, you’ll need to decide whether or not it should be available in all situations.

More information here,

Enable Email OTP (if not already enabled)

It determines whether external users can use the email one-time password for authentication. Starting in March 2021, tenants in the default state who did not use public preview will automatically have email OTP activated.

Use Third-party software OATH tokens

Software OATH tokens are programs that create 6-digit authentication codes using the OATH TOTP standard and a secret key. The ability to register and use OATH tokens for non-Microsoft software is particularly controlled by this policy setting. The Microsoft Authenticator component of this policy governs Microsoft Authenticator, which can also provide software OATH codes.

Note that they cannot be used as a first-factor authentication mechanism.

And if you still need more points to secure your environment, you could …

Export your defender scores with Graph

To get more insights on what you should fix in your environment, you can use those Secure score controls. This isn’t only limited to Identity based controls but wanted to point this one out.

Native Graph cmdlets

Creating app registration

If you want to use Application authentication, you need to create an app registration.

Here is an excellent article just for that from MVP Liam Cleary.

Or this one from CIAOPS, which is oldish but gives good pointers.

How to capture all Secure scores by CIAOPS

And for the script, I made some modifications, here is the version that works with current API’s.

The working script

Closure

In this part we will see how to secure your User settings with disabling Tenant creation and adding more security using tokens, how to prepare for future changes with MFA and SSPR deprecating features.

But also three different methods for exporting our Security controls from Microsoft security Graph APIs.

In the next part more Identity do’s and don’ts, Stay tuned!

Links to previous parts

Hackers don’t break in – they log in.

Author: Harri Jaakkonen

Leave a Reply

Your email address will not be published. Required fields are marked *