5.2 Use LockOut Realms

Information

A LockOut realm wraps around standard realms adding the ability to lock a user out after multiple failed logins.

Rationale:

Locking out a user after multiple failed logins slows down attackers from brute forcing logins.

Solution

Create a lockout realm wrapping the main realm similar to the example below:

<Realm className='org.apache.catalina.realm.LockOutRealm'
failureCount='3' lockOutTime='600' cacheSize='1000'
cacheRemovalWarningTime='3600'>
<Realm
className='org.apache.catalina.realm.DataSourceRealm'
dataSourceName=... />
</Realm>

References:

http://tomcat.apache.org/tomcat-9.0-doc/realm-howto.html

http://tomcat.apache.org/tomcat-9.0-doc/config/realm.html

See Also

https://workbench.cisecurity.org/files/2509

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-7, CSCv7|5.1

Plugin: Unix

Control ID: b3937120d0d5c6ee89846ec7b65da9c9b446e05c06d523ac3f5b7a8af2bf0567