Skip to content

Commit b210dbc

Browse files
authored
Merge pull request #226725 from v-edmckillop/patch-110
Update service-accounts-standalone-managed.md
2 parents 77f7ade + 3425ba2 commit b210dbc

File tree

1 file changed

+46
-48
lines changed

1 file changed

+46
-48
lines changed
Lines changed: 46 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Secure standalone managed service accounts | Azure Active Directory
3-
description: A guide to securing standalone managed service accounts.
2+
title: Secure standalone managed service accounts
3+
description: Learn when to use, how to assess, and to secure standalone managed service accounts (sMSAs)
44
services: active-directory
5-
author: janicericketts
5+
author: jricketts
66
manager: martinco
77
ms.service: active-directory
88
ms.workload: identity
99
ms.subservice: fundamentals
1010
ms.topic: conceptual
11-
ms.date: 08/20/2022
11+
ms.date: 02/08/2023
1212
ms.author: jricketts
1313
ms.reviewer: ajburnle
1414
ms.custom: "it-pro, seodec18"
@@ -17,78 +17,75 @@ ms.collection: M365-identity-device-management
1717

1818
# Secure standalone managed service accounts
1919

20-
Standalone managed service accounts (sMSAs) are managed domain accounts that you use to help secure one or more services that run on a server. They can't be reused across multiple servers. sMSAs provide automatic password management, simplified service principal name (SPN) management, and the ability to delegate management to other administrators.
20+
Standalone managed service accounts (sMSAs) are managed domain accounts that help secure services running on a server. They can't be reused across multiple servers. sMSAs have automatic password management, simplified service principal name (SPN) management, and delegated management to administrators.
2121

22-
In Active Directory, sMSAs are tied to a specific server that runs a service. You can find these accounts listed in the Active Directory Users and Computers snap-in of the Microsoft Management Console.
22+
In Active Directory (AD), sMSAs are tied to a server that runs a service. You can find accounts in the Active Directory Users and Computers snap-in in Microsoft Management Console.
2323

24-
![Screenshot of the Active Directory users and computers snap-in showing the managed service accounts OU.](./media/securing-service-accounts/secure-standalone-msa-image-1.png)
24+
![Screenshot of a service name and type under Active Directory Users and Computers.](./media/securing-service-accounts/secure-standalone-msa-image-1.png)
2525

26-
Managed service accounts were introduced with Windows Server 2008 R2 Active Directory Schema, and they require at least Windows Server 2008 R2​.
26+
> [!NOTE]
27+
> Managed service accounts were introduced in Windows Server 2008 R2 Active Directory Schema, and they require Windows Server 2008 R2, or a later version.
2728
28-
## Benefits of using sMSAs
29+
## sMSA benefits
2930

30-
sMSAs offer greater security than user accounts that are used as service accounts. At the same time, to help reduce administrative overhead, they:
31+
sMSAs have greater security than user accounts used as service accounts. They help reduce administrative overhead:
3132

32-
* **Set strong passwords**: sMSAs use 240-byte, randomly generated complex passwords. The complexity and length of sMSA passwords minimizes the likelihood of a service getting compromised by brute force or dictionary attacks.
33+
* Set strong passwords - sMSAs use 240 byte, randomly generated complex passwords
34+
* The complexity minimizes the likelihood of compromise by brute force or dictionary attacks
35+
* Cycle passwords regularly - Windows changes the sMSA password every 30 days.
36+
* Service and domain administrators don’t need to schedule password changes or manage the associated downtime
37+
* Simplify SPN management - SPNs are updated if the domain functional level is Windows Server 2008 R2. The SPN is updated when you:
38+
* Rename the host computer account
39+
* Change the host computer domain name server (DNS) name
40+
* Use PowerShell to add or remove other sam-accountname or dns-hostname parameters
41+
* See, [Set-ADServiceAccount](/powershell/module/activedirectory/set-adserviceaccount)
3342

34-
* **Cycle passwords regularly**: Windows automatically changes the sMSA password every 30 days. Service and domain administrators don’t need to schedule password changes or manage the associated downtime.
43+
## Using sMSAs
3544

36-
* **Simplify SPN management**: Service principal names are automatically updated if the domain functional level is Windows Server 2008 R2. For instance, the service principal name is automatically updated when you:
37-
* Rename the host computer account.
38-
* Change the domain name server (DNS) name of the host computer.
39-
* Add or remove other sam-accountname or dns-hostname parameters by using [PowerShell](/powershell/module/activedirectory/set-adserviceaccount).
40-
41-
## When to use sMSAs
42-
43-
sMSAs can simplify management and security tasks. Use sMSAs when you have one or more services deployed to a single server and you can't use a group managed service account (gMSA).
45+
Use sMSAs to simplify management and security tasks. sMSAs are useful when services are deployed to a server and you can't use a group managed service account (gMSA).
4446

4547
> [!NOTE]
46-
> Although you can use sMSAs for more than one service, we recommend that each service have its own identity for auditing purposes.
48+
> You can use sMSAs for more than one service, but it's recommended that each service has an identity for auditing.
4749
48-
If the creator of the software can’t tell you whether it can use an MSA, you must test your application. To do so, create a test environment and ensure that it can access all required resources. For more information, see [Create and install an sMSA](/archive/blogs/askds/managed-service-accounts-understanding-implementing-best-practices-and-troubleshooting).
50+
If the software creator can’t tell you if the application uses an MSA, test the application. Create a test environment and ensure it accesses required resources.
4951

50-
### Assess the security posture of sMSAs
52+
Learn more: [Managed Service Accounts: Understanding, Implementing, Best Practices, and Troubleshooting](/archive/blogs/askds/managed-service-accounts-understanding-implementing-best-practices-and-troubleshooting)
5153

52-
sMSAs are inherently more secure than standard user accounts, which require ongoing password management. However, it's important to consider sMSAs’ scope of access as part of their overall security posture.
54+
### Assess sMSA security posture
5355

54-
To see how to mitigate potential security issues posed by sMSAs, refer to the following table:
56+
Consider the sMSA scope of access as part of the security posture. To mitigate potential security issues, see the following table:
5557

5658
| Security issue| Mitigation |
5759
| - | - |
58-
| sMSA is a member of privileged groups. | <li>Remove the sMSA from elevated privileged groups, such as Domain Admins.<li>Use the *least privileged* model, and grant the sMSA only the rights and permissions it requires to run its services.<li>If you're unsure of the required permissions, consult the service creator. |
59-
| sMSA has read/write access to sensitive resources. | <li>Audit access to sensitive resources.<li>Archive audit logs to a Security Information and Event Management (SIEM) program, such as Azure Log Analytics or Microsoft Sentinel, for analysis.<li>Remediate resource permissions if an undesirable level of access is detected. |
60-
| By default, the sMSA password rollover frequency is 30 days. | You can use group policy to tune the duration, depending on enterprise security requirements. To set the password expiration duration, use the following path:<br>*Computer Configuration\Policies\Windows Settings\Security Settings\Security Options*. For domain member, use **Maximum machine account password age**. |
61-
| | |
62-
60+
| sMSA is a member of privileged groups | - Remove the sMSA from elevated privileged groups, such as Domain Admins</br> - Use the least-privileged model </br> - Grant the sMSA rights and permissions to run its services</br> - If you're unsure about permissions, consult the service creator|
61+
| sMSA has read/write access to sensitive resources | - Audit access to sensitive resources</br> - Archive audit logs to a security information and event management (SIEM) program, such as Azure Log Analytics or Microsoft Sentinel </br> - Remediate resource permissions if an undesirable access is detected |
62+
| By default, the sMSA password rollover frequency is 30 days | Use group policy to tune the duration, depending on enterprise security requirements. To set the password expiration duration, go to:<br>Computer Configuration>Policies>Windows Settings>Security Settings>Security Options. For domain member, use **Maximum machine account password age**. |
6363

64-
65-
### Challenges with sMSAs
66-
67-
The challenges associated with sMSAs are as follows:
64+
### sMSA challenges
65+
66+
Use the following table to associate challenges with mitigations.
6867

6968
| Challenge| Mitigation |
7069
| - | - |
71-
| sMSAs can be used on a single server only. | Use a gMSA if you need to use the account across servers. |
72-
| sMSAs can't be used across domains. | Use a gMSA if you need to use the account across domains. |
73-
| Not all applications support sMSAs. | Use a gMSA if possible. Otherwise, use a standard user account or a computer account, as recommended by the application creator. |
74-
| | |
75-
70+
| sMSAs are on a single server | Use a gMSA to use the account across servers |
71+
| sMSAs can't be used across domains | Use a gMSA to use the account across domains |
72+
| Not all applications support sMSAs| Use a gMSA, if possible. Otherwise, use a standard user account or a computer account, as recommended by the creator|
7673

7774
## Find sMSAs
7875

79-
On any domain controller, run DSA.msc, and then expand the managed service accounts container to view all sMSAs.
76+
On a domain controller, run DSA.msc, and then expand the managed service accounts container to view all sMSAs.
8077

8178
To return all sMSAs and gMSAs in the Active Directory domain, run the following PowerShell command:
8279

8380
`Get-ADServiceAccount -Filter *`
8481

85-
To return only sMSAs in the Active Directory domain, run the following command:
82+
To return sMSAs in the Active Directory domain, run the following command:
8683

8784
`Get-ADServiceAccount -Filter * | where { $_.objectClass -eq "msDS-ManagedServiceAccount" }`
8885

8986
## Manage sMSAs
9087

91-
To manage your sMSAs, you can use the following Active Directory PowerShell cmdlets:
88+
To manage your sMSAs, you can use the following AD PowerShell cmdlets:
9289

9390
`Get-ADServiceAccount`
9491
`Install-ADServiceAccount`
@@ -100,16 +97,17 @@ To manage your sMSAs, you can use the following Active Directory PowerShell cmdl
10097

10198
## Move to sMSAs
10299

103-
If an application service supports sMSAs but not gMSAs, and you're currently using a user account or computer account for the security context, [Create and install an sMSA](/archive/blogs/askds/managed-service-accounts-understanding-implementing-best-practices-and-troubleshooting) on the server.
100+
If an application service supports sMSAs, but not gMSAs, and you're using a user account or computer account for the security context, see</br>
101+
[Managed Service Accounts: Understanding, Implementing, Best Practices, and Troubleshooting](/archive/blogs/askds/managed-service-accounts-understanding-implementing-best-practices-and-troubleshooting).
104102

105-
Ideally, you would move resources to Azure and use Azure Managed Identities or service principals.
103+
If possible, move resources to Azure and use Azure managed identities, or service principals.
106104

107105
## Next steps
108106

109-
To learn more about securing service accounts, see the following articles:
107+
To learn more about securing service accounts, see:
110108

111-
* [Introduction to on-premises service accounts](service-accounts-on-premises.md)
109+
* [Securing on-premises service accounts](service-accounts-on-premises.md)
112110
* [Secure group managed service accounts](service-accounts-group-managed.md)
113-
* [Secure computer accounts](service-accounts-computer.md)
114-
* [Secure user accounts](service-accounts-user-on-premises.md)
111+
* [Secure on-premises computer accounts with AD](service-accounts-computer.md)
112+
* [Secure user-based service accounts in AD](service-accounts-user-on-premises.md)
115113
* [Govern on-premises service accounts](service-accounts-govern-on-premises.md)

0 commit comments

Comments
 (0)