-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rule no_invalid_shell_accounts_unlocked
- Loading branch information
1 parent
2edb023
commit 98b4292
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...em/accounts/accounts-restrictions/root_logins/no_invalid_shell_accounts_unlocked/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
documentation_complete: true | ||
|
||
title: 'Verify Non-Interactive Accounts Are Locked' | ||
|
||
description: |- | ||
Accounts meant for non-interactive purposes should be locked to prevent | ||
unauthorized access. Accounts with non-standard shells (those not defined in | ||
<tt>/etc/shells</tt>) should be locked using <tt>usermod -L</tt>. | ||
rationale: |- | ||
Locking non-interactive accounts improves security by preventing potential | ||
misuse. While many systems configure these accounts with invalid strings, | ||
setting the shell field to <tt>nologin</tt> is also suggested | ||
severity: medium | ||
|
||
warnings: | ||
- general: |- | ||
Automatic remediation of this control is not recommended. Locking system accounts | ||
could be highly disruptive. |