Control: 6.6 Ensure that account 'Lockout threshold' is less than or equal to '10'
Description
The account lockout threshold determines how many failed login attempts are permitted prior to placing the account in a locked-out state and initiating a variable lockout duration.
Account lockout is a method of protecting against brute-force and password spray attacks. Once the lockout threshold has been exceeded, the account enters a locked-out state which prevents all login attempts for a variable duration. The lockout in combination with a reasonable duration reduces the total number of failed login attempts that a malicious actor can execute in a given period of time.
Remediation
From Azure Portal
- From Azure Home select the Portal Menu.
 - Select 
Microsoft Entra ID. - Under 
Manage, selectSecurity. - Under 
Manage, selectAuthentication methods. - Under 
Manage, selectPassword protection. - Set the 
Lockout thresholdto10or fewer. - Click 
Save. 
Default Value
By default, Lockout threshold is set to 10.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v400_6_6Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v400_6_6 --shareSQL
This control uses a named query:
select  id as resource,  'info' as status,  'Manual verification required.' as reason,  display_name as subscriptionfrom  azure_subscription;