mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
21 lines
759 B
Bash
21 lines
759 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Prowler - the handy cloud security tool (c) by Toni de la Fuente
|
|
#
|
|
# This Prowler check is licensed under a
|
|
# Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
|
|
#
|
|
# You should have received a copy of the license along with this
|
|
# work. If not, see <http://creativecommons.org/licenses/by-nc-sa/4.0/>.
|
|
|
|
CHECK_ID_check11="1.1,1.01"
|
|
CHECK_TITLE_check11="[check11] Avoid the use of the root account (Scored)"
|
|
CHECK_SCORED_check11="SCORED"
|
|
CHECK_ALTERNATE_check101="check11"
|
|
|
|
check11(){
|
|
# "Avoid the use of the root account (Scored)."
|
|
COMMAND11=$(cat $TEMP_REPORT_FILE| grep '<root_account>' | cut -d, -f5,11,16 | sed 's/,/\ /g')
|
|
textInfo "Root account last accessed (password key_1 key_2): $COMMAND11"
|
|
}
|