Control: 2.7 Ensure that account 'Lockout duration in seconds' is greater than or equal to '60'
Description
The account lockout duration value determines how long an account retains the status of lockout, and therefore how long before a user can continue to attempt to login after passing the lockout threshold.
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 duration in seconds
to60
or higher. - Click
Save
.
Default Value
By default, Lockout duration in seconds is set to 60
.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v300_2_7
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v300_2_7 --share
SQL
This control uses a named query:
ad_manual_control