9. Enumerating Security controls

Windefender has improved greatly over time.

Built-in powershell cmdlet to check Defender status: Get-MpComputerStatus - look at RealTimeProtectionEnabled ![](/img/Pasted image 20240903181405.png)

AppLocker - https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/applocker/what-is-applocker

Viewing AppLocker policiy using Get-AppLockerPolicy cmdlet

Get-AppLockerPolicy -Effective | select -ExpandProperty RuleCollections

Powershell constrained language mode https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/ Locks down many features needed to use powershell effectively such as:

 $ExecutionContext.SessionState.LanguageMode

LAPS Microsoft Local Admin Password Solution - used to randomize and rotate local administrator passwords on Windows hosts, preventing lateral movement

Find-LAPSDelegatedGroups

We can also use

Find-AdmPwdExtendedRights

Furthermore checking:

Get-LAPSComputers