Active Directory SPN

๐Ÿ› ๏ธย [๐—ฃ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฎ๐—น ๐—•๐—ถ๐˜๐˜€] – ๐—ฆ๐—ฃ๐—ก

Go and check your Active Directory for SPNs. You can do so easily with any simple PowerShell script. Example:

____

Get-ADUser -LDAPFilter ‘(&(objectCategory=user)(!(samAccountName=krbtgt)(servicePrincipalName=*)))’ -Properties Name, UserPrincipalName, ServicePrincipalName | Select-Object Name, UserPrincipalName, @{N=”ServicePrincipalName”;E={$_.ServicePrincipalName -join “, “}}

____

(๐™ฉ๐™๐™ž๐™จ ๐™ž๐™จ ๐™–๐™ก๐™จ๐™ค ๐™ฅ๐™–๐™ง๐™ฉ ๐™ค๐™› ๐™ข๐™ฎ ๐™ฉ๐™ค๐™ค๐™ก ๐˜ผ๐˜ฟ๐™‹๐™ง๐™ค๐™—๐™š)

โ“Once you have results, go through the following ๐˜๐—ต๐—ผ๐˜‚๐—ด๐—ต๐˜ ๐—ฝ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€:

Do I know these service accounts?

โœ… Proceed below

โŒ You need to investigate

Do I need these service accounts?

โœ… Proceed below

โŒ Decommission them

Can these service accounts be migrated to MSA type?

โœ… Change them

โŒ Proceed below

Is the password of that account long and complex?

โœ… You should be good now

โŒ Proceed below

Improve the password and change it regularly.

This ensures you ๐—บ๐—ผ๐˜ƒ๐—ฒ ๐—ฎ๐˜ ๐—น๐—ฒ๐—ฎ๐˜€๐˜ ๐—ฎ ๐—ฏ๐—ถ๐˜ ๐˜๐—ผ๐˜„๐—ฎ๐—ฟ๐—ฑ ๐˜๐—ต๐—ฒ ๐—บ๐—ผ๐—ฟ๐—ฒ ๐˜€๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ฒ Active Directory.